diff options
| -rw-r--r-- | scoped_nodes.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py index f9df97d9..3f6e55a5 100644 --- a/scoped_nodes.py +++ b/scoped_nodes.py @@ -1002,5 +1002,8 @@ class Class(Statement, LocalsDictNodeNG, FilterStmtsMixin): except NotFoundError: return - return meta.infered()[0] + # XXX: We could return the actual class instance, not the string + # representing its name, but I don't know how to handle this + # with Py3's metaclass keyword.. + return meta.infered()[0].name
\ No newline at end of file |
