File tree 1 file changed +3
-3
lines changed
aws_lambda_powertools/utilities/idempotency
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def status(self) -> str:
27
27
return self ._status
28
28
29
29
@property
30
- def expiry_timestamp (self ) -> int :
30
+ def expiry_timestamp (self ) -> Optional [ int ] :
31
31
return self ._expiry_timestamp
32
32
33
33
@@ -52,7 +52,7 @@ def __init__(
52
52
local_cache_max_items : int = 256 ,
53
53
hash_function : str = "md5" ,
54
54
lambda_context : Optional [LambdaContext ] = None ,
55
- response_hook : IdempotentHookFunction = None ,
55
+ response_hook : Optional [ IdempotentHookFunction ] = None ,
56
56
):
57
57
"""
58
58
Initialize the base persistence layer
@@ -87,7 +87,7 @@ def __init__(
87
87
self .local_cache_max_items = local_cache_max_items
88
88
self .hash_function = hash_function
89
89
self .lambda_context : Optional [LambdaContext ] = lambda_context
90
- self .response_hook : IdempotentHookFunction = response_hook
90
+ self .response_hook : Optional [ IdempotentHookFunction ] = response_hook
91
91
92
92
def register_lambda_context (self , lambda_context : LambdaContext ):
93
93
"""Captures the Lambda context, to calculate the remaining time before the invocation times out"""
You can’t perform that action at this time.
0 commit comments