mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +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,
|
||||
emoji=emoji,
|
||||
)
|
||||
self.row: Optional[int] = row
|
||||
self.row = row
|
||||
|
||||
@property
|
||||
def style(self) -> ButtonStyle:
|
||||
|
@ -124,7 +124,7 @@ class Select(Item[V]):
|
||||
options=options,
|
||||
disabled=disabled,
|
||||
)
|
||||
self.row: Optional[int] = row
|
||||
self.row = row
|
||||
|
||||
@property
|
||||
def custom_id(self) -> str:
|
||||
|
@ -118,7 +118,7 @@ class TextInput(Item[V]):
|
||||
min_length=min_length,
|
||||
max_length=max_length,
|
||||
)
|
||||
self.row: Optional[int] = row
|
||||
self.row = row
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.value or ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user