Move get_following_comment_same_line out of the parser tree.
This commit is contained in:
1 parent
cc4681ec54
commit
819e9f607e
3 files changed
+29
-28
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user