Skip to main content

Module fields_set

Module fields_set 

Source
Expand description

Track which fields were explicitly provided (“set”) for a model instance.

This is required to implement Pydantic-compatible exclude_unset semantics: a field with a default value should still be included if it was explicitly provided at construction/validation time.

Structs§

FieldsSet
A compact bitset representing “field is set” for indices 0..len.