Skip to content

Commit

Permalink
pre-commit autoupdate (#125)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](pre-commit/mirrors-mypy@v1.6.1...v1.7.1)

* fix precomit

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aditya <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and clot27 authored Dec 9, 2023
1 parent e28575e commit 14f025a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
args:
Expand All @@ -33,7 +33,7 @@ repos:
- gql[aiohttp]~=3.3.0
- async-lru~=1.0.3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions components/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ async def search(
if not amount:
return sorted(
search_entries,
key=lambda entry: self._sort_key(entry, search_query), # type: ignore
key=lambda entry: self._sort_key(entry, search_query),
reverse=True,
)
return heapq.nlargest(
amount,
search_entries,
key=lambda entry: self._sort_key(entry, search_query), # type: ignore[arg-type]
key=lambda entry: self._sort_key(entry, search_query),
)

@alru_cache(maxsize=64) # type: ignore[misc]
Expand Down

0 comments on commit 14f025a

Please sign in to comment.