Skip to content

Commit 61bc637

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 87d9457 commit 61bc637

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
@@ -568,8 +568,8 @@ def claims_to_suppress(self, value: List[str]):
568568
self._data["claimsToSuppress"] = value
569569

570570
@property
571-
def scopes_to_add(self) -> Optional[List[str]]:
572-
return self.get("scopesToAdd")
571+
def scopes_to_add(self) -> List[str]:
572+
return self.get("scopesToAdd") or []
573573

574574
@scopes_to_add.setter
575575
def scopes_to_add(self, value: List[str]):

0 commit comments

Comments
 (0)