diff --git a/src/Base/Type.h b/src/Base/Type.h index adba866cef..0527a493c8 100644 --- a/src/Base/Type.h +++ b/src/Base/Type.h @@ -59,7 +59,7 @@ struct TypeData; if (anode->is()) { // do something.. } - else if (anode->is()) { + else if (anode->is()) { // do something.. } else { diff --git a/src/Mod/BIM/Arch.py b/src/Mod/BIM/Arch.py index bd5bf667be..45f5bf9da2 100644 --- a/src/Mod/BIM/Arch.py +++ b/src/Mod/BIM/Arch.py @@ -830,7 +830,7 @@ def makeSpace(objects=None,baseobj=None,name=None): # We assume that the objects list is not a mixed set. The type of the first # object will determine the type of the set. # Input to this function can come into three different formats. First convert it - # to a common format: [ (, ["Face1", ...]), ... ] + # to a common format: [ (, ["Face1", ...]), ... ] if (hasattr(objects[0], "isDerivedFrom") and objects[0].isDerivedFrom("Gui::SelectionObject")): # Selection set: convert to common format @@ -838,12 +838,12 @@ def makeSpace(objects=None,baseobj=None,name=None): objects = [(obj.Object, obj.SubElementNames) for obj in objects] elif (isinstance(objects[0], tuple) or isinstance(objects[0], list)): # Tuple or list of object with subobjects: pass unmodified - # [ (, ["Face1", ...]), ... ] + # [ (, ["Face1", ...]), ... ] pass else: # Single object: assume anything else passed is a single object with no # boundaries. - # [ ] + # [ ] objects = [(objects[0], [])] if isSingleObject(objects): @@ -1091,7 +1091,7 @@ def makeWall(baseobj=None,height=None,length=None,width=None,align=None,face=Non Parameters ---------- - baseobj: , optional + baseobj: , optional The base object with which to build the wall. This can be a sketch, a draft object, a face, or a solid. It can also be left as None. height: float, optional diff --git a/src/Mod/BIM/bimcommands/BimWall.py b/src/Mod/BIM/bimcommands/BimWall.py index bbc681a5b8..acac026548 100644 --- a/src/Mod/BIM/bimcommands/BimWall.py +++ b/src/Mod/BIM/bimcommands/BimWall.py @@ -130,7 +130,7 @@ class Arch_Wall: ---------- point: The point the user has selected. - obj: , optional + obj: , optional The object the user's cursor snapped to, if any. """ diff --git a/src/Mod/BIM/bimtests/TestArchSpace.py b/src/Mod/BIM/bimtests/TestArchSpace.py index c11d518eb0..ac7e5fe335 100644 --- a/src/Mod/BIM/bimtests/TestArchSpace.py +++ b/src/Mod/BIM/bimtests/TestArchSpace.py @@ -151,7 +151,7 @@ class TestArchSpace(TestArchBase.TestArchBase): # space = App.ActiveDocument.Space else: # Also tests the alternative way of specifying the boundaries - # [ (, ["Face1", ...]), ... ] + # [ (, ["Face1", ...]), ... ] space = Arch.makeSpace([(wall, boundaries)]) App.ActiveDocument.recompute() # To calculate space area diff --git a/src/Mod/Draft/draftobjects/facebinder.py b/src/Mod/Draft/draftobjects/facebinder.py index f3fb93a533..e83a71eab5 100644 --- a/src/Mod/Draft/draftobjects/facebinder.py +++ b/src/Mod/Draft/draftobjects/facebinder.py @@ -207,7 +207,7 @@ class Facebinder(DraftObject): def addSubobjects(self, obj, facelinks): """adds facelinks to this facebinder""" # facelinks is an iterable or a selection set: - # [(, ("3.Face3", "3.Face6"))] + # [(, ("3.Face3", "3.Face6"))] # or: # Gui.Selection.getSelectionEx("", 0) sels = obj.Faces diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index e670dfeb22..eb58ad9586 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1734,7 +1734,7 @@ def drawInsert(insert, num=None, clone=False): Returns ------- Part::TopoShape ('Compound') or - Part::Part2DObject or Part::PartFeature (`Draft Clone`) + Part::Part2DObject or Part::Feature (`Draft Clone`) The returned object is normally a copy of the `Part.Compound` extracted from `blockshapes` or created with `drawBlock()`. diff --git a/src/Mod/Fem/femmesh/meshtools.py b/src/Mod/Fem/femmesh/meshtools.py index 2701ea3022..2f25bf3b43 100644 --- a/src/Mod/Fem/femmesh/meshtools.py +++ b/src/Mod/Fem/femmesh/meshtools.py @@ -1509,7 +1509,7 @@ def get_contact_obj_faces(femmesh, femelement_table, femnodes_ele_table, femobj) contact_obj = femobj["Object"] if len(contact_obj.References) == 1 and len(contact_obj.References[0][1]) == 2: - # [(, ('Face7', 'Face3'))] + # [(, ('Face7', 'Face3'))] # refs are merged because they are on the same doc obj # but only one element face for each contact face (Gui, TaskPael contact) ref_obj = contact_obj.References[0][0] @@ -1521,7 +1521,7 @@ def get_contact_obj_faces(femmesh, femelement_table, femnodes_ele_table, femobj) and len(contact_obj.References[0][1]) == 1 and len(contact_obj.References[1][1]) == 1 ): - # [(, ('Face3',)), (, ('Face7',))] + # [(, ('Face3',)), (, ('Face7',))] # refs are on different objects # but only one element face for each contact face (Gui, TaskPael contact) slave_ref = contact_obj.References[0] @@ -1591,7 +1591,7 @@ def get_tie_obj_faces(femmesh, femelement_table, femnodes_ele_table, femobj): tie_obj = femobj["Object"] if len(tie_obj.References) == 1 and len(tie_obj.References[0][1]) == 2: - # [(, ('Face7', 'Face3'))] + # [(, ('Face7', 'Face3'))] # refs are merged because they are on the same doc obj # but only one element face for each contact face (Gui, TaskPael tie) ref_obj = tie_obj.References[0][0] @@ -1603,7 +1603,7 @@ def get_tie_obj_faces(femmesh, femelement_table, femnodes_ele_table, femobj): and len(tie_obj.References[0][1]) == 1 and len(tie_obj.References[1][1]) == 1 ): - # [(, ('Face3',)), (, ('Face7',))] + # [(, ('Face3',)), (, ('Face7',))] # refs are on different objects # but only one element face for each contact face (Gui, TaskPael tie) slave_ref = tie_obj.References[0] diff --git a/src/Mod/Part/App/PartFeaturePyImp.cpp b/src/Mod/Part/App/PartFeaturePyImp.cpp index 5aec0fc606..bf99529fa4 100644 --- a/src/Mod/Part/App/PartFeaturePyImp.cpp +++ b/src/Mod/Part/App/PartFeaturePyImp.cpp @@ -36,7 +36,7 @@ using namespace Part; // returns a string which represent the object e.g. when printed in python std::string PartFeaturePy::representation() const { - return {""}; + return {""}; } PyObject *PartFeaturePy::getElementHistory(PyObject *args, PyObject *kwds) { diff --git a/src/Mod/TechDraw/App/ShapeExtractor.cpp b/src/Mod/TechDraw/App/ShapeExtractor.cpp index 74d811957e..48f46dffff 100644 --- a/src/Mod/TechDraw/App/ShapeExtractor.cpp +++ b/src/Mod/TechDraw/App/ShapeExtractor.cpp @@ -445,7 +445,7 @@ Base::Vector3d ShapeExtractor::getLocation3dFromFeat(const App::DocumentObject* return Base::Vector3d(0.0, 0.0, 0.0); } // if (isDraftPoint(obj) { -// //Draft Points are not necc. Part::PartFeature?? +// //Draft Points are not necc. Part::Feature?? // //if Draft option "use part primitives" is not set are Draft points still PartFeature? const Part::Feature* pf = dynamic_cast(obj);