diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-09-09 00:16:44 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-09-09 00:16:44 +0300 |
commit | 304873ad1bbd70af63ef93fdf8679a9dcdc7419e (patch) | |
tree | d808fb36ffbebc60d8fab30be000bd7a498263a7 /astroid/inference.py | |
parent | 59cf61033937cdcadf355095f588d8b744f55dad (diff) | |
download | astroid-304873ad1bbd70af63ef93fdf8679a9dcdc7419e.tar.gz |
Improve the understanding of arguments
This changeset introduces a better way to understand arguments
passed into call sites. The original logic was moved from
astroid.context.CallContext, which become only a container for
arguments and keyword arguments, to astroid.arguments.ArgumentInferator,
a new class for understanding arguments.
Diffstat (limited to 'astroid/inference.py')
-rw-r--r-- | astroid/inference.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index 3cc0149..148c8cd 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -666,6 +666,7 @@ def infer_assign(self, context=None): stmt = self.statement() if isinstance(stmt, nodes.AugAssign): return stmt.infer(context) + stmts = list(self.assigned_stmts(context=context)) return bases._infer_stmts(stmts, context) nodes.AssignName._infer = infer_assign |