Skip to content

Commit

Permalink
Fix own typing
Browse files Browse the repository at this point in the history
  • Loading branch information
sterliakov committed Feb 5, 2025
1 parent 3f531e1 commit 749f956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mypy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,9 @@ def __init__(
super().__init__(line, column)
if fallback.type and fallback.type.fullname == "builtins.tuple":
assert len(fallback.args) == 1
if not isinstance(fallback.args[0], AnyType):
if not isinstance(fallback.args[0], ProperType) or not isinstance(
fallback.args[0], AnyType
):
fallback = fallback.copy_modified(
args=[AnyType(TypeOfAny.implementation_artifact)]
)
Expand Down

0 comments on commit 749f956

Please sign in to comment.