Skip to content

Commit 951613f

Browse files
jklymakMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #11900: Allow args to pass through _allow_super_init
1 parent 1f10661 commit 951613f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_qt5.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ def cooperative_qwidget_init(self, *args, **kwargs):
163163
next_coop_init.__init__(self, *args, **kwargs)
164164

165165
@functools.wraps(__init__)
166-
def wrapper(self, **kwargs):
166+
def wrapper(self, *args, **kwargs):
167167
with cbook._setattr_cm(QtWidgets.QWidget,
168168
__init__=cooperative_qwidget_init):
169-
__init__(self, **kwargs)
169+
__init__(self, *args, **kwargs)
170170

171171
return wrapper
172172

0 commit comments

Comments
 (0)