mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-04 09:02:06 +00:00
Summary -- Detects duplicate literals in `match` mapping keys. This PR also adds a `source` method to `SemanticSyntaxContext` to display the duplicated key in the error message by slicing out its range. Test Plan -- New inline tests. |
||
|---|---|---|
| .. | ||
| snapshots | ||
| fixtures.rs | ||
| generate_inline_tests.rs | ||