Skip to content

Commit 66dfc54

Browse files
authored
Fix #1095 by correcting ContextBlock element type hint (#1096)
1 parent eb71bdd commit 66dfc54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

slack_sdk/models/blocks/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from .basic_components import PlainTextObject
1313
from .basic_components import TextObject
1414
from .block_elements import BlockElement
15+
from .block_elements import ImageElement
1516
from .block_elements import InputInteractiveElement
1617
from .block_elements import InteractiveElement
1718

@@ -264,7 +265,7 @@ def attributes(self) -> Set[str]:
264265
def __init__(
265266
self,
266267
*,
267-
elements: Sequence[Union[dict, ImageBlock, TextObject]],
268+
elements: Sequence[Union[dict, ImageElement, TextObject]],
268269
block_id: Optional[str] = None,
269270
**others: dict,
270271
):

0 commit comments

Comments
 (0)