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

from __future__ import annotations

from pydantic import BaseModel, RootModel


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


class BaseNode(BaseModel):
    next: Node | None = None


class Node(RootModel[BaseNode]):
    root: BaseNode


Model.model_rebuild()
BaseNode.model_rebuild()
