8000 Improve public API type annotations & fix unit test type errors by h4l · Pull Request #248 · cloudevents/sdk-python · GitHub
[go: up one dir, main page]

Skip to content

Improve public API type annotations & fix unit test type errors #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 23, 2025
Merged
Prev Previous commit
Next Next commit
chore: fix minor mypy type complaint in samples
Signed-off-by: Hal Blackburn <hwtb2@cam.ac.uk>
  • Loading branch information
h4l committed Mar 25, 2025
commit 029d122efa01262e0dbf1db061b2818eb48f1abb
4 changes: 2 additions & 2 deletions samples/http-image-cloudevents/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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",
Expand All @@ -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",
Expand Down
0