Open kkew3 opened 5 years ago
yeap, it's common issue with building functions due to how they described in python
But I closed it too fast.
I have found this in logs:
2019-03-14 21:28:00,276 DEBUG - Jedi - Python autocompletion.sublime_jedi.facade:44 - get_function_parameters() - Parameter: (<class 'jedi.evaluate.compiled.context.SignatureParamName'>, <_ParameterKind: 'POSITIONAL_ONLY'>, 'iterable', 'param iterable')
2019-03-14 21:28:00,276 DEBUG - Jedi - Python autocompletion.sublime_jedi.facade:44 - get_function_parameters() - Parameter: (<class 'jedi.evaluate.compiled.context.SignatureParamName'>, <_ParameterKind: 'KEYWORD_ONLY'>, 'key', 'param key')
2019-03-14 21:28:00,276 DEBUG - Jedi - Python autocompletion.sublime_jedi.facade:44 - get_function_parameters() - Parameter: (<class 'jedi.evaluate.compiled.context.SignatureParamName'>, <_ParameterKind: 'KEYWORD_ONLY'>, 'reverse', 'param reverse')
Looks like it's possible to try to guess what is keyword was is not
When I type
sorted
, Jedi suggests the builtinsorted
function as:However, the auto-completion regards
key
as a positional argument (usingauto_complete_function_params
"required", already restarted ST after setting the option):which is apparently incorrect as Python complains: