Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add missing pydantic annotations (#164)

Tomas Valenta9e3c499b69a7
diff --git a/.changeset/thin-houses-kick.md b/.changeset/thin-houses-kick.md
new file mode 100644
index 000000000..2b88f4dd2
--- /dev/null
+++ b/.changeset/thin-houses-kick.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Add missing pydantic annotations
diff --git a/packages/python-sdk/e2b/session/process.py b/packages/python-sdk/e2b/session/process.py
index 1077cc252..214828111 100644
--- a/packages/python-sdk/e2b/session/process.py
+++ b/packages/python-sdk/e2b/session/process.py
@@ -37,7 +37,7 @@ class ProcessOutput(BaseModel):
delimiter: ClassVar[str] = "\n"
messages: List[ProcessMessage] = []
- error = False
+ error: bool = False
@property
def stdout(self) -> str:
diff --git a/packages/python-sdk/e2b/session/terminal.py b/packages/python-sdk/e2b/session/terminal.py
index 79d7d305c..cfa9457dd 100644
--- a/packages/python-sdk/e2b/session/terminal.py
+++ b/packages/python-sdk/e2b/session/terminal.py
@@ -15,7 +15,7 @@ logger = logging.getLogger(__file__)
class TerminalOutput(BaseModel):
- data = ""
+ data: str = ""
def _add_data(self, data: str) -> None:
self.data += data