diff -r ffc0840762e4 Doc/library/typing.rst --- a/Doc/library/typing.rst Wed Jan 25 00:30:04 2017 +0200 +++ b/Doc/library/typing.rst Tue Jan 24 18:29:56 2017 -0800 @@ -747,6 +747,22 @@ .. versionchanged:: 3.6 Added support for :pep:`526` variable annotation syntax. + .. versionchanged:: 3.6.1 + Added support for default values. + + Usage:: + + class Employee(NamedTuple): + name: str + id: int = 3 + + employee = Employee('Guido') + assert employee.id == 3 + + Fields with a default value must come after any fields without a default. The + ``_field_defaults`` attribute stores a mapping from field names to their + default values. + .. function:: NewType(typ) A helper function to indicate a distinct types to a typechecker,