forked from VimPlug/jedi
line and column return None in case of builtin module, fixes #221
This commit is contained in:
@@ -192,11 +192,15 @@ class BaseDefinition(object):
|
|||||||
@property
|
@property
|
||||||
def line(self):
|
def line(self):
|
||||||
"""The line where the definition occurs (starting with 1)."""
|
"""The line where the definition occurs (starting with 1)."""
|
||||||
|
if self.in_builtin_module:
|
||||||
|
return None
|
||||||
return self.start_pos[0]
|
return self.start_pos[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def column(self):
|
def column(self):
|
||||||
"""The column where the definition occurs (starting with 0)."""
|
"""The column where the definition occurs (starting with 0)."""
|
||||||
|
if self.in_builtin_module:
|
||||||
|
return None
|
||||||
return self.start_pos[1]
|
return self.start_pos[1]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user