Skip to content

FAQ: Why doesn't ty warn about missing type annotations?#2721

Merged
sharkdp merged 1 commit intomainfrom
david/missing-annotation-doc
Feb 5, 2026
Merged

FAQ: Why doesn't ty warn about missing type annotations?#2721
sharkdp merged 1 commit intomainfrom
david/missing-annotation-doc

Conversation

@sharkdp
Copy link
Copy Markdown
Contributor

@sharkdp sharkdp commented Feb 5, 2026

Summary

This came up multiple times on our issue tracker (#476 and duplicates thereof).

Rendered:

image

@sharkdp sharkdp added the documentation Improvements or additions to documentation label 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
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ntBre Do you maybe know of any other rules that we might want to refer to here?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that covers it!

@sharkdp sharkdp merged commit 044af7f into main Feb 5, 2026
12 checks passed
@sharkdp sharkdp deleted the david/missing-annotation-doc branch February 5, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants