Improve dict key hashing

This commit is contained in:
DevilXD committed 2021-12-03 21:51:20 +01:00
1 parent e65d992b43
commit a310db8103
3 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -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] = {