ruff
ada4c4cb - [ty] Don't require default typevars when specializing (#17872)

Commit
292 days ago
[ty] Don't require default typevars when specializing (#17872) If a typevar is declared as having a default, we shouldn't require a type to be specified for that typevar when explicitly specializing a generic class: ```py class WithDefault[T, U = int]: ... reveal_type(WithDefault[str]()) # revealed: WithDefault[str, int] ``` --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Author
Parents
Loading