summaryrefslogtreecommitdiff
path: root/astroid/rebuilder.py
diff options
context:
space:
mode:
authorAshley Whetter <AWhetter@users.noreply.github.com>2019-05-14 02:56:00 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2019-05-14 11:56:00 +0200
commit7bb86ab8444b80da30507bcf6cb58d197537e17d (patch)
treea56cca6f7e62f1258d0cf1fd3324badba98ab347 /astroid/rebuilder.py
parente0a298df55b15abcb77c2a93253f5ab7be52d0fb (diff)
downloadastroid-git-7bb86ab8444b80da30507bcf6cb58d197537e17d.tar.gz
Can access per argument type comments (#667)
Close #665
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r--astroid/rebuilder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py
index 1b313ee2..c18893d8 100644
--- a/astroid/rebuilder.py
+++ b/astroid/rebuilder.py
@@ -220,6 +220,7 @@ class TreeRebuilder:
kw_defaults = []
annotations = []
kwonlyargs_annotations = []
+ type_comment_args = [self.check_type_comment(child) for child in node.args]
newnode.postinit(
args=args,
@@ -230,6 +231,7 @@ class TreeRebuilder:
kwonlyargs_annotations=kwonlyargs_annotations,
varargannotation=varargannotation,
kwargannotation=kwargannotation,
+ type_comment_args=type_comment_args,
)
# save argument names in locals:
if vararg: