From 14f025a888facf3ec8f8378d68b5a10210196d6b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 13:10:32 +0100 Subject: [PATCH] `pre-commit` autoupdate (#125) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/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 --- .pre-commit-config.yaml | 4 ++-- components/search.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8308f3a..09ccbaf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black args: @@ -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: diff --git a/components/search.py b/components/search.py index 9f33952..9df4adc 100644 --- a/components/search.py +++ b/components/search.py @@ -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]