Skip to content

Commit 413c282

Browse files
committed
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.
1 parent 2d0746b commit 413c282

File tree

2 files changed

+372
-4
lines changed

2 files changed

+372
-4
lines changed

0 commit comments

Comments
 (0)