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 3f531e1 commit 749f956Copy full SHA for 749f956
mypy/types.py
@@ -2417,7 +2417,9 @@ def __init__(
2417
super().__init__(line, column)
2418
if fallback.type and fallback.type.fullname == "builtins.tuple":
2419
assert len(fallback.args) == 1
2420
- if not isinstance(fallback.args[0], AnyType):
+ if not isinstance(fallback.args[0], ProperType) or not isinstance(
2421
+ fallback.args[0], AnyType
2422
+ ):
2423
fallback = fallback.copy_modified(
2424
args=[AnyType(TypeOfAny.implementation_artifact)]
2425
)
0 commit comments