Python Typing: List of specific values

后端 未结 0 1455
孤街浪徒
孤街浪徒 2021-02-18 19:30

I want to type a variable to be list of finite set of valid values. So basically, I would like to have the typing equivalent of the following minimal example:

val         


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