From e06e108095b9283e6352e48694503bc81e46974b Mon Sep 17 00:00:00 2001 From: Brent Westbrook <36778786+ntBre@users.noreply.github.com> Date: Fri, 7 Nov 2025 18:45:53 -0500 Subject: [PATCH] [`flake8-annotations`] Add link to `allow-star-arg-any` option (`ANN401`) (#21326) Summary -- Addresses https://github.com/astral-sh/ruff/issues/19152#issuecomment-3501373508 by adding a link to the configuration option to the rule page. Test Plan -- Built the docs locally and made sure the link was present and working --- .../src/rules/flake8_annotations/rules/definition.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs b/crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs index a70659f99e..d111bbf525 100644 --- a/crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs +++ b/crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs @@ -513,6 +513,9 @@ impl Violation for MissingReturnTypeClassMethod { /// def foo(x: MyAny): ... /// ``` /// +/// ## Options +/// - `lint.flake8-annotations.allow-star-arg-any` +/// /// ## References /// - [Typing spec: `Any`](https://typing.python.org/en/latest/spec/special-types.html#any) /// - [Python documentation: `typing.Any`](https://docs.python.org/3/library/typing.html#typing.Any)