Skip to content

Ignore unreachable code message #2229

Description

@macOneOone

Is there any way to suppress the "unreachable code" warning? It looks like cmp determines reachability based only on the function's type annotations, without considering that Python is dynamically typed and some code paths may still be valid at runtime.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions