Skip to content

Commit 999f156

Browse files
author
Martin de La Gorce
committed
mypy fixes
1 parent 185b67a commit 999f156

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "memodisk"
77
dynamic = ["version"]
88
description = "A python module to memoize function results on disk with python code and data dependencies tracking"
99
readme = "README.md"
10-
requires-python = "==3.10"
10+
requires-python = "==3.10.*"
1111
license = {file = "LICENSE"}
1212
authors = [
1313
{name = "Martin de La Gorce", email = "martin.delagorce@gmail.com"},

tests/test_numba.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@
2222
hashing_func_map[numba.core.registry.CPUDispatcher] = lambda x: hashlib.sha256(x.__code__.co_code).hexdigest()
2323

2424

25-
@njit(cache=True)
25+
@njit(cache=True) # type: ignore
2626
def function_numba(x: int) -> int:
2727
prod: int = x * x
2828
return prod
2929

3030

3131
@memoize
3232
def function_calling_numba(x: int) -> int:
33-
return function_numba(x)
33+
return function_numba(x) # type: ignore
3434

3535

36-
@njit(cache=True)
36+
@njit(cache=True) # type: ignore
3737
def square_array_numba(x: float, n: int) -> np.ndarray:
3838
return x * np.ones((n, n), dtype=np.float32)
3939

4040

4141
@memoize
4242
def square_array(x: float, n: int) -> np.ndarray:
4343
r = square_array_numba(x, n)
44-
return r
44+
return r # type: ignore
4545

4646

4747
def test_numba() -> None:

0 commit comments

Comments
 (0)