python function typing code example
Example 1: python typing void function
def function(param: str) -> None:
# A function that doesn't return anything,
# has None as return type.
print("hey")
Example 2: typing python
from collections.abc import Iterable
def zero_all_vars(vars: Iterable[LoggedVar[int]]) -> None:
for var in vars:
var.set(0)