Skip to content

Support unreachable blocks in partially defined check #13929

Closed

Description

@ilinum

For the partially defined check (--enable-error-code partially-defined), mypy should detect unreachable blocks:

Assuming we're running python3.6 in the following block:

if sys.version_info >= (3, 6):
    x = 1
print(x)  # This should not generate an error but currently does.

Activity

  1. added a commit that references this issue on Nov 22, 2022
    8fb482f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions