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

from __future__ import annotations

from collections.abc import Callable

from pydantic import BaseModel, Field


class NestedCallableModel(BaseModel):
    handler: Callable[[str], int] = Field(..., title='Handler')


class ModelWithNestedCallable(BaseModel):
    nested: NestedCallableModel
    own_callback: Callable[[int], str] = Field(..., title='Own Callback')
