# generated by datamodel-codegen:
#   filename:  use_generic_base_class_with_inheritance.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Any

from pydantic import BaseModel as _BaseModel
from pydantic import ConfigDict, RootModel


class BaseModel(_BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )


class Model(RootModel[Any]):
    root: Any


class Animal(BaseModel):
    name: str | None = None


class Dog(Animal):
    breed: str | None = None
