mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-06 12:13:21 +08:00
test for is_nested failure
This commit is contained in:
@@ -795,7 +795,7 @@ class Import(Simple):
|
||||
|
||||
import foo.bar
|
||||
"""
|
||||
return not self.alias and not self.from_ns \
|
||||
return not self.alias and not self.from_ns and self.namespace is not None \
|
||||
and len(self.namespace.names) > 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user