typing_extensions icon indicating copy to clipboard operation
typing_extensions copied to clipboard

Support ParamSpec for TypeAliasType

Open Daraan opened this issue 1 year ago • 1 comments

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.

Daraan avatar Aug 21 '24 23:08 Daraan

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.

Daraan avatar Sep 18 '24 09:09 Daraan

This has merge conflicts now; could you take a look?

Thank you. ;y IDE is buggy today and I merged it incorrectly. on it

Daraan avatar Sep 26 '24 18:09 Daraan