Skip to content

Commit

Permalink
Reference suppress-dummy-regex-options in documentation of rules su…
Browse files Browse the repository at this point in the history
…pporting it (#14888)

## Summary

Fixes #14663
  • Loading branch information
MichaReiser authored Dec 10, 2024
1 parent 4b8c815 commit 7a0e9b3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ use crate::rules::ruff::typing::type_hint_resolves_to_any;
/// ```python
/// def foo(x: int): ...
/// ```
///
/// ## Options
/// - `lint.flake8-annotations.suppress-dummy-args`
#[derive(ViolationMetadata)]
pub(crate) struct MissingTypeFunctionArgument {
name: String,
Expand Down Expand Up @@ -65,6 +68,9 @@ impl Violation for MissingTypeFunctionArgument {
/// ```python
/// def foo(*args: int): ...
/// ```
///
/// ## Options
/// - `lint.flake8-annotations.suppress-dummy-args`
#[derive(ViolationMetadata)]
pub(crate) struct MissingTypeArgs {
name: String,
Expand Down Expand Up @@ -97,6 +103,9 @@ impl Violation for MissingTypeArgs {
/// ```python
/// def foo(**kwargs: int): ...
/// ```
///
/// ## Options
/// - `lint.flake8-annotations.suppress-dummy-args`
#[derive(ViolationMetadata)]
pub(crate) struct MissingTypeKwargs {
name: String,
Expand Down

0 comments on commit 7a0e9b3

Please sign in to comment.