Skip to content

Mypy Self Checking Should Enable --warn-unreachable #18079

Closed
@davidhalter

Description

@davidhalter

Is it intentional that --warn-unreachable is not used while self checking in the CI? (with mypy_self_check.ini)

I have recently realized that this is not turned on and it feels a bit strange. There are about 39 errors when running with --warn-unreachable and it brings up a few questionable things like https://github.com/python/mypy/blob/master/mypy/test/testpep561.py#L180.

@sobolevn told me to create this issue in #18076 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions