Author alex.gronholm
Recipients alex.gronholm
Date 2020-10-17.09:23:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602926609.93.0.947551036861.issue42059@roundup.psfhosted.org>
In-reply-to
Content
>>> 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.
History
Date User Action Args
2020-10-17 09:23:29alex.gronholmsetrecipients: + alex.gronholm
2020-10-17 09:23:29alex.gronholmsetmessageid: <1602926609.93.0.947551036861.issue42059@roundup.psfhosted.org>
2020-10-17 09:23:29alex.gronholmlinkissue42059 messages
2020-10-17 09:23:29alex.gronholmcreate