1
0
forked from VimPlug/jedi

Get iter() working and a lot of other typeshed reverse engineering of type vars

This commit is contained in:
Dave Halter
2018-09-16 02:19:29 +02:00
parent 6807e3b6d5
commit 5d9f29743c
5 changed files with 158 additions and 22 deletions

View File

@@ -169,7 +169,7 @@ class FunctionExecutionContext(TreeContext):
returns = get_yield_exprs(self.evaluator, funcdef)
else:
returns = funcdef.iter_return_stmts()
context_set = pep0484.infer_return_types(self.function_context)
context_set = pep0484.infer_return_types(self)
if context_set:
# If there are annotations, prefer them over anything else.
# This will make it faster.