Improve dict key hashing
This commit is contained in:
1 parent
e65d992b43
commit
a310db8103
3 files changed
+10
-2
No files matched your search
+1
-1
@@ -120,7 +120,7 @@ class WebsocketTopic:
|
||||
return NotImplemented
|
||||
|
||||
def __hash__(self) -> int:
|
||||
return hash(self.id)
|
||||
return hash((self.__class__.__name__, self.id))
|
||||
|
||||
|
||||
WEBSOCKET_TOPICS: Dict[str, str] = {
|
||||
|
||||
Reference in new issue
Block a user