File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name = "memodisk"
77dynamic = [" version" ]
88description = " A python module to memoize function results on disk with python code and data dependencies tracking"
99readme = " README.md"
10- requires-python = " ==3.10"
10+ requires-python = " ==3.10.* "
1111license = {file = " LICENSE" }
1212authors = [
1313 {name = " Martin de La Gorce" , email = " martin.delagorce@gmail.com" },
Original file line number Diff line number Diff line change 2222hashing_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
2626def function_numba (x : int ) -> int :
2727 prod : int = x * x
2828 return prod
2929
3030
3131@memoize
3232def 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
3737def square_array_numba (x : float , n : int ) -> np .ndarray :
3838 return x * np .ones ((n , n ), dtype = np .float32 )
3939
4040
4141@memoize
4242def 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
4747def test_numba () -> None :
You can’t perform that action at this time.
0 commit comments