MCPcopy
hub / github.com/pallets/click / edit

Method edit

src/click/_termui_impl.py:717–717  ·  src/click/_termui_impl.py::Editor.edit
(self, text: bytes | bytearray)

Source from the content-addressed store, hash-verified

715
716 @t.overload
717 def edit(self, text: bytes | bytearray) -> bytes | None: ...
718
719 class="cm"># We cannot know whether or not the type expected is str or bytes when None
720 class="cm"># is passed, so str is returned as that was what was done before.

Callers 5

editFunction · 0.95
test_fast_editFunction · 0.80
test_editFunction · 0.80
commitFunction · 0.80
editFunction · 0.80

Calls 4

edit_filesMethod · 0.95
openFunction · 0.85
readMethod · 0.80
writeMethod · 0.45

Tested by 2

test_fast_editFunction · 0.64
test_editFunction · 0.64