Skip to content

Commit 5ab45fd

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent d18a9c4 commit 5ab45fd

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

discord/ui/section.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import os
43
from typing import TYPE_CHECKING
54

65
from ..components import Section as SectionComponent
@@ -26,11 +25,7 @@ class Section:
2625
This section's accessory. This is displayed in the top right of the section. Currently only supports :class:`~discord.ui.TextDisplay` and :class:`~discord.ui.Button`.
2726
"""
2827

29-
def __init__(
30-
self,
31-
*items: Item,
32-
accessory: Item = None
33-
):
28+
def __init__(self, *items: Item, accessory: Item = None):
3429
super().__init__()
3530

3631
self.items = items
@@ -85,14 +80,16 @@ def add_text(self, content: str) -> None:
8580

8681
if len(self.items) >= 3:
8782
raise ValueError("maximum number of children exceeded")
88-
83+
8984
text = ...
9085

9186
self.items.append(text)
92-
93-
def add_button(self, label: str, ) -> None:
87+
88+
def add_button(
89+
self,
90+
label: str,
91+
) -> None:
9492
"""finish"""
95-
pass
9693

9794
@property
9895
def type(self) -> ComponentType:

0 commit comments

Comments
 (0)