PaiGram/utils/patch/pydantic_basemodel.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
147 B
Python
Raw Normal View History

import pydantic
pydantic.BaseModel.model_config["coerce_numbers_to_str"] = True
pydantic.BaseModel.model_config["arbitrary_types_allowed"] = True