Skip to content

Commit

Permalink
Fix identity decorator for when Numba unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
eufrizz committed Aug 10, 2023
1 parent 7113a90 commit 17ed6a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/quaternion/numba_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# "may wish to install numba." + \
# "\n" + "!" * 53 + "\n"
# warnings.warn(warning_text)
def _identity_decorator_outer(*args, **kwargs):
def _identity_decorator_inner(fn):
return fn
def _identity_decorator_outer(fn):
def _identity_decorator_inner(*args, **kwargs):
return fn(*args, **kwargs)
return _identity_decorator_inner
njit = _identity_decorator_outer
jit = _identity_decorator_outer
Expand Down

0 comments on commit 17ed6a2

Please sign in to comment.