python How to run static method of generic type

后端 未结 0 1686
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 00:53
class A:
    @staticmethod
    def work():
        print("works")

T = TypeVar(\'T\', bound=A)
class B(Generic[T]):
    @staticmethod
    def execute():
           


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