File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 66from typing import List , Optional
77from uuid import UUID
88
9- from typing_extensions import Self
10-
119from codeboxapi .schema import CodeBoxFile , CodeBoxOutput , CodeBoxStatus
1210
1311
@@ -99,11 +97,11 @@ def stop(self) -> CodeBoxStatus:
9997 async def astop (self ) -> CodeBoxStatus :
10098 """Async Terminate the CodeBox instance"""
10199
102- def __enter__ (self ) -> Self :
100+ def __enter__ (self ) -> "BaseBox" :
103101 self .start ()
104102 return self
105103
106- async def __aenter__ (self ) -> Self :
104+ async def __aenter__ (self ) -> "BaseBox" :
107105 await self .astart ()
108106 return self
109107
Original file line number Diff line number Diff line change 1818
1919import aiohttp
2020import requests
21- from typing_extensions import Self
2221from websockets .client import WebSocketClientProtocol
2322from websockets .client import connect as ws_connect
2423from websockets .exceptions import ConnectionClosedError
@@ -37,7 +36,7 @@ class LocalBox(BaseBox):
3736 This is useful for testing and development.
3837 """
3938
40- _instance : Optional [Self ] = None
39+ _instance : Optional ["LocalBox" ] = None
4140
4241 def __new__ (cls , * args , ** kwargs ):
4342 if not cls ._instance :
You can’t perform that action at this time.
0 commit comments