Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b0a9e4

Browse filesBrowse files
committed
Add ignores
Signed-off-by: nstarman <nstarkman@protonmail.com>
1 parent 1aa833f commit 6b0a9e4
Copy full SHA for 6b0a9e4

File tree

Expand file treeCollapse file tree

3 files changed

+20
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+20
-3
lines changed

‎.pre-commit-config.yaml

Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+18Lines changed: 18 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/_types.py
-1Lines changed: 0 additions & 1 deletion
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

Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/array_object.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.