mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +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
|
Exact lookups are used for tuple lookups, which are perfectly fine if
|
||||||
used with generators.
|
used with generators.
|
||||||
"""
|
"""
|
||||||
return set([list(self.iter_content())[index]])
|
return list(self.py__iter__())[index]
|
||||||
|
|
||||||
def py__bool__(self):
|
def py__bool__(self):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user