From 91880237027a43409553b2207df6cf11a6b63235 Mon Sep 17 00:00:00 2001 From: Alexander Rashed Date: Mon, 2 Dec 2024 16:09:32 +0100 Subject: [PATCH 1/2] fix type quoting on recursive typed dicts --- localstack-core/localstack/aws/scaffold.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/localstack-core/localstack/aws/scaffold.py b/localstack-core/localstack/aws/scaffold.py index 1421091758fcd..f2e8f1b8c7ee7 100644 --- a/localstack-core/localstack/aws/scaffold.py +++ b/localstack-core/localstack/aws/scaffold.py @@ -142,11 +142,11 @@ def dependencies(self) -> List[str]: def _print_structure_declaration(self, output, doc=True, quote_types=False): if self.is_exception: - self._print_as_class(output, "ServiceException", doc) + self._print_as_class(output, "ServiceException", doc, quote_types=quote_types) return if any(map(is_keyword, self.shape.members.keys())): - self._print_as_typed_dict(output) + self._print_as_typed_dict(output, doc, quote_types) return if self.is_request: From ea278111696ee9d7ee7eb9472f1d775ef93938fd Mon Sep 17 00:00:00 2001 From: Alexander Rashed Date: Tue, 3 Dec 2024 09:15:42 +0100 Subject: [PATCH 2/2] set args positional everywhere --- localstack-core/localstack/aws/scaffold.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localstack-core/localstack/aws/scaffold.py b/localstack-core/localstack/aws/scaffold.py index f2e8f1b8c7ee7..62a2c49cf58dc 100644 --- a/localstack-core/localstack/aws/scaffold.py +++ b/localstack-core/localstack/aws/scaffold.py @@ -142,7 +142,7 @@ def dependencies(self) -> List[str]: def _print_structure_declaration(self, output, doc=True, quote_types=False): if self.is_exception: - self._print_as_class(output, "ServiceException", doc, quote_types=quote_types) + self._print_as_class(output, "ServiceException", doc, quote_types) return if any(map(is_keyword, self.shape.members.keys())):