mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
generators can now be indexed, don't know if this is a good thing. however, it fixes some problems with lists
This commit is contained in:
@@ -160,6 +160,7 @@ def complete(source, row, column, source_path):
|
||||
if not isinstance(s, evaluate.Function):
|
||||
completions += s.get_defined_names()
|
||||
|
||||
#completions[0].
|
||||
completions = [c for c in completions
|
||||
if c.names[-1].lower().startswith(like.lower())]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user