Skip to content

Commit e8ad0a4

Browse files
Fix & make pre-commit happy
1 parent 985f7c6 commit e8ad0a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def branches_from_devguide(devguide_dir: Path) -> list[str]:
2222

2323
def get_completion(
2424
clones_dir: str, repo: str
25-
) -> tuple[float, 'TranslatorsData', str, float]:
25+
) -> tuple[float, 'TranslatorsData', str | None, float]:
2626
clone_path = Path(clones_dir, repo)
2727
for branch in branches_from_devguide(Path(clones_dir, 'devguide')) + [
2828
'master',
@@ -70,7 +70,7 @@ def get_completion(
7070

7171
change = completion - month_ago_completion
7272

73-
return completion, translators_data, branch, change
73+
return completion, translators_data, branch or None, change
7474

7575

7676
@dataclass(frozen=True)

0 commit comments

Comments
 (0)