diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-05 00:43:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 00:43:20 +0300 |
commit | 6fed3c85402c5ca704eb3f3189ca3f5c67a08d19 (patch) | |
tree | 756d989deaee347ca211d42abf124d1817ef8ff3 /Doc/library | |
parent | 1b21573a89632356737a24302dd64c9eb1457a7b (diff) | |
download | cpython-git-6fed3c85402c5ca704eb3f3189ca3f5c67a08d19.tar.gz |
bpo-40182: Remove the _field_types attribute of the NamedTuple class (GH-19368)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/typing.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 58ae184578..fa13c07c44 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -960,13 +960,14 @@ The module defines the following classes, functions and decorators: Added support for default values, methods, and docstrings. .. versionchanged:: 3.8 - Deprecated the ``_field_types`` attribute in favor of the more - standard ``__annotations__`` attribute which has the same information. - - .. versionchanged:: 3.8 The ``_field_types`` and ``__annotations__`` attributes are now regular dictionaries instead of instances of ``OrderedDict``. + .. versionchanged:: 3.9 + Removed the ``_field_types`` attribute in favor of the more + standard ``__annotations__`` attribute which has the same information. + + .. class:: TypedDict(dict) A simple typed namespace. At runtime it is equivalent to |