Skip to content

Commit bacea37

Browse files
fix: Change StatusView precision type to int | None (#1438)
Fixes #124 Changed 3 to None
1 parent e7eae6c commit bacea37

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/blueapi/worker/event.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class StatusView(BlueapiBaseModel):
113113
description="Target value operation of progress, if known", default=None
114114
)
115115
unit: str = Field(description="Units of progress", default="units")
116-
precision: int = Field(
117-
description="Sensible precision of progress to display", default=3
116+
precision: int | None = Field(
117+
description="Sensible precision of progress to display", default=None
118118
)
119119
done: bool = Field(
120120
description="Whether the operation this status describes is complete",

‎src/blueapi/worker/task_worker.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def _on_status_event(
656656
initial=initial,
657657
target=target,
658658
unit=unit or "units",
659-
precision=precision or 3,
659+
precision=precision,
660660
done=status.done,
661661
percentage=percentage,
662662
time_elapsed=time_elapsed,

0 commit comments

Comments
 (0)