Skip to content

Commit 8b8ab8b

Browse files
committed
alphabetize
1 parent 3c0d3ba commit 8b8ab8b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎slack_sdk/models/messages/chunk.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ def parse(cls, chunk: Union[Dict, "Chunk"]) -> Optional["Chunk"]:
3333
else:
3434
if "type" in chunk:
3535
type = chunk["type"]
36-
if type == MarkdownTextChunk.type:
36+
if type == BlocksChunk.type:
37+
return BlocksChunk(**chunk)
38+
elif type == MarkdownTextChunk.type:
3739
return MarkdownTextChunk(**chunk)
3840
elif type == PlanUpdateChunk.type:
3941
return PlanUpdateChunk(**chunk)
4042
elif type == TaskUpdateChunk.type:
4143
return TaskUpdateChunk(**chunk)
42-
elif type == BlocksChunk.type:
43-
return BlocksChunk(**chunk)
4444
else:
4545
cls.logger.warning(f"Unknown chunk detected and skipped ({chunk})")
4646
return None

0 commit comments

Comments
 (0)