Skip to content

[New Rule] match with same arms #194

Description

@sbrugman

Explanation

Implement the checking for branches with identical arm bodies for match
Same benefits as #10

Python 3.10+

Example

# Bad
match hello:
   case "world":
        print("world")
    case "foobar":
       print("world")

# Good

match hello:
   case "world" | "foobar":
       print("world")

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions