Skip to content

Commit 267ebaf

Browse files
authored
[kafka-python] UUID.decode() can return None (#16892)
1 parent 521be6f commit 267ebaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • stubs/kafka-python/kafka/protocol/old

‎stubs/kafka-python/kafka/protocol/old/types.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class UUID(AbstractType):
3939
@classmethod
4040
def encode(cls, value) -> bytes: ...
4141
@classmethod
42-
def decode(cls, data) -> uuid.UUID: ...
42+
def decode(cls, data) -> uuid.UUID | None: ...
4343

4444
class String(AbstractType):
4545
encoding: Incomplete

0 commit comments

Comments
 (0)