Skip to content

Commit

Permalink
Fix wrong type annotation (#1235)
Browse files Browse the repository at this point in the history
Co-authored-by: Kazuhiro Sera <seratch@gmail.com>
  • Loading branch information
ehdgua01 and seratch authored Jul 12, 2022
1 parent 40c50c9 commit 5d509e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slack_sdk/models/blocks/block_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def parse(cls, block_element: Union[dict, "BlockElement"]) -> Optional[Union["Bl
return None

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


Expand Down

0 comments on commit 5d509e0

Please sign in to comment.