mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Click: add 'length' and 'label' properties to ProgressBar. (#2860)
This commit is contained in:
committed by
Sebastian Rittau
parent
d595a46912
commit
cd088c44d2
4
third_party/2and3/click/_termui_impl.pyi
vendored
4
third_party/2and3/click/_termui_impl.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user