Skip to content

Commit 6fc75ea

Browse files
committed
use union type instead of pipe syntax
1 parent 61affb3 commit 6fc75ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/python-sdk/e2b/template_async/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Callable, Literal, Optional
1+
from typing import Callable, Literal, Optional, Union
22

33
from e2b.template import LogEntry, TemplateBuilder, TemplateFinal, TemplateBase
44

@@ -22,7 +22,7 @@
2222
class AsyncTemplate(TemplateBase):
2323
@staticmethod
2424
async def build(
25-
template: TemplateFinal | TemplateBuilder,
25+
template: Union[TemplateFinal, TemplateBuilder],
2626
alias: str,
2727
cpu_count: int,
2828
memory_mb: int,

packages/python-sdk/e2b/template_sync/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Callable, Literal, Optional
1+
from typing import Callable, Literal, Optional, Union
22

33
from e2b.template import LogEntry, TemplateBuilder, TemplateFinal, TemplateBase
44

@@ -22,7 +22,7 @@
2222
class Template(TemplateBase):
2323
@staticmethod
2424
def build(
25-
template: TemplateFinal | TemplateBuilder,
25+
template: Union[TemplateFinal, TemplateBuilder],
2626
alias: str,
2727
cpu_count: int,
2828
memory_mb: int,

0 commit comments

Comments
 (0)