Skip to content

Commit

Permalink
Make ContextBlock elements use correct CompositionObject Type (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
rizenfrmtheashes authored Apr 29, 2024
1 parent 57fdb55 commit 9f2c889
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions slackblocks/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
UserSelectMenu,
)
from slackblocks.errors import InvalidUsageError
from slackblocks.objects import CompositionObjectType, Text, TextLike, TextType
from slackblocks.objects import (
CompositionObject,
CompositionObjectType,
Text,
TextLike,
TextType,
)
from slackblocks.rich_text import (
RichTextCodeBlock,
RichTextList,
Expand Down Expand Up @@ -143,7 +149,7 @@ class ContextBlock(Block):

def __init__(
self,
elements: Optional[List[Union[Element, CompositionObjectType]]] = None,
elements: Optional[List[Union[Element, CompositionObject]]] = None,
block_id: Optional[str] = None,
) -> "ContextBlock":
super().__init__(type_=BlockType.CONTEXT, block_id=block_id)
Expand Down

0 comments on commit 9f2c889

Please sign in to comment.