Skip to content

Commit

Permalink
Fix the type annotation for color param of Spinner.finalize() (#2879
Browse files Browse the repository at this point in the history
)

Closes #2878
  • Loading branch information
kurtmckee committed Jan 17, 2023
1 parent 2a87375 commit d53f062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/2878.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix an incorrect type annotation for the ``color`` parameter in ``Spinner.finalize()``.
2 changes: 1 addition & 1 deletion src/tox/util/spinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def fail(self, key: str) -> None:
def skip(self, key: str) -> None:
self.finalize(key, f"SKIP {self.outcome.skip}", Fore.YELLOW)

def finalize(self, key: str, status: str, color: int) -> None:
def finalize(self, key: str, status: str, color: str) -> None:
start_at = self._envs.pop(key, None)
if self.enabled:
self.clear()
Expand Down

0 comments on commit d53f062

Please sign in to comment.