[issue46120] Add note to `typing.Union` that it is recommended to use `|` instead

Gregory P. Smith report at bugs.python.org
Fri Dec 24 16:36:38 EST 2021


Gregory P. Smith <greg at krypto.org> added the comment:


New changeset 1b30660c3b40da557050948ac8635f2dc50c4ee2 by Nikita Sobolev in branch 'main':
bpo-46120: State that `|` is preferred over `Union` (GH-30222)
https://github.com/python/cpython/commit/1b30660c3b40da557050948ac8635f2dc50c4ee2


----------
nosy: +gregory.p.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46120>
_______________________________________


More information about the Python-bugs-list mailing list