def tidy_args(method):
    """Takes a method and returns a comma separated string of the method's arguments."""
    sig = inspect.signature(method)
    args = str(sig).rsplit("(")[1].rsplit(")")[0].split(",")

    args = [f"{arg.strip()}" for arg in args[1:]]
    return ", ".join(args).replace("'", "")
Takes a method and returns a comma separated string of the method's arguments.
docs/qtile_docs/base.py