Skip to content

Commit ba7c42a

Browse files
committed
Add type annotations to test helper functions
1 parent d99b485 commit ba7c42a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

reportsizedeltas/tests/test_reportsizedeltas.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919

2020

2121
def get_reportsizedeltas_object(
22-
repository_name="FooOwner/BarRepository", sketches_reports_source="foo-artifact-name", token="foo token"
23-
):
22+
repository_name: str = "FooOwner/BarRepository",
23+
sketches_reports_source: str = "foo-artifact-name",
24+
token: str = "foo token",
25+
) -> reportsizedeltas.ReportSizeDeltas:
2426
"""Return a reportsizedeltas.ReportSizeDeltas object to use in tests.
2527
2628
Keyword arguments:
@@ -33,7 +35,7 @@ def get_reportsizedeltas_object(
3335
)
3436

3537

36-
def directories_are_same(left_directory, right_directory):
38+
def directories_are_same(left_directory, right_directory) -> bool:
3739
"""Check recursively whether two directories contain the same files.
3840
Based on https://stackoverflow.com/a/6681395
3941

0 commit comments

Comments
 (0)