8000 MAINT: Set a number of `None`-based return types · constanzafierro/numpy@888ffb0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 888ffb0

Browse files
author
Bas van Beek
committed
MAINT: Set a number of None-based return types
1 parent bb74592 commit 888ffb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/__init__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,11 +1727,11 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
17271727
@property
17281728
def shape(self) -> _Shape: ...
17291729
@shape.setter
1730-
def shape(self, value: _ShapeLike): ...
1730+
def shape(self, value: _ShapeLike) -> None: ...
17311731
@property
17321732
def strides(self) -> _Shape: ...
17331733
@strides.setter
1734-
def strides(self, value: _ShapeLike): ...
1734+
def strides(self, value: _ShapeLike) -> None: ...
17351735
def byteswap(self: _ArraySelf, inplace: bool = ...) -> _ArraySelf: ...
17361736
def fill(self, value: Any) -> None: ...
17371737
@property
@@ -3132,7 +3132,7 @@ longcomplex = complexfloating[_NBitLongDouble, _NBitLongDouble]
31323132
class flexible(generic): ... # type: ignore
31333133

31343134
class void(flexible):
3135-
def __init__(self, __value: Union[_IntLike_co, bytes]): ...
3135+
def __init__(self, __value: Union[_IntLike_co, bytes]) -> None: ...
31363136
@property
31373137
def real(self: _ArraySelf) -> _ArraySelf: ...
31383138
@property

0 commit comments

Comments
 (0)
0