Skip to content

Commit 0afcae6

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 3f8841a commit 0afcae6

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
@@ -549,8 +549,8 @@ def set_group_configuration_preferred_role(self, value: str):
549549

550550
class TokenClaimsAndScopeOverrideDetails(DictWrapper):
551551
@property
552-
def claims_to_add_or_override(self) -> Optional[Dict[str, str]]:
553-
return self.get("claimsToAddOrOverride")
552+
def claims_to_add_or_override(self) -> Dict[str, str]:
553+
return self.get("claimsToAddOrOverride") or {}
554554

555555
@claims_to_add_or_override.setter
556556
def claims_to_add_or_override(self, value: Dict[str, str]):

0 commit comments

Comments
 (0)