chore: fix minor mypy type complaint in samples
Signed-off-by: Hal Blackburn <hwtb2@cam.ac.uk>
This commit is contained in:
parent
a3291f5453
commit
029d122efa
|
@ -25,7 +25,7 @@ resp = requests.get(
|
|||
image_bytes = resp.content
|
||||
|
||||
|
||||
def send_binary_cloud_event(url: str):
|
||||
def send_binary_cloud_event(url: str) -> None:
|
||||
# Create cloudevent
|
||||
attributes = {
|
||||
"type": "com.example.string",
|
||||
|
@ -42,7 +42,7 @@ def send_binary_cloud_event(url: str):
|
|||
print(f"Sent {event['id']} of type {event['type']}")
|
||||
|
||||
|
||||
def send_structured_cloud_event(url: str):
|
||||
def send_structured_cloud_event(url: str) -> None:
|
||||
# Create cloudevent
|
||||
attributes = {
|
||||
"type": "com.example.base64",
|
||||
|
|
Loading…
Reference in New Issue