FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(block-kit): add container block example by zimeg · Pull Request #161 · slack-samples/bolt-python-examples · GitHub

feat(block-kit): add container block example - #161

Draft
zimeg wants to merge 2 commits into
mainfrom
feat/block-kit-container-example
Draft

feat(block-kit): add container block example#161
zimeg wants to merge 2 commits into
mainfrom
feat/block-kit-container-example

Conversation

zimeg commented Aug 1, 2026

Copy link
Copy Markdown
Member

Summary

Adds a container Block Kit example to the block-kit collection, closing the last block-coverage gap for Python (the JS collection already has one via slack-samples/bolt-js-examples#165). example01 models the container block reference page: a collapsible bulk update container grouping section, divider, context, and actions child blocks (all built with slack_sdk model classes).

  • New: block-kit/src/blocks/container.py — example01() returns a ContainerBlock.
  • New: block-kit/tests/blocks/test_container.py — to_dict() assertion.
  • README: added a Container bullet under "### Blocks" (alphabetical).

⚠️ Draft — CI fails by design

slack_sdk does not yet export ContainerBlock (verified against slack_sdk==3.42.0), so:

  • mypy: Module "slack_sdk.models.blocks" has no attribute "ContainerBlock"
  • pytest: ImportError on collection

This is intentional — the example imports the real (unshipped) block class rather than hand-rolling one, so the red CI is an honest signal the SDK is missing the type. The child blocks (section/divider/context/actions) all use real slack_sdk model classes. Ruff check + format pass. Unblocks once slack_sdk ships ContainerBlock.

Related

🤖 Generated with Claude Code

Add a container block example (example01) modeled on the container
block reference page: a collapsible bulk-update summary grouping section,
divider, context, and actions child blocks (all built with slack_sdk
model classes).

slack_sdk does not yet export ContainerBlock, so mypy and pytest
(collection) fail by design on the missing import — the honest signal
that the block is not yet available, unblocking when the SDK ships it.
Ruff and formatting pass. Mirrors the JS container example
(slack-samples/bolt-js-examples#165).

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg added the enhancement New feature or request label Aug 1, 2026
zimeg self-assigned this Aug 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL