We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report
Explicit type aliases don't allow no-args for generics, but don't error about it either.
To Reproduce
from typing import Generic, TypeVar from typing_extensions import TypeAlias T = TypeVar("T") class Y(Generic[T]): ... Alias2a = Y reveal_type(Alias2a) # N: Revealed type is "def [T] () -> __main__.Y[T`1]" Alias2b: TypeAlias = Y reveal_type(Alias2b) # N: Revealed type is "def () -> __main__.Y[Any]"
Expected Behavior
An error when defining Alias2b.
Alias2b
Actual Behavior
No error when defining Alias2b.
Your Environment
Checked on mypy playground.
--disallow-any-generics
mypy.ini
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Explicit type aliases don't allow no-args for generics, but don't error about it either.
To Reproduce
Expected Behavior
An error when defining
Alias2b
.Actual Behavior
No error when defining
Alias2b
.Your Environment
Checked on mypy playground.
--disallow-any-generics
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: