Skip to content

Commit 586d940

Browse files
authored
Merge pull request #561 from bethgelab/numba_improvements
updated numba version and fixed numba warnings
2 parents 9583dd3 + 9840701 commit 586d940

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

foolbox/attacks/brendel_bethge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
try:
25-
from numba import jitclass # type: ignore
25+
from numba.experimental import jitclass # type: ignore
2626
import numba
2727
except (ModuleNotFoundError, ImportError) as e: # pragma: no cover
2828
# delay the error until the attack is initialized

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ codecov==2.0.15
77
coveralls==1.10.0
88
mypy==0.770
99
pre-commit==2.3.0
10-
responses==0.10.9

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ ignore_missing_imports = True
5151
[mypy-responses.*]
5252
ignore_missing_imports = True
5353

54+
[mypy-numba]
55+
ignore_missing_imports = True
56+
5457
[tool:pytest]
5558
addopts =
5659
--verbose

tests/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ torchvision==0.5.0
33
jaxlib==0.1.46
44
jax==0.1.66
55
tensorflow==2.0.1
6-
numba==0.47.0
6+
numba==0.50.1
77
matplotlib==3.2.1
88
pillow==7.1.2
99
tensorboardX==2.0
10+
responses==0.10.9

0 commit comments

Comments
 (0)