mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
a function to check if the definition is in a builtin module
This commit is contained in:
@@ -98,6 +98,9 @@ class Definition(object):
|
||||
|
||||
return str(par.path)
|
||||
|
||||
def in_builtin_module(self):
|
||||
return not self.module_path.endswith('.py')
|
||||
|
||||
@property
|
||||
def line_nr(self):
|
||||
return self.definition.start_pos[0]
|
||||
|
||||
Reference in New Issue
Block a user