From 6fdf2b588b90de761ce6ebce89cf988904cae530 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Mon, 20 Aug 2018 13:28:42 -0400 Subject: [PATCH] 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