Skip to content

Commit 4e9cbef

Browse files
committed
Fix typing
1 parent 54bb2f0 commit 4e9cbef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dstack/_internal/server/background/tasks/process_running_jobs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ def _process_pulling_with_shim(
637637
is successful
638638
"""
639639
shim_client = client.ShimClient(port=ports[DSTACK_SHIM_HTTP_PORT])
640+
job_runtime_data = None
640641
if shim_client.is_api_v2_supported(): # raises error if shim is down, causes retry
641642
task = shim_client.get_task(job_model.id)
642643

src/dstack/_internal/server/services/proxy/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async def list_models(self, project_name: str) -> List[ChatModel]:
142142
model_options_obj = service_spec.options.get("openai", {}).get("model")
143143
if model_spec is None or model_options_obj is None:
144144
continue
145-
model_options = pydantic.parse_obj_as(AnyModel, model_options_obj)
145+
model_options = pydantic.parse_obj_as(AnyModel, model_options_obj) # type: ignore[arg-type]
146146
model = ChatModel(
147147
project_name=project_name,
148148
name=model_spec.name,

0 commit comments

Comments
 (0)