massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / click / click / _termui_impl.pyi
1 from types import TracebackType
2 from typing import Generic, Type, TypeVar
3
4 _T = TypeVar("_T")
5
6 class ProgressBar(Generic[_T]):
7     def update(self, n_steps: int) -> None: ...
8     def finish(self) -> None: ...
9     def __enter__(self) -> ProgressBar[_T]: ...
10     def __exit__(
11         self, exctype: Type[BaseException] | None, excinst: BaseException | None, exctb: TracebackType | None
12     ) -> None: ...
13     def __iter__(self) -> ProgressBar[_T]: ...
14     def next(self) -> _T: ...
15     def __next__(self) -> _T: ...
16     length: int | None
17     label: str