Skip to content

Commit baebc7d

Browse files
committed
cp dines
1 parent 9445501 commit baebc7d

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/runloop_api_client/sdk/async_.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
import asyncio
6-
from typing import Dict, Mapping, Optional
6+
from typing import Dict, Mapping, Optional, cast
77
from pathlib import Path
88
from datetime import timedelta
99
from typing_extensions import Unpack
@@ -265,8 +265,11 @@ async def create(
265265
:return: Wrapper bound to the finished blueprint
266266
:rtype: AsyncBlueprint
267267
"""
268-
blueprint: BlueprintView = await self._client.blueprints.create_and_await_build_complete(
269-
**params, # type: ignore[call-arg]
268+
blueprint = cast(
269+
BlueprintView,
270+
await self._client.blueprints.create_and_await_build_complete(
271+
**params, # type: ignore[call-arg]
272+
),
270273
)
271274
return AsyncBlueprint(self._client, blueprint.id)
272275

src/runloop_api_client/sdk/sync.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Mapping, Optional
5+
from typing import Dict, Mapping, Optional, cast
66
from pathlib import Path
77
from datetime import timedelta
88
from typing_extensions import Unpack
@@ -263,8 +263,11 @@ def create(
263263
:return: Wrapper bound to the finished blueprint
264264
:rtype: Blueprint
265265
"""
266-
blueprint: BlueprintView = self._client.blueprints.create_and_await_build_complete(
267-
**params, # type: ignore[call-arg]
266+
blueprint = cast(
267+
BlueprintView,
268+
self._client.blueprints.create_and_await_build_complete(
269+
**params, # type: ignore[call-arg]
270+
),
268271
)
269272
return Blueprint(self._client, blueprint.id)
270273

0 commit comments

Comments
 (0)