Skip to content

Commit 695074b

Browse files
Update aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py
Co-authored-by: Leandro Damascena <[email protected]> Signed-off-by: Stéphane MENG <[email protected]>
1 parent 36a60d6 commit 695074b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ def scopes_to_add(self, value: List[str]):
576576
self._data["scopesToAdd"] = value
577577

578578
@property
579-
def scopes_to_suppress(self) -> Optional[List[str]]:
580-
return self.get("scopesToSuppress")
579+
def scopes_to_suppress(self) -> List[str]:
580+
return self.get("scopesToSuppress") or []
581581

582582
@scopes_to_suppress.setter
583583
def scopes_to_suppress(self, value: List[str]):

0 commit comments

Comments
 (0)