mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 07:26:17 +00:00
Remove annotation on row property in subclasses
This commit is contained in:
parent
3215cb65e2
commit
e515378076
@ -128,7 +128,7 @@ class Button(Item[V]):
|
|||||||
style=style,
|
style=style,
|
||||||
emoji=emoji,
|
emoji=emoji,
|
||||||
)
|
)
|
||||||
self.row: Optional[int] = row
|
self.row = row
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def style(self) -> ButtonStyle:
|
def style(self) -> ButtonStyle:
|
||||||
|
@ -124,7 +124,7 @@ class Select(Item[V]):
|
|||||||
options=options,
|
options=options,
|
||||||
disabled=disabled,
|
disabled=disabled,
|
||||||
)
|
)
|
||||||
self.row: Optional[int] = row
|
self.row = row
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def custom_id(self) -> str:
|
def custom_id(self) -> str:
|
||||||
|
@ -118,7 +118,7 @@ class TextInput(Item[V]):
|
|||||||
min_length=min_length,
|
min_length=min_length,
|
||||||
max_length=max_length,
|
max_length=max_length,
|
||||||
)
|
)
|
||||||
self.row: Optional[int] = row
|
self.row = row
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return self.value or ''
|
return self.value or ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user