---
source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs
---
ANN201 [*] Missing return type annotation for public function `error_partially_typed_1`
  --> ignore_fully_untyped.py:24:5
   |
24 | def error_partially_typed_1(a: int, b):
   |     ^^^^^^^^^^^^^^^^^^^^^^^
25 |     pass
   |
help: Add return type annotation: `None`
   |
23 |
   - def error_partially_typed_1(a: int, b):
24 + def error_partially_typed_1(a: int, b) -> None:
25 |     pass
   |
note: This is an unsafe fix and may change runtime behavior

ANN001 Missing type annotation for function argument `b`
  --> ignore_fully_untyped.py:24:37
   |
24 | def error_partially_typed_1(a: int, b):
   |                                     ^
25 |     pass
   |

ANN001 Missing type annotation for function argument `b`
  --> ignore_fully_untyped.py:28:37
   |
28 | def error_partially_typed_2(a: int, b) -> int:
   |                                     ^
29 |     pass
   |

ANN201 [*] Missing return type annotation for public function `error_partially_typed_3`
  --> ignore_fully_untyped.py:32:5
   |
32 | def error_partially_typed_3(a: int, b: int):
   |     ^^^^^^^^^^^^^^^^^^^^^^^
33 |     pass
   |
help: Add return type annotation: `None`
   |
31 |
   - def error_partially_typed_3(a: int, b: int):
32 + def error_partially_typed_3(a: int, b: int) -> None:
33 |     pass
   |
note: This is an unsafe fix and may change runtime behavior

ANN201 [*] Missing return type annotation for public function `error_typed_self`
  --> ignore_fully_untyped.py:43:9
   |
41 |         pass
42 |
43 |     def error_typed_self(self: X):
   |         ^^^^^^^^^^^^^^^^
44 |         pass
   |
help: Add return type annotation: `None`
   |
42 |
   -     def error_typed_self(self: X):
43 +     def error_typed_self(self: X) -> None:
44 |         pass
   |
note: This is an unsafe fix and may change runtime behavior
