Skip to content

Commit 2c931bf

Browse files
WilliamBergaminClaude
andcommitted
fix: repair docstrings corrupted by pydocstyle autofix
The D205/D212/D415 autofix truncated two wrapped-sentence docstrings in basic_components.py (Option.__init__, OptionGroup.__init__). Reflow them into a proper summary + body; stays lint-green under the google convention. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent 66fbe50 commit 2c931bf

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎slack_sdk/models/blocks/basic_components.py‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ def __init__(
250250
url: Optional[str] = None,
251251
**others: Dict[str, Any],
252252
):
253-
"""An object that represents a single selectable item in a block element (.
253+
"""An object that represents a single selectable item in a block or dialog element.
254254
255-
SelectElement, OverflowMenuElement) or dialog element
256-
(StaticDialogSelectElement)
255+
Usable in a block element (SelectElement, OverflowMenuElement) or a dialog element
256+
(StaticDialogSelectElement).
257257
258258
Blocks:
259259
https://docs.slack.dev/reference/block-kit/composition-objects/option-object
@@ -393,10 +393,9 @@ def __init__(
393393
options: Sequence[Union[Dict[str, Any], Option]],
394394
**others: Dict[str, Any],
395395
):
396-
"""
396+
"""Create a group of Option objects.
397397
398-
Create a group of Option objects - pass in a label (that will be part of the
399-
UI) and a list of Option objects.
398+
Pass in a label (that will be part of the UI) and a list of Option objects.
400399
401400
Blocks:
402401
https://docs.slack.dev/reference/block-kit/composition-objects/option-group-object

0 commit comments

Comments
 (0)