Skip to content

Commit 6379138

Browse files
committed
Rename numpy/_array_api/_types.py to numpy/_array_api/_typing.py
1 parent 60add4a commit 6379138

9 files changed

+8
-8
lines changed

numpy/_array_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
argument of an operation is a 0-d array.
8585
8686
- All functions include type annotations, corresponding to those given in the
87-
spec (see _types.py for definitions of some custom types). These do not
87+
spec (see _typing.py for definitions of some custom types). These do not
8888
currently fully pass mypy due to some limitations in mypy.
8989
9090
- Dtype objects are just the NumPy dtype objects, e.g., float64 =

numpy/_array_api/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from typing import TYPE_CHECKING
2424
if TYPE_CHECKING:
25-
from ._types import Any, Optional, PyCapsule, Tuple, Union, Device, Dtype
25+
from ._typing import Any, Optional, PyCapsule, Tuple, Union, Device, Dtype
2626

2727
import numpy as np
2828

numpy/_array_api/_creation_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from typing import TYPE_CHECKING, List, Optional, Tuple, Union
55
if TYPE_CHECKING:
6-
from ._types import (NestedSequence, SupportsDLPack,
6+
from ._typing import (NestedSequence, SupportsDLPack,
77
SupportsBufferProtocol, Array, Device, Dtype)
88
from collections.abc import Sequence
99
from ._dtypes import _all_dtypes

numpy/_array_api/_data_type_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from dataclasses import dataclass
66
from typing import TYPE_CHECKING
77
if TYPE_CHECKING:
8-
from ._types import List, Tuple, Union, Dtype
8+
from ._typing import List, Tuple, Union, Dtype
99
from collections.abc import Sequence
1010

1111
import numpy as np

numpy/_array_api/_searching_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import TYPE_CHECKING
66
if TYPE_CHECKING:
7-
from ._types import Tuple
7+
from ._typing import Tuple
88

99
import numpy as np
1010

numpy/_array_api/_set_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import TYPE_CHECKING
66
if TYPE_CHECKING:
7-
from ._types import Tuple, Union
7+
from ._typing import Tuple, Union
88

99
import numpy as np
1010

numpy/_array_api/_statistical_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import TYPE_CHECKING
66
if TYPE_CHECKING:
7-
from ._types import Optional, Tuple, Union
7+
from ._typing import Optional, Tuple, Union
88

99
import numpy as np
1010

File renamed without changes.

numpy/_array_api/_utility_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import TYPE_CHECKING
66
if TYPE_CHECKING:
7-
from ._types import Optional, Tuple, Union
7+
from ._typing import Optional, Tuple, Union
88

99
import numpy as np
1010

0 commit comments

Comments
 (0)