Skip to content

Commit

Permalink
Add a note regarding ignore-without-code (#9879)
Browse files Browse the repository at this point in the history
Closes #9863.
  • Loading branch information
charliermarsh committed Feb 7, 2024
1 parent bc023f4 commit 533dcfb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ use ruff_text_size::TextSize;
/// ```
///
/// ## References
/// - [mypy](https://mypy.readthedocs.io/en/stable/common_issues.html#spurious-errors-and-locally-silencing-the-checker)
/// Mypy supports a [built-in setting](https://mypy.readthedocs.io/en/stable/error_code_list2.html#check-that-type-ignore-include-an-error-code-ignore-without-code)
/// to enforce that all `type: ignore` annotations include an error code, akin
/// to enabling this rule:
/// ```toml
/// [tool.mypy]
/// enable_error_code = ["ignore-without-code"]
/// ```
#[violation]
pub struct BlanketTypeIgnore;

Expand Down

0 comments on commit 533dcfb

Please sign in to comment.