module documentation

Undocumented

Function ​_get​_callable​_parameters Undocumented
Function ​_get​_func​_parameters Undocumented
Function func​_accepts​_kwargs Return True if function 'func' accepts keyword arguments **kwargs.
Function func​_accepts​_var​_args Return True if function 'func' accepts positional arguments *args.
Function func​_supports​_parameter Undocumented
Function get​_func​_args Undocumented
Function get​_func​_full​_args Return a list of (argument name, default value) tuples. If the argument does not have a default value, omit it in the tuple. Arguments such as *args and **kwargs are also included.
Function method​_has​_no​_args Return True if a method only accepts 'self'.
def _get_callable_parameters(meth_or_func):

Undocumented

@functools.lru_cache(maxsize=512)
def _get_func_parameters(func, remove_first):

Undocumented

def func_accepts_kwargs(func):
Return True if function 'func' accepts keyword arguments **kwargs.
def func_accepts_var_args(func):
Return True if function 'func' accepts positional arguments *args.
def func_supports_parameter(func, name):

Undocumented

def get_func_args(func):

Undocumented

def get_func_full_args(func):
Return a list of (argument name, default value) tuples. If the argument does not have a default value, omit it in the tuple. Arguments such as *args and **kwargs are also included.
def method_has_no_args(meth):
Return True if a method only accepts 'self'.