mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-12-04 18:41:28 +00:00
🐛 Fix pydantic v2 basemodel config ignore extra
This commit is contained in:
parent
efa089e33c
commit
923ce3f5f6
@ -1,5 +1,4 @@
|
||||
import pydantic
|
||||
|
||||
pydantic.BaseModel.model_config["extra"] = "allow"
|
||||
pydantic.BaseModel.model_config["coerce_numbers_to_str"] = True
|
||||
pydantic.BaseModel.model_config["arbitrary_types_allowed"] = True
|
||||
|
Loading…
Reference in New Issue
Block a user