From 8e2aaf3a53369b76f30462c006b09bc4d1673090 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 28 Aug 2024 16:24:27 +0100 Subject: [PATCH] better comment --- .../rules/fastapi/rules/fastapi_non_annotated_dependency.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_linter/src/rules/fastapi/rules/fastapi_non_annotated_dependency.rs b/crates/ruff_linter/src/rules/fastapi/rules/fastapi_non_annotated_dependency.rs index 4ae14b02f9083..6d116ebad51a3 100644 --- a/crates/ruff_linter/src/rules/fastapi/rules/fastapi_non_annotated_dependency.rs +++ b/crates/ruff_linter/src/rules/fastapi/rules/fastapi_non_annotated_dependency.rs @@ -97,8 +97,8 @@ pub(crate) fn fastapi_non_annotated_dependency( updatable_count += 1; // Determine if it's safe to update this parameter: // - if all parameters are updatable its safe. - // - if we've encountered a non-updatable parameter with a default value, its no longer - // safe. (https://github.com/astral-sh/ruff/issues/12982) + // - if we've encountered a non-updatable parameter with a default value, it's no longer + // safe. (https://github.com/astral-sh/ruff/issues/12982) let safe_to_update = updatable_count == total_params || !has_non_updatable_default; create_diagnostic(checker, parameter, safe_to_update); } else if parameter.default.is_some() {