# generated by datamodel-codegen:
#   filename:  modular.yaml
#   timestamp: 1985-10-26T08:21:00+00:00

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel

from . import foo as foo_1
from . import models
from .nested import foo as foo_2


class CustomOptional(BaseModel):
    __root__: str


class CustomId(BaseModel):
    __root__: str


class CustomError(BaseModel):
    code: int
    message: str


class CustomResult(BaseModel):
    event: Optional[models.CustomEvent] = None


class CustomSource(BaseModel):
    country: Optional[str] = None


class CustomDifferentTea(BaseModel):
    foo: Optional[foo_1.CustomTea] = None
    nested: Optional[foo_2.CustomTea] = None
