MCPcopy Create free account
hub / github.com/numpy/numpy / __int__

Method __int__

numpy/core/tests/test_multiarray.py:8796–8797  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8794
8795 class NotConvertible:
8796 def __int__(self):
8797 raise NotImplementedError
8798 assert_raises(NotImplementedError,
8799 int_func, np.array(NotConvertible()))
8800 with assert_warns(DeprecationWarning):

Callers 1

test_to_int_scalarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected