forked from VimPlug/jedi
Undo most of the namespace changes and use module again
Is a module like every other module, because if you import an empty folder foobar it will be available as an object: <module 'foobar' (namespace)>. See #1033.
This commit is contained in:
@@ -419,7 +419,7 @@ class Importer(object):
|
||||
|
||||
for context in self.follow():
|
||||
# Non-modules are not completable.
|
||||
if context.api_type not in ('namespace', 'module'): # not a module
|
||||
if context.api_type != 'module': # not a module
|
||||
continue
|
||||
# namespace packages
|
||||
if isinstance(context, ModuleContext) and context.py__file__().endswith('__init__.py'):
|
||||
|
||||
Reference in New Issue
Block a user