Message378805
>>> 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:29 | alex.gronholm | set | recipients:
+ alex.gronholm |
2020-10-17 09:23:29 | alex.gronholm | set | messageid: <1602926609.93.0.947551036861.issue42059@roundup.psfhosted.org> |
2020-10-17 09:23:29 | alex.gronholm | link | issue42059 messages |
2020-10-17 09:23:29 | alex.gronholm | create | |
|