summaryrefslogtreecommitdiff
path: root/astroid/rebuilder.py
diff options
context:
space:
mode:
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: