mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Reformat entire project with ruff instead of black
This commit is contained in:
@ -689,8 +689,7 @@ class View(BaseView):
|
||||
if TYPE_CHECKING:
|
||||
|
||||
@classmethod
|
||||
def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> View:
|
||||
...
|
||||
def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> View: ...
|
||||
|
||||
def __init_subclass__(cls) -> None:
|
||||
super().__init_subclass__()
|
||||
@ -783,8 +782,7 @@ class LayoutView(BaseView):
|
||||
if TYPE_CHECKING:
|
||||
|
||||
@classmethod
|
||||
def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> LayoutView:
|
||||
...
|
||||
def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> LayoutView: ...
|
||||
|
||||
def __init__(self, *, timeout: Optional[float] = 180.0) -> None:
|
||||
super().__init__(timeout=timeout)
|
||||
@ -1046,7 +1044,7 @@ class ViewStore:
|
||||
) -> None:
|
||||
modal = self._modals.get(custom_id)
|
||||
if modal is None:
|
||||
_log.debug("Modal interaction referencing unknown custom_id %s. Discarding", custom_id)
|
||||
_log.debug('Modal interaction referencing unknown custom_id %s. Discarding', custom_id)
|
||||
return
|
||||
|
||||
self.add_task(modal._dispatch_submit(interaction, components))
|
||||
|
Reference in New Issue
Block a user