forked from VimPlug/jedi
__file__ should be listed as a module attribute.
This commit is contained in:
@@ -71,7 +71,6 @@ class GeneratorMixin(object):
|
||||
return [self.iter_content()[index]]
|
||||
|
||||
|
||||
|
||||
class Generator(use_metaclass(CachedMetaClass, IterableWrapper, GeneratorMixin)):
|
||||
"""Handling of `yield` functions."""
|
||||
def __init__(self, evaluator, func, var_args):
|
||||
@@ -155,7 +154,6 @@ class ListComprehension(Comprehension):
|
||||
return self._evaluator.eval_element(self.eval_node())
|
||||
|
||||
|
||||
|
||||
class GeneratorComprehension(Comprehension, GeneratorMixin):
|
||||
def iter_content(self):
|
||||
return self._evaluator.eval_element(self.eval_node())
|
||||
|
||||
Reference in New Issue
Block a user