From bebe09e3837cfa5211fa415d99d5970835f3f19b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:49:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/ductile/controller/controller.py | 4 ++-- src/ductile/view.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ductile/controller/controller.py b/src/ductile/controller/controller.py index 0e31530..f921bb2 100644 --- a/src/ductile/controller/controller.py +++ b/src/ductile/controller/controller.py @@ -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": @@ -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 diff --git a/src/ductile/view.py b/src/ductile/view.py index 6f14c30..0269740 100644 --- a/src/ductile/view.py +++ b/src/ductile/view.py @@ -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: