Skip to content

Commit

Permalink
Make checksum optional (#912)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zschumacher authored Aug 5, 2023
1 parent 628eba0 commit abd39be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiokafka/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ConsumerRecord(Generic[KT, VT]):
value: Optional[VT]
"The value"

checksum: int
checksum: Optional[int]
"Deprecated"

serialized_key_size: int
Expand Down

0 comments on commit abd39be

Please sign in to comment.