Skip to content

Commit

Permalink
update numba calls for version 0.50.0 (#1107)
Browse files Browse the repository at this point in the history
* update numba calls for
compatibility with version 0.50.0

--tested with SV2TTS

* fix for version change
  • Loading branch information
pusalieth committed May 4, 2020
1 parent 6f93e1f commit e77e238
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion librosa/util/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

import warnings
from decorator import decorator
from numba.decorators import jit as optional_jit
import numba
if (numba.__version__ < '0.49.0'):
from numba.decorators import jit as optional_jit
else:
from numba.core.decorators import jit as optional_jit

__all__ = ['moved', 'deprecated', 'optional_jit']

Expand Down

0 comments on commit e77e238

Please sign in to comment.