diff options
author | Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com> | 2020-10-05 04:40:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 04:40:52 (GMT) |
commit | 8e1dd55e63d18d40e78d941fc9233d2c77bcd3de (patch) | |
tree | 85759b36b003350cce51f0500664f05a88148d83 /Doc/library/typing.rst | |
parent | 40db798692ca783fc2163656f196ac77e8b9e792 (diff) | |
download | cpython-8e1dd55e63d18d40e78d941fc9233d2c77bcd3de.zip cpython-8e1dd55e63d18d40e78d941fc9233d2c77bcd3de.tar.gz cpython-8e1dd55e63d18d40e78d941fc9233d2c77bcd3de.tar.bz2 |
bpo-41428: Documentation for PEP 604 (gh-22517)
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index f712dfe..a72632e 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -544,6 +544,10 @@ These can be used as types in annotations using ``[]``, each having a unique syn .. versionchanged:: 3.7 Don't remove explicit subclasses from unions at runtime. + .. versionchanged:: 3.10 + Unions can now be written as ``X | Y``. See + :ref:`union type expressions<types-union>`. + .. data:: Optional Optional type. |