diff --git a/crates/ruff_linter/src/rules/flake8_raise/rules/unnecessary_paren_on_raise_exception.rs b/crates/ruff_linter/src/rules/flake8_raise/rules/unnecessary_paren_on_raise_exception.rs index ad8cebf7bad6e..2fde8e5a8f320 100644 --- a/crates/ruff_linter/src/rules/flake8_raise/rules/unnecessary_paren_on_raise_exception.rs +++ b/crates/ruff_linter/src/rules/flake8_raise/rules/unnecessary_paren_on_raise_exception.rs @@ -19,9 +19,12 @@ use crate::checkers::ast::Checker; /// ## Known problems /// Parentheses can only be omitted if the exception is a class, as opposed to /// a function call. This rule isn't always capable of distinguishing between -/// the two. For example, if you define a method `get_exception` that itself -/// returns an exception object, this rule will falsy mark the parentheses -/// in `raise get_exception()` as unnecessary. +/// the two. +/// +/// For example, if you import a function `module.get_exception` from another +/// module, and `module.get_exception` returns an exception object, this rule will +/// incorrectly mark the parentheses in `raise module.get_exception()` as +/// unnecessary. /// /// ## Example /// ```python