Skip to content
New issue

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

Add support for using ellipsis as last argument to Concatenate #5715

Closed
erictraut opened this issue Aug 14, 2023 · 1 comment
Closed

Add support for using ellipsis as last argument to Concatenate #5715

erictraut opened this issue Aug 14, 2023 · 1 comment
Labels
addressed in next version Issue is fixed and will appear in next published version enhancement request New feature or request

Comments

@erictraut
Copy link
Collaborator

PEP 612 was clear that the last type argument to Concatenate needs to be a ParamSpec, but this was amended recently. Now an ellipsis can also be used in this spot.

This relates to mypy issue python/mypy#14656.

@erictraut erictraut added the enhancement request New feature or request label Aug 14, 2023
erictraut pushed a commit that referenced this issue Aug 15, 2023
…fter much discussion (see python/cpython#30969), it has been decided to support this even though a strict reading of PEP 612 seems to exclude it. This addresses #5715.
@erictraut erictraut added the addressed in next version Issue is fixed and will appear in next published version label Aug 15, 2023
@erictraut
Copy link
Collaborator Author

This is addressed in pyright 1.1.323, which I just published. It will also be included in a future release of pylance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version enhancement request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant