summaryrefslogtreecommitdiff
path: root/numpy/typing/_array_like.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-11-03 09:05:52 -0600
committerGitHub <noreply@github.com>2020-11-03 09:05:52 -0600
commit4c83c0444c68b89b051f7ef8d8eb1a2276439d78 (patch)
tree96303e2aa21c616b6a2379489e83ad47371aeeed /numpy/typing/_array_like.py
parent9dca4085c724b3e62d54dee33e42ebdba3bb975c (diff)
parentc4684bb542db2690e678d22bf32745e484ef04e3 (diff)
downloadnumpy-4c83c0444c68b89b051f7ef8d8eb1a2276439d78.tar.gz
Merge pull request #17699 from BvB93/DTypeLike
MAINT: Rename `DtypeLike` to `DTypeLike`
Diffstat (limited to 'numpy/typing/_array_like.py')
-rw-r--r--numpy/typing/_array_like.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/typing/_array_like.py b/numpy/typing/_array_like.py
index 1c00b200f..a1a604239 100644
--- a/numpy/typing/_array_like.py
+++ b/numpy/typing/_array_like.py
@@ -3,7 +3,7 @@ from typing import Any, overload, Sequence, TYPE_CHECKING, Union
from numpy import ndarray
from ._scalars import _ScalarLike
-from ._dtype_like import DtypeLike
+from ._dtype_like import DTypeLike
if sys.version_info >= (3, 8):
from typing import Protocol
@@ -19,9 +19,9 @@ else:
if TYPE_CHECKING or HAVE_PROTOCOL:
class _SupportsArray(Protocol):
@overload
- def __array__(self, __dtype: DtypeLike = ...) -> ndarray: ...
+ def __array__(self, __dtype: DTypeLike = ...) -> ndarray: ...
@overload
- def __array__(self, dtype: DtypeLike = ...) -> ndarray: ...
+ def __array__(self, dtype: DTypeLike = ...) -> ndarray: ...
else:
_SupportsArray = Any