Skip to content

Commit bf3e25b

Browse files
mishushakovclaude
andcommitted
Format Python language type annotations for ruff
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 97f712f commit bf3e25b

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

python/e2b_code_interpreter/code_interpreter_async.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ def _client(self) -> AsyncClient:
6868
async def run_code(
6969
self,
7070
code: str,
71-
language: Union[Literal["python", "javascript", "typescript", "r", "java", "bash"], str, None] = None,
71+
language: Union[
72+
Literal["python", "javascript", "typescript", "r", "java", "bash"],
73+
str,
74+
None,
75+
] = None,
7276
on_stdout: Optional[OutputHandlerWithAsync[OutputMessage]] = None,
7377
on_stderr: Optional[OutputHandlerWithAsync[OutputMessage]] = None,
7478
on_result: Optional[OutputHandlerWithAsync[Result]] = None,
@@ -202,7 +206,11 @@ async def run_code(
202206
async def create_code_context(
203207
self,
204208
cwd: Optional[str] = None,
205-
language: Union[Literal["python", "javascript", "typescript", "r", "java", "bash"], str, None] = None,
209+
language: Union[
210+
Literal["python", "javascript", "typescript", "r", "java", "bash"],
211+
str,
212+
None,
213+
] = None,
206214
request_timeout: Optional[float] = None,
207215
) -> Context:
208216
"""

python/e2b_code_interpreter/code_interpreter_sync.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ def _client(self) -> Client:
6565
def run_code(
6666
self,
6767
code: str,
68-
language: Union[Literal["python", "javascript", "typescript", "r", "java", "bash"], str, None] = None,
68+
language: Union[
69+
Literal["python", "javascript", "typescript", "r", "java", "bash"],
70+
str,
71+
None,
72+
] = None,
6973
on_stdout: Optional[OutputHandler[OutputMessage]] = None,
7074
on_stderr: Optional[OutputHandler[OutputMessage]] = None,
7175
on_result: Optional[OutputHandler[Result]] = None,
@@ -198,7 +202,11 @@ def run_code(
198202
def create_code_context(
199203
self,
200204
cwd: Optional[str] = None,
201-
language: Union[Literal["python", "javascript", "typescript", "r", "java", "bash"], str, None] = None,
205+
language: Union[
206+
Literal["python", "javascript", "typescript", "r", "java", "bash"],
207+
str,
208+
None,
209+
] = None,
202210
request_timeout: Optional[float] = None,
203211
) -> Context:
204212
"""

0 commit comments

Comments
 (0)