Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/python-sdk-py-typed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@e2b/python-sdk": patch
---

add py.typed marker for PEP 561 type checking support
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ vale-styles
.vercel
.vscode
.DS_Store
.worktrees

# Logs
logs
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,21 @@ async def test_traces_on_copyItems(async_build):
@pytest.mark.skip_debug()
async def test_traces_on_copy_absolute_path():
await _expect_to_throw_and_check_trace(
lambda: AsyncTemplate()
.from_base_image()
.copy("/absolute/path", "/absolute/path"),
lambda: (
AsyncTemplate().from_base_image().copy("/absolute/path", "/absolute/path")
),
"copy",
)


@pytest.mark.skip_debug()
async def test_traces_on_copyItems_absolute_path():
await _expect_to_throw_and_check_trace(
lambda: AsyncTemplate()
.from_base_image()
.copy_items([CopyItem(src="/absolute/path", dest="/absolute/path")]),
lambda: (
AsyncTemplate()
.from_base_image()
.copy_items([CopyItem(src="/absolute/path", dest="/absolute/path")])
),
"copy_items",
)

Expand Down