Skip to content

Commit d3be613

Browse files
authored
Add comment in mypy/types.py
1 parent 25c1317 commit d3be613

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,6 +2416,8 @@ def __init__(
24162416
) -> None:
24172417
super().__init__(line, column)
24182418
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().
24192421
assert len(fallback.args) == 1
24202422
if not isinstance(fallback.args[0], ProperType) or not isinstance(
24212423
fallback.args[0], AnyType

0 commit comments

Comments
 (0)