Get rid of get_parent_until.
This commit is contained in:
1 parent
b3cb7b5490
commit
445bf6c419
9 files changed
+15
-30
No files matched your search
+1
-1
@@ -299,7 +299,7 @@ def cache_call_signatures(evaluator, context, bracket_leaf, code_lines, user_pos
|
||||
whole = '\n'.join(other_lines + [before_cursor])
|
||||
before_bracket = re.match(r'.*\(', whole, re.DOTALL)
|
||||
|
||||
module_path = bracket_leaf.get_parent_until().path
|
||||
module_path = bracket_leaf.get_root_node().path
|
||||
if module_path is None:
|
||||
yield None # Don't cache!
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user