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

from __future__ import annotations

from typing import List, Optional

from pydantic import BaseModel

from . import models


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[CustomTea] = None
    nested: Optional[CustomTea_1] = None


class CustomTea(BaseModel):
    flavour: Optional[str] = None
    id: Optional[CustomId] = None


class CustomCocoa(BaseModel):
    quality: Optional[int] = None


class CustomTea_1(BaseModel):
    flavour: Optional[str] = None
    id: Optional[CustomId] = None
    self: Optional[CustomTea_1] = None
    optional: Optional[List[CustomOptional]] = None


class CustomTeaClone(BaseModel):
    flavour: Optional[str] = None
    id: Optional[CustomId] = None
    self: Optional[CustomTea_1] = None
    optional: Optional[List[CustomOptional]] = None


class CustomList(BaseModel):
    __root__: List[CustomTea_1]


CustomTea_1.update_forward_refs()
