typing_extensions
typing_extensions copied to clipboard
Support ParamSpec for TypeAliasType
Fixes #448 that usage of ParamSpec with TypeAliasType was limited for < Python 3.11
This PR enables TypeAliasType to use Ellipsis and list arguments for ParamSpec type params.
Currently pyright is not happy with the synatx and does not infer the types correctly anymore. Waiting for https://github.com/microsoft/pyright/issues/9027
EDIT: The pyright problem is caused by a global P where P is a Protocol. I've addressed this, see the other comment.
This has merge conflicts now; could you take a look?
Thank you. ;y IDE is buggy today and I merged it incorrectly. on it