From ab42bb8b4c46ecf33d3b80ca9fc1999a6272f8b2 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 18 Mar 2020 12:56:40 +0100 Subject: [PATCH] FEM: base python object, pep8 and doc strings --- src/Mod/Fem/femobjects/FemConstraint.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Mod/Fem/femobjects/FemConstraint.py b/src/Mod/Fem/femobjects/FemConstraint.py index 060a1ac634..00fe8b60a1 100644 --- a/src/Mod/Fem/femobjects/FemConstraint.py +++ b/src/Mod/Fem/femobjects/FemConstraint.py @@ -25,8 +25,9 @@ __title__ = "FreeCAD FEM base constraint object" __author__ = "Markus Hovorka" __url__ = "http://www.freecadweb.org" -## \addtogroup FEM -# @{ +## @package _BaseObject +# \ingroup FEM +# \brief FreeCAD _Base Object for FEM workbench class Proxy(object): @@ -41,12 +42,10 @@ class Proxy(object): # https://forum.freecadweb.org/viewtopic.php?f=18&t=44021 # https://forum.freecadweb.org/viewtopic.php?f=18&t=44009 def __getstate__(self): - return self.Type + return self.Type def __setstate__(self, state): # a few FEM objects had this attribut assignment before the move to this Python base obj class # these objects will give a setAttr failed error on document loading without this assignment if state: self.Type = state - -## @}