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 alex.gronholm
Recipients alex.gronholm
Date 2020-10-17.09:23:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> DummyDict = TypedDict('DummyDict', {'x': int, 'y': str}, total=False)
>>> DummyDict.__required_keys__
frozenset({'x', 'y'})

This happens because the TypedDict function does not pass the "total" metaclass argument to _TypedDictMeta() (instead passing "__total__" in the attribute namespace) and the new code that sets __required_keys__ and __optional_keys__ only checks the metaclass argument.
Date User Action Args
2020-10-17 09:23:29alex.gronholmsetrecipients: + alex.gronholm
2020-10-17 09:23:29alex.gronholmsetmessageid: <>
2020-10-17 09:23:29alex.gronholmlinkissue42059 messages
2020-10-17 09:23:29alex.gronholmcreate