Initialize pydantic Literal from array of strings

后端 未结 0 373
悲&欢浪女
悲&欢浪女 2021-01-12 06:12

I would like to inizialize a pydantic Literal from an array of strings

from typing import Literal
from pydantic import BaseModel

CLASS_NAME_VALUES = ["p         


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