Skip to content

mypy pre-commit failure #7152

Description

@jrbourbeau

When I run pre-commit run mypy --all-files locally on main I get the following failure:

mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

distributed/system_monitor.py:73: error: Statement is unreachable  [unreachable]
Found 1 error in 1 file (checked 279 source files)

mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

distributed/system_monitor.py:73: error: Statement is unreachable  [unreachable]
Found 1 error in 1 file (checked 279 source files)

I suspect that (1) this is related to #7131 (2) this is just an issue with my local environment as our pre-commit CI build is passing on main.

@crusaderky @wence- do either of you have thoughts on how I can resolve this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions