Skip to content

Warn no return doesn't understand six.reraise #2474

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 Nov 21, 2016 · 3 comments
Closed

Warn no return doesn't understand six.reraise #2474

ddfisher opened this issue Nov 21, 2016 · 3 comments

Comments

@ddfisher
Copy link
Collaborator

As far as I can tell, mypy doesn't currently have any special knowledge of six, so it doesn't understand that six.reraise raises an exception. If mypy having special understanding of six seems reasonable, we should add this.

@ddfisher
Copy link
Collaborator Author

Mypy also needs to be taught about other standard library functions which don't return, like sys.exit.

@JukkaL
Copy link
Collaborator

JukkaL commented Jan 16, 2017

Marking this as high priority this seems to be a blocker for enabling --warn-no-return by default, which we'd like to do.

@ddfisher ddfisher self-assigned this Jan 17, 2017
@ddfisher
Copy link
Collaborator Author

Planning on doing this after finishing up the fast parser default work.

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

No branches or pull requests

2 participants