KEMBAR78
Produce better error on invalid types like List(int) by msullivan · Pull Request #4323 · python/mypy · GitHub
Skip to content

Conversation

msullivan
Copy link
Collaborator

Fixes #4172

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see a new test too that checks List(int), another for a user-defined generic class, and yet another proving that it works for Python 2 mode too.

Also, there are a few more related concerns brought up in #4172 -- can you look into fixing those too (if it's not too complicated)?

@msullivan
Copy link
Collaborator Author

Added some more tests, including a python3 one (the existing one was already python2).

I'm taking a look at the other issues mentioned in the bug and will put up another PR for them.

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.

3 participants