From 95a532f9fd67273d93ebcfb5bc09537f60404244 Mon Sep 17 00:00:00 2001 From: Brent Westbrook <36778786+ntBre@users.noreply.github.com> Date: Fri, 26 Dec 2025 11:45:15 -0500 Subject: [PATCH] [`pylint`] Restore the fix safety docs for `PLW0133` (#22211) 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 6eba84adc3..c70a4ba8da 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)]