inspect.py (542B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\carbon\common\script\util\inspect.py 2 import types 3 4 def IsClassMethod(func): 5 if type(func) != types.MethodType: 6 return False 7 if type(func.__self__) is types.TypeType: 8 return True 9 return False 10 11 12 def IsStaticMethod(func): 13 return type(func) == types.FunctionType 14 15 16 def IsNormalMethod(func): 17 if type(func) != types.MethodType: 18 return False 19 if type(func.__self__) is not types.TypeType: 20 return True 21 return False