mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-10 05:52:22 +08:00
Comprehension lookups are now more precise.
This commit is contained in:
@@ -61,7 +61,7 @@ class GeneratorMixin(object):
|
||||
Exact lookups are used for tuple lookups, which are perfectly fine if
|
||||
used with generators.
|
||||
"""
|
||||
return set([list(self.iter_content())[index]])
|
||||
return list(self.py__iter__())[index]
|
||||
|
||||
def py__bool__(self):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user