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 25c1317 commit d3be613Copy full SHA for d3be613
mypy/types.py
@@ -2416,6 +2416,8 @@ def __init__(
2416
) -> None:
2417
super().__init__(line, column)
2418
if fallback.type and fallback.type.fullname == "builtins.tuple":
2419
+ # We actively ignore type argument for plain tuple fallback, to avoid spurious errors,
2420
+ # partial_fallback should never be used directly anyway, only via typeops.tuple_fallback().
2421
assert len(fallback.args) == 1
2422
if not isinstance(fallback.args[0], ProperType) or not isinstance(
2423
fallback.args[0], AnyType
0 commit comments