From 25b34060c7b12bf53944d84f5e4668addbe1923b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 05:42:54 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.8.6) - [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.22...v0.23) * Update pysolr.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss --- .pre-commit-config.yaml | 4 ++-- pysolr.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8da1537e..832cf5a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - tomli - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.8.6 hooks: - id: ruff @@ -51,6 +51,6 @@ repos: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.22 + rev: v0.23 hooks: - id: validate-pyproject diff --git a/pysolr.py b/pysolr.py index 88cd860a..0484c17d 100644 --- a/pysolr.py +++ b/pysolr.py @@ -287,8 +287,8 @@ def __init__(self, decoded, next_page_query=None): self.grouped = decoded.get("grouped", {}) self.nextCursorMark = decoded.get("nextCursorMark", None) self._next_page_query = ( - self.nextCursorMark is not None and next_page_query or None - ) + self.nextCursorMark is not None and next_page_query + ) or None def __len__(self): if self._next_page_query: