Skip to content

[WIP] Support metaclasses #2392

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

Closed
wants to merge 7 commits into from
Closed

[WIP] Support metaclasses #2392

wants to merge 7 commits into from

Conversation

elazarg
Copy link
Contributor

@elazarg elazarg commented Nov 3, 2016

(#2365 take two)
Store the type of the metaclass in TypeInfo, and use it when possible, instead of builtins.type.

I assume metaclasses always inherit from type.

This PR will help fixing #2305, but the fix is not part of this PR.

For now it also includes #2391 which is needed for some reason (but is reasonable regardless).

@elazarg
Copy link
Contributor Author

elazarg commented Nov 3, 2016

I am not sure now the change to typeshed was actually needed; I think the lookup was wrong :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant