Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __float__
Method
__float__
numpy/typing/tests/data/pass/scalars.py:33–34 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
31
32
class
A:
33
def
__float__(self) -> float:
34
return
4.0
35
36
37
np.complex64(3j)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected