Skip to content

Commit a03bcce

Browse files
pre-commit and mypy
1 parent ed1cc24 commit a03bcce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pytensor/link/numba/dispatch/slinalg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,9 @@ def _lu_factor(A, overwrite_a=False) -> tuple[np.ndarray, np.ndarray]:
525525
Thin wrapper around scipy.linalg.lu_factor. Used as an overload target to avoid side-effects on users who import
526526
Pytensor.
527527
"""
528-
return linalg.lu_factor(A, overwrite_a=overwrite_a)
528+
return typing_cast(
529+
tuple[np.ndarray, np.ndarray], linalg.lu_factor(A, overwrite_a=overwrite_a)
530+
)
529531

530532

531533
@overload(_lu_factor)

tests/tensor/test_elemwise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pytensor.scalar as ps
1212
import pytensor.tensor as pt
1313
import tests.unittest_tools as utt
14-
from pytensor import grad, In, Out
14+
from pytensor import In, Out, grad
1515
from pytensor.compile.function import function
1616
from pytensor.compile.mode import Mode
1717
from pytensor.configdefaults import config

0 commit comments

Comments
 (0)