Skip to content

Commit e06e108

Browse files
authored
[flake8-annotations] Add link to allow-star-arg-any option (ANN401) (#21326)
Summary -- Addresses #19152 (comment) 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
1 parent b6add3e commit e06e108

File tree

1 file changed

+3
-0
lines changed
  • crates/ruff_linter/src/rules/flake8_annotations/rules

1 file changed

+3
-0
lines changed

crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ impl Violation for MissingReturnTypeClassMethod {
513513
/// def foo(x: MyAny): ...
514514
/// ```
515515
///
516+
/// ## Options
517+
/// - `lint.flake8-annotations.allow-star-arg-any`
518+
///
516519
/// ## References
517520
/// - [Typing spec: `Any`](https://typing.python.org/en/latest/spec/special-types.html#any)
518521
/// - [Python documentation: `typing.Any`](https://docs.python.org/3/library/typing.html#typing.Any)

0 commit comments

Comments
 (0)