Skip to content

Commit

Permalink
Cart explorer/annotations: carts will be empty when initialized. Re #155
Browse files Browse the repository at this point in the history
.

When initializing cart explorer, an empty dictionary can be passed into cart explorer init function. Make sure this is annotated correctly (Optional[dict]).
  • Loading branch information
josephsl committed Jan 25, 2021
1 parent d4a7175 commit 2a4c359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/appModules/splstudio/splmisc.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _populateCarts(
# if told to refresh, timestamps will be checked and updated banks will be reassigned.
# Carts dictionary is used if and only if refresh is on, as it'll modify live carts.
def cartExplorerInit(
StudioTitle: str, cartFiles: Optional[list[str]] = None, refresh: bool = False, carts: dict[str, Any] = None
StudioTitle: str, cartFiles: Optional[list[str]] = None, refresh: bool = False, carts: Optional[dict[str, Any]] = None
) -> dict[str, Any]:
global _cartEditTimestamps
log.debug("SPL: refreshing Cart Explorer" if refresh else "preparing cart Explorer")
Expand Down

0 comments on commit 2a4c359

Please sign in to comment.