We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60baf5e commit 9465700Copy full SHA for 9465700
bpython/curtsiesfrontend/repl.py
@@ -814,16 +814,14 @@ def process_key_event(self, e: str) -> None:
814
else:
815
self.add_normal_character(e)
816
817
- def is_closing_quote(self, e):
+ def is_closing_quote(self, e: str) -> bool:
818
char_count = self._current_line.count(e)
819
- if (
+ return (
820
char_count % 2 == 0
821
and cursor_on_closing_char_pair(
822
self._cursor_offset, self._current_line, e
823
)[0]
824
- ):
825
- return True
826
- return False
+ )
827
828
def insert_char_pair_start(self, e):
829
"""Accepts character which is a part of CHARACTER_PAIR_MAP
0 commit comments