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

Method is_closing_quote

bpython/curtsiesfrontend/repl.py:824–831  ·  view source on GitHub ↗
(self, e: str)

Source from the content-addressed store, hash-verified

822 self.add_normal_character(e)
823
824 def is_closing_quote(self, e: str) -> bool:
825 char_count = self._current_line.count(e)
826 return (
827 char_count % 2 == 0
828 and cursor_on_closing_char_pair(
829 self._cursor_offset, self._current_line, e
830 )[0]
831 )
832
833 def insert_char_pair_start(self, e):
834 """Accepts character which is a part of CHARACTER_PAIR_MAP

Callers 1

process_key_eventMethod · 0.95

Calls 1

Tested by

no test coverage detected