Skip to content

Commit

Permalink
ci: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 24, 2025
1 parent b82205e commit e04e2c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 1 addition & 3 deletions common/fuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
from rapidfuzz import process


def extract_from_list[
T
](
def extract_from_list[T](
argument: str,
list_of_items: typing.Collection[T],
processors: typing.Iterable[typing.Callable],
Expand Down
7 changes: 4 additions & 3 deletions exts/premium.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
import common.utils as utils


def premium_check[
T: (ipy.BaseCommand, ipy.const.AsyncCallable)
]() -> typing.Callable[[T], T]:
def premium_check[T: (
ipy.BaseCommand,
ipy.const.AsyncCallable,
)]() -> typing.Callable[[T], T]:
async def check(ctx: utils.RealmContext) -> bool:
config = await ctx.fetch_config()

Expand Down
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,9 @@ async def start() -> None:
"premium_code": {
"is": {
"expires_at": {
"gt": ipy.Timestamp.utcnow()
- datetime.timedelta(days=1)
"gt": (
ipy.Timestamp.utcnow() - datetime.timedelta(days=1)
)
}
}
}
Expand Down

0 comments on commit e04e2c1

Please sign in to comment.