This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients brandtbucher, gvanrossum, pbryan, terry.reedy
Date 2020-12-07.19:37:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607369833.63.0.367463388927.issue42592@roundup.psfhosted.org>
In-reply-to
Content
Some notes on needed TypedDict doc fixes.

https://docs.python.org/3/library/typing.html#typing.TypedDict

"class typing.TypedDict(dict)"

The actual signature from inspect.signature is "(typename, fields=None, /, *, total=True, **kwargs)".  I presume fields not None and kwargs != {} are mutually exclusive.  AFAIK, the kwargs version of the call alternative is not in PEP 589.

"The type info for introspection can be accessed via Point2D.__annotations__ and Point2D.__total__."

'__total__' is not indexed.  __required_keys__ and __optional_keys__ are neither documented (including not in the PEP, which does not get revised) nor indexed.
History
Date User Action Args
2020-12-07 19:37:13terry.reedysetrecipients: + terry.reedy, gvanrossum, pbryan, brandtbucher
2020-12-07 19:37:13terry.reedysetmessageid: <1607369833.63.0.367463388927.issue42592@roundup.psfhosted.org>
2020-12-07 19:37:13terry.reedylinkissue42592 messages
2020-12-07 19:37:13terry.reedycreate