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

from __future__ import annotations

from typing import Annotated

from pydantic import ConfigDict, Field, constr
from pydantic.dataclasses import dataclass
from typing_extensions import TypeAliasType

LookaroundNullableString = TypeAliasType(
    "LookaroundNullableString",
    Annotated[
        constr(pattern=r'^(?=.*[A-Z]).+$') | None,
        Field(..., description='Nullable string with lookaround pattern.'),
    ],
)


@dataclass(config=ConfigDict(regex_engine="python-re"))
class Model:
    value: LookaroundNullableString | None = None
