diff --git a/.changeset/python-sdk-py-typed.md b/.changeset/python-sdk-py-typed.md new file mode 100644 index 0000000000..ec53e5a993 --- /dev/null +++ b/.changeset/python-sdk-py-typed.md @@ -0,0 +1,5 @@ +--- +"@e2b/python-sdk": patch +--- + +add py.typed marker for PEP 561 type checking support diff --git a/.gitignore b/.gitignore index 7ccb79cdee..2ffe367001 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ vale-styles .vercel .vscode .DS_Store +.worktrees # Logs logs diff --git a/packages/python-sdk/e2b/py.typed b/packages/python-sdk/e2b/py.typed new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/python-sdk/tests/async/template_async/test_stacktrace.py b/packages/python-sdk/tests/async/template_async/test_stacktrace.py index 03bc2ca162..29dcde11b0 100644 --- a/packages/python-sdk/tests/async/template_async/test_stacktrace.py +++ b/packages/python-sdk/tests/async/template_async/test_stacktrace.py @@ -182,9 +182,9 @@ 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", ) @@ -192,9 +192,11 @@ async def test_traces_on_copy_absolute_path(): @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", )