Issue 25603: spelling mistake - 26.1 typing (original) (raw)
Almost at the end of the page, under Usage of Typing.NamedTuple(...), this code snippet occurs: Employee = typing.NamedTuple('Employee', [('name', str), 'id', int)])
. Unfortunately, this has an error in its parenthesis.
This can easily be fixed by adding an opening bracket before the 'id'
-part, as seen here: Employee = typing.NamedTuple('Employee', [('name', str), ('id', int)])
.