8000 Allow args to pass through _allow_super_init · matplotlib/matplotlib@0dac93f · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

Commit 0dac93f

Browse files
committed
Allow args to pass through _allow_super_init
1 parent 0e7a5c3 commit 0dac93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 2 additions & 2 deletions
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)
0