mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-17 13:58:37 +00:00
![]() Fix a typos in the error message of rule C400 With the latest version of Ruff (0.3.3) if I have a `scratch.py` script like that: ```python from typing import Dict, List, Tuple def generate_samples(test_cases: Dict) -> List[Tuple]: return list( (input, expected) for input, expected in zip(test_cases["input_value"], test_cases["expected_value"]) ) ``` and I run ruff ```shell >>> ruff check scratch.py --select C400 >>> scratch.py:5:12: C400 Unnecessary generator (rewrite using `list()` ``` This PR fixes the error message from _"(rewrite using `list()`"_ to _"(rewrite using `list()`)"_, and it fixes also the doc. Related question: why I have this error message? The rule is not correct in this case. Should I open an issue for that? |
||
---|---|---|
.. | ||
ruff | ||
ruff_benchmark | ||
ruff_cache | ||
ruff_dev | ||
ruff_diagnostics | ||
ruff_formatter | ||
ruff_index | ||
ruff_linter | ||
ruff_macros | ||
ruff_notebook | ||
ruff_python_ast | ||
ruff_python_codegen | ||
ruff_python_formatter | ||
ruff_python_index | ||
ruff_python_literal | ||
ruff_python_parser | ||
ruff_python_resolver | ||
ruff_python_semantic | ||
ruff_python_stdlib | ||
ruff_python_trivia | ||
ruff_server | ||
ruff_shrinking | ||
ruff_source_file | ||
ruff_text_size | ||
ruff_wasm | ||
ruff_workspace |