Skip to content

Commit 823c3db

Browse files
iwillspeakCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4bedcac commit 823c3db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/functional/e2e/testcases/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
classification_labels: list[str],
1515
) -> None:
1616
self.id: str = "/".join(
17-
filepath.split("/")[-2:]
17+
Path(filepath).parts[-2:]
1818
) # e.g. "ducks/duck1.jpg"
1919
self.filepath: str = filepath
2020
self.expected_output: dict[str, float] = dict(

0 commit comments

Comments
 (0)