Skip to content

armgit / E2B

Public Imported from GitHub
0

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

fix: resolve ty no-matching-overload on Sandbox.kill() (#1119)

Berry6395a5fb5de3
diff --git a/.changeset/sparkly-comics-sin.md b/.changeset/sparkly-comics-sin.md
new file mode 100644
index 000000000..1a7ee539b
--- /dev/null
+++ b/.changeset/sparkly-comics-sin.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Fix type checker compatibility for class_method_variant descriptor
diff --git a/packages/python-sdk/e2b/sandbox/utils.py b/packages/python-sdk/e2b/sandbox/utils.py
index daf9d4a8b..e147409e5 100644
--- a/packages/python-sdk/e2b/sandbox/utils.py
+++ b/packages/python-sdk/e2b/sandbox/utils.py
@@ -1,10 +1,10 @@
-from typing import TypeVar, Any, cast, Optional, Type
+from typing import TypeVar, Any, Generic, cast, Optional, Type
import functools
T = TypeVar("T")
-class class_method_variant(object):
+class class_method_variant(Generic[T]):
def __init__(self, class_method_name):
self.class_method_name = class_method_name