Teach from_type()
to handle TypedDict
classes with PEP-655 (Not)Required
keys
#3339
Labels
enhancement
it's not broken, but we want it to be better
PEP-655 defines a better way to mark some keys as required and others as not-required on the
TypedDict
class - before, you had to define a parent class with some keys and a child class with others. We should upgrade our resolver code to handle this, and write test cases for both pure-new-style and mixes of inheritance-based (old) and(Not)Required
-based (new) styles.hypothesis/hypothesis-python/src/hypothesis/strategies/_internal/core.py
Lines 1075 to 1095 in 2a071c8
Prior work on recent types: #3331, #3280, #2978.
The text was updated successfully, but these errors were encountered: