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( def paginated(
self, self,
limit: int = 20, limit: int = 20,
up_cursor: str # All entries returned will be lesser than this cursor. Sets upper bound on results.
| None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results. up_cursor: str | None = None,
down_cursor: str # All entries returned will be greater than this cursor. Sets lower bound on results.
| None = None, # All entries returned will be greater than this cursor. Sets lower bound on results. down_cursor: str | None = None,
) -> PaginatedEntries: ) -> PaginatedEntries:
if limit > 50: if limit > 50:
raise Exception("You can't fetch more than 50 entries via single request.") 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( def get_paginated_logs(
limit: int = 20, limit: int = 20,
up_cursor: str # All entries returned will be lesser than this cursor. Sets upper bound on results.
| None = None, # All entries returned will be lesser than this cursor. Sets upper bound on results. up_cursor: str | None = None,
down_cursor: str # All entries returned will be greater than this cursor. Sets lower bound on results.
| None = None, # All entries returned will be greater than this cursor. Sets lower bound on results. down_cursor: str | None = None,
): ):
j = journal.Reader() j = journal.Reader()