Module frantic.base
Pydantic base with Frantic capabilities
Expand source code
"""Pydantic base with Frantic capabilities
"""
from typing import ClassVar, Optional
from pydantic import BaseModel as _BaseModel # pylint: disable=no-name-in-module
# pylint: disable=too-few-public-methods
class BaseModel(_BaseModel):
"""Frantic base model"""
collection: ClassVar[Optional[str]] = None
id: Optional[str] = None
Classes
class BaseModel (**data: Any)
-
Frantic base model
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.
Expand source code
class BaseModel(_BaseModel): """Frantic base model""" collection: ClassVar[Optional[str]] = None id: Optional[str] = None
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var collection : ClassVar[Optional[str]]
var id : Optional[str]