mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-44001: improve Literal documentation (GH-25877)
This commit is contained in:
parent
5017cde20e
commit
87109f4d85
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue