Skip to content

Commit

Permalink
chore: cleanup lints from new ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tigarmo committed Jul 26, 2024
1 parent 364d899 commit 13d7b21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion craft_cli/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion craft_cli/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion craft_cli/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 13d7b21

Please sign in to comment.