[NFC][LLVM][CodeGen] Move LiveDebugVariables.h into llvm/include/llvm/CodeGen (#88374)
[llvm-project.git] / lldb / packages / Python / lldbsuite / support / funcutils.py
blob55db939de96c2f26e3201de4c061d7e8bc56bc6a
1 import inspect
4 def requires_self(func):
5 func_argc = len(inspect.getfullargspec(func).args)
6 if (
7 func_argc == 0
8 or (getattr(func, "im_self", None) is not None)
9 or (hasattr(func, "__self__"))
11 return False
12 else:
13 return True