This commit is contained in:
2025-07-14 12:24:22 -03:00
parent 98cd751ed9
commit cfffcb2070
4 changed files with 17 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
import dictdiffer
from arnparse import arnparse
from aws_lambda_powertools.shared.json_encoder import Encoder
def table_from_arn(arn: str) -> str:
@@ -17,3 +18,10 @@ def diff(first: dict, second: dict) -> list[str]:
changed.append(path)
return changed
class JSONEncoder(Encoder):
def default(self, obj):
if isinstance(obj, set):
return list(obj)
return super(__class__, self).default(obj)