Skip to content

Commit 9d1aa35

Browse files
committed
fix: typing
Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
1 parent f83c363 commit 9d1aa35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cloudevents/core/v1/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def __init__(self, attributes: dict[str, Any], data: Optional[dict] = None) -> N
4545
:raises TypeError: If any of the attributes have invalid types.
4646
"""
4747
self._validate_attribute(attributes)
48-
self._attributes: dict = attributes
48+
self._attributes: dict[str, Any] = attributes
4949
self._data: Optional[dict] = data
5050

5151
@staticmethod
52-
def _validate_attribute(attributes: dict) -> None:
52+
def _validate_attribute(attributes: dict[str, Any]) -> None:
5353
"""
5454
Validates the attributes of the CloudEvent as per the CloudEvents specification.
5555

0 commit comments

Comments
 (0)