Skip to content

Instantly share code, notes, and snippets.

@Axect
Created January 7, 2025 01:29
Show Gist options
  • Save Axect/07c09437f11da887cdd59cccbcd3e004 to your computer and use it in GitHub Desktop.
Save Axect/07c09437f11da887cdd59cccbcd3e004 to your computer and use it in GitHub Desktop.
Patch for _numba_utils.py
# Replace last lines of clifford/_numba_utils.py
def generated_jit(f=None, **kwargs):
if f is None:
return _fake_generated_jit
else:
return _fake_generated_jit(f)
if not DISABLE_JIT:
njit = numba.njit
else:
def njit(f=None, **kwargs):
if f is None:
return pickleable_function
else:
return pickleable_function(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment