from re import Pattern
from pydantic import BaseModel, Field, validate_call
class A(BaseModel):
a: str = Field(regex=r"\d")
A(a="a") # no errror
@validate_call
def f(a: str = Field(regex=r"\d")):
print(a)
f("a") # no errror
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too