Skip to content

base_model

base_model

Module contains classes deriving from BaseModel used as base classes in cssfinder code.

CommonBaseModel

Bases: BaseModel

Universal base class for most of model classes which contains commonly used model configuration.

Source code in cssfinder/base_model.py
class CommonBaseModel(BaseModel):
    """Universal base class for most of model classes which contains commonly used model
    configuration.
    """

    class Config:
        """CommonBaseModel behavior configuration."""

        validate_assignment = True
        extra = Extra.ignore
        underscore_attrs_are_private = True
        arbitrary_types_allowed = True

Config

CommonBaseModel behavior configuration.

Source code in cssfinder/base_model.py
class Config:
    """CommonBaseModel behavior configuration."""

    validate_assignment = True
    extra = Extra.ignore
    underscore_attrs_are_private = True
    arbitrary_types_allowed = True