---
source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs
---
ignore_fully_untyped.py:24:5: ANN201 [*] Missing return type annotation for public function `error_partially_typed_1`
   |
24 | def error_partially_typed_1(a: int, b):
   |     ^^^^^^^^^^^^^^^^^^^^^^^ ANN201
25 |     pass
   |
   = help: Add return type annotation: `None`

ℹ Unsafe fix
21 21 |     pass
22 22 | 
23 23 | 
24    |-def error_partially_typed_1(a: int, b):
   24 |+def error_partially_typed_1(a: int, b) -> None:
25 25 |     pass
26 26 | 
27 27 | 

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

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

ignore_fully_untyped.py:32:5: ANN201 [*] Missing return type annotation for public function `error_partially_typed_3`
   |
32 | def error_partially_typed_3(a: int, b: int):
   |     ^^^^^^^^^^^^^^^^^^^^^^^ ANN201
33 |     pass
   |
   = help: Add return type annotation: `None`

ℹ Unsafe fix
29 29 |     pass
30 30 | 
31 31 | 
32    |-def error_partially_typed_3(a: int, b: int):
   32 |+def error_partially_typed_3(a: int, b: int) -> None:
33 33 |     pass
34 34 | 
35 35 | 

ignore_fully_untyped.py:43:9: ANN201 [*] Missing return type annotation for public function `error_typed_self`
   |
41 |         pass
42 | 
43 |     def error_typed_self(self: X):
   |         ^^^^^^^^^^^^^^^^ ANN201
44 |         pass
   |
   = help: Add return type annotation: `None`

ℹ Unsafe fix
40 40 |     def ok_untyped_method(self):
41 41 |         pass
42 42 | 
43    |-    def error_typed_self(self: X):
   43 |+    def error_typed_self(self: X) -> None:
44 44 |         pass


