Skip to content

Commit

Permalink
Add ignores
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarkman@protonmail.com>
  • Loading branch information
nstarman committed Mar 1, 2023
1 parent 1aa833f commit 6b0a9e4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,21 @@ repos:
additional_dependencies: [typing_extensions>=4.4.0]
args:
- --ignore-missing-imports
- --config=pyproject.toml
files: ".*(_draft.*)$"
exclude: |
(?x)^(
.*creation_functions.py|
.*data_type_functions.py|
.*elementwise_functions.py|
.*fft.py|
.*indexing_functions.py|
.*linalg.py|
.*linear_algebra_functions.py|
.*manipulation_functions.py|
.*searching_functions.py|
.*set_functions.py|
.*sorting_functions.py|
.*statistical_functions.py|
.*utility_functions.py|
)$
1 change: 0 additions & 1 deletion src/array_api_stubs/_draft/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def __len__(self, /) -> int:
...



__all__ = [
"Any",
"List",
Expand Down
4 changes: 2 additions & 2 deletions src/array_api_stubs/_draft/array_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def dtype(self) -> DType:
...

@property
def device(self) -> Device:
def device(self) -> Device: # type: ignore[type-var]
"""
Hardware device the array data resides on.
Expand Down Expand Up @@ -295,7 +295,7 @@ def __complex__(self, /) -> complex:

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

0 comments on commit 6b0a9e4

Please sign in to comment.