Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8eb987b

Browse files
committed
super dooper
1 parent 490629f commit 8eb987b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/matplotlib/backend_managers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class FigureManager(cbook.EventEmitter):
7373
num : int
7474
The figure number.
7575
"""
76-
def __init__(self, figure, num):
77-
super(FigureManager, self).__init__()
76+
def __init__(self, figure, num, **kwargs):
77+
super(FigureManager, self).__init__(**kwargs)
7878
self.num = num
7979

8080
self._backend = get_backend()

lib/matplotlib/backends/backend_gtk3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,8 @@ def draw_rubberband(self, x0, y0, x1, y1):
827827

828828

829829
class ToolbarGTK3(ToolContainerBase, Gtk.Box):
830-
def __init__(self, toolmanager, flow='horizontal'):
831-
super(ToolbarGTK3, self).__init__(toolmanager=toolmanager)
830+
def __init__(self, toolmanager, flow='horizontal', **kwargs):
831+
super(ToolbarGTK3, self).__init__(toolmanager=toolmanager, **kwargs)
832832
self._toolarea = Gtk.Box()
833833
self.set_flow(flow)
834834

lib/matplotlib/cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ def process(self, s, *args, **kwargs):
544544

545545

546546
class EventEmitter(object):
547-
def __init__(self):
548-
super(EventEmitter, self).__init__()
547+
def __init__(self, **kwargs):
548+
super(EventEmitter, self).__init__(**kwargs) # call next class on MRO
549549
self._callbacks = CallbackRegistry()
550550

551551
def mpl_connect(self, s, func):

0 commit comments

Comments
 (0)