From 269c334c724886cc300aff2723bea9656641a445 Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Fri, 26 Dec 2025 11:21:02 -0500 Subject: [PATCH] [`pylint`] Restore the fix safety docs for `PLW0133` Summary -- Noticed while responding to #22201 that the last sentence here just ends abruptly. It turns out that I missed this change when reviewing #21382. Test Plan -- CI --- .../src/rules/pylint/rules/useless_exception_statement.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs b/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs index 6eba84adc3b69..c70a4ba8da88b 100644 --- a/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs +++ b/crates/ruff_linter/src/rules/pylint/rules/useless_exception_statement.rs @@ -36,6 +36,7 @@ use ruff_python_ast::PythonVersion; /// /// ## Fix safety /// This rule's fix is marked as unsafe, as converting a useless exception +/// statement to a `raise` statement will change the program's behavior. /// /// [preview]: https://docs.astral.sh/ruff/preview/ #[derive(ViolationMetadata)]