Skip to content

Commit

Permalink
Appease pylint with asterisk in __exit__()
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnikaV9 committed Aug 14, 2022
1 parent 396332b commit 8ca6823
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --max-line-length 200 --fail-under 9.80
pylint $(git ls-files '*.py') --max-line-length 200
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "lowbar"
version = "1.1.4"
version = "1.1.5"
authors = [
{ name="AnnikaV9", email="[email protected]" },
]
Expand Down
5 changes: 3 additions & 2 deletions src/lowbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __enter__(self) -> object:

return self

def __exit__(self, type, value, traceback) -> None:
def __exit__(self, *exc) -> None:

"""
Context manager exit to clear the bar automatically
Expand Down Expand Up @@ -95,7 +95,8 @@ def _get_terminal_columns(self) -> int:
def _update_bar(self) -> None:

"""
Refreshes the current bar with new values.
Refreshes the current bar with new values, and a
possibly resized console.
"""

completion_string: str = f" {str(self.completion)}" if self.completion < 10 else str(self.completion)
Expand Down

0 comments on commit 8ca6823

Please sign in to comment.