Various false positives with error: Unexpected "..."
when using ellipsis to fill in ParamSpec
-parametrised types
#15318
Labels
error: Unexpected "..."
when using ellipsis to fill in ParamSpec
-parametrised types
#15318
Bug Report & To Reproduce
False-positive-emitting behaviour of a type-alias of
typing.Callable[P, R]
vs a callbackProtocol[P, R]
is inconsistent whentyping.TypeVar(bound=...)
expression;Source module
Module importing from source module
Expected Behavior
No errors emitted by mypy
Your Environment
v1.3.0
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: