-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Metaclasses should inherit from type. #2818
New issue
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
Comments
I am for fixing it. The reason I have allowed this behavior is the documentation. Quote: The appropriate metaclass for a class definition is determined as follows:
End quote. What do you think? |
@elazarg I think the use case where metaclass is not an instance of |
I have a branch ready |
There is something missing in #2475: this code:
Passes without errors, but fails at runtime.
Btw, I have found two open issues that were fixed by #2475, I left comments referencing the #2475 in that issues.
The text was updated successfully, but these errors were encountered: