MCPcopy Create free account
hub / github.com/pybind/pybind11 / RaisingValueErrorOnIndex

Class RaisingValueErrorOnIndex

tests/test_builtin_casters.py:280–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 return 42
279
280 class RaisingValueErrorOnIndex:
281 def __index__(self):
282 raise ValueError
283
284 def __int__(self):
285 return 42
286
287 convert, noconvert = m.int_passthrough, m.int_passthrough_noconvert
288

Callers 1

test_int_convertFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_int_convertFunction · 0.68