File tree Expand file tree Collapse file tree
src/runloop_api_client/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import asyncio
6- from typing import Dict , Mapping , Optional
6+ from typing import Dict , Mapping , Optional , cast
77from pathlib import Path
88from datetime import timedelta
99from 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
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import Dict , Mapping , Optional
5+ from typing import Dict , Mapping , Optional , cast
66from pathlib import Path
77from datetime import timedelta
88from 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
You can’t perform that action at this time.
0 commit comments