(no title)
Narushia | 5 months ago
I believe Python's own documentation also recommends the shorthand syntax over `Union`. Linters like Pylint and Ruff also warn if you use the imported `Union`/`Optional` types. The latter even auto-fixes it for you by switching to the shorthand syntax.
letmeinhere|5 months ago
[^1]: https://en.wikipedia.org/wiki/Option_type