fix: missing type

Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
This commit is contained in:
Tudor Plugaru 2024-11-14 09:22:38 +02:00
parent 443aee98e5
commit 1d43d688be
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class CloudEvent:
See https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#required-attributes
"""
errors: dict[str, list] = defaultdict(list)
errors: dict[str, list[BaseCloudEventException]] = defaultdict(list)
errors.update(CloudEvent._validate_required_attributes(attributes))
errors.update(CloudEvent._validate_optional_attributes(attributes))
errors.update(CloudEvent._validate_extension_attributes(attributes))