-
Notifications
You must be signed in to change notification settings - Fork 37
Add Python PEP 613 and PEP 695 type alias support #467
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
base: main
Are you sure you want to change the base?
Conversation
[tool.ruff] | ||
lint.extend-select = ["I"] | ||
|
||
[too.ruff.per-file-target-version] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[too.ruff.per-file-target-version] | |
[tool.ruff.per-file-target-version] |
Should help ruff better understand how to format/lint that 1 file.
Is this related to (or somehow helpful toward) #270? |
It didn't directly address that. However, it does interact with it in the following way:
|
I feel that would only be needed if the implementation relies on the upstream fix. Otherwise, I'm content with waiting for Sphinx to go through their release process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like mypy needs to be told to skip this file.
Using Python v3.12+
tests/python_apigen_test_modules/pep695.py:1: error: PEP 695 type aliases are
not yet supported [valid-type]
Using Python <= v3.11
tests/python_apigen_test_modules/pep695.py:1: error: invalid syntax [syntax]
No description provided.