mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix stub conversion
This commit is contained in:
@@ -100,10 +100,18 @@ def _python_to_stub_names(names, fallback_to_python=False):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if name.api_type == 'module':
|
if name.api_type == 'module':
|
||||||
values = convert_values(name.infer(), only_stubs=True)
|
found_name = False
|
||||||
if values:
|
for n in name.goto():
|
||||||
|
if n.api_type == 'module':
|
||||||
|
values = convert_values(n.infer(), only_stubs=True)
|
||||||
for v in values:
|
for v in values:
|
||||||
yield v.name
|
yield v.name
|
||||||
|
found_name = True
|
||||||
|
else:
|
||||||
|
for x in _python_to_stub_names([n], fallback_to_python=fallback_to_python):
|
||||||
|
yield x
|
||||||
|
found_name = True
|
||||||
|
if found_name:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
v = name.get_defining_qualified_value()
|
v = name.get_defining_qualified_value()
|
||||||
|
|||||||
Reference in New Issue
Block a user