Restrict decorator to methods of supported classes

后端 未结 0 917
不知归路
不知归路 2020-12-28 21:31

I want to write a method decorator. For the sake of example, it\'s a standard mutexed function.

FuncT = typing.TypeVar("FuncT", bound=Callable)

def         


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