Skip to content

Commit

Permalink
appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyer committed Jan 25, 2025
1 parent c47c81a commit 89a09f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/build123d/topology/shape_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,10 @@ def pred(shape: Shape):
if callable(filter_by):
predicate = filter_by
elif isinstance(filter_by, property):
predicate = filter_by.__get__

def predicate(obj):
return filter_by.__get__(obj)

elif isinstance(filter_by, Axis):
predicate = axis_parallel_predicate(filter_by, tolerance=tolerance)
elif isinstance(filter_by, Plane):
Expand Down

0 comments on commit 89a09f3

Please sign in to comment.