Skip to content

LGTM.com - false positive: Unreachable Statement in Match-Case #9260

@lumina37

Description

@lumina37

Description of the false positive

In Match-Case of Python3.10, case 2 | 11: will match int 2 or int 11. It should not be an unreachable statement.
It seems that the QL treats the semantics of symbol | as bitwise-or rather than the correct multi-options.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/Starry-OvO/Tieba-Manager/snapshot/071dfb069139a588f2af43318bd8ce1e103eec3e/files/tiebaBrowser/_types.py#x63b025e749110b8a:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions