Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

typing python

from collections.abc import Iterable

def zero_all_vars(vars: Iterable[LoggedVar[int]]) -> None:
    for var in vars:
        var.set(0)
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #typing #python
ADD COMMENT
Topic
Name
9+4 =