Move get_following_comment_same_line out of the parser tree.

This commit is contained in:
Dave Halter
2017-04-27 08:56:11 +02:00
parent cc4681ec54
commit 819e9f607e
3 changed files with 29 additions and 28 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ def _find_type_from_comment_hint(context, node, varlist, name):
else:
return []
comment = node.get_following_comment_same_line()
comment = parser_utils.get_following_comment_same_line(node)
if comment is None:
return []
match = re.match(r"^#\s*type:\s*([^#]*)", comment)