Skip to content

Commit 8c209c2

Browse files
committed
cli/sync(refactor[typing]): Use JsonValue for sync events
why: Clarify JSON payload typing for per-repo sync events. what: - Type sync event payload dict with JsonValue entries
1 parent 2c0acc6 commit 8c209c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vcspull/cli/sync.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from ._colors import Colors, get_color_mode
3434
from ._output import (
3535
JsonObject,
36+
JsonValue,
3637
OutputFormatter,
3738
OutputMode,
3839
PlanAction,
@@ -719,7 +720,7 @@ def silent_progress(output: str, timestamp: datetime) -> None:
719720

720721
summary["total"] += 1
721722

722-
event: dict[str, t.Any] = {
723+
event: dict[str, JsonValue] = {
723724
"reason": "sync",
724725
"name": repo_name,
725726
"path": display_repo_path,

0 commit comments

Comments
 (0)