From bbb3c91268c5c3cdae439151b4c3300e8bd96571 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 7 Dec 2024 19:28:04 +0100 Subject: [PATCH] Sketch: Fix Python type hints in addExternal The syntax of type hints in Python is 'argument name: argument type'. For more details see: https://docs.python.org/3/library/typing.html --- src/Mod/Sketcher/App/SketchObjectPy.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObjectPy.xml b/src/Mod/Sketcher/App/SketchObjectPy.xml index b47a995cbc..3876cded46 100644 --- a/src/Mod/Sketcher/App/SketchObjectPy.xml +++ b/src/Mod/Sketcher/App/SketchObjectPy.xml @@ -253,7 +253,7 @@ carbonCopy(objName:str, asConstruction=True) Add a link to an external geometry. -addExternal(objName:str, subName:str, bool:defining, bool:intersection) +addExternal(objName:str, subName:str, defining:bool=False, intersection:bool=False) Args: objName: The name of the document object to reference.