Add route context (#2302)

This commit is contained in:
Adam Hopkins
2021-12-21 22:56:12 +02:00
committed by GitHub
parent 080d41627a
commit 4659069350
10 changed files with 159 additions and 9 deletions

4
sanic/types/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
from .hashable_dict import HashableDict
__all__ = ("HashableDict",)

View File

@@ -0,0 +1,3 @@
class HashableDict(dict):
def __hash__(self):
return hash(tuple(sorted(self.items())))