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

from __future__ import annotations

from typing import Any

from pydantic import BaseModel, RootModel


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


class Target1(BaseModel):
    first: str


class Target2(BaseModel):
    second: str


class Target3(BaseModel):
    third: str


class Target4(Target1, Target3):
    pass


class Target5(Target2, Target3):
    pass


class Target(RootModel[Target4 | Target5]):
    root: Target4 | Target5
