FAQ: Why doesn't ty warn about missing type annotations?#2721
Merged
Conversation
sharkdp
commented
Feb 5, 2026
Comment on lines
+192
to
+203
| - [`ANN001`](https://docs.astral.sh/ruff/rules/missing-type-function-argument/): Missing type | ||
| annotation for function argument | ||
| - [`ANN002`](https://docs.astral.sh/ruff/rules/missing-type-args/): Missing type annotation for | ||
| `*args` | ||
| - [`ANN003`](https://docs.astral.sh/ruff/rules/missing-type-kwargs/): Missing type annotation for | ||
| `**kwargs` | ||
| - [`ANN201`](https://docs.astral.sh/ruff/rules/missing-return-type-undocumented-public-function/): | ||
| Missing return type annotation for public function | ||
| - [`ANN202`](https://docs.astral.sh/ruff/rules/missing-return-type-private-function/): Missing | ||
| return type annotation for private function | ||
| - [`RUF045`](https://docs.astral.sh/ruff/rules/implicit-class-var-in-dataclass/): Implicit class | ||
| variable in dataclass |
Contributor
Author
There was a problem hiding this comment.
@ntBre Do you maybe know of any other rules that we might want to refer to here?
ntBre
approved these changes
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This came up multiple times on our issue tracker (#476 and duplicates thereof).
Rendered: