glue.utils.misc.nonpartial(func, *args, **kwargs)[source]

Like functools.partial, this returns a function which, when called, calls func(*args, **kwargs).

Unlike functools.partial, extra arguments passed to the returned function are not passed to the input function.

This is used when connecting slots to QAction.triggered signals, which appear to have different signatures, which seem to add and extra argument in PyQt but not PySide