Skip to content

Commit a1f2bf3

Browse files
committed
Add ZERO_UUID const
1 parent 813bf91 commit a1f2bf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kafka/protocol/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def decode(cls, data):
9090

9191

9292
class UUID(AbstractType):
93+
ZERO_UUID = uuid.UUID(int=0)
94+
9395
@classmethod
9496
def encode(cls, value):
9597
if isinstance(value, uuid.UUID):

0 commit comments

Comments
 (0)