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

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel


class User(BaseModel):
    name: str | None = None
    pet: Animal | None = None
    home: House | None = None


class Animal(BaseModel):
    name: str | None = None
    breeder: User | None = None
    home: House | None = None


class House(BaseModel):
    address: str | None = None
    owner: User | None = None


class Member(RootModel[User]):
    root: User = Field(..., title='Member')


User.model_rebuild()
Animal.model_rebuild()
