Skip to content

Commit 7f66c3d

Browse files
committed
NumPyObject
1 parent 49ce014 commit 7f66c3d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ repos:
5959
hooks:
6060
- id: shellcheck
6161

62-
# - repo: local
63-
# hooks:
64-
# - id: disallow-caps
65-
# name: Disallow improper capitalization
66-
# language: pygrep
67-
# entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
68-
# exclude: .pre-commit-config.yaml
62+
- repo: local
63+
hooks:
64+
- id: disallow-caps
65+
name: Disallow improper capitalization
66+
language: pygrep
67+
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
68+
exclude: .pre-commit-config.yaml
6969

7070
- repo: https://github.com/abravalheri/validate-pyproject
7171
rev: "v0.23"

src/array_api_extra/_apply.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import numpy as np
1616
import numpy.typing as npt
1717

18-
NumpyObject: TypeAlias = npt.NDArray[Any] | np.generic # type: ignore[no-any-explicit]
18+
NumPyObject: TypeAlias = npt.NDArray[Any] | np.generic # type: ignore[no-any-explicit]
1919

2020
from ._lib._compat import (
2121
array_namespace,
@@ -26,7 +26,7 @@
2626

2727

2828
def apply_numpy_func( # type: ignore[no-any-explicit]
29-
func: Callable[..., NumpyObject | Sequence[NumpyObject]],
29+
func: Callable[..., NumPyObject | Sequence[NumPyObject]],
3030
*args: Array,
3131
shapes: Sequence[tuple[int, ...]] | None = None,
3232
dtypes: Sequence[DType] | None = None,
@@ -259,7 +259,7 @@ def apply_numpy_func( # type: ignore[no-any-explicit]
259259

260260

261261
def _npfunc_tuple_output_wrapper( # type: ignore[no-any-explicit] # numpydoc ignore=PR01,RT01
262-
func: Callable[..., NumpyObject | Sequence[NumpyObject]],
262+
func: Callable[..., NumPyObject | Sequence[NumPyObject]],
263263
xp: ModuleType,
264264
) -> Callable[..., tuple[Array, ...]]:
265265
"""
@@ -301,7 +301,7 @@ def wrapper( # type: ignore[no-any-decorated,no-any-explicit]
301301

302302

303303
def _npfunc_single_output_wrapper( # type: ignore[no-any-explicit] # numpydoc ignore=PR01,RT01
304-
func: Callable[..., NumpyObject | Sequence[NumpyObject]],
304+
func: Callable[..., NumPyObject | Sequence[NumPyObject]],
305305
xp: ModuleType,
306306
) -> Callable[..., Array]:
307307
"""

0 commit comments

Comments
 (0)