Skip to content

Commit

Permalink
Set stdout/stderr defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Nov 23, 2024
1 parent da04586 commit d484034
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/styxdefs/dry_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def output_file(self, local_file: str, optional: bool = False) -> OutputPathType
def run(
self,
cargs: list[str],
handle_stdout: typing.Callable[[str], None] | None,
handle_stderr: typing.Callable[[str], None] | None,
handle_stdout: typing.Callable[[str], None] | None = None,
handle_stderr: typing.Callable[[str], None] | None = None,
) -> None:
"""Execute command (in this dry runner this only captures the outputs)."""
self.last_cargs = cargs
4 changes: 2 additions & 2 deletions src/styxdefs/local_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def output_file(self, local_file: str, optional: bool = False) -> OutputPathType
def run(
self,
cargs: list[str],
handle_stdout: typing.Callable[[str], None] | None,
handle_stderr: typing.Callable[[str], None] | None,
handle_stdout: typing.Callable[[str], None] | None = None,
handle_stderr: typing.Callable[[str], None] | None = None,
) -> None:
"""Run the command."""
self.logger.debug(f"Running command: {shlex.join(cargs)}")
Expand Down
4 changes: 2 additions & 2 deletions src/styxdefs/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def input_file(
def run(
self,
cargs: list[str],
handle_stdout: typing.Callable[[str], None] | None,
handle_stderr: typing.Callable[[str], None] | None,
handle_stdout: typing.Callable[[str], None] | None = None,
handle_stderr: typing.Callable[[str], None] | None = None,
) -> None:
"""Run the command.
Expand Down

0 comments on commit d484034

Please sign in to comment.