summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astroid/inference.py3
-rw-r--r--astroid/protocols.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/astroid/inference.py b/astroid/inference.py
index f01523ee..f66b1b63 100644
--- a/astroid/inference.py
+++ b/astroid/inference.py
@@ -735,8 +735,7 @@ def _infer_binary_operation(left, right, binary_opnode, context, flow_factory):
yield util.Uninferable
return
- for result in results:
- yield result
+ yield from results
return
# The operation doesn't seem to be supported so let the caller know about it
yield util.BadBinaryOperationMessage(left_type, binary_opnode.op, right_type)
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 7b8834e5..0776f146 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -337,8 +337,7 @@ def _arguments_infer_argname(self, name, context):
if context and context.callcontext:
call_site = arguments.CallSite(context.callcontext, context.extra_context)
- for value in call_site.infer_argument(self.parent, name, context):
- yield value
+ yield from call_site.infer_argument(self.parent, name, context)
return
if name == self.vararg: