Skip to content

Commit cff89ce

Browse files
DamegoEepyElvyra
andauthored
docs: fix incorrect codeblocks (#1006)
* docs: fix incorrect codeblocks * Update interactions/client/models/component.py Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com> Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>
1 parent 7dcd743 commit cff89ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interactions/client/models/component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def __attrs_post_init__(self):
229229
class Modal(ComponentMixin):
230230
"""
231231
A class object representing a modal.
232-
233232
The structure for a modal: ::
234233
interactions.Modal(
235234
title="Application Form",
@@ -266,7 +265,8 @@ class ActionRow(ComponentMixin):
266265
An ActionRow may also support only 1 text input component
267266
only.
268267
269-
The structure for an action row: ::
268+
The structure for an action row:
269+
..code-block:: python
270270
# "..." represents a component object.
271271
# Method 1:
272272
interactions.ActionRow(...)

interactions/client/models/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def spread_to_rows(
7474
*components: Union[ActionRow, Button, SelectMenu], max_in_row: int = 5
7575
) -> List[ActionRow]:
7676
r"""
77-
A helper function that spreads components into :class:`ActionRow`s.
77+
A helper function that spreads components into :class:`ActionRow` s.
7878
7979
Example:
8080

0 commit comments

Comments
 (0)