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

from __future__ import annotations

from pydantic import BaseModel, Field


class GrandParent(BaseModel):
    grand_field: str = Field(..., title='Grand Field')


class Parent(GrandParent):
    parent_field: int = Field(..., title='Parent Field')


class OptionalOnlyChild(Parent):
    optional_field: str | None = Field(None, title='Optional Field')
