From cd5bcd815d51b6afc1ccb5458900f858ca655e2a Mon Sep 17 00:00:00 2001 From: Eero Vaher Date: Tue, 6 Feb 2024 00:27:53 +0200 Subject: [PATCH] Mention a related setting in C408 description (#9839) #2977 added the `allow-dict-calls-with-keyword-arguments` configuration option for the `unnecessary-collection-call (C408)` rule, but it did not update the rule description. --- .../flake8_comprehensions/rules/unnecessary_collection_call.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_collection_call.rs b/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_collection_call.rs index fa23032a34..f676cb598b 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_collection_call.rs +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_collection_call.rs @@ -36,6 +36,9 @@ use crate::rules::flake8_comprehensions::settings::Settings; /// ## Fix safety /// This rule's fix is marked as unsafe, as it may occasionally drop comments /// when rewriting the call. In most cases, though, comments will be preserved. +/// +/// ## Options +/// - `lint.flake8-comprehensions.allow-dict-calls-with-keyword-arguments` #[violation] pub struct UnnecessaryCollectionCall { obj_type: String,