Fixing typing errors
Some checks are pending
benchmarks / tests (macos-13, 3.12) (push) Waiting to run
benchmarks / tests (macos-14, 3.12) (push) Waiting to run
benchmarks / tests (ubuntu-latest, 3.12) (push) Waiting to run
benchmarks / tests (windows-latest, 3.12) (push) Waiting to run
Upload coverage reports to Codecov / run (push) Waiting to run
pylint / lint (3.10) (push) Waiting to run
Run type checker / typecheck (3.10) (push) Waiting to run
Run type checker / typecheck (3.13) (push) Waiting to run
Wheel building and publishing / Build wheel on ubuntu-latest (push) Waiting to run
Wheel building and publishing / upload_pypi (push) Blocked by required conditions
tests / tests (macos-13, 3.10) (push) Waiting to run
tests / tests (macos-13, 3.13) (push) Waiting to run
tests / tests (macos-14, 3.10) (push) Waiting to run
tests / tests (macos-14, 3.13) (push) Waiting to run
tests / tests (ubuntu-latest, 3.10) (push) Waiting to run
tests / tests (ubuntu-latest, 3.13) (push) Waiting to run
tests / tests (windows-latest, 3.10) (push) Waiting to run
tests / tests (windows-latest, 3.13) (push) Waiting to run

This commit is contained in:
gumyr 2025-05-01 10:34:18 -04:00
parent 6a1b3a2f9b
commit 86806dfc25

View file

@ -1799,9 +1799,9 @@ class Face(Mixin2D, Shape[TopoDS_Face]):
surface_geometry = BRep_Tool.Surface_s(self.wrapped)
if len(planar_wire.edges()) == 1:
return Wire(
[self._wrap_edge(planar_wire.edge(), surface_loc, True, tolerance)]
)
planar_edge = planar_wire.edge()
assert planar_edge is not None
return Wire([self._wrap_edge(planar_edge, surface_loc, True, tolerance)])
planar_edges = planar_wire.order_edges()
wrapped_edges: list[Edge] = []