[tool.flake8] ignore = "E203,E266,H106,H904" max-line-length = 88 max-complexity = 25
From Python…
def fib(n): a, b = 0, 1 while a < n: yield a a, b = b, a+b
…to statically typed Python
def fib(n: int) -> Iterator[int]: a, b = 0, 1 while a < n: yield a a, b = b, a+b