Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __bool__
Method
__bool__
numpy/core/_internal.py:648–649 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
646
return
self.s[0]
647
648
def
__bool__(self):
649
return
bool(self.s)
650
651
652
def
_dtype_from_pep3118(spec):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected