Arch: Fix LGTM warning of missing param for translate() in ArchPanel.py
Even though this is ignored per the docs[1], LGTM complains[2] about it. This commit adds the superfluous param. Note: there is precedent in ArchReference.py[3] and ArchWall.py[4]. [1]https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Draft/draftutils/translate.py#L73-L78 [2]17db14c970/files/src/Mod/Arch/ArchPanel.py (L32)[3]45dd1a7f60/src/Mod/Arch/ArchReference.py (L39)[4]45dd1a7f60/src/Mod/Arch/ArchWall.py (L42)
This commit is contained in:
@@ -29,7 +29,7 @@ if FreeCAD.GuiUp:
|
||||
import draftguitools.gui_trackers as DraftTrackers
|
||||
else:
|
||||
# \cond
|
||||
def translate(ctxt,txt):
|
||||
def translate(ctxt,txt,utf8_decode=False):
|
||||
return txt
|
||||
def QT_TRANSLATE_NOOP(ctxt,txt):
|
||||
return txt
|
||||
|
||||
Reference in New Issue
Block a user