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 6586815 commit de6e387Copy full SHA for de6e387
1 file changed
bpython/urwid.py
@@ -745,13 +745,14 @@ def _populate_completion(self):
745
widget_list.pop()
746
# This is just me flailing around wildly. TODO: actually write.
747
if self.complete():
748
- if self.argspec:
+ if self.funcprops:
749
# This is mostly just stolen from the cli module.
750
- func_name, args, is_bound, in_arg = self.argspec
+ func_name, args, is_bound = self.funcprops
751
+ in_arg = self.arg_pos
752
args, varargs, varkw, defaults = args[:4]
753
if py3:
- kwonly = self.argspec[1][4]
754
- kwonly_defaults = self.argspec[1][5] or {}
+ kwonly = self.funcprops.argspec.kwonly
755
+ kwonly_defaults = self.funcprops.argspec.kwonly_defaults or {}
756
else:
757
kwonly, kwonly_defaults = [], {}
758
markup = [('bold name', func_name),
0 commit comments