@@ -167,7 +167,7 @@ async def create(
167167 envs : Optional [Dict [str , str ]] = None ,
168168 secure : Optional [bool ] = None ,
169169 allow_internet_access : Optional [bool ] = True ,
170- ** opts : Unpack [ApiParams ],
170+ ** opts : Optional [ Unpack [ApiParams ] ],
171171 ):
172172 """
173173 Create a new sandbox.
@@ -233,7 +233,7 @@ async def create(
233233 async def connect (
234234 cls ,
235235 sandbox_id : str ,
236- ** opts : Unpack [ApiParams ],
236+ ** opts : Optional [ Unpack [ApiParams ] ],
237237 ):
238238 """
239239 Connect to an existing sandbox.
@@ -281,7 +281,7 @@ async def __aexit__(self, exc_type, exc_value, traceback):
281281 @overload
282282 async def kill (
283283 self ,
284- ** opts : Unpack [ApiParams ],
284+ ** opts : Optional [ Unpack [ApiParams ] ],
285285 ) -> bool :
286286 """
287287 Kill the sandbox.
@@ -294,7 +294,7 @@ async def kill(
294294 @staticmethod
295295 async def kill (
296296 sandbox_id : str ,
297- ** opts : Unpack [ApiParams ],
297+ ** opts : Optional [ Unpack [ApiParams ] ],
298298 ) -> bool :
299299 """
300300 Kill the sandbox specified by sandbox ID.
@@ -308,7 +308,7 @@ async def kill(
308308 @class_method_variant ("_cls_kill" )
309309 async def kill (
310310 self ,
311- ** opts : Unpack [ApiParams ],
311+ ** opts : Optional [ Unpack [ApiParams ] ],
312312 ) -> bool :
313313 """
314314 Kill the sandbox specified by sandbox ID.
@@ -324,7 +324,7 @@ async def kill(
324324 async def set_timeout (
325325 self ,
326326 timeout : int ,
327- ** opts : Unpack [ApiParams ],
327+ ** opts : Optional [ Unpack [ApiParams ] ],
328328 ) -> None :
329329 """
330330 Set the timeout of the sandbox.
@@ -342,7 +342,7 @@ async def set_timeout(
342342 async def set_timeout (
343343 sandbox_id : str ,
344344 timeout : int ,
345- ** opts : Unpack [ApiParams ],
345+ ** opts : Optional [ Unpack [ApiParams ] ],
346346 ) -> None :
347347 """
348348 Set the timeout of the specified sandbox.
@@ -360,7 +360,7 @@ async def set_timeout(
360360 async def set_timeout ( # type: ignore
361361 self ,
362362 timeout : int ,
363- ** opts : Unpack [ApiParams ],
363+ ** opts : Optional [ Unpack [ApiParams ] ],
364364 ) -> None :
365365 """
366366 Set the timeout of the specified sandbox.
@@ -380,7 +380,7 @@ async def set_timeout( # type: ignore
380380 @overload
381381 async def get_info (
382382 self ,
383- ** opts : Unpack [ApiParams ],
383+ ** opts : Optional [ Unpack [ApiParams ] ],
384384 ) -> SandboxInfo :
385385 """
386386 Get sandbox information like sandbox ID, template, metadata, started at/end at date.
@@ -393,7 +393,7 @@ async def get_info(
393393 @staticmethod
394394 async def get_info (
395395 sandbox_id : str ,
396- ** opts : Unpack [ApiParams ],
396+ ** opts : Optional [ Unpack [ApiParams ] ],
397397 ) -> SandboxInfo :
398398 """
399399 Get sandbox information like sandbox ID, template, metadata, started at/end at date.
@@ -406,7 +406,7 @@ async def get_info(
406406 @class_method_variant ("_cls_get_info" )
407407 async def get_info ( # type: ignore
408408 self ,
409- ** opts : Unpack [ApiParams ],
409+ ** opts : Optional [ Unpack [ApiParams ] ],
410410 ) -> SandboxInfo :
411411 """
412412 Get sandbox information like sandbox ID, template, metadata, started at/end at date.
@@ -424,7 +424,7 @@ async def get_metrics( # type: ignore
424424 self ,
425425 start : Optional [datetime .datetime ] = None ,
426426 end : Optional [datetime .datetime ] = None ,
427- ** opts : Unpack [ApiParams ],
427+ ** opts : Optional [ Unpack [ApiParams ] ],
428428 ) -> List [SandboxMetrics ]:
429429 """
430430 Get the metrics of the current sandbox.
@@ -442,7 +442,7 @@ async def get_metrics(
442442 sandbox_id : str ,
443443 start : Optional [datetime .datetime ] = None ,
444444 end : Optional [datetime .datetime ] = None ,
445- ** opts : Unpack [ApiParams ],
445+ ** opts : Optional [ Unpack [ApiParams ] ],
446446 ) -> List [SandboxMetrics ]:
447447 """
448448 Get the metrics of the sandbox specified by sandbox ID.
@@ -460,7 +460,7 @@ async def get_metrics( # type: ignore
460460 self ,
461461 start : Optional [datetime .datetime ] = None ,
462462 end : Optional [datetime .datetime ] = None ,
463- ** opts : Unpack [ApiParams ],
463+ ** opts : Optional [ Unpack [ApiParams ] ],
464464 ) -> List [SandboxMetrics ]:
465465 """
466466 Get the metrics of the current sandbox.
0 commit comments