module documentation

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'.
Function _get_callable_parameters Undocumented
Function _get_func_parameters Undocumented
def func_accepts_kwargs(func): (source)

Return True if function 'func' accepts keyword arguments **kwargs.

def func_accepts_var_args(func): (source)

Return True if function 'func' accepts positional arguments *args.

def func_supports_parameter(func, name): (source)

Undocumented

def get_func_args(func): (source)

Undocumented

def get_func_full_args(func): (source)

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): (source)

Return True if a method only accepts 'self'.

def _get_callable_parameters(meth_or_func): (source)

Undocumented

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

Undocumented