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

from __future__ import annotations

from pydantic import BaseModel, constr


class Bar(BaseModel):
    name: str | None = None


class Foo(BaseModel):
    bar: dict[constr(pattern=r'^([a-zA-Z_][a-zA-Z0-9_]*)$'), Bar]
