summaryrefslogtreecommitdiff
path: root/numpy/typing/_array_like.py
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2020-11-03 13:08:58 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2020-11-03 13:18:33 +0100
commitc4684bb542db2690e678d22bf32745e484ef04e3 (patch)
treecdf35b7053a3a447ca9bbf63a10fb51931378915 /numpy/typing/_array_like.py
parent671e8a02aeed0e823e9380557cad3c20ba30a3cb (diff)
downloadnumpy-c4684bb542db2690e678d22bf32745e484ef04e3.tar.gz
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