UP037's autofix removes quotes from typing.Literal["value"] when Literal is not imported, but it's supposed to have str values.
_DTYPE_BACKEND: Literal["pyarrow", "numpy_nullable"]
turns into
_DTYPE_BACKEND: Literal[pyarrow, numpy_nullable]
Details
- Version: 0.0.286
- Relevant settings: select = ["UP"]
- Commands producing the bug:
- the VSC extension's autofix
- ruff . --fix
- ruff . --fix --isolated --select UP