1
0
forked from VimPlug/jedi

Yield expressions are now separate form ReturnStmt.

This commit is contained in:
Dave Halter
2014-10-29 18:54:05 +01:00
parent 71c3d34965
commit f09ff04fcc
3 changed files with 15 additions and 5 deletions

View File

@@ -512,7 +512,7 @@ class Function(use_metaclass(CachedMetaClass, Wrapper)):
@Python3Method
def py__call__(self, evaluator, params):
if self.is_generator:
if self.base.is_generator():
return [iterable.Generator(evaluator, self, params)]
else:
return FunctionExecution(evaluator, self, params).get_return_types()