summaryrefslogtreecommitdiff
path: root/astroid/manager.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-10-11 12:17:10 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-10-11 12:19:51 +0200
commit73babe3d536ffc4da94e59c705eb6a8c3e5822ef (patch)
treef7bd58c91f6af50cf86caf296146bd239037e3ed /astroid/manager.py
parent2982861826e5955e2e5597f1a3b125ddf9106fa4 (diff)
downloadastroid-git-73babe3d536ffc4da94e59c705eb6a8c3e5822ef.tar.gz
Fix lint warnings
Diffstat (limited to 'astroid/manager.py')
-rw-r--r--astroid/manager.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/astroid/manager.py b/astroid/manager.py
index cca7cc50..e5fd0d6b 100644
--- a/astroid/manager.py
+++ b/astroid/manager.py
@@ -89,6 +89,7 @@ class AstroidManager:
):
return self.astroid_cache[modname]
if source:
+ # pylint: disable=import-outside-toplevel; circular import
from astroid.builder import AstroidBuilder
return AstroidBuilder(self).file_build(filepath, modname)
@@ -99,11 +100,13 @@ class AstroidManager:
)
def _build_stub_module(self, modname):
+ # pylint: disable=import-outside-toplevel; circular import
from astroid.builder import AstroidBuilder
return AstroidBuilder(self).string_build("", modname)
def _build_namespace_module(self, modname, path):
+ # pylint: disable=import-outside-toplevel; circular import
from astroid.builder import build_namespace_package_module
return build_namespace_package_module(modname, path)
@@ -185,6 +188,8 @@ class AstroidManager:
def zip_import_data(self, filepath):
if zipimport is None:
return None
+
+ # pylint: disable=import-outside-toplevel; circular import
from astroid.builder import AstroidBuilder
builder = AstroidBuilder(self)
@@ -237,6 +242,8 @@ class AstroidManager:
return self.ast_from_file(filepath, modname)
except AttributeError:
pass
+
+ # pylint: disable=import-outside-toplevel; circular import
from astroid.builder import AstroidBuilder
return AstroidBuilder(self).module_build(module, modname)