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 167fc26 commit 0c40b67Copy full SHA for 0c40b67
bpython/autocomplete.py
@@ -715,17 +715,15 @@ def matches(
715
) -> Optional[Set]:
716
if current_block is None or history is None:
717
return None
718
-
719
- if "\n" in current_block:
720
- assert cursor_offset <= len(line), "{!r} {!r}".format(
721
- cursor_offset,
722
- line,
723
- )
724
- results = super().matches(cursor_offset, line, history=history)
725
- return results
726
- else:
+ if "\n" not in current_block:
727
728
+ assert cursor_offset <= len(line), "{!r} {!r}".format(
+ cursor_offset,
+ line,
+ )
+ return super().matches(cursor_offset, line, history=history)
+
729
730
def get_completer(
731
completers: Sequence[BaseCompletionType],
0 commit comments