Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds sketch of improving extract_fields with typeddict
This in response to #1252. We should be able to handle typeddict better. This sketches some ideas: 1. field validation should happen in .validate() not the constructor. 2. extract_fields shouldn't need fields if the typeddict is the annotation type. 3. we properly check that typeddict can be a return type.
- Loading branch information