- A minimal code snippet that reproduces
https://docs.astral.sh/ruff/rules/duplicate-literal-member/#duplicate-literal-member-pyi062 mentions that
Fix is sometimes available.
However cases like this which looks trivial is detected but not autofixed.
def foo(bar: Literal["a", "b", "b"]): ...
- The current Ruff version (
ruff --version).
ruff 0.7.2