mypydantic.models.base_model

 1from pydantic import BaseModel as MyPydanticBaseModel
 2
 3
 4class BaseModel(MyPydanticBaseModel):
 5    class Config:
 6        allow_population_by_field_name = True
 7        arbitrary_types_allowed = True
 8
 9    def __init__(self, **kwargs):
10        self.update_forward_refs()
11        super().__init__(**kwargs)
class BaseModel(pydantic.main.BaseModel):
 5class BaseModel(MyPydanticBaseModel):
 6    class Config:
 7        allow_population_by_field_name = True
 8        arbitrary_types_allowed = True
 9
10    def __init__(self, **kwargs):
11        self.update_forward_refs()
12        super().__init__(**kwargs)
BaseModel(**kwargs)
10    def __init__(self, **kwargs):
11        self.update_forward_refs()
12        super().__init__(**kwargs)

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Inherited Members
pydantic.main.BaseModel
dict
json
parse_obj
parse_raw
parse_file
from_orm
construct
copy
schema
schema_json
validate
update_forward_refs
class BaseModel.Config:
6    class Config:
7        allow_population_by_field_name = True
8        arbitrary_types_allowed = True