Move get_following_comment_same_line out of the parser tree.

This commit is contained in:
Dave Halter committed 2017-04-27 08:56:11 +02:00
1 parent cc4681ec54
commit 819e9f607e
3 files changed
+29 -28

No files matched your search

+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)