Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix type issue in Python 3.8
Jakub Novak35b20c8711a1
diff --git a/.changeset/flat-mails-laugh.md b/.changeset/flat-mails-laugh.mdnew file mode 100644index 000000000..2053e9682--- /dev/null+++ b/.changeset/flat-mails-laugh.md@@ -0,0 +1,5 @@+---+"@e2b/python-sdk": patch+---++Fix type issue in Python 3.8diff --git a/.github/workflows/python_sdk_tests.yml b/.github/workflows/python_sdk_tests.ymlindex 10c97153c..ea85bb868 100644--- a/.github/workflows/python_sdk_tests.yml+++ b/.github/workflows/python_sdk_tests.yml@@ -23,7 +23,7 @@ jobs:- name: Set up Pythonuses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: '3.8'- name: Install and configure Poetryuses: snok/install-poetry@v1diff --git a/packages/python-sdk/e2b/sandbox/process.py b/packages/python-sdk/e2b/sandbox/process.pyindex 45962d494..9c0c6b6bf 100644--- a/packages/python-sdk/e2b/sandbox/process.py+++ b/packages/python-sdk/e2b/sandbox/process.py@@ -1,3 +1,5 @@+from __future__ import annotations+import loggingimport reimport inspectdiff --git a/packages/python-sdk/e2b/sandbox/terminal.py b/packages/python-sdk/e2b/sandbox/terminal.pyindex 806556c5b..2f23902cb 100644--- a/packages/python-sdk/e2b/sandbox/terminal.py+++ b/packages/python-sdk/e2b/sandbox/terminal.py@@ -1,3 +1,6 @@+from __future__ import annotations++import loggingimport threadingfrom concurrent.futures import Future