Skip to content

Fixes type vars semanal with ParamSpec #11220

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

Merged
merged 3 commits into from
Oct 1, 2021
Merged

Fixes type vars semanal with ParamSpec #11220

merged 3 commits into from
Oct 1, 2021

Conversation

sobolevn
Copy link
Member

Closes #11218

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks, could you add a test for valid use of ParamSpec in generic classes? It won't work, but worth checking it doesn't crash (https://www.python.org/dev/peps/pep-0612/#user-defined-generic-classes for examples)

@sobolevn
Copy link
Member Author

Yes, mypy_primer is here falling as well.

@hauntsaninja
Copy link
Collaborator

The mypy_primer failure might be unrelated, let me see...

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@JukkaL JukkaL merged commit 032f3b6 into python:master Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using a ParamSpec as a base type causes crash
3 participants