Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __pow__
Method
__pow__
numpy/core/tests/test_multiarray.py:4059–4060 ·
view source on GitHub ↗
(self, exp)
Source
from the content-addressed store, hash-verified
4057
raise
AssertionError(
'__div__ should not be called'
)
4058
4059
def
__pow__(self, exp):
4060
return
SomeClass(num=self.num ** exp)
4061
4062
def
__eq__(self, other):
4063
if
isinstance(other, SomeClass):
Callers
nothing calls this directly
Calls
1
SomeClass
Class · 0.85
Tested by
no test coverage detected