Skip to content

Commit

Permalink
Actions can now have 25 elements
Browse files Browse the repository at this point in the history
  • Loading branch information
imryche committed May 7, 2024
1 parent de55d78 commit cc31920
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blockkit/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Block(Component):

class Actions(Block):
type: str = "actions"
elements: List[ActionElement] = Field(..., min_length=1, max_length=5)
elements: List[ActionElement] = Field(..., min_length=1, max_length=25)

def __init__(
self, *, elements: List[ActionElement], block_id: Optional[str] = None
Expand Down Expand Up @@ -155,7 +155,7 @@ def __init__(
DatetimePicker,
TimePicker,
NumberInput,
FileInput
FileInput,
]


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
EMAIL = "[email protected]"
AUTHOR = "Dmitry Chernyshov"
REQUIRES_PYTHON = ">=3.7.0"
VERSION = "1.8.3"
VERSION = "1.8.4"

REQUIRED = ["pydantic>=2,<3"]
EXTRAS = {"gen": ["black"]}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_actions_excessive_elements_raise_exception():
Actions(
elements=[
Button(text=PlainText(text="text"), action_id="action_id")
for _ in range(6)
for _ in range(26)
]
)

Expand Down

0 comments on commit cc31920

Please sign in to comment.