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

Switch to PEP 604 union type syntax #564

Open
fluffy-critter opened this issue May 5, 2024 · 0 comments
Open

Switch to PEP 604 union type syntax #564

fluffy-critter opened this issue May 5, 2024 · 0 comments
Labels
blocked external Issues that are waiting on external dependencies code quality Places where the code quality or readability can be improved

Comments

@fluffy-critter
Copy link
Collaborator

PEP 604, ratified in Python 3.10, supports simplified union type syntax, where a | b is equivalent to typing.Union[a,b] (and Optional can sensibly be written as a union with None). This could be used to simplify a lot of the type declarations throughout Publ.

This issue is a placeholder for the potential future in which Publ drops support for Python 3.9 and earlier.

@fluffy-critter fluffy-critter added code quality Places where the code quality or readability can be improved blocked external Issues that are waiting on external dependencies labels May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked external Issues that are waiting on external dependencies code quality Places where the code quality or readability can be improved
Projects
None yet
Development

No branches or pull requests

1 participant