prefer-or-pattern
Merge adjacent case arms with identical bodies into one or-pattern.
Why
An or-pattern expresses shared handling once and prevents identical arms from drifting apart.
Fix
Join the equivalent patterns with | and keep their shared body under the merged arm.
Examples
def status(value): match value: case "queued": return "active" case "running": return "active"def status(value): match value: case "queued" | "running": return "active"