mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-17 01:31:25 +08:00
line and column return None in case of builtin module, fixes #221
This commit is contained in:
1 parent
cf4325cef1
commit
ba9ba7c1fe
1 file changed
+4
@@ -192,11 +192,15 @@ class BaseDefinition(object):
|
||||
@property
|
||||
def line(self):
|
||||
"""The line where the definition occurs (starting with 1)."""
|
||||
if self.in_builtin_module:
|
||||
return None
|
||||
return self.start_pos[0]
|
||||
|
||||
@property
|
||||
def column(self):
|
||||
"""The column where the definition occurs (starting with 0)."""
|
||||
if self.in_builtin_module:
|
||||
return None
|
||||
return self.start_pos[1]
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user