Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix: resolve ty no-matching-overload on Sandbox.kill() (#1119)
Berry6395a5fb5de3
diff --git a/.changeset/sparkly-comics-sin.md b/.changeset/sparkly-comics-sin.mdnew file mode 100644index 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 descriptordiff --git a/packages/python-sdk/e2b/sandbox/utils.py b/packages/python-sdk/e2b/sandbox/utils.pyindex 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, Typeimport functoolsT = 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