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

from __future__ import annotations

from typing import Any

from pydantic import BaseModel, Field, RootModel


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


class Pet(BaseModel):
    name: str | None = Field(None, examples=['dog', 'cat'])
    friends: list[Pet] | None = None


Pet.model_rebuild()
