Skip to content

Commit 3a8f98b

Browse files
committed
fix typing
Signed-off-by: Tudor Plugaru <[email protected]>
1 parent 2cd91a7 commit 3a8f98b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/cloudevents/core/bindings/http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def to_binary_event(
277277
def from_binary_event(
278278
message: HTTPMessage,
279279
event_format: Format | None = None,
280-
) -> BaseCloudEvent:
280+
) -> CloudEvent:
281281
"""
282282
Convenience wrapper for from_binary with JSON format and CloudEvent as defaults.
283283
@@ -323,7 +323,7 @@ def to_structured_event(
323323
def from_structured_event(
324324
message: HTTPMessage,
325325
event_format: Format | None = None,
326-
) -> BaseCloudEvent:
326+
) -> CloudEvent:
327327
"""
328328
Convenience wrapper for from_structured with JSON format and CloudEvent as defaults.
329329
@@ -343,7 +343,7 @@ def from_structured_event(
343343
def from_http_event(
344344
message: HTTPMessage,
345345
event_format: Format | None = None,
346-
) -> BaseCloudEvent:
346+
) -> CloudEvent:
347347
"""
348348
Convenience wrapper for from_http with JSON format and CloudEvent as defaults.
349349
Auto-detects binary or structured mode.

src/cloudevents/core/bindings/kafka.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def to_binary_event(
355355
def from_binary_event(
356356
message: KafkaMessage,
357357
event_format: Format | None = None,
358-
) -> BaseCloudEvent:
358+
) -> CloudEvent:
359359
"""
360360
Convenience wrapper for from_binary with JSON format and CloudEvent as defaults.
361361
@@ -403,7 +403,7 @@ def to_structured_event(
403403
def from_structured_event(
404404
message: KafkaMessage,
405405
event_format: Format | None = None,
406-
) -> BaseCloudEvent:
406+
) -> CloudEvent:
407407
"""
408408
Convenience wrapper for from_structured with JSON format and CloudEvent as defaults.
409409
@@ -423,7 +423,7 @@ def from_structured_event(
423423
def from_kafka_event(
424424
message: KafkaMessage,
425425
event_format: Format | None = None,
426-
) -> BaseCloudEvent:
426+
) -> CloudEvent:
427427
"""
428428
Convenience wrapper for from_kafka with JSON format and CloudEvent as defaults.
429429
Auto-detects binary or structured mode.

0 commit comments

Comments
 (0)