Skip to content

Commit 5d509e0

Browse files
ehdgua01seratch
andauthored
Fix wrong type annotation (#1235)
Co-authored-by: Kazuhiro Sera <[email protected]>
1 parent 40c50c9 commit 5d509e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

slack_sdk/models/blocks/block_elements.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def parse(cls, block_element: Union[dict, "BlockElement"]) -> Optional[Union["Bl
117117
return None
118118

119119
@classmethod
120-
def parse_all(cls, block_elements: Sequence[Union[dict, "BlockElement"]]) -> List["BlockElement"]:
120+
def parse_all(
121+
cls, block_elements: Sequence[Union[dict, "BlockElement", TextObject]]
122+
) -> List[Union["BlockElement", TextObject]]:
121123
return [cls.parse(e) for e in block_elements or []]
122124

123125

0 commit comments

Comments
 (0)