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 4d0bd6b commit be5e608Copy full SHA for be5e608
mypy/subtypes.py
@@ -2142,15 +2142,15 @@ def is_erased_instance(t: Instance) -> bool:
2142
"""Is this an instance where all args are Any types?"""
2143
if not t.args:
2144
return False
2145
- for arg in map(get_proper_type, t.args):
+ for arg in t.args:
2146
if isinstance(arg, UnpackType):
2147
unpacked = get_proper_type(arg.type)
2148
if not isinstance(unpacked, Instance):
2149
2150
assert unpacked.type.fullname == "builtins.tuple"
2151
if not isinstance(get_proper_type(unpacked.args[0]), AnyType):
2152
2153
- elif not isinstance(arg, AnyType):
+ elif not isinstance(get_proper_type(arg), AnyType):
2154
2155
else:
2156
return True
0 commit comments