Type Annotation for Classmethod of Enum

前端 未结 0 562
鱼传尺愫
鱼传尺愫 2021-01-24 09:56

I am struggling to correctly annotate a class method I have defined on an Enum. MyPy keeps throwing errors at me

class _Event(Enum):
    def __init__(self, value:         


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