Skip to content

Commit 4330ea0

Browse files
committed
remove unused local symtab variable
1 parent 1a2202f commit 4330ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/subtypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,8 @@ def visit_type_type(self, left: TypeType) -> bool:
10701070
return True
10711071
if isinstance(item, Instance):
10721072
if (mtype := item.type.metaclass_type) is None or (
1073-
symtab := mtype.type.get("__hash__")
1074-
) is None:
1073+
mtype.type.get("__hash__") is None
1074+
):
10751075
return True
10761076
supertype = get_proper_type(find_member("__hash__", right, mtype))
10771077
assert supertype is not None

0 commit comments

Comments
 (0)