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