hydromodpy.core.config_kit.base#
Root Pydantic base class shared by every HydroModPy config model.
All HydroModPy configuration classes inherit from HydroModelBase
rather than pydantic.BaseModel directly. This centralises the
strictness defaults (extra="forbid", validate_assignment=True)
that the architecture spec (architecture_cible/02_config_pydantic.md
§3.1) requires to be uniform across the codebase.
The root base also validates any VisibleWhen metadata attached to
fields: a VisibleWhen("sibling", ...) tag must reference an existing
field on the same model (catches refactor drift).