Skip to content

Commit 42e144b

Browse files
committed
Update utils.py
1 parent 5a7c254 commit 42e144b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cadquery/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,10 @@ def wrapped(*args, **kwargs):
5858

5959
return wrapped
6060

61+
class cqmultimethod(multimethod):
62+
def __call__(self, *args, **kwargs):
63+
64+
try:
65+
return super().__call__(*args, **kwargs)
66+
except DispatchError:
67+
return next(iter(self.values()))(*args, **kwargs)

0 commit comments

Comments
 (0)