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 72ee717 commit 88de05aCopy full SHA for 88de05a
bpython/autocomplete.py
@@ -571,15 +571,15 @@ def matches(
571
r = self.locate(cursor_offset, line)
572
if r is None:
573
return None
574
- if argspec:
575
- matches = {
576
- f"{name}="
577
- for name in argspec[1][0]
578
- if isinstance(name, str) and name.startswith(r.word)
579
- }
580
- matches.update(
581
- name + "=" for name in argspec[1][4] if name.startswith(r.word)
582
- )
+
+ matches = {
+ f"{name}="
+ for name in argspec[1][0]
+ if isinstance(name, str) and name.startswith(r.word)
+ }
+ matches.update(
+ name + "=" for name in argspec[1][4] if name.startswith(r.word)
+ )
583
return matches if matches else None
584
585
def locate(self, cursor_offset: int, line: str) -> Optional[LinePart]:
0 commit comments