-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[syntax-errors] Type parameter defaults before Python 3.13 #16447
Conversation
|
Summary -- Detects the presence of a [PEP 696] type parameter default before Python 3.13. Test Plan -- New inline parser tests for type aliases, generic functions and generic classes. [PEP 696]: https://peps.python.org/pep-0696/#grammar-changes
e551aa2
to
f79f77c
Compare
crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_default_py312.py.snap
Outdated
Show resolved
Hide resolved
crates/ruff_python_parser/tests/snapshots/invalid_syntax@type_param_default_py312.py.snap
Outdated
Show resolved
Hide resolved
Thanks! I restricted the diagnostic range to the |
Summary
Detects the presence of a PEP 696 type parameter default before Python 3.13.
Test Plan
New inline parser tests for type aliases, generic functions and generic classes.