Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 11, 2023
1 parent 921725b commit 03828ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/gphotos_sync/GoogleAlbumsSync.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
from datetime import datetime
from pathlib import Path
from typing import Callable, Dict, Tuple
from typing import Callable, Dict, Optional, Tuple

from gphotos_sync.Checks import get_check

Expand Down Expand Up @@ -68,7 +68,9 @@ def __init__(
self.path_format = settings.path_format

@classmethod
def make_search_parameters(cls, album_id: str, page_token: str = None) -> Dict:
def make_search_parameters(
cls, album_id: str, page_token: Optional[str] = None
) -> Dict:
body = {"pageToken": page_token, "albumId": album_id, "pageSize": PAGE_SIZE}
return body

Expand Down
2 changes: 1 addition & 1 deletion src/gphotos_sync/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def fs_checks(root_folder: Path, args):

return args

def main(self, test_args: dict = None):
def main(self, test_args: Optional[dict] = None):
start_time = datetime.now()
args = self.parser.parse_args(test_args) # type: ignore

Expand Down

0 comments on commit 03828ab

Please sign in to comment.