Skip to content

Commit c3b387a

Browse files
committed
Fix own typing
1 parent ff7105b commit c3b387a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,9 @@ def __init__(
24172417
super().__init__(line, column)
24182418
if fallback.type and fallback.type.fullname == "builtins.tuple":
24192419
assert len(fallback.args) == 1
2420-
if not isinstance(fallback.args[0], AnyType):
2420+
if not isinstance(fallback.args[0], ProperType) or not isinstance(
2421+
fallback.args[0], AnyType
2422+
):
24212423
fallback = fallback.copy_modified(
24222424
args=[AnyType(TypeOfAny.implementation_artifact)]
24232425
)

0 commit comments

Comments
 (0)