We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using six.add_metaclass on a nested class loses the original class's __qualname__ on Python 3:
six.add_metaclass
__qualname__
>>> from six import add_metaclass >>> class A: ... class B: ... pass ... >>> A.B <class '__main__.A.B'> >>> class MyMeta(type): pass ... >>> class A: ... @add_metaclass(MyMeta) ... class B: ... pass ... >>> A.B <class '__main__.B'>
The text was updated successfully, but these errors were encountered:
Fix benjaminp#259--if a class has a non-trivial qualname, make sure t…
6a8c96c
…o copy it when adding a metaclass
e42b2ce
Make add_metaclass copy __qualname__ from the original class. (#260)
a611f60
Fixes #259.
No branches or pull requests
Using
six.add_metaclass
on a nested class loses the original class's__qualname__
on Python 3:The text was updated successfully, but these errors were encountered: