Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 10, 2024
1 parent 26763d1 commit bebe09e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ductile/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, view: "View", *, timeout: float | None = 180) -> None:
self.__view = view
view._controller = self # noqa: SLF001
self.__raw_view = _InternalView(timeout=timeout, on_error=self.__view.on_error, on_timeout=self.__view.on_timeout)
self.__message: "Message | None" = None
self.__message: Message | None = None

@property
def message(self) -> "Message | None":
Expand Down Expand Up @@ -136,7 +136,7 @@ def _process_view_for_discord(
This can be passed to `discord.abc.Messageable.send` or `discord.abc.Messageable.edit` and etc
as unpacked keyword arguments.
"""
view_object: "ViewObject" = self.__view.render()
view_object: ViewObject = self.__view.render()

# implicitly clear view every time see:#54
v = self.__raw_view
Expand Down
2 changes: 1 addition & 1 deletion src/ductile/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(
loop: asyncio.AbstractEventLoop | None = None,
) -> None:
self._loop = loop or asyncio.get_event_loop()
self._controller: "ViewController | None" = None
self._controller: ViewController | None = None
self.__logger = get_logger(__name__)

def render(self) -> ViewObject:
Expand Down

0 comments on commit bebe09e

Please sign in to comment.