From cd088c44d22bb72ef2ebc8eddbe2dc9cbb2afb71 Mon Sep 17 00:00:00 2001 From: Tom Briggs Date: Tue, 12 Mar 2019 15:58:40 -0400 Subject: [PATCH] Click: add 'length' and 'label' properties to ProgressBar. (#2860) --- third_party/2and3/click/_termui_impl.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/click/_termui_impl.pyi b/third_party/2and3/click/_termui_impl.pyi index 7ad76ac57..f938c1c9d 100644 --- a/third_party/2and3/click/_termui_impl.pyi +++ b/third_party/2and3/click/_termui_impl.pyi @@ -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