Skip to content

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

Closed

Description

@ddfisher

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.

Activity

  1. ddfisher commented on Nov 21, 2016

    @ddfisher
    CollaboratorAuthor

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

  2. JukkaL commented on Jan 16, 2017

    @JukkaL
    Collaborator

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

  3. self-assigned this
    on Jan 17, 2017
  4. ddfisher commented on Jan 17, 2017

    @ddfisher
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions