Skip to content

Commit c41f85b

Browse files
author
Andrei Neagu
committed
fixed types
1 parent 1ba9372 commit c41f85b

File tree

1 file changed

+2
-1
lines changed
  • packages/models-library/src/models_library/api_schemas_dynamic_sidecar

1 file changed

+2
-1
lines changed

packages/models-library/src/models_library/api_schemas_dynamic_sidecar/telemetry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
ByteSize,
88
Field,
99
NonNegativeFloat,
10+
NonNegativeInt,
1011
root_validator,
1112
validator,
1213
)
@@ -80,7 +81,7 @@ def _check_total(cls, values: dict[str, Any]) -> dict[str, Any]:
8081

8182
@classmethod
8283
def from_efs_guardian(
83-
cls, used: NonNegativeFloat, total: NonNegativeFloat
84+
cls, used: NonNegativeInt, total: NonNegativeInt
8485
) -> "DiskUsage":
8586
free = total - used
8687
return cls(

0 commit comments

Comments
 (0)