Skip to content

Commit

Permalink
chore: remove unused noqa comments
Browse files Browse the repository at this point in the history
  • Loading branch information
null-domain committed Dec 13, 2024
1 parent 8aee91c commit 8e01879
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lightbulb/commands/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Check warning on line 91 in lightbulb/commands/groups.py

View check run for this annotation

Codecov / codecov/patch

lightbulb/commands/groups.py#L91

Added line #L91 was not covered by tests
return self.register(_command)

return _inner
Expand Down
2 changes: 1 addition & 1 deletion lightbulb/components/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()

Expand Down
4 changes: 2 additions & 2 deletions lightbulb/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down Expand Up @@ -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,
],
Expand Down
4 changes: 2 additions & 2 deletions lightbulb/di/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down

0 comments on commit 8e01879

Please sign in to comment.