diff options
Diffstat (limited to 'astroid/inference.py')
-rw-r--r-- | astroid/inference.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index f77ad19a..e0f93b0d 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -725,12 +725,10 @@ def _infer_augassign(self, context=None): return try: - results = _infer_binary_operation(lhs, rhs, self, context, _get_aug_flow) + for result in _infer_binary_operation(lhs, rhs, self, context, _get_aug_flow): + yield result except exceptions._NonDeducibleTypeHierarchy: yield util.Uninferable - else: - for result in results: - yield result @decorators.path_wrapper |