We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a2202f commit 4330ea0Copy full SHA for 4330ea0
mypy/subtypes.py
@@ -1070,8 +1070,8 @@ def visit_type_type(self, left: TypeType) -> bool:
1070
return True
1071
if isinstance(item, Instance):
1072
if (mtype := item.type.metaclass_type) is None or (
1073
- symtab := mtype.type.get("__hash__")
1074
- ) is None:
+ mtype.type.get("__hash__") is None
+ ):
1075
1076
supertype = get_proper_type(find_member("__hash__", right, mtype))
1077
assert supertype is not None
0 commit comments