File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -841,10 +841,11 @@ Glossary
841841 Some named tuples are built-in types (such as the above examples).
842842 Alternatively, a named tuple can be created from a regular class
843843 definition that inherits from :class: `tuple ` and that defines named
844- fields. Such a class can be written by hand or it can be created with
845- the factory function :func: `collections.namedtuple `. The latter
846- technique also adds some extra methods that may not be found in
847- hand-written or built-in named tuples.
844+ fields. Such a class can be written by hand, or it can be created by
845+ inheriting :class: `typing.NamedTuple `, or with the factory function
846+ :func: `collections.namedtuple `. The latter techniques also add some
847+ extra methods that may not be found in hand-written or built-in named
848+ tuples.
848849
849850 namespace
850851 The place where a variable is stored. Namespaces are implemented as
You can’t perform that action at this time.
0 commit comments