CustomBaseModel#

pydantic model vision_architectures.utils.custom_base_model.CustomBaseModel[source]#

Bases: BaseModel

Show JSON schema
{
   "title": "CustomBaseModel",
   "type": "object",
   "properties": {}
}

Config:
  • arbitrary_types_allowed: bool = True

  • extra: str = ignore

  • validate_default: bool = True

  • validate_assignment: bool = True

  • validate_return: bool = True

Validators:
get(key, default=None)[source]#

Returns the value of the key if it exists, otherwise returns the default value.

Return type:

Any

setdefault(key, value)[source]#

Sets the default value of the key if it does not exist.

Return type:

None

classmethod model_validate(obj, cast_to_super=False, **kwargs)[source]#

Base class method for validating data before creating the model.

validator validate_before  »  all fields[source]#

Base class method for validating data before creating the model.

validator validate  »  all fields[source]#

Base method for validating the model after creation.