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