from typing import ContextManager, Iterator, Generic, TypeVar _T = TypeVar("_T") class ProgressBar(object, Generic[_T]): def update(self, n_steps: int) -> None: ... def finish(self) -> None: ... def __enter__(self) -> "ProgressBar[_T]": ... def __exit__(self, exc_type, exc_value, tb) -> None: ... def __iter__(self) -> "ProgressBar[_T]": ... def next(self) -> _T: ... def __next__(self) -> _T: ...