Skip to content

Commit 2f809d4

Browse files
committed
Add missing superclass Widget constructor calls
1 parent 15b8d1a commit 2f809d4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

pudb/source_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class SourceLine(urwid.Widget):
3434
_sizing = frozenset([urwid.Sizing.FLOW])
3535

3636
def __init__(self, dbg_ui, text, line_nr="", attr=None, has_breakpoint=False):
37+
super().__init__()
38+
3739
self.dbg_ui = dbg_ui
3840
self.text = text
3941
self.attr = attr

pudb/ui_tools.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class StackFrame(urwid.Widget):
144144
_sizing = frozenset([urwid.Sizing.FLOW])
145145

146146
def __init__(self, is_current, name, class_name, filename, line):
147+
super().__init__()
148+
147149
self.is_current = is_current
148150
self.name = name
149151
self.class_name = class_name
@@ -190,6 +192,8 @@ class BreakpointFrame(urwid.Widget):
190192
_sizing = frozenset([urwid.Sizing.FLOW])
191193

192194
def __init__(self, is_current, filename, breakpoint):
195+
super().__init__()
196+
193197
self.is_current = is_current
194198
self.filename = filename
195199
self.breakpoint = breakpoint

pudb/var_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ class VariableWidget(urwid.Widget):
219219

220220
def __init__(self, parent, var_label, value_str, id_path,
221221
attr_prefix=None, watch_expr=None, iinfo=None):
222+
super().__init__()
223+
222224
assert isinstance(id_path, str)
223225
self.parent = parent
224226
self.nesting_level = 0 if parent is None else parent.nesting_level + 1

0 commit comments

Comments
 (0)