MCPcopy Index your code
hub / github.com/ipython/ipython / index

Method index

tests/test_guarded_eval.py:950–951  ·  view source on GitHub ↗
(self, k)

Source from the content-addressed store, hash-verified

948def test_unbind_method():
949 class X(list):
950 def index(self, k):
951 return "CUSTOM"
952
953 x = X()
954 assert _unbind_method(x.index) is X.index

Callers 14

systemMethod · 0.80
accept_tokenFunction · 0.80
set_modeMethod · 0.80
match_dict_keysFunction · 0.80
magic_config_matchesMethod · 0.80
_pngxyFunction · 0.80
configMethod · 0.80
patch_functionMethod · 0.80
expect_tokenFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected