|
20 | 20 | from ndindex import iter_indices
|
21 | 21 |
|
22 | 22 | import itertools
|
| 23 | +from typing import Tuple |
23 | 24 |
|
24 | 25 | from .array_helpers import assert_exactly_equal, asarray
|
25 | 26 | from .hypothesis_helpers import (arrays, all_floating_dtypes, xps, shapes,
|
26 | 27 | kwargs, matrix_shapes, square_matrix_shapes,
|
27 |
| - symmetric_matrices, |
| 28 | + symmetric_matrices, SearchStrategy, |
28 | 29 | positive_definite_matrices, MAX_ARRAY_SIZE,
|
29 | 30 | invertible_matrices, two_mutual_arrays,
|
30 | 31 | mutually_promotable_dtypes, one_d_shapes,
|
|
35 | 36 | from . import dtype_helpers as dh
|
36 | 37 | from . import pytest_helpers as ph
|
37 | 38 | from . import shape_helpers as sh
|
| 39 | +from .typing import Array |
38 | 40 |
|
39 | 41 | from . import _array_module
|
40 | 42 | from . import _array_module as xp
|
@@ -589,7 +591,7 @@ def test_slogdet(x):
|
589 | 591 | # TODO: Test this when we have tests for floating-point values.
|
590 | 592 | # assert all(abs(linalg.det(x) - sign*exp(logabsdet)) < eps)
|
591 | 593 |
|
592 |
| -def solve_args(): |
| 594 | +def solve_args() -> Tuple[SearchStrategy[Array], SearchStrategy[Array]]: |
593 | 595 | """
|
594 | 596 | Strategy for the x1 and x2 arguments to test_solve()
|
595 | 597 |
|
|
0 commit comments