regenerate models

This commit is contained in:
sneakers-the-rat 2024-09-26 01:40:46 -07:00
parent 7a0da1528c
commit a6ab1cf61b
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
194 changed files with 200 additions and 196 deletions

View file

@ -198,7 +198,7 @@ class NamespacesAdapter(Adapter):
for i, parent in enumerate(parents): for i, parent in enumerate(parents):
# we want a full roll-down of all the ancestor classes, # we want a full roll-down of all the ancestor classes,
# but we make an abbreviated leaf class # but we make an abbreviated leaf class
complete = False if i == len(parents) - 1 else True complete = i != len(parents) - 1
new_cls = roll_down_nwb_class(new_cls, parent, complete=complete) new_cls = roll_down_nwb_class(new_cls, parent, complete=complete)
new_cls: Group | Dataset = type(cls)(**new_cls) new_cls: Group | Dataset = type(cls)(**new_cls)
new_cls.parent = cls.parent new_cls.parent = cls.parent

View file

@ -15,7 +15,7 @@ from linkml.generators import PydanticGenerator
from linkml.generators.pydanticgen.array import ArrayRepresentation, NumpydanticArray from linkml.generators.pydanticgen.array import ArrayRepresentation, NumpydanticArray
from linkml.generators.pydanticgen.build import ClassResult, SlotResult from linkml.generators.pydanticgen.build import ClassResult, SlotResult
from linkml.generators.pydanticgen.pydanticgen import SplitMode from linkml.generators.pydanticgen.pydanticgen import SplitMode
from linkml.generators.pydanticgen.template import Import, Imports, PydanticModule, ObjectImport from linkml.generators.pydanticgen.template import Import, Imports, ObjectImport, PydanticModule
from linkml_runtime.linkml_model.meta import ( from linkml_runtime.linkml_model.meta import (
ArrayExpression, ArrayExpression,
SchemaDefinition, SchemaDefinition,
@ -29,8 +29,8 @@ from nwb_linkml.includes.base import (
BASEMODEL_CAST_WITH_VALUE, BASEMODEL_CAST_WITH_VALUE,
BASEMODEL_COERCE_CHILD, BASEMODEL_COERCE_CHILD,
BASEMODEL_COERCE_VALUE, BASEMODEL_COERCE_VALUE,
BASEMODEL_GETITEM,
BASEMODEL_EXTRA_TO_VALUE, BASEMODEL_EXTRA_TO_VALUE,
BASEMODEL_GETITEM,
) )
from nwb_linkml.includes.hdmf import ( from nwb_linkml.includes.hdmf import (
DYNAMIC_TABLE_IMPORTS, DYNAMIC_TABLE_IMPORTS,

View file

@ -68,12 +68,16 @@ BASEMODEL_COERCE_CHILD = """
BASEMODEL_EXTRA_TO_VALUE = """ BASEMODEL_EXTRA_TO_VALUE = """
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
\"\"\" \"\"\"
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``
\"\"\" \"\"\"
if cls.model_config["extra"] == "forbid" and "value" in cls.model_fields and isinstance(v, dict): if (
cls.model_config["extra"] == "forbid"
and "value" in cls.model_fields
and isinstance(v, dict)
):
extras = {key:val for key,val in v.items() if key not in cls.model_fields} extras = {key:val for key,val in v.items() if key not in cls.model_fields}
if extras: if extras:
for k in extras: for k in extras:

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -99,7 +99,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -216,7 +216,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -99,7 +99,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -216,7 +216,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -219,7 +219,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -108,7 +108,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -226,7 +226,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -108,7 +108,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -226,7 +226,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -90,7 +90,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -108,7 +108,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -90,7 +90,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -243,7 +243,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -103,7 +103,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -116,7 +116,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -90,7 +90,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -256,7 +256,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -114,7 +114,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

View file

@ -117,7 +117,7 @@ class ConfiguredBaseModel(BaseModel):
@model_validator(mode="before") @model_validator(mode="before")
@classmethod @classmethod
def gather_extra_to_value(cls, v: Any, handler) -> Any: def gather_extra_to_value(cls, v: Any) -> Any:
""" """
For classes that don't allow extra fields and have a value slot, For classes that don't allow extra fields and have a value slot,
pack those extra kwargs into ``value`` pack those extra kwargs into ``value``

Some files were not shown because too many files have changed in this diff Show more