summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-03-17 11:07:52 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-03-17 11:07:52 +0100
commit8dd1cf970642481d52a97528cc0757da9b07b56c (patch)
treeeaa70dd4e9d544a2ef90b49644e522bed6b2d0c6 /inference.py
parent9b9aaa61d29ec7e00dda2187cdc144c821aba1be (diff)
downloadastroid-git-8dd1cf970642481d52a97528cc0757da9b07b56c.tar.gz
some cleanup using pylint
--HG-- branch : rebuild
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/inference.py b/inference.py
index 0e5ddcc3..e4457ec1 100644
--- a/inference.py
+++ b/inference.py
@@ -49,6 +49,10 @@ _CONST_PROXY = {
}
_CONST_PROXY[type(None)].parent = _CONST_PROXY[bool].parent
+# TODO : find a nicer way to handle this situation; we should at least
+# be able to avoid calling MANAGER.astng_from_class(const.value.__class__)
+# each time (if we can not avoid the property). However __proxied introduced an
+# infinite recursion (see https://bugs.launchpad.net/pylint/+bug/456870)
def _set_proxied(const):
return _CONST_PROXY[const.value.__class__]
nodes.Const._proxied = property(_set_proxied)