Skip to content

Commit 475d690

Browse files
committed
small type hinting improvements
1 parent 7f83c59 commit 475d690

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

progressbar/bar.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def __init__(self, fd: types.IO = sys.stderr,
7575
# Check if it should overwrite the current line (suitable for
7676
# iteractive terminals) or write line breaks (suitable for log files)
7777
if line_breaks is None:
78-
line_breaks = utils.env_flag('PROGRESSBAR_LINE_BREAKS', not
79-
self.is_terminal)
78+
line_breaks = utils.env_flag('PROGRESSBAR_LINE_BREAKS',
79+
not self.is_terminal)
8080
self.line_breaks = line_breaks
8181

8282
# Check if ANSI escape characters are enabled (suitable for iteractive
@@ -155,8 +155,8 @@ def finish(self): # pragma: no cover
155155

156156
class StdRedirectMixin(DefaultFdMixin):
157157

158-
def __init__(self, redirect_stderr: bool = False, redirect_stdout:
159-
bool = False, **kwargs):
158+
def __init__(self, redirect_stderr: bool = False,
159+
redirect_stdout: bool = False, **kwargs):
160160
DefaultFdMixin.__init__(self, **kwargs)
161161
self.redirect_stderr = redirect_stderr
162162
self.redirect_stdout = redirect_stdout
@@ -487,8 +487,8 @@ def data(self):
487487
# The seconds since the bar started
488488
total_seconds_elapsed=total_seconds_elapsed,
489489
# The seconds since the bar started modulo 60
490-
seconds_elapsed=(elapsed.seconds % 60) +
491-
(elapsed.microseconds / 1000000.),
490+
seconds_elapsed=(elapsed.seconds % 60)
491+
+ (elapsed.microseconds / 1000000.),
492492
# The minutes since the bar started modulo 60
493493
minutes_elapsed=(elapsed.seconds / 60) % 60,
494494
# The hours since the bar started modulo 24

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ commands =
3838
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
3939

4040
[flake8]
41-
ignore = W391, W504, E741
41+
ignore = W391, W504, E741, W503, E131
4242
exclude =
4343
docs,
4444
progressbar/six.py

0 commit comments

Comments
 (0)