Skip to content

Commit

Permalink
re-apply the nox formatter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasthaler committed Oct 7, 2024
1 parent a14000d commit f505f7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
18 changes: 6 additions & 12 deletions toolbox/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,27 @@ def _list_to_command_choices(


@t.overload
def as_command_choices(choices: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]:
...
def as_command_choices(choices: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: ...


@t.overload
def as_command_choices(choices: t.Sequence[t.Sequence[ChoiceTypes]]) -> t.Sequence[hikari.CommandChoice]:
...
def as_command_choices(choices: t.Sequence[t.Sequence[ChoiceTypes]]) -> t.Sequence[hikari.CommandChoice]: ...


@t.overload
def as_command_choices(choices: t.Dict[str, ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]:
...
def as_command_choices(choices: t.Dict[str, ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: ...


@t.overload
def as_command_choices(*args: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]:
...
def as_command_choices(*args: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]: ...


@t.overload
def as_command_choices(*args: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]:
...
def as_command_choices(*args: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: ...


@t.overload
def as_command_choices(**kwargs: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]:
...
def as_command_choices(**kwargs: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]: ...


def as_command_choices(*args: t.Any, **kwargs: t.Any) -> t.Sequence[hikari.CommandChoice]:
Expand Down
3 changes: 2 additions & 1 deletion toolbox/strings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import datetime
import re
import typing as t
from enum import Enum, IntFlag
from enum import Enum
from enum import IntFlag

__all__: t.Sequence[str] = (
"format_dt",
Expand Down

0 comments on commit f505f7f

Please sign in to comment.