diff --git a/.changeset/sparkly-comics-sin.md b/.changeset/sparkly-comics-sin.md new file mode 100644 index 0000000000..1a7ee539b0 --- /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 daf9d4a8b9..e147409e58 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