Python set class for static method argument

后端 未结 0 997
面向向阳花
面向向阳花 2020-12-13 00:09

When trying to specify class for static method arguments, as for example:

class A:
    @staticmethod
    def staticm(param1: A):
        return 1
相关标签:
回答
  • 消灭零回复
提交回复
热议问题