1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-09 05:27:17 +00:00

Apply suggestions from code review.

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
Felix Fontein 2025-12-01 07:16:21 +01:00 committed by GitHub
parent 65f546b4fd
commit f6eb6d743d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

@ -88,7 +88,7 @@ class CmdRunner:
default_args_order: str | Sequence[str] = (),
check_rc: bool = False,
force_lang: str = "C",
path_prefix: list[str] | None = None,
path_prefix: Sequence[str] | None = None,
environ_update: dict[str, str] | None = None,
):
self.module = module
@ -128,9 +128,9 @@ class CmdRunner:
def __call__(
self,
args_order: str | Sequence[str] | None = None,
output_process=None,
output_process: Callable[[int, str, str], t.Any] | None = None,
check_mode_skip: bool = False,
check_mode_return=None,
check_mode_return: t.Any | None = None,
**kwargs,
):
if output_process is None:
@ -162,9 +162,9 @@ class _CmdRunnerContext:
self,
runner: CmdRunner,
args_order: tuple[str, ...],
output_process,
output_process: Callable[[int, str, str], t.Any],
check_mode_skip: bool,
check_mode_return,
check_mode_return: t.Any,
**kwargs,
) -> None:
self.runner = runner