This commit is contained in:
Nuno Campos
2024-11-11 13:04:23 -08:00
parent efb1dd6a10
commit 0cc45f7a35
+1 -1
View File
@@ -256,7 +256,7 @@ class Command:
)
return f"Command({contents})"
def __eq__(self, value):
def __eq__(self, value: Any) -> bool:
return type(value) is type(self) and all(
getattr(self, key) == getattr(value, key) for key in self.__all_slots__
)