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

Commit

Permalink
Fix type definition of tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Jun 12, 2023
1 parent 18cd429 commit 1d23d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions sync/cli/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ def sync(cls) -> int:

sync = Sync(
root_folder=root_folder,
config=config,
tracks=None
config=config
)
sync.create_local_tracks()
sync.update_by_ids(
Expand All @@ -245,8 +244,7 @@ def index(cls) -> int:

sync = Sync(
root_folder=root_folder,
config=config,
tracks=None
config=config
)
sync.create_local_tracks()

Expand Down
2 changes: 1 addition & 1 deletion sync/core/Sync.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Sync:
_config: ConfigJson
_tracks: BaseTracks

def __init__(self, root_folder: Path, config: ConfigJson, tracks: Optional[BaseTracks]): ...
def __init__(self, root_folder: Path, config: ConfigJson, tracks: Optional[BaseTracks] = ...): ...
def _set_updatable(self): ...
def _check_ids(self, track: TrackJson, online_module: OnlineModule): ...
def _update_jsons(self, track: TrackJson, force: bool) -> Optional[OnlineModule]: ...
Expand Down

0 comments on commit 1d23d55

Please sign in to comment.