Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Feb 12, 2024
1 parent 69f7aa0 commit 9bf336b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions suby/proxy_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def __call__(self, *arguments: str, catch_output: bool = False, logger: LoggerPr

arguments_string_representation = ' '.join([argument if ' ' not in argument else f'"{argument}"' for argument in arguments])

stdout_buffer = []
stderr_buffer = []
stdout_buffer: List[str] = []
stderr_buffer: List[str] = []
result = SubprocessResult()

logger.info(f'The beginning of the execution of the command "{arguments_string_representation}".')
Expand All @@ -45,7 +45,7 @@ def __call__(self, *arguments: str, catch_output: bool = False, logger: LoggerPr
if token is not None:
killing_thread = self.run_killing_thread(process, token, result)

for line in process.stdout:
for line in process.stdout: # type: ignore[union-attr]
stdout_buffer.append(line)
if not catch_output:
stdout_callback(line)
Expand Down

0 comments on commit 9bf336b

Please sign in to comment.