Skip to content

Commit 1d43d68

Browse files
committed
fix: missing type
Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
1 parent 443aee9 commit 1d43d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cloudevents/core/v1/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _validate_attribute(attributes: dict[str, Any]) -> None:
6464
6565
See https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#required-attributes
6666
"""
67-
errors: dict[str, list] = defaultdict(list)
67+
errors: dict[str, list[BaseCloudEventException]] = defaultdict(list)
6868
errors.update(CloudEvent._validate_required_attributes(attributes))
6969
errors.update(CloudEvent._validate_optional_attributes(attributes))
7070
errors.update(CloudEvent._validate_extension_attributes(attributes))

0 commit comments

Comments
 (0)