diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-04 09:17:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 09:17:35 (GMT) |
commit | 2046fb35e4e0986523bd0f6214fc318a414c8b97 (patch) | |
tree | 15c975520898ed9ab8e6e92e68d7123bf975f2fb /Doc/library | |
parent | 20380df6d819977882ed7d62784f207319f90865 (diff) | |
download | cpython-2046fb35e4e0986523bd0f6214fc318a414c8b97.zip cpython-2046fb35e4e0986523bd0f6214fc318a414c8b97.tar.gz cpython-2046fb35e4e0986523bd0f6214fc318a414c8b97.tar.bz2 |
bpo-44001: improve Literal documentation (GH-25877) (#25882)
(cherry picked from commit 87109f4d85c93a870ee8aa0d2b394547d4636b17)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8b1ce34..ba79bb7 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -799,10 +799,10 @@ These can be used as types in annotations using ``[]``, each having a unique syn .. versionadded:: 3.8 .. versionchanged:: 3.9.1 - ``Literal`` now de-duplicates parameters. Equality comparison of + ``Literal`` now de-duplicates parameters. Equality comparisons of ``Literal`` objects are no longer order dependent. ``Literal`` objects will now raise a :exc:`TypeError` exception during equality comparisons - if one of their parameters are not :term:`immutable`. + if one of their parameters are not :term:`hashable`. .. data:: ClassVar |