Does pydantic validate types only when an object is instantiated?

前端 未结 0 1819
孤独总比滥情好
孤独总比滥情好 2020-12-29 17:54

Pydantic does a wonderful job of type validation when an object is instantiated, but does not seem to validate assignments on an existing instance of an object. For example

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