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

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel


class Kind(Enum):
    x = 'x'
    y = 'y'


class NodeC(BaseModel):
    value: str | None = None


class Model(BaseModel):
    root: NodeA | None = None


class NodeA(BaseModel):
    kind: Kind | None = None
    c: NodeC | None = None
    b: NodeB | None = None


class NodeB(BaseModel):
    a: NodeA | None = None


Model.model_rebuild()
NodeA.model_rebuild()
