summaryrefslogtreecommitdiff
path: root/src/click/_termui_impl.py
diff options
context:
space:
mode:
authorMartijn Pieters <mj@zopatista.com>2022-11-08 19:44:29 +0000
committerDavid Lord <davidism@gmail.com>2023-01-19 16:33:27 -0800
commita1093bbe0dae00eea8342247a0c2739b07a6acd8 (patch)
tree25c1680557687164f30ff08c5fa0e1e1693fac66 /src/click/_termui_impl.py
parenta6c7ee060b02eaa62fd15264a669220914cfad4c (diff)
downloadclick-a1093bbe0dae00eea8342247a0c2739b07a6acd8.tar.gz
Types: don't leave generic types without a parameter
Enable `disallow_any_generics` and provide type information for missing parameters for type hints.
Diffstat (limited to 'src/click/_termui_impl.py')
-rw-r--r--src/click/_termui_impl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/click/_termui_impl.py b/src/click/_termui_impl.py
index 4b979bc..1caaad8 100644
--- a/src/click/_termui_impl.py
+++ b/src/click/_termui_impl.py
@@ -93,7 +93,7 @@ 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