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 8db1e29 commit 6d40b45Copy full SHA for 6d40b45
src/cloudevents/core/v1/event.py
@@ -20,7 +20,7 @@
20
21
22
class CloudEvent:
23
- def __init__(self, attributes: dict, data: Optional[dict] = None) -> 'CloudEvent':
+ def __init__(self, attributes: dict, data: Optional[dict] = None) -> "CloudEvent":
24
"""
25
Create a new CloudEvent instance.
26
@@ -92,10 +92,10 @@ def __validate_attribute(self, attributes: dict):
92
def get_attribute(self, attribute: str) -> Optional[Any]:
93
94
Retrieve a value of an attribute of the event denoted by the given `attribute`.
95
-
+
96
:param attribute: The name of the event attribute to retrieve the value for.
97
:type attribute: str
98
99
:return: The event attribute value.
100
:rtype: Optional[Any]
101
0 commit comments