Typing update

This commit is contained in:
DevilXD committed 2022-07-31 21:40:03 +02:00
1 parent 7a7b94f57c
commit f919850ad2
6 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -78,7 +78,7 @@ class GQLOperation(JsonType):
if variables is not None:
self.__setitem__("variables", variables)
def with_variables(self, variables: JsonType):
def with_variables(self, variables: JsonType) -> GQLOperation:
modified = copy(self)
if "variables" in self:
existing_variables: JsonType = modified["variables"]
@@ -209,7 +209,7 @@ class WebsocketTopic:
def __repr__(self) -> str:
return f"Topic({self._id})"
def __eq__(self, other):
def __eq__(self, other) -> bool:
if isinstance(other, WebsocketTopic):
return self._id == other._id
elif isinstance(other, str):