Skip to content

Commit

Permalink
remove cast of defaultdict to dict
Browse files Browse the repository at this point in the history
Signed-off-by: Tudor Plugaru <[email protected]>
  • Loading branch information
PlugaruT committed Nov 14, 2024
1 parent 43f1d0c commit 7d18098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloudevents/core/v1/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _validate_attribute(attributes: dict[str, Any]) -> None:
errors.update(CloudEvent._validate_optional_attributes(attributes=attributes))
errors.update(CloudEvent._validate_extension_attributes(attributes=attributes))
if errors:
raise CloudEventValidationError(dict(errors))
raise CloudEventValidationError(errors=errors)

@staticmethod
def _validate_required_attributes(
Expand Down

0 comments on commit 7d18098

Please sign in to comment.