Skip to content

unknown variable not caught in dict constructor #1357

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

unknown variable not caught in dict constructor #1357

ddfisher opened this issue Apr 9, 2016 · 2 comments
Assignees
Labels
bug mypy got something wrong

Comments

@ddfisher
Copy link
Collaborator

ddfisher commented Apr 9, 2016

A file with just

x = dict(undefined_variable)

succeeds, when it should give a Name 'undefined_variable' is not defined error. Without the dict constructor, the error is generated correctly.

@ddfisher ddfisher added this to the 0.3.2 milestone Apr 9, 2016
@ddfisher
Copy link
Collaborator Author

ddfisher commented Apr 9, 2016

@ddfisher ddfisher added the bug mypy got something wrong label Apr 9, 2016
@gvanrossum gvanrossum self-assigned this Apr 9, 2016
@gvanrossum
Copy link
Member

Decided to fix this, in case it had a bearing on the more complex issue we were investigating yesterday (though I think it doesn't, actually).

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

No branches or pull requests

2 participants