def arg_string(func):
 return inspect.formatargspec(*inspect.getargspec(func))

def arg_string ( func ) : return inspect . formatargspec ( * inspect . getargspec ( func ) )
returns a nice argstring for a function or method .