Skip to content

docs(flake8-annotations): mention return annotations in any-type (ANN401) - #28388

Closed
ump45nose wants to merge 1 commit into
astral-sh:mainfrom
ump45nose:fix/any-type-docs-return-annotations
Closed

ump45nose wants to merge 1 commit into
astral-sh:mainfrom
ump45nose:fix/any-type-docs-return-annotations

Conversation

@ump45nose

Copy link
Copy Markdown

Summary

Fixes #28298.

The any-type (ANN401) rule also flags return annotations (and *args/**kwargs), but its documentation only mentioned function arguments. This updates the "What it does" description to reflect that the rule applies to both function arguments and return values.

The rule implementation already checks return annotations in definition.rs (the returns branch of the ANN401 checker), so this is a documentation-only fix.

@astral-sh-bot
astral-sh-bot Bot requested a review from ntBre September 7, 2026 08:59
@MichaReiser

Copy link
Copy Markdown
Member

Duplicate of #28334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation for any-type (ANN401)

2 participants