mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-10 05:52:22 +08:00
add _module to BaseDefinition api
This commit is contained in:
@@ -80,7 +80,8 @@ class BaseDefinition(object):
|
||||
self.is_keyword = isinstance(definition, keywords.Keyword)
|
||||
|
||||
# generate a path to the definition
|
||||
p = definition.get_parent_until().path
|
||||
self._module = definition.get_parent_until()
|
||||
p = self._module.path
|
||||
self.module_path = p if p is None else unicode(p)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user