mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-01 00:12:20 +08:00
Actual forward reference annotations are working pretty smooth now.
This commit is contained in:
@@ -322,12 +322,10 @@ class Script(object):
|
||||
|
||||
@memoize_default()
|
||||
def _get_under_cursor_stmt(self, cursor_txt, start_pos=None):
|
||||
node = Parser(self._grammar, cursor_txt, 'eval_input').get_parsed_node()
|
||||
if node is None:
|
||||
stmt = Parser(self._grammar, cursor_txt, 'eval_input').get_parsed_node()
|
||||
if stmt is None:
|
||||
return None
|
||||
|
||||
stmt = node.children[0]
|
||||
|
||||
user_stmt = self._parser.user_stmt()
|
||||
if user_stmt is None:
|
||||
# Set the start_pos to a pseudo position, that doesn't exist but
|
||||
|
||||
Reference in New Issue
Block a user