import functools


def strip_args(f):
    '''
    Wraps a function that requires no arguments. The wrapper can be called with any
    arguments, positional or keyword - they all be ignored and wrapped function called
    without arguments.

    Useful when getting rid of unwanted parameters passed by a signal (e.g. PyQt5 QAction.triggered)
    '''
    @functools.wraps(f)
    def h(*av, **kav):
        return f()
    return h

2cb12663b4d176cd4890b4b0b0bb5cd86787f5dd
<mask token>

<mask token>


def strip_args(f):
    """
    Wraps a function that requires no arguments. The wrapper can be called with any
    arguments, positional or keyword - they all be ignored and wrapped function called
    without arguments.

    Useful when getting rid of unwanted parameters passed by a signal (e.g. PyQt5 QAction.triggered)
    """

    @functools.wraps(f)
    def h(*av, **kav):
        return f()
    return h

import functools


def strip_args(f):
    """
    Wraps a function that requires no arguments. The wrapper can be called with any
    arguments, positional or keyword - they all be ignored and wrapped function called
    without arguments.

    Useful when getting rid of unwanted parameters passed by a signal (e.g. PyQt5 QAction.triggered)
    """

    @functools.wraps(f)
    def h(*av, **kav):
        return f()
    return h

import functools


def strip_args(f):
    '''
    Wraps a function that requires no arguments. The wrapper can be called with any
    arguments, positional or keyword - they all be ignored and wrapped function called
    without arguments.

    Useful when getting rid of unwanted parameters passed by a signal (e.g. PyQt5 QAction.triggered)
    '''
    @functools.wraps(f)
    def h(*av, **kav):
        return f()
    return h
