# variable : type = value a : int = 1 def f(x : int | float ) -> None: print(x+1)
from collections.abc import Iterable def zero_all_vars(vars: Iterable[LoggedVar[int]]) -> None: for var in vars: var.set(0)