From 13d7b21c0ca95ab60399522a0968630e6f92830f Mon Sep 17 00:00:00 2001 From: Tiago Nobrega Date: Fri, 26 Jul 2024 11:40:30 -0300 Subject: [PATCH] chore: cleanup lints from new ruff --- craft_cli/dispatcher.py | 2 +- craft_cli/messages.py | 2 +- craft_cli/printer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/craft_cli/dispatcher.py b/craft_cli/dispatcher.py index b38bb35..37fb701 100644 --- a/craft_cli/dispatcher.py +++ b/craft_cli/dispatcher.py @@ -211,7 +211,7 @@ class Dispatcher: :param default_command: the command to run if none was specified in the command line """ - def __init__( # noqa: PLR0913 (too many arguments) + def __init__( self, appname: str, commands_groups: list[CommandGroup], diff --git a/craft_cli/messages.py b/craft_cli/messages.py index 8c1f9b2..c873b96 100644 --- a/craft_cli/messages.py +++ b/craft_cli/messages.py @@ -304,7 +304,7 @@ def stop(self) -> None: class _StreamContextManager: """A context manager that provides a pipe for subprocess to write its output.""" - def __init__( # noqa: PLR0913 (too many arguments) + def __init__( self, printer: Printer, text: str | None, diff --git a/craft_cli/printer.py b/craft_cli/printer.py index c18e4c4..b93fa50 100644 --- a/craft_cli/printer.py +++ b/craft_cli/printer.py @@ -396,7 +396,7 @@ def show( # noqa: PLR0913 (too many parameters) if not avoid_logging: self._log(msg) - def progress_bar( # noqa: PLR0913 + def progress_bar( self, stream: TextIO | None, text: str,