summaryrefslogtreecommitdiff
path: root/bases.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-07-13 08:08:51 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-07-13 08:08:51 +0200
commite90def52dffe56b7ce3a23ce4db146cf17e53548 (patch)
tree689385d5764747acffa1bb46270751ad72efa1bb /bases.py
parent15fb7649a74ad6296017c0e95bd2a96e010b0e52 (diff)
downloadastroid-e90def52dffe56b7ce3a23ce4db146cf17e53548.tar.gz
add __subclasses__ to special class attribute
Diffstat (limited to 'bases.py')
-rw-r--r--bases.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bases.py b/bases.py
index af98844..ea3c9c6 100644
--- a/bases.py
+++ b/bases.py
@@ -168,7 +168,7 @@ class Instance(Proxy):
if lookupclass:
# class attributes not available through the instance
# unless they are explicitly defined
- if name in ('__name__', '__bases__', '__mro__'):
+ if name in ('__name__', '__bases__', '__mro__', '__subclasses__'):
return self._proxied.local_attr(name)
return self._proxied.getattr(name, context)
raise NotFoundError(name)