Skip to content

Commit 9840c37

Browse files
committed
base
1 parent 03fda8b commit 9840c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/subtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def visit_instance(self, left: Instance) -> bool:
464464
if isinstance(get_proper_type(unpacked.args[0]), AnyType):
465465
return not self.proper_subtype
466466
if (
467-
mapped.type.fullname == "builtins.tuple"
467+
mapped.type.has_base("builtins.tuple")
468468
and len(mapped.args) == 1
469469
and isinstance(get_proper_type(mapped.args[0]), AnyType)
470470
):

0 commit comments

Comments
 (0)