summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-09-14 19:44:57 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2009-09-14 19:44:57 +0200
commit10cd852a04181d95dece6e1f93d9859610c733c7 (patch)
tree2f009dbc5793a304469b2fcf11dfa078693ba0e9 /inference.py
parent73236d990af6fae975180248a9290ae2c29752ca (diff)
downloadastroid-git-10cd852a04181d95dece6e1f93d9859610c733c7.tar.gz
[R] modify __bases__ instead of using the "extend_class" function
* avoid mixing oldstyle / newstyle : all classes inheritate from Proxy_ * add "Instance" class to the bases at the right place
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/inference.py b/inference.py
index 2909113f..99e02011 100644
--- a/inference.py
+++ b/inference.py
@@ -55,18 +55,13 @@ def _set_proxied(const):
return const.__proxied
nodes.Const._proxied = property(_set_proxied)
-nodes.Const.__bases__ += (Instance,)
-
def Const_pytype(self):
return self._proxied.qname()
nodes.Const.pytype = Const_pytype
nodes.List._proxied = MANAGER.astng_from_class(list)
-nodes.List.__bases__ += (Instance,)
nodes.Tuple._proxied = MANAGER.astng_from_class(tuple)
-nodes.Tuple.__bases__ += (Instance,)
-nodes.Dict.__bases__ += (Instance,)
nodes.Dict._proxied = MANAGER.astng_from_class(dict)