Can you use factories in a python dataclass?

前端 未结 0 704
我寻月下人不归
我寻月下人不归 2020-12-04 02:13

For example:

class Factory:
    def __init__(self, param):
        self.param=param
    def __call__(self, ret_val):
        print(\'got called\')
        ret         


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