diff --git a/lightbulb/commands/groups.py b/lightbulb/commands/groups.py index bf4ee564..f15cf01e 100644 --- a/lightbulb/commands/groups.py +++ b/lightbulb/commands/groups.py @@ -88,7 +88,7 @@ class Example( command._command_data.parent = self # type: ignore[reportGeneralTypeIssues] return command - def _inner(_command: CommandT) -> CommandT: # noqa: RUF052 + def _inner(_command: CommandT) -> CommandT: return self.register(_command) return _inner diff --git a/lightbulb/components/menus.py b/lightbulb/components/menus.py index 50d99005..7f6c724b 100644 --- a/lightbulb/components/menus.py +++ b/lightbulb/components/menus.py @@ -343,7 +343,7 @@ def __init__( menu: Menu, interaction: hikari.ComponentInteraction, component: base.BaseComponent[special_endpoints.MessageActionRowBuilder], - _timeout: async_timeout.Timeout, # noqa: RUF052 + _timeout: async_timeout.Timeout, ) -> None: super().__init__() diff --git a/lightbulb/context.py b/lightbulb/context.py index 179dbbf7..23c8a7c8 100644 --- a/lightbulb/context.py +++ b/lightbulb/context.py @@ -153,7 +153,7 @@ class RestAutocompleteContext(AutocompleteContext[T]): def __init__( self, *args: t.Any, - _initial_response_callback: Callable[ # noqa: RUF052 + _initial_response_callback: Callable[ [hikari.api.InteractionAutocompleteBuilder], None, ], @@ -518,7 +518,7 @@ class RestContext(Context): def __init__( self, *args: t.Any, - _initial_response_callback: Callable[ # noqa: RUF052 + _initial_response_callback: Callable[ [hikari.api.InteractionResponseBuilder], None, ], diff --git a/lightbulb/di/solver.py b/lightbulb/di/solver.py index 77d5d67a..910d2a56 100644 --- a/lightbulb/di/solver.py +++ b/lightbulb/di/solver.py @@ -346,8 +346,8 @@ def __init__( self, func: Callable[..., Awaitable[t.Any]], self_: t.Any = None, - _cached_pos_or_kw_params: list[tuple[str, t.Any]] | None = None, # noqa: RUF052 - _cached_kw_only_params: dict[str, t.Any] | None = None, # noqa: RUF052 + _cached_pos_or_kw_params: list[tuple[str, t.Any]] | None = None, + _cached_kw_only_params: dict[str, t.Any] | None = None, ) -> None: self._func = func self._self: t.Any = self_