[`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
This commit is contained in:
Brent Westbrook 2025-11-07 18:45:53 -05:00 committed by GitHub
parent b6add3ee6d
commit e06e108095
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -513,6 +513,9 @@ impl Violation for MissingReturnTypeClassMethod {
/// def foo(x: MyAny): ... /// def foo(x: MyAny): ...
/// ``` /// ```
/// ///
/// ## Options
/// - `lint.flake8-annotations.allow-star-arg-any`
///
/// ## References /// ## References
/// - [Typing spec: `Any`](https://typing.python.org/en/latest/spec/special-types.html#any) /// - [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) /// - [Python documentation: `typing.Any`](https://docs.python.org/3/library/typing.html#typing.Any)