[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:
Chris Hennes
2021-02-25 16:37:52 -06:00
committed by wwmayer
parent a432480e8d
commit 283d09dc1a
7 changed files with 7 additions and 0 deletions

View File

@@ -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"

View File

@@ -68,6 +68,7 @@ class Circle(gui_arcs.Arc):
"""
def __init__(self):
super().__init__()
self.closedCircle = True
self.featureName = "Circle"

View File

@@ -71,6 +71,7 @@ class Dimension(gui_base_original.Creator):
"""
def __init__(self):
super().__init__()
self.max = 2
self.cont = None
self.dir = None

View File

@@ -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': []}

View File

@@ -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 = {}

View File

@@ -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):

View File

@@ -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)