Skip to content

Commit abd39be

Browse files
authored
Make checksum optional (#912)
When using serialization frameworks like pydantic, I can not attach a consumer record because checksum can be None. Since it is marked as deprecated, it seems reasonable to mark it as optional here.
1 parent 628eba0 commit abd39be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiokafka/structs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class ConsumerRecord(Generic[KT, VT]):
8181
value: Optional[VT]
8282
"The value"
8383

84-
checksum: int
84+
checksum: Optional[int]
8585
"Deprecated"
8686

8787
serialized_key_size: int

0 commit comments

Comments
 (0)