We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numpy.bool.__index__
1 parent 4c11cc6 commit 38814d9Copy full SHA for 38814d9
numpy/__init__.pyi
@@ -3292,7 +3292,8 @@ class bool(_RealMixin, generic):
3292
def __init__(self, value: object = ..., /) -> None: ...
3293
def item(self, args: L[0] | tuple[()] | tuple[L[0]] = ..., /) -> builtins.bool: ...
3294
def tolist(self) -> builtins.bool: ...
3295
-
+ @deprecated("In future, it will be an error for 'np.bool' scalars to be interpreted as an index")
3296
+ def __index__(self, /) -> int: ...
3297
def __abs__(self) -> Self: ...
3298
__add__: _BoolOp[np.bool]
3299
__radd__: _BoolOp[np.bool]
0 commit comments