Skip to content

Commit 695074b

Browse files
Update aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py
Co-authored-by: Leandro Damascena <lcdama@amazon.pt> Signed-off-by: Stéphane MENG <stephane.meng@gmail.com>
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

Lines changed: 2 additions & 2 deletions
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)