diff options
| author | Sebastian Rittau <srittau@rittau.biz> | 2021-08-22 18:45:01 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-22 18:45:01 (GMT) |
| commit | dabb6e8ddd7626266184ba022bcb76f74196248f (patch) | |
| tree | 3bb7fa8317344550540bca7ee61687f5dee4d08a /Lib/test/test_bytes.py | |
| parent | d5dbe8bca792350f4997c027535e0ca498abd1bb (diff) | |
| download | cpython-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 'Lib/test/test_bytes.py')
0 files changed, 0 insertions, 0 deletions
