Open sbrugman opened 3 months ago
Implement the checking for branches with identical arm bodies for match Same benefits as https://github.com/MartinThoma/flake8-simplify/issues/10
match
Python 3.10+
# Bad match hello: case "world": print("world") case "foobar": print("world") # Good match hello: case "world" | "foobar": print("world")
Explanation
Implement the checking for branches with identical arm bodies for
match
Same benefits as https://github.com/MartinThoma/flake8-simplify/issues/10Python 3.10+
Example