Skip to content

Commit 3a727ae

Browse files
committed
TYP: Remove non-existant __bytes__ method from numpy.generic
1 parent dbc2fb4 commit 3a727ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,6 @@ class _ArrayOrScalarCommon:
13991399
def __bool__(self, /) -> builtins.bool: ...
14001400
def __int__(self, /) -> int: ...
14011401
def __float__(self, /) -> float: ...
1402-
def __bytes__(self) -> bytes: ...
14031402
def __str__(self) -> str: ...
14041403
def __repr__(self) -> str: ...
14051404
def __copy__(self) -> Self: ...
@@ -3895,6 +3894,7 @@ class bytes_(character, bytes):
38953894
def __init__(
38963895
self, value: str, /, encoding: str = ..., errors: str = ...
38973896
) -> None: ...
3897+
def __bytes__(self, /) -> bytes: ...
38983898
def item(
38993899
self, args: L[0] | tuple[()] | tuple[L[0]] = ..., /,
39003900
) -> bytes: ...

0 commit comments

Comments
 (0)