mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-28 18:02:20 +08:00
fix the named param issue in the autocompletion
This commit is contained in:
@@ -163,7 +163,8 @@ class Script(object):
|
||||
# Allow access on _definition here, because it's a
|
||||
# public API and we don't want to make the internal
|
||||
# Name object public.
|
||||
completions.append((p._definition.get_name(), p))
|
||||
if p._definition.stars == 0: # no *args/**kwargs
|
||||
completions.append((p._definition.get_name(), p))
|
||||
|
||||
if not path and not isinstance(user_stmt, pr.Import):
|
||||
# add keywords
|
||||
|
||||
Reference in New Issue
Block a user