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

Method __getitem__

bpython/curtsiesfrontend/manual_readline.py:74–79  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

72 return key in self.simple_edits or key in self.cut_buffer_edits
73
74 def __getitem__(self, key):
75 if key in self.simple_edits:
76 return self.simple_edits[key]
77 if key in self.cut_buffer_edits:
78 return self.cut_buffer_edits[key]
79 raise KeyError(f"key {key!r} not mapped")
80
81 def __delitem__(self, key):
82 if key in self.simple_edits:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected