PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
40 stars 4 forks source link

Switch to PEP 604 union type syntax #564

Open fluffy-critter opened 1 month ago

fluffy-critter commented 1 month ago

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.