Skip to content

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Jan 18, 2024
1 parent c472d65 commit c6e5da9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrapli/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def user_warning(title: str, message: str) -> None:
warn(warning_message)


def output_roughly_contains_input(input_: bytes, output: bytes) -> True:
def output_roughly_contains_input(input_: bytes, output: bytes) -> bool:
"""
Return True if all characters in input are contained in order in the given output.
Expand Down Expand Up @@ -342,7 +342,7 @@ def _roughly_contains_input_iter_output_for_input_char(
char: int, output: bytes
) -> Tuple[bool, bytes]:
"""
Iterates over chars in the output to find input, returns remaining output bytes if input found.
Iterate over chars in the output to find input, returns remaining output bytes if input found.
Args:
char: input char to find in output
Expand All @@ -357,6 +357,6 @@ def _roughly_contains_input_iter_output_for_input_char(
"""
for index, output_char in enumerate(output):
if char == output_char:
return True, output[index + 1 :]
return True, output[index + 1 :] #noqa: E203

return False, b""

Check warning on line 362 in scrapli/helper.py

View check run for this annotation

Codecov / codecov/patch

scrapli/helper.py#L362

Added line #L362 was not covered by tests

0 comments on commit c6e5da9

Please sign in to comment.