MCPcopy Create free account
hub / github.com/bpython/bpython / __getitem__

Method __getitem__

bpython/patch_linecache.py:39–42  ·  view source on GitHub ↗
(self, key: Any)

Source from the content-addressed store, hash-verified

37 return filename
38
39 def __getitem__(self, key: Any) -> Any:
40 if self.is_bpython_filename(key):
41 return self.get_bpython_history(key)
42 return super().__getitem__(key)
43
44 def __contains__(self, key: Any) -> bool:
45 if self.is_bpython_filename(key):

Callers

nothing calls this directly

Calls 2

is_bpython_filenameMethod · 0.95
get_bpython_historyMethod · 0.95

Tested by

no test coverage detected