Skip to content

Commit d53f062

Browse files
authored
Fix the type annotation for color param of Spinner.finalize() (#2879)
Closes #2878
1 parent 2a87375 commit d53f062

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/changelog/2878.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Fix an incorrect type annotation for the ``color`` parameter in ``Spinner.finalize()``.

src/tox/util/spinner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def fail(self, key: str) -> None:
138138
def skip(self, key: str) -> None:
139139
self.finalize(key, f"SKIP {self.outcome.skip}", Fore.YELLOW)
140140

141-
def finalize(self, key: str, status: str, color: int) -> None:
141+
def finalize(self, key: str, status: str, color: str) -> None:
142142
start_at = self._envs.pop(key, None)
143143
if self.enabled:
144144
self.clear()

0 commit comments

Comments
 (0)