Skip to content

Commit 41f386c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b1d7728 commit 41f386c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

v2-roadmap.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class HTTPCloudEvent:
121121
headers: list
122122
body: Any # unsure about typing here
123123

124-
124+
125125
def to_binary(event: CloudEvent) -> HTTPCloudEvent:
126126
e = event.to_dict()
127127
# logic to marshall into http binary output
@@ -169,9 +169,9 @@ def from_binary(headers: list, body: dict, event_types: Optional[dict[str, type]
169169
event_as_dict = {}
170170
# specific logic to unmarshall raw headers into a dictionary
171171
if event_types:
172-
# Use
172+
# Use
173173
return event_types.get(event_as_dict['type'], CloudEvent).from_dict(e)
174-
else:
174+
else:
175175
return CloudEvent.from_dict(e)
176176
```
177177

0 commit comments

Comments
 (0)