Skip to content

Commit

Permalink
chore: correct read_truncated signature
Browse files Browse the repository at this point in the history
  • Loading branch information
boukeas committed Feb 14, 2025
1 parent 9910c67 commit 5309f3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agent/testflinger_agent/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import logging
import os
import time
from typing import Optional

from testflinger_agent.errors import TFServerError
from .runner import CommandRunner, RunnerEvents
Expand Down Expand Up @@ -249,7 +248,7 @@ def banner(self, line):
yield "*" * (len(line) + 4)


def read_truncated(filename: str, size: Optional[int]) -> str:
def read_truncated(filename: str, size: int) -> str:
"""Return a string corresponding to the last bytes of a text file.
Include a warning message at the end of the returned value if the file
Expand Down

0 comments on commit 5309f3c

Please sign in to comment.