Terry J. Reedy <tjre...@udel.edu> added the comment:
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. ---------- nosy: +terry.reedy stage: -> test needed versions: +Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42592> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com