Skip to content

Commit b55bc14

Browse files
committed
Remove unused imports
1 parent c24d351 commit b55bc14

5 files changed

Lines changed: 3 additions & 7 deletions

File tree

miru/bootstrap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
import typing as t
32

43
from miru.exceptions import BootstrapFailureError
54

miru/button.py

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

33
import inspect
4-
import os
54
import typing as t
65

76
import hikari

miru/exceptions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import typing as t
2-
31
__all__ = ("MiruException", "BootstrapFailureError", "RowFullError", "HandlerFullError", "ItemAlreadyAttachedError")
42

53

miru/select.py

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

33
import inspect
4-
import os
54
import typing as t
65

76
import hikari

miru/view.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(
7474
super().__init__(timeout=timeout)
7575
self._autodefer: bool = autodefer
7676
self._message: t.Optional[hikari.Message] = None
77-
self._message_id: t.Optional[hikari.Snowflake] = None # Only for bound persistent views
77+
self._message_id: t.Optional[hikari.Snowflake] = None
7878
self._input_event: asyncio.Event = asyncio.Event()
7979

8080
for decorated_item in self._view_children: # Sort and instantiate decorated callbacks
@@ -139,7 +139,7 @@ def children(self) -> t.Sequence[ViewItem]:
139139

140140
@classmethod
141141
def from_message(cls, message: hikari.Message, *, timeout: t.Optional[float] = 120, autodefer: bool = True) -> View:
142-
"""Create a new from the components included in the passed message. Returns an empty view if the message has no components attached.
142+
"""Create a new view from the components included in the passed message. Returns an empty view if the message has no components attached.
143143
144144
Parameters
145145
----------
@@ -156,6 +156,7 @@ def from_message(cls, message: hikari.Message, *, timeout: t.Optional[float] = 1
156156
The view that represents the components attached to this message.
157157
158158
.. warning::
159+
This function constructs a completely new view based on the information available in the message object.
159160
Any custom behaviour (such as callbacks) will not be re-created, if you want to access an already running view that is bound to a message, use :obj:`miru.view.get_view` instead.
160161
"""
161162

0 commit comments

Comments
 (0)