Switch to PEP 604 union type syntax #564
Labels
blocked external
Issues that are waiting on external dependencies
code quality
Places where the code quality or readability can be improved
PEP 604, ratified in Python 3.10, supports simplified union type syntax, where
a | b
is equivalent totyping.Union[a,b]
(andOptional
can sensibly be written as a union withNone
). 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.
The text was updated successfully, but these errors were encountered: