コード例 #1
0
 def iter_content(self):
     """ returns the content of __iter__ """
     # Directly execute it, because with a normal call to py__call__ a
     # Generator will be returned.
     from jedi.evaluate.representation import FunctionExecution
     f = FunctionExecution(self._evaluator, self.func, self.var_args)
     return f.get_return_types(check_yields=True)
コード例 #2
0
ファイル: iterable.py プロジェクト: yxzoro/sublime-Python-IDE
 def iter_content(self):
     """ returns the content of __iter__ """
     # Directly execute it, because with a normal call to py__call__ a
     # Generator will be returned.
     from jedi.evaluate.representation import FunctionExecution
     f = FunctionExecution(self._evaluator, self.func, self.var_args)
     return f.get_return_types(check_yields=True)
コード例 #3
0
ファイル: iterable.py プロジェクト: imdone/nuclide
 def py__iter__(self):
     from jedi.evaluate.representation import FunctionExecution
     f = FunctionExecution(self._evaluator, self.func, self.var_args)
     return f.get_yield_types()
コード例 #4
0
ファイル: iterable.py プロジェクト: DonJayamanne/jedi
 def py__iter__(self):
     from jedi.evaluate.representation import FunctionExecution
     f = FunctionExecution(self._evaluator, self.func, self.var_args)
     return f.get_yield_types()