Pydantic set attributes with a default function

后端 未结 0 782
粉色の甜心
粉色の甜心 2021-01-20 03:41

Is it possible to pass function setters for immutable Pydantic Models.

For example:

from uuid import uuid4, UUID         


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