diff options
| -rw-r--r-- | numpy/__init__.pyi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 892276053..7e38f51a1 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -1076,7 +1076,7 @@ class dtype(Generic[_DTypeScalar_co]): @property def alignment(self) -> int: ... @property - def base(self: _DType) -> _DType: ... + def base(self) -> dtype[Any]: ... @property def byteorder(self) -> str: ... @property @@ -1112,7 +1112,7 @@ class dtype(Generic[_DTypeScalar_co]): @property def ndim(self) -> int: ... @property - def subdtype(self: _DType) -> None | Tuple[_DType, _Shape]: ... + def subdtype(self) -> None | Tuple[dtype[Any], _Shape]: ... def newbyteorder(self: _DType, __new_order: _ByteOrder = ...) -> _DType: ... # Leave str and type for end to avoid having to use `builtins.str` # everywhere. See https://github.com/python/mypy/issues/3775 |
