X Tutup
Skip to content

Commit 04a14d7

Browse files
committed
Fix #263 by returning no import completion results unless modules are fully loaded
1 parent 51dfc1c commit 04a14d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/importcompletion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def complete(line, cw):
5353
if not cw:
5454
return None
5555

56+
if not fully_loaded:
57+
return []
58+
5659
tokens = line.split()
5760
if tokens[0] not in ['from', 'import']:
5861
return None

0 commit comments

Comments
 (0)
X Tutup