diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8da1537..832cf5a 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 88cd860..0484c17 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: