cattrs icon indicating copy to clipboard operation
cattrs copied to clipboard

Extra keys

Open kellerza opened this issue 1 year ago • 2 comments

Description

Is it possible to get the keys that were not used during a call to structure(input_dict, SomeClass)?

One way would be to use forbid_extra_keys to get the names of these extra keys, but then you would have to run structure a second time if you still want to use the structured data

kellerza avatar Sep 13 '24 08:09 kellerza