Skip to content

Commit b2115b7

Browse files
committed
Return type hint solve_args()
1 parent 8fb5e01 commit b2115b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

array_api_tests/test_linalg.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
from ndindex import iter_indices
2121

2222
import itertools
23+
from typing import Tuple
2324

2425
from .array_helpers import assert_exactly_equal, asarray
2526
from .hypothesis_helpers import (arrays, all_floating_dtypes, xps, shapes,
2627
kwargs, matrix_shapes, square_matrix_shapes,
27-
symmetric_matrices,
28+
symmetric_matrices, SearchStrategy,
2829
positive_definite_matrices, MAX_ARRAY_SIZE,
2930
invertible_matrices, two_mutual_arrays,
3031
mutually_promotable_dtypes, one_d_shapes,
@@ -35,6 +36,7 @@
3536
from . import dtype_helpers as dh
3637
from . import pytest_helpers as ph
3738
from . import shape_helpers as sh
39+
from .typing import Array
3840

3941
from . import _array_module
4042
from . import _array_module as xp
@@ -589,7 +591,7 @@ def test_slogdet(x):
589591
# TODO: Test this when we have tests for floating-point values.
590592
# assert all(abs(linalg.det(x) - sign*exp(logabsdet)) < eps)
591593

592-
def solve_args():
594+
def solve_args() -> Tuple[SearchStrategy[Array], SearchStrategy[Array]]:
593595
"""
594596
Strategy for the x1 and x2 arguments to test_solve()
595597

0 commit comments

Comments
 (0)