Skip to content

Mypy is confused by access to inner classes #3149

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
ilevkivskyi opened this issue Apr 9, 2017 · 2 comments
Closed

Mypy is confused by access to inner classes #3149

ilevkivskyi opened this issue Apr 9, 2017 · 2 comments

Comments

@ilevkivskyi
Copy link
Member

Accessing an inner class causes a strange error:

class Outer:
    class Inner:
        pass

Outer().Inner  # E: Member "Inner" is not assignable
@pkch
Copy link
Contributor

pkch commented May 4, 2017

Are #235, #259, and this issue all essentially the same?

@ilevkivskyi
Copy link
Member Author

Yes this looks like a duplicate.

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

No branches or pull requests

2 participants