Skip to content

Commit 0fdf5f1

Browse files
author
Sid Madipalli
committed
Ignore PLR0912 too many branches
1 parent 026679c commit 0fdf5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samtranslator/model/sam_resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def resources_to_link(self, resources: Dict[str, Any]) -> Dict[str, Any]:
293293
raise InvalidResourceException(self.logical_id, e.message) from e
294294

295295
@cw_timer
296-
def to_cloudformation(self, **kwargs): # type: ignore[no-untyped-def] # noqa: PLR0915
296+
def to_cloudformation(self, **kwargs): # type: ignore[no-untyped-def] # noqa: PLR0915, PLR0912
297297
"""Returns the Lambda function, role, and event resources to which this SAM Function corresponds.
298298
299299
:param dict kwargs: already-converted resources that may need to be modified when converting this \
@@ -448,7 +448,7 @@ def _make_lambda_role(
448448
lambda_role = lambda_function.Role
449449
execution_role_arn = execution_role.get_runtime_attr("arn")
450450

451-
result = {
451+
result: Dict[str, Any] = {
452452
"should_append_role": False,
453453
"lambda_role_value": None,
454454
"execution_role_condition": None,

0 commit comments

Comments
 (0)