Skip to content

Commit 66c33b8

Browse files
committed
Relax Training version type constraint to be Optional
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent 298e2ab commit 66c33b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

replicate/training.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from replicate.exceptions import ReplicateException
77
from replicate.files import upload_file
88
from replicate.json import encode_json
9+
from replicate.version import Version
910

1011

1112
class Training(BaseModel):
@@ -19,7 +20,7 @@ class Training(BaseModel):
1920
output: Optional[Any]
2021
started_at: Optional[str]
2122
status: str
22-
version: str
23+
version: Optional[Version]
2324

2425
def cancel(self) -> None:
2526
"""Cancel a running training"""

0 commit comments

Comments
 (0)