summaryrefslogtreecommitdiff
path: root/src/_pytest/terminal.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-06-27 10:54:29 +0300
committerGitHub <noreply@github.com>2020-06-27 10:54:29 +0300
commit7450b6dd95aa4dfb9c64c2442a173ca65143b442 (patch)
treedc1336ce5713fd3e9bf4466bba7322492224065d /src/_pytest/terminal.py
parent61014c5f94b99624c47b1aad9ae47782597dc88f (diff)
parentf382a6bb2084c8fb5a4e252ab7f3358752e27f67 (diff)
downloadpytest-7450b6dd95aa4dfb9c64c2442a173ca65143b442.tar.gz
Merge pull request #7418 from bluetech/typing-3
More typing work
Diffstat (limited to 'src/_pytest/terminal.py')
-rw-r--r--src/_pytest/terminal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py
index 9dbd477ea..b312b3562 100644
--- a/src/_pytest/terminal.py
+++ b/src/_pytest/terminal.py
@@ -473,9 +473,9 @@ class TerminalReporter:
def line(self, msg: str, **kw: bool) -> None:
self._tw.line(msg, **kw)
- def _add_stats(self, category: str, items: List) -> None:
+ def _add_stats(self, category: str, items: Sequence) -> None:
set_main_color = category not in self.stats
- self.stats.setdefault(category, []).extend(items[:])
+ self.stats.setdefault(category, []).extend(items)
if set_main_color:
self._set_main_color()
@@ -505,7 +505,7 @@ class TerminalReporter:
# which garbles our output if we use self.write_line
self.write_line(msg)
- def pytest_deselected(self, items) -> None:
+ def pytest_deselected(self, items: Sequence[Item]) -> None:
self._add_stats("deselected", items)
def pytest_runtest_logstart(