From ad536a837c60a60b9d15c67fbf112db97ae80d31 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 28 Apr 2017 18:29:35 +0200 Subject: [PATCH] A small change. --- jedi/parser/python/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/parser/python/tree.py b/jedi/parser/python/tree.py index b87d4bfe..5ca944a2 100644 --- a/jedi/parser/python/tree.py +++ b/jedi/parser/python/tree.py @@ -101,7 +101,7 @@ class PythonMixin(object): def get_name_of_position(self, position): for c in self.children: if isinstance(c, Leaf): - if isinstance(c, Name) and c.start_pos <= position <= c.end_pos: + if c.type == 'name' and c.start_pos <= position <= c.end_pos: return c else: result = c.get_name_of_position(position)