Skip to content

Commit d7da110

Browse files
FullyTypedAstraea Quinn S
authored andcommitted
fix: remove deprecated decorator
1 parent 48015b9 commit d7da110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws_durable_execution_sdk_python/execution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from enum import Enum
77
from functools import wraps
88
from typing import TYPE_CHECKING, Any
9-
from warnings import deprecated
9+
from warnings import warn
1010

1111
from aws_durable_execution_sdk_python.context import DurableContext, ExecutionState
1212
from aws_durable_execution_sdk_python.exceptions import (
@@ -319,7 +319,7 @@ def wrapper(event: Any, context: LambdaContext) -> MutableMapping[str, Any]:
319319
return wrapper
320320

321321

322-
@deprecated("Use `durable_execution` instead.")
323322
@wraps(durable_execution)
324323
def durable_handler(*args, **kwargs):
324+
warn("Deprecated, use `durable_execution`.", DeprecationWarning, stacklevel=2)
325325
return durable_execution(*args, **kwargs)

0 commit comments

Comments
 (0)