mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-19 21:07:05 +08:00
Comprehension lookups are now more precise.
This commit is contained in:
1 parent
306d274a3d
commit
f1c827821b
1 file changed
+1
-1
@@ -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