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

Use Python 3.12 type alias & generic type syntax #136

Open
CarrotManMatt opened this issue Jan 6, 2024 · 2 comments · May be fixed by #355
Open

Use Python 3.12 type alias & generic type syntax #136

CarrotManMatt opened this issue Jan 6, 2024 · 2 comments · May be fixed by #355
Assignees
Labels
refactor Improvements to the codebase that do not directly affect users

Comments

@CarrotManMatt
Copy link
Member

CarrotManMatt commented Jan 6, 2024

PEP 695 introduces a new syntax for type aliases & generic functions. These new syntaxes provide the benefit of more precise scoping & Paramspec unpacking.

An initial implementation of this syntax is provided in the attached development branch. However cannot be merged until mypy supports PEP 695. See issue python/mypy#15238

@CarrotManMatt CarrotManMatt added refactor Improvements to the codebase that do not directly affect users suspended Delayed until a later date labels Jan 6, 2024
@CarrotManMatt CarrotManMatt self-assigned this Jan 6, 2024
@CarrotManMatt
Copy link
Member Author

mypy now experimentally supports PEP695 in mypy 1.11 (https://mypy-lang.blogspot.com/2024/07/mypy-111-released.html), however the new syntax should only be adopted once its support is no longer experimental by myp (expected in mypy 1.12).

@MattyTheHacker MattyTheHacker linked a pull request Sep 18, 2024 that will close this issue
@CarrotManMatt
Copy link
Member Author

mypy now completely supports PEP695 in mypy 1.12 (https://mypy-lang.blogspot.com/2024/10/mypy-112-released.html). We have since moved to this newer version in #354 so this issue is no longer suspended

@CarrotManMatt CarrotManMatt removed the suspended Delayed until a later date label Oct 28, 2024
@CarrotManMatt CarrotManMatt linked a pull request Oct 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to the codebase that do not directly affect users
Projects
None yet
1 participant