You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same error for tuple was fixed in #10766 but I see now an error "Unexpected" for the builtin types list, set:
To Reproduce
# the snippetl=list[str, ...] # errort=tuple[str, ...] # no errors=set[str, ...] # error
Expected Behavior
No errors
Actual Behavior
test.py:1: error: Unexpected "..." [misc]
test.py:1: error: "list" expects 1 type argument, but 2 given [type-arg]
test.py:5: error: Unexpected "..." [misc]
test.py:5: error: "set" expects 1 type argument, but 2 given [type-arg]
Found 4 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: 1.0.0
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): default after installation
Python version used: 3.10.5
The text was updated successfully, but these errors were encountered:
PEP 484 specifies the behavior of Tuple. The ... is not allowed in the other type annotations above. It sounds like PyCharm is not in compliance with the typing spec.
Bug Report
The same error for tuple was fixed in #10766 but I see now an error "Unexpected" for the builtin types list, set:
To Reproduce
Expected Behavior
No errors
Actual Behavior
test.py:1: error: Unexpected "..." [misc]
test.py:1: error: "list" expects 1 type argument, but 2 given [type-arg]
test.py:5: error: Unexpected "..." [misc]
test.py:5: error: "set" expects 1 type argument, but 2 given [type-arg]
Found 4 errors in 1 file (checked 1 source file)
Your Environment
mypy.ini
(and other config files): default after installationThe text was updated successfully, but these errors were encountered: