diff options
author | Martijn Pieters <mj@zopatista.com> | 2022-11-08 19:44:29 +0000 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2023-01-19 16:33:27 -0800 |
commit | a1093bbe0dae00eea8342247a0c2739b07a6acd8 (patch) | |
tree | 25c1680557687164f30ff08c5fa0e1e1693fac66 /src/click/_termui_impl.py | |
parent | a6c7ee060b02eaa62fd15264a669220914cfad4c (diff) | |
download | click-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.py | 2 |
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 |