Skip to content

Commit 33e847a

Browse files
Update aws_lambda_powertools/utilities/idempotency/persistence/base.py
Co-authored-by: Leandro Damascena <[email protected]> Signed-off-by: Ruben Fonseca <[email protected]>
1 parent 9ee268e commit 33e847a

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/utilities/idempotency/persistence

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/idempotency/persistence/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _get_hashed_idempotency_key(self, data: Dict[str, Any]) -> Optional[str]:
194194

195195
@staticmethod
196196
def is_missing_idempotency_key(data) -> bool:
197-
if type(data).__name__ in ("tuple", "list", "dict"):
197+
if isinstance(data, (tuple, list, dict)):
198198
return all(x is None for x in data)
199199
elif isinstance(data, (int, float, bool)):
200200
return False

0 commit comments

Comments
 (0)