Skip to content

Commit 2af481e

Browse files
committed
Fix identity decorator for when Numba unavailable
1 parent 7113a90 commit 2af481e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/quaternion/numba_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
# "may wish to install numba." + \
2222
# "\n" + "!" * 53 + "\n"
2323
# warnings.warn(warning_text)
24-
def _identity_decorator_outer(*args, **kwargs):
25-
def _identity_decorator_inner(fn):
26-
return fn
24+
def _identity_decorator_outer(fn):
25+
def _identity_decorator_inner(*args, **kwargs):
26+
return fn(*args, **kwargs)
2727
return _identity_decorator_inner
2828
njit = _identity_decorator_outer
2929
jit = _identity_decorator_outer

0 commit comments

Comments
 (0)