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

[PEP 696] Report error if using unsupported type parameter defaults #17876

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Oct 4, 2024

We don't yet support default types for type parameters when using the new type parameter syntax. Generate an error instead of just ignoring them.

Also make it possible to write Python 3.13 specific tests.

…syntax

We don't yet support default types for type pameterers when using the
new type parameter syntax. Generate an error instead of just ignoring
them.

Also make it possible to write Python 3.13 specific tests.
Copy link
Contributor

github-actions bot commented Oct 4, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

discord.py (https://github.com/Rapptz/discord.py): 1.65x slower (219.8s -> 363.5s in a single noisy sample)

@JukkaL JukkaL merged commit bc81191 into master Oct 4, 2024
19 checks passed
@JukkaL JukkaL deleted the type-param-default-error branch October 4, 2024 14:26
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.

2 participants