Skip to content

Commit e6af0d5

Browse files
mypy fixes
1 parent f408d96 commit e6af0d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cadquery/occ_impl/shapes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,9 +2101,9 @@ def makeFromWires(
21012101
raise ValueError("Cannot build face(s): wires not planar")
21022102

21032103
# fix outer wire
2104-
sf = ShapeFix_Shape(outerWire.wrapped)
2105-
sf.Perform()
2106-
w = TopoDS.Wire_s(sf.Shape())
2104+
sf_s = ShapeFix_Shape(outerWire.wrapped)
2105+
sf_s.Perform()
2106+
w = TopoDS.Wire_s(sf_s.Shape())
21072107

21082108
face_builder = BRepBuilderAPI_MakeFace(w, True)
21092109

@@ -2117,11 +2117,11 @@ def makeFromWires(
21172117

21182118
face = face_builder.Face()
21192119

2120-
sf = ShapeFix_Face(face)
2121-
sf.FixOrientation()
2122-
sf.Perform()
2120+
sf_f = ShapeFix_Face(face)
2121+
sf_f.FixOrientation()
2122+
sf_f.Perform()
21232123

2124-
return cls(sf.Result())
2124+
return cls(sf_f.Result())
21252125

21262126
@classmethod
21272127
def makeSplineApprox(

0 commit comments

Comments
 (0)