From 4619ab1bff2f42b3724f7186aee0c0bbdc6fc340 Mon Sep 17 00:00:00 2001 From: Luz Paz Date: Sun, 27 Apr 2025 12:05:49 -0400 Subject: [PATCH] Misc: Fix various typos Found via codespell --- src/App/PropertyContainer.h | 4 ++-- src/Mod/CAM/Path/Op/Adaptive.py | 4 ++-- src/Mod/Draft/SVGPath.py | 4 ++-- src/Mod/Material/App/MaterialAPI/MaterialManagerExternal.py | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/App/PropertyContainer.h b/src/App/PropertyContainer.h index f4b80a2961..621a59bf2f 100644 --- a/src/App/PropertyContainer.h +++ b/src/App/PropertyContainer.h @@ -237,9 +237,9 @@ public: * @brief Visit each property in the container. * * This method allows you to apply a function to each property in the - * container. The visiting order is undefined. This mehod is necessary + * container. The visiting order is undefined. This method is necessary * because PropertyContainer has no begin and end methods and it is not - * practical to implement these. What gets visited is undefined if the + * practical to implement these. What gets visited is undefined if the * collection of Properties is changed during this call. * * @param[in] visitor The function to apply to each property. diff --git a/src/Mod/CAM/Path/Op/Adaptive.py b/src/Mod/CAM/Path/Op/Adaptive.py index 6aa2118d31..f1305b9cb9 100644 --- a/src/Mod/CAM/Path/Op/Adaptive.py +++ b/src/Mod/CAM/Path/Op/Adaptive.py @@ -738,7 +738,7 @@ def Execute(op, obj): # stepping down depths like this. If we don't, it will keep history # from the last region we did. - # TODO: QThread/QRunnable trigger Python's global interpretor lock + # TODO: QThread/QRunnable trigger Python's global interpreter lock # (GIL). To calculate toolpaths in parallel, making a C++ shim that # takes in the array of regions/stock paths and parallelizes in # C++-land is probably the way to do it. @@ -1237,7 +1237,7 @@ def _getWorkingEdges(op, obj): depths = [d for d in depthParams.data if d < op.stock.Shape.BoundBox.ZMax] # Get the stock outline at each stepdown. Used to calculate toolpaths and - # for calcuating cut regions in some instances + # for calculating cut regions in some instances # NOTE: See note in _workingEdgeHelperRoughing- tl;dr slice stock lower # than cut depth to effectively leave (at least) obj.ZStockToLeave # NOTE: Stock is handled DIFFERENTLY than inside and outside regions! diff --git a/src/Mod/Draft/SVGPath.py b/src/Mod/Draft/SVGPath.py index c3a01515bd..de596412c5 100644 --- a/src/Mod/Draft/SVGPath.py +++ b/src/Mod/Draft/SVGPath.py @@ -602,10 +602,10 @@ class SvgPathElement: _d1 = pole1.distanceToLine(last_v, next_v) _d2 = pole2.distanceToLine(last_v, next_v) if _d1 < _tol and _d2 < _tol: - # poles and endpints are all on a line + # poles and endpoints are all on a line if equals(last_v, next_v, self.precision): # in this case we don't accept (nearly) zero - # distance betwen start and end (skip it). + # distance between start and end (skip it). next_v = last_v else: seg = LineSegment(last_v, next_v).toShape() diff --git a/src/Mod/Material/App/MaterialAPI/MaterialManagerExternal.py b/src/Mod/Material/App/MaterialAPI/MaterialManagerExternal.py index 152e4b3525..695be6fb2e 100644 --- a/src/Mod/Material/App/MaterialAPI/MaterialManagerExternal.py +++ b/src/Mod/Material/App/MaterialAPI/MaterialManagerExternal.py @@ -62,7 +62,7 @@ class MaterialManagerExternal(ABC): """Returns a list of libraries managed by this interface The list contains a series of tuples describing all libraries managed by - this module. Each tuple containes the library name, icon, a boolean to indicate + this module. Each tuple contains the library name, icon, a boolean to indicate if it is a read only library, and a timestamp that indicates when it was last modified.""" pass @@ -72,7 +72,7 @@ class MaterialManagerExternal(ABC): """Returns a list of libraries managed by this interface The list contains a series of tuples describing all libraries managed by - this module. Each tuple containes the library name, icon, and a boolean to indicate + this module. Each tuple contains the library name, icon, and a boolean to indicate if it is a read only library, and a timestamp that indicates when it was last modified. @@ -85,7 +85,7 @@ class MaterialManagerExternal(ABC): """Returns a list of libraries managed by this interface The list contains a series of tuples describing all libraries managed by - this module. Each tuple containes the library name, icon, and a boolean to indicate + this module. Each tuple contains the library name, icon, and a boolean to indicate if it is a read only library, and a timestamp that indicates when it was last modified.