Skip to content

Commit c9af37a

Browse files
pre-commit and mypy
1 parent d7399fd commit c9af37a

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
@@ -541,7 +541,9 @@ def _lu_factor(A, overwrite_a=False) -> tuple[np.ndarray, np.ndarray]:
541541
Thin wrapper around scipy.linalg.lu_factor. Used as an overload target to avoid side-effects on users who import
542542
Pytensor.
543543
"""
544-
return linalg.lu_factor(A, overwrite_a=overwrite_a)
544+
return typing_cast(
545+
tuple[np.ndarray, np.ndarray], linalg.lu_factor(A, overwrite_a=overwrite_a)
546+
)
545547

546548

547549
@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)