style: do not break line before logic operator

This commit is contained in:
Inex Code 2024-07-15 17:01:33 +04:00
parent cc4b411657
commit 5c5e098bab
2 changed files with 8 additions and 8 deletions

View file

@ -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.")

View file

@ -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()