8000 Use `Sequence` from `typing` instead of `collections.abc` (#391) · data-apis/array-api@a952c44 · GitHub
[go: up one dir, main page]

Skip to content

Commit a952c44

Browse files
authored
Use Sequence from typing instead of collections.abc (#391)
1 parent 6721451 commit a952c44

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

spec/API_specification/signatures/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ def __len__(self, /) -> int: ...
4343

4444

4545
__all__ = ['Any', 'List', 'Literal', 'NestedSequence', 'Optional',
46-
'PyCapsule', 'SupportsBufferProtocol', 'SupportsDLPack', 'Tuple', 'Union',
46+
'PyCapsule', 'SupportsBufferProtocol', 'SupportsDLPack', 'Tuple', 'Union', 'Sequence',
4747
'array', 'device', 'dtype', 'ellipsis', 'finfo_object', 'iinfo_object', 'Enum']

spec/API_specification/signatures/linalg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from ._types import Literal, Optional, Tuple, Union, array
1+
from ._types import Literal, Optional, Tuple, Union, Sequence, array
22
from .constants import inf
3-
from collections.abc import Sequence
43

54
def cholesky(x: array, /, *, upper: bool = False) -> array:
65
"""

spec/API_specification/signatures/linear_algebra_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from ._types import Tuple, Union, array
2-
from collections.abc import Sequence
1+
from ._types import Tuple, Union, Sequence, array
32

43
def matmul(x1: array, x2: array, /) -> array:
54
"""

0 commit comments

Comments
 (0)
0