Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix type issue in Python 3.8

Jakub Novak35b20c8711a1
diff --git a/.changeset/flat-mails-laugh.md b/.changeset/flat-mails-laugh.md
new file mode 100644
index 000000000..2053e9682
--- /dev/null
+++ b/.changeset/flat-mails-laugh.md
@@ -0,0 +1,5 @@
+---
+"@e2b/python-sdk": patch
+---
+
+Fix type issue in Python 3.8
diff --git a/.github/workflows/python_sdk_tests.yml b/.github/workflows/python_sdk_tests.yml
index 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 Python
uses: actions/setup-python@v4
with:
- python-version: '3.10'
+ python-version: '3.8'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
diff --git a/packages/python-sdk/e2b/sandbox/process.py b/packages/python-sdk/e2b/sandbox/process.py
index 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 logging
import re
import inspect
diff --git a/packages/python-sdk/e2b/sandbox/terminal.py b/packages/python-sdk/e2b/sandbox/terminal.py
index 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 logging
import threading
from concurrent.futures import Future