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.
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.