summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/inference.py b/inference.py
index df6fdcd0..257177c0 100644
--- a/inference.py
+++ b/inference.py
@@ -31,13 +31,16 @@ try:
except NameError:
class GeneratorExit(Exception): pass
-from logilab.astng import MANAGER, nodes, raw_building
+from logilab.astng import nodes, raw_building
+from logilab.astng.manager import ASTNGManager
from logilab.astng import ASTNGError, InferenceError, UnresolvableName, \
NoDefault, NotFoundError, ASTNGBuildingException
from logilab.astng.bases import YES, Instance, InferenceContext, \
_infer_stmts, copy_context, path_wrapper, raise_if_nothing_infered
from logilab.astng.protocols import _arguments_infer_argname
+MANAGER = ASTNGManager()
+
_CONST_PROXY = {
type(None): raw_building.build_class('NoneType'),
bool: MANAGER.astng_from_class(bool),