1
0
forked from VimPlug/jedi

Fix issues with module attributes

This commit is contained in:
Dave Halter
2015-01-06 01:12:55 +01:00
parent 7abdbb563c
commit 8bad12522a
3 changed files with 5 additions and 4 deletions

View File

@@ -848,7 +848,8 @@ class ModuleWrapper(use_metaclass(CachedMetaClass, pr.Module, Wrapper)):
names = ['__file__', '__package__', '__doc__', '__name__']
# All the additional module attributes are strings.
return dict((n, [helpers.LazyName(n, parent_callback)]) for n in names)
return dict((n, [helpers.LazyName(n, parent_callback, is_definition=True)])
for n in names)
@memoize_default()
def _module_attributes(self):