Skip to content

Commit c4d2a8f

Browse files
committed
Revert pinned cap for the version of click
1 parent 066b4b7 commit c4d2a8f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ attrs==22.2.0
22
beautifulsoup4==4.13.3
33
certifi==2022.12.7
44
chardet==5.2.0
5-
click==8.1.8
5+
click==8.2.0
66
idna==3.4
77
pip==23.0
88
PyYAML==6.0

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ python_requires = >=3.9
4242
install_requires =
4343
attrs >= 18.1, !=20.1.0
4444
Beautifulsoup4[chardet] >= 4.13.0
45-
click >= 6.7, !=7.0, <8.2
45+
click >= 8.2.0
4646
requests[use_chardet_on_py3] >= 2.7.0
4747
saneyaml >= 0.5.2
4848
text_unidecode >= 1.0

src/commoncode/cliutils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def make_step(self, n_steps):
177177
# overriden and copied from Click to work around Click woes for
178178
# https://github.com/aboutcode-org/scancode-toolkit/issues/2583
179179
def generator(self):
180-
if self.is_hidden:
180+
if self.hidden:
181181
yield from self.iter
182182
else:
183183
for rv in self.iter:
@@ -196,7 +196,7 @@ class EnhancedProgressBar(DebuggedProgressBar):
196196
"""
197197

198198
def render_progress(self):
199-
if not self.is_hidden:
199+
if not self.hidden:
200200
return super(EnhancedProgressBar, self).render_progress()
201201

202202

@@ -217,7 +217,7 @@ class ProgressLogger(ProgressBar):
217217

218218
def __init__(self, *args, **kwargs):
219219
super(ProgressLogger, self).__init__(*args, **kwargs)
220-
self.is_hidden = False
220+
self.hidden = False
221221

222222
def render_progress(self):
223223
line = self.format_progress_line()

0 commit comments

Comments
 (0)