提交 2b2a7a54 authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

scipy-stubs broke run_mypy error report

Partially reverts d8943500
上级 d98db669
...@@ -26,7 +26,6 @@ dependencies: ...@@ -26,7 +26,6 @@ dependencies:
- diff-cover - diff-cover
- mypy - mypy
- types-setuptools - types-setuptools
- scipy-stubs
- pytest - pytest
- pytest-cov - pytest-cov
- pytest-xdist - pytest-xdist
......
...@@ -28,7 +28,6 @@ dependencies: ...@@ -28,7 +28,6 @@ dependencies:
- diff-cover - diff-cover
- mypy - mypy
- types-setuptools - types-setuptools
- scipy-stubs
- pytest - pytest
- pytest-cov - pytest-cov
- pytest-xdist - pytest-xdist
......
...@@ -48,7 +48,7 @@ def _lu_1( ...@@ -48,7 +48,7 @@ def _lu_1(
Called when permute_l is True and p_indices is False, and returns a tuple of (perm, L, U), where perm an integer Called when permute_l is True and p_indices is False, and returns a tuple of (perm, L, U), where perm an integer
array of row swaps, such that L[perm] @ U = A. array of row swaps, such that L[perm] @ U = A.
""" """
return linalg.lu( return linalg.lu( # type: ignore[no-any-return]
a, a,
permute_l=permute_l, permute_l=permute_l,
check_finite=check_finite, check_finite=check_finite,
...@@ -70,7 +70,7 @@ def _lu_2( ...@@ -70,7 +70,7 @@ def _lu_2(
Called when permute_l is False and p_indices is True, and returns a tuple of (PL, U), where PL is the Called when permute_l is False and p_indices is True, and returns a tuple of (PL, U), where PL is the
permuted L matrix, PL = P @ L. permuted L matrix, PL = P @ L.
""" """
return linalg.lu( return linalg.lu( # type: ignore[no-any-return]
a, a,
permute_l=permute_l, permute_l=permute_l,
check_finite=check_finite, check_finite=check_finite,
...@@ -92,7 +92,7 @@ def _lu_3( ...@@ -92,7 +92,7 @@ def _lu_3(
Called when permute_l is False and p_indices is False, and returns a tuple of (P, L, U), where P is the permutation Called when permute_l is False and p_indices is False, and returns a tuple of (P, L, U), where P is the permutation
matrix, P @ L @ U = A. matrix, P @ L @ U = A.
""" """
return linalg.lu( return linalg.lu( # type: ignore[no-any-return]
a, a,
permute_l=permute_l, permute_l=permute_l,
check_finite=check_finite, check_finite=check_finite,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论