Skip to content

Commit 6b0a9e4

Browse files
committed
Add ignores
Signed-off-by: nstarman <[email protected]>
1 parent 1aa833f commit 6b0a9e4

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.pre-commit-config.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,21 @@ repos:
66
additional_dependencies: [typing_extensions>=4.4.0]
77
args:
88
- --ignore-missing-imports
9+
- --config=pyproject.toml
10+
files: ".*(_draft.*)$"
11+
exclude: |
12+
(?x)^(
13+
.*creation_functions.py|
14+
.*data_type_functions.py|
15+
.*elementwise_functions.py|
16+
.*fft.py|
17+
.*indexing_functions.py|
18+
.*linalg.py|
19+
.*linear_algebra_functions.py|
20+
.*manipulation_functions.py|
21+
.*searching_functions.py|
22+
.*set_functions.py|
23+
.*sorting_functions.py|
24+
.*statistical_functions.py|
25+
.*utility_functions.py|
26+
)$

src/array_api_stubs/_draft/_types.py

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def __len__(self, /) -> int:
6868
...
6969

7070

71-
7271
__all__ = [
7372
"Any",
7473
"List",

src/array_api_stubs/_draft/array_object.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def dtype(self) -> DType:
3434
...
3535

3636
@property
37-
def device(self) -> Device:
37+
def device(self) -> Device: # type: ignore[type-var]
3838
"""
3939
Hardware device the array data resides on.
4040
@@ -295,7 +295,7 @@ def __complex__(self, /) -> complex:
295295

296296
def __dlpack__(
297297
self, /, *, stream: int | Any | None = None
298-
) -> PyCapsule:
298+
) -> PyCapsule: # type: ignore[type-var]
299299
"""
300300
Exports the array for consumption by :func:`~array_api.from_dlpack` as a DLPack capsule.
301301

0 commit comments

Comments
 (0)