Click: add 'length' and 'label' properties to ProgressBar. (#2860)

This commit is contained in:
Tom Briggs
2019-03-12 15:58:40 -04:00
committed by Sebastian Rittau
parent d595a46912
commit cd088c44d2

View File

@@ -1,4 +1,4 @@
from typing import ContextManager, Iterator, Generic, TypeVar
from typing import ContextManager, Iterator, Generic, TypeVar, Optional
_T = TypeVar("_T")
@@ -10,3 +10,5 @@ class ProgressBar(object, Generic[_T]):
def __iter__(self) -> ProgressBar[_T]: ...
def next(self) -> _T: ...
def __next__(self) -> _T: ...
length: Optional[int]
label: str