We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443aee9 commit 1d43d68Copy full SHA for 1d43d68
src/cloudevents/core/v1/event.py
@@ -64,7 +64,7 @@ def _validate_attribute(attributes: dict[str, Any]) -> None:
64
65
See https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#required-attributes
66
"""
67
- errors: dict[str, list] = defaultdict(list)
+ errors: dict[str, list[BaseCloudEventException]] = defaultdict(list)
68
errors.update(CloudEvent._validate_required_attributes(attributes))
69
errors.update(CloudEvent._validate_optional_attributes(attributes))
70
errors.update(CloudEvent._validate_extension_attributes(attributes))
0 commit comments