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

from __future__ import annotations

from pydantic import BaseModel


class A(BaseModel):
    a_property: B1 | None = None


class B1(A):
    pass


class B2(A):
    pass


class C1(B1):
    pass


class D1(C1):
    pass


class D1andB2(D1, B2):
    pass


A.model_rebuild()
B1.model_rebuild()
B2.model_rebuild()
C1.model_rebuild()
D1.model_rebuild()
D1andB2.model_rebuild()
