mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2025-01-09 05:34:28 +00:00
regenerate models
This commit is contained in:
parent
7a0da1528c
commit
a6ab1cf61b
194 changed files with 200 additions and 196 deletions
|
@ -198,7 +198,7 @@ class NamespacesAdapter(Adapter):
|
|||
for i, parent in enumerate(parents):
|
||||
# we want a full roll-down of all the ancestor classes,
|
||||
# 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: Group | Dataset = type(cls)(**new_cls)
|
||||
new_cls.parent = cls.parent
|
||||
|
|
|
@ -15,7 +15,7 @@ from linkml.generators import PydanticGenerator
|
|||
from linkml.generators.pydanticgen.array import ArrayRepresentation, NumpydanticArray
|
||||
from linkml.generators.pydanticgen.build import ClassResult, SlotResult
|
||||
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 (
|
||||
ArrayExpression,
|
||||
SchemaDefinition,
|
||||
|
@ -29,8 +29,8 @@ from nwb_linkml.includes.base import (
|
|||
BASEMODEL_CAST_WITH_VALUE,
|
||||
BASEMODEL_COERCE_CHILD,
|
||||
BASEMODEL_COERCE_VALUE,
|
||||
BASEMODEL_GETITEM,
|
||||
BASEMODEL_EXTRA_TO_VALUE,
|
||||
BASEMODEL_GETITEM,
|
||||
)
|
||||
from nwb_linkml.includes.hdmf import (
|
||||
DYNAMIC_TABLE_IMPORTS,
|
||||
|
|
|
@ -68,12 +68,16 @@ BASEMODEL_COERCE_CHILD = """
|
|||
BASEMODEL_EXTRA_TO_VALUE = """
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
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}
|
||||
if extras:
|
||||
for k in extras:
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -99,7 +99,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -216,7 +216,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -99,7 +99,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -216,7 +216,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -107,7 +107,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -219,7 +219,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -108,7 +108,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -226,7 +226,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -108,7 +108,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -226,7 +226,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -90,7 +90,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -108,7 +108,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -90,7 +90,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -243,7 +243,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -103,7 +103,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -116,7 +116,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -90,7 +90,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -113,7 +113,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -256,7 +256,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -114,7 +114,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -95,7 +95,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -88,7 +88,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -106,7 +106,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -104,7 +104,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
|
@ -117,7 +117,7 @@ class ConfiguredBaseModel(BaseModel):
|
|||
|
||||
@model_validator(mode="before")
|
||||
@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,
|
||||
pack those extra kwargs into ``value``
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue