---
source: crates/ruff/src/rules/flake8_annotations/mod.rs
---
suppress_none_returning.py:45:5: ANN201 Missing return type annotation for public function `foo`
   |
45 | # Error
46 | def foo():
   |     ^^^ ANN201
47 |     return True
   |

suppress_none_returning.py:50:5: ANN201 Missing return type annotation for public function `foo`
   |
50 | # Error
51 | def foo():
   |     ^^^ ANN201
52 |     a = 2 + 2
53 |     if a == 4:
   |

suppress_none_returning.py:59:9: ANN001 Missing type annotation for function argument `a`
   |
59 | # Error (on the argument, but not the return type)
60 | def foo(a):
   |         ^ ANN001
61 |     a = 2 + 2
   |


