ruff/crates/ruff
qdegraaf 7566ca8ff7
Refactor `repeated_keys()` to use `ComparableExpr` (#5696)
## Summary

Replaces `DictionaryKey` enum with the more general `ComparableExpr`
when checking for duplicate keys

## Test Plan

Added test fixture from issue. Can potentially be expanded further
depending on what exactly we want to flag (e.g. do we also want to check
for unhashable types?) and which `ComparableExpr::XYZ` types we consider
literals.

## Issue link

Closes: https://github.com/astral-sh/ruff/issues/5691
2023-07-12 03:46:53 +00:00
..
resources/test Refactor `repeated_keys()` to use `ComparableExpr` (#5696) 2023-07-12 03:46:53 +00:00
src Refactor `repeated_keys()` to use `ComparableExpr` (#5696) 2023-07-12 03:46:53 +00:00
Cargo.toml Use a simple match statement for case-insensitive noqa lookup (#5633) 2023-07-09 22:15:23 -04:00