summaryrefslogtreecommitdiff
path: root/src/click/_termui_impl.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/click/_termui_impl.py')
-rw-r--r--src/click/_termui_impl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/click/_termui_impl.py b/src/click/_termui_impl.py
index 4b979bc..a050471 100644
--- a/src/click/_termui_impl.py
+++ b/src/click/_termui_impl.py
@@ -93,12 +93,12 @@ class ProgressBar(t.Generic[V]):
self.is_hidden = not isatty(self.file)
self._last_line: t.Optional[str] = None
- def __enter__(self) -> "ProgressBar":
+ def __enter__(self) -> "ProgressBar[V]":
self.entered = True
self.render_progress()
return self
- def __exit__(self, exc_type, exc_value, tb): # type: ignore
+ def __exit__(self, *_: t.Any) -> None:
self.render_finish()
def __iter__(self) -> t.Iterator[V]: