from typing import TypeVar

from pydantic import BaseModel, ConfigDict


class BaseSchema(BaseModel):
    model_config = ConfigDict(from_attributes=True, extra="ignore")



BaseSchemaType = TypeVar("BaseSchemaType", bound=BaseSchema)