[DRAFT] Add call to super().__init__ where missing
Identified by LGTM. The toplevel superclass does initialize one data member to an empty array, but this didn't appear to cause any problems.
This commit is contained in:
@@ -55,6 +55,7 @@ class Arc(gui_base_original.Creator):
|
||||
"""Gui command for the Circular Arc tool."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.closedCircle = False
|
||||
self.featureName = "Arc"
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ class Circle(gui_arcs.Arc):
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.closedCircle = True
|
||||
self.featureName = "Circle"
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ class Dimension(gui_base_original.Creator):
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.max = 2
|
||||
self.cont = None
|
||||
self.dir = None
|
||||
|
||||
@@ -212,6 +212,7 @@ class Edit(gui_base_original.Modifier):
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
"""Initialize Draft_Edit Command."""
|
||||
self.running = False
|
||||
self.trackers = {'object': []}
|
||||
|
||||
@@ -48,6 +48,7 @@ class SubelementHighlight(gui_base_original.Modifier):
|
||||
"""Gui Command for the SubelementHighlight tool."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.is_running = False
|
||||
self.editable_objects = []
|
||||
self.original_view_settings = {}
|
||||
|
||||
@@ -54,6 +54,7 @@ class WireToBSpline(gui_base_original.Modifier):
|
||||
"""Gui Command for the Wire to BSpline tool."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.running = False
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
@@ -643,6 +643,7 @@ class svgHandler(xml.sax.ContentHandler):
|
||||
"""Parse SVG files and create FreeCAD objects."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
"""Retrieve Draft parameters and initialize."""
|
||||
_prefs = "User parameter:BaseApp/Preferences/Mod/Draft"
|
||||
params = FreeCAD.ParamGet(_prefs)
|
||||
|
||||
Reference in New Issue
Block a user