bpo-44957: Promote PEP 604 syntax in typing docs (GH-27833)
* Use "X | Y" instead of "Union" where it makes sense. * Mention that "X | Y" is equivalent to "Union[X, Y]" in Union section. * Remove "Optional[X]" as shorthand for "Union[X, None]" as the new shorthand is now "X | None". * Mention that "Optional[X]" can be written as "X | None" in section about "Optional". Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
S
Sebastian Rittau committed
dabb6e8ddd7626266184ba022bcb76f74196248f
Parent: d5dbe8b
Committed by GitHub <noreply@github.com>
on 8/22/2021, 6:45:01 PM