Skip to content

Conversation

@tharvik
Copy link
Contributor

@tharvik tharvik commented Apr 4, 2016

class A:
    pass
A().__dict__

is a valid python3 statement but mypy (more a typeshed issue I guess) gives me

file:3: error: "A" has no attribute "__dict__"

This PR resolves this (more documented in #132) (not a really nice fix but a working one, in the future, it would be nicer to have mypy being aware if a class is native or not).

@gvanrossum gvanrossum merged commit 5894f63 into python:master Apr 4, 2016
@gvanrossum
Copy link
Member

Thanks! This sounds like a reasonable compromise.

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.

2 participants