From 951613f7dc726bb5f3feffc768d74a16c34981ca Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Mon, 20 Aug 2018 17:10:13 -0700 Subject: [PATCH] Backport PR #11900: Allow args to pass through _allow_super_init --- lib/matplotlib/backends/backend_qt5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/backends/backend_qt5.py b/lib/matplotlib/backends/backend_qt5.py index c8f7aaf9434f..0df0f764dc1e 100644 --- a/lib/matplotlib/backends/backend_qt5.py +++ b/lib/matplotlib/backends/backend_qt5.py @@ -163,10 +163,10 @@ def cooperative_qwidget_init(self, *args, **kwargs): next_coop_init.__init__(self, *args, **kwargs) @functools.wraps(__init__) - def wrapper(self, **kwargs): + def wrapper(self, *args, **kwargs): with cbook._setattr_cm(QtWidgets.QWidget, __init__=cooperative_qwidget_init): - __init__(self, **kwargs) + __init__(self, *args, **kwargs) return wrapper