Fix star import completions, fixes #2087

This commit is contained in:
Dave Halter
2026-04-27 16:10:56 +02:00
parent 83a232e945
commit 40c685c52b
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -858,3 +858,12 @@ def test_custom__getitem__(class_is_findable, allow_unsafe_getattr):
else:
expected = ['upper']
_assert_interpreter_complete('c["a"].up', namespace, expected)
def test_star_import_completions():
# From #2087
completions = jedi.Interpreter("from json import *\ndum", []).complete(2, 3)
names = [c.name for c in completions]
assert 'dump' in names
assert 'dumps' in names