commit:     9495a65c34c4dc03085199a579372c803d0b0831
Author:     Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sat Nov 22 18:08:47 2025 +0000
Commit:     Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sat Nov 22 19:06:59 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=9495a65c

chore: annotate Tool for output at least

Signed-off-by: Brian Harring <ferringb <AT> gmail.com>

 src/pkgcheck/scripts/pkgcheck_cache.py  | 3 ++-
 src/pkgcheck/scripts/pkgcheck_ci.py     | 2 +-
 src/pkgcheck/scripts/pkgcheck_replay.py | 3 ++-
 src/pkgcheck/scripts/pkgcheck_scan.py   | 3 ++-
 src/pkgcheck/scripts/pkgcheck_show.py   | 4 ++--
 5 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/pkgcheck/scripts/pkgcheck_cache.py 
b/src/pkgcheck/scripts/pkgcheck_cache.py
index 5787c65e..da323a30 100644
--- a/src/pkgcheck/scripts/pkgcheck_cache.py
+++ b/src/pkgcheck/scripts/pkgcheck_cache.py
@@ -1,5 +1,6 @@
 import os
 
+import snakeoil.formatters
 from snakeoil.cli import arghparse
 from snakeoil.osutils import pjoin
 
@@ -68,7 +69,7 @@ def _validate_cache_args(parser, namespace):
 
 
 @cache.bind_main_func
-def _cache(options, out, err):
+def _cache(options, out: snakeoil.formatters.PlainTextFormatter, _err):
     if options.remove_cache:
         cache_obj = CachedAddon(options)
         cache_obj.remove_caches()

diff --git a/src/pkgcheck/scripts/pkgcheck_ci.py 
b/src/pkgcheck/scripts/pkgcheck_ci.py
index 1a15f640..36023e80 100644
--- a/src/pkgcheck/scripts/pkgcheck_ci.py
+++ b/src/pkgcheck/scripts/pkgcheck_ci.py
@@ -28,7 +28,7 @@ ci.add_argument(
 
 
 @ci.bind_main_func
-def _ci(options, out, err):
+def _ci(options, out: PlainTextFormatter, _err):
     pipe = scan(options.args)
 
     with reporters.FancyReporter(out) as reporter:

diff --git a/src/pkgcheck/scripts/pkgcheck_replay.py 
b/src/pkgcheck/scripts/pkgcheck_replay.py
index 37e0024e..88cef2a4 100644
--- a/src/pkgcheck/scripts/pkgcheck_replay.py
+++ b/src/pkgcheck/scripts/pkgcheck_replay.py
@@ -1,3 +1,4 @@
+import snakeoil.formatters
 from snakeoil.cli import arghparse
 
 from .. import reporters
@@ -25,7 +26,7 @@ replay.add_argument(
 
 
 @replay.bind_main_func
-def _replay(options, out, err):
+def _replay(options, out: snakeoil.formatters.PlainTextFormatter, _err):
     processed = 0
 
     with options.reporter(out) as reporter:

diff --git a/src/pkgcheck/scripts/pkgcheck_scan.py 
b/src/pkgcheck/scripts/pkgcheck_scan.py
index f8cf1006..fe55ee6c 100644
--- a/src/pkgcheck/scripts/pkgcheck_scan.py
+++ b/src/pkgcheck/scripts/pkgcheck_scan.py
@@ -4,6 +4,7 @@ import shlex
 from contextlib import ExitStack
 from unittest.mock import patch
 
+import snakeoil.formatters
 from pkgcore import const as pkgcore_const
 from pkgcore.repository import errors as repo_errors
 from pkgcore.repository import multiplex
@@ -516,7 +517,7 @@ def _determine_restrictions(namespace, attr):
 
 
 @scan.bind_main_func
-def _scan(options, out, err):
+def _scan(options, out: snakeoil.formatters.PlainTextFormatter, _err):
     with ExitStack() as stack:
         report = stack.enter_context(options.reporter(out))
         for c in options.pop("contexts"):

diff --git a/src/pkgcheck/scripts/pkgcheck_show.py 
b/src/pkgcheck/scripts/pkgcheck_show.py
index 4ea20e34..3a2335a7 100644
--- a/src/pkgcheck/scripts/pkgcheck_show.py
+++ b/src/pkgcheck/scripts/pkgcheck_show.py
@@ -3,7 +3,7 @@ from collections import defaultdict
 from operator import attrgetter
 
 from snakeoil.cli import arghparse
-from snakeoil.formatters import decorate_forced_wrapping
+from snakeoil.formatters import PlainTextFormatter, decorate_forced_wrapping
 
 from .. import base, objects
 from ..addons.caches import CachedAddon
@@ -176,7 +176,7 @@ def display_reporters(out, options):
 
 
 @show.bind_main_func
-def _show(options, out, err):
+def _show(options, out: PlainTextFormatter, _err):
     if options.checks:
         display_checks(out, options)
     elif options.scopes:

Reply via email to