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]