summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorSebastian Rittau <srittau@rittau.biz>2021-08-22 18:45:01 (GMT)
committerGitHub <noreply@github.com>2021-08-22 18:45:01 (GMT)
commitdabb6e8ddd7626266184ba022bcb76f74196248f (patch)
tree3bb7fa8317344550540bca7ee61687f5dee4d08a /Python/Python-tokenize.c
parentd5dbe8bca792350f4997c027535e0ca498abd1bb (diff)
downloadcpython-dabb6e8ddd7626266184ba022bcb76f74196248f.zip
cpython-dabb6e8ddd7626266184ba022bcb76f74196248f.tar.gz
cpython-dabb6e8ddd7626266184ba022bcb76f74196248f.tar.bz2
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>
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions