From 5c5e098bab3a3d8ea7acf3a42893010464db247c Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 15 Jul 2024 17:01:33 +0400 Subject: [PATCH] style: do not break line before logic operator --- selfprivacy_api/graphql/queries/logs.py | 8 ++++---- selfprivacy_api/utils/systemd_journal.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/selfprivacy_api/graphql/queries/logs.py b/selfprivacy_api/graphql/queries/logs.py index 6841f30..cf8fe21 100644 --- a/selfprivacy_api/graphql/queries/logs.py +++ b/selfprivacy_api/graphql/queries/logs.py @@ -71,10 +71,10 @@ class Logs: def paginated( self, limit: int = 20, - up_cursor: str - | None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results. - down_cursor: str - | None = None, # All entries returned will be greater than this cursor. Sets lower bound on results. + # All entries returned will be lesser than this cursor. Sets upper bound on results. + up_cursor: str | None = None, + # All entries returned will be greater than this cursor. Sets lower bound on results. + down_cursor: str | None = None, ) -> PaginatedEntries: if limit > 50: raise Exception("You can't fetch more than 50 entries via single request.") diff --git a/selfprivacy_api/utils/systemd_journal.py b/selfprivacy_api/utils/systemd_journal.py index 6c03c93..48e97b8 100644 --- a/selfprivacy_api/utils/systemd_journal.py +++ b/selfprivacy_api/utils/systemd_journal.py @@ -20,10 +20,10 @@ def get_events_from_journal( def get_paginated_logs( limit: int = 20, - up_cursor: str - | None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results. - down_cursor: str - | None = None, # All entries returned will be greater than this cursor. Sets lower bound on results. + # All entries returned will be lesser than this cursor. Sets upper bound on results. + up_cursor: str | None = None, + # All entries returned will be greater than this cursor. Sets lower bound on results. + down_cursor: str | None = None, ): j = journal.Reader()