Overwrite method on Pydantic instance

后端 未结 0 1034
臣服心动
臣服心动 2021-01-23 15:52

There are many solutions available to overwrite methods on instances. But for an object of the pydantic BaseModel this seems to be problematic. This is a simple example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题