Add route context (#2302)
This commit is contained in:
4
sanic/types/__init__.py
Normal file
4
sanic/types/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from .hashable_dict import HashableDict
|
||||
|
||||
|
||||
__all__ = ("HashableDict",)
|
||||
3
sanic/types/hashable_dict.py
Normal file
3
sanic/types/hashable_dict.py
Normal file
@@ -0,0 +1,3 @@
|
||||
class HashableDict(dict):
|
||||
def __hash__(self):
|
||||
return hash(tuple(sorted(self.items())))
|
||||
Reference in New Issue
Block a user