File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -745,13 +745,14 @@ def _populate_completion(self):
745
745
widget_list .pop ()
746
746
# This is just me flailing around wildly. TODO: actually write.
747
747
if self .complete ():
748
- if self .argspec :
748
+ if self .funcprops :
749
749
# This is mostly just stolen from the cli module.
750
- func_name , args , is_bound , in_arg = self .argspec
750
+ func_name , args , is_bound = self .funcprops
751
+ in_arg = self .arg_pos
751
752
args , varargs , varkw , defaults = args [:4 ]
752
753
if py3 :
753
- kwonly = self .argspec [ 1 ][ 4 ]
754
- kwonly_defaults = self .argspec [ 1 ][ 5 ] or {}
754
+ kwonly = self .funcprops . argspec . kwonly
755
+ kwonly_defaults = self .funcprops . argspec . kwonly_defaults or {}
755
756
else :
756
757
kwonly , kwonly_defaults = [], {}
757
758
markup = [('bold name' , func_name ),
You can’t perform that action at this time.
0 commit comments