Fixing typing errors

This commit is contained in:
gumyr 2025-05-01 10:17:00 -04:00
parent 60cd260e74
commit 8a603f17ee

View file

@ -301,7 +301,9 @@ class Mixin2D(Shape):
axis = Axis(point, direction) axis = Axis(point, direction)
face = self.faces_intersected_by_axis(axis).sort_by( face = self.faces_intersected_by_axis(axis).sort_by(
lambda f: f.distance_to(point) lambda f: f.distance_to(point)
)[0] )[
0
] # type: ignore[type-var]
intersections = face.find_intersection_points(axis) intersections = face.find_intersection_points(axis)
if not intersections: if not intersections:
raise RuntimeError( raise RuntimeError(
@ -342,7 +344,7 @@ class Mixin2D(Shape):
surface_normal = surface_loc.z_axis.direction surface_normal = surface_loc.z_axis.direction
# Seed the wrapped path # Seed the wrapped path
wrapped_edge_points: list[Vector] = [] wrapped_edge_points: list[VectorLike] = []
planar_position = planar_edge.position_at(0) planar_position = planar_edge.position_at(0)
current_point, current_normal = _find_point_on_surface( current_point, current_normal = _find_point_on_surface(
surface_origin, surface_normal, planar_position surface_origin, surface_normal, planar_position