mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
*args/**kwargs without call, fixes #235
This commit is contained in:
@@ -258,6 +258,13 @@ def find_name(scope, name_str, position=None, search_global=False,
|
|||||||
|
|
||||||
if not r.is_generated:
|
if not r.is_generated:
|
||||||
res_new += dynamic.search_params(r)
|
res_new += dynamic.search_params(r)
|
||||||
|
if not res_new:
|
||||||
|
c = r.get_commands()[0]
|
||||||
|
if c in ('*', '**'):
|
||||||
|
t = 'tuple' if c == '*' else 'dict'
|
||||||
|
res_new = [er.Instance(
|
||||||
|
find_name(builtin.Builtin.scope, t)[0])
|
||||||
|
]
|
||||||
if not r.assignment_details:
|
if not r.assignment_details:
|
||||||
# this means that there are no default params,
|
# this means that there are no default params,
|
||||||
# so just ignore it.
|
# so just ignore it.
|
||||||
|
|||||||
Reference in New Issue
Block a user