chore: formatting

This commit is contained in:
Inex Code 2024-07-10 19:18:22 +04:00
parent 9f5f0507e3
commit 5f3fc0d96e
2 changed files with 7 additions and 2 deletions

View file

@ -57,7 +57,9 @@ class LogsPageMeta:
@strawberry.type
class PaginatedEntries:
page_meta: LogsPageMeta = strawberry.field(description="Metadata to aid in pagination.")
page_meta: LogsPageMeta = strawberry.field(
description="Metadata to aid in pagination."
)
entries: typing.List[LogEntry] = strawberry.field(
description="The list of log entries."
)

View file

@ -176,7 +176,10 @@ class Subscription:
await asyncio.sleep(0.5)
@strawberry.subscription
async def log_entries(self, info: strawberry.types.Info) -> AsyncGenerator[LogEntry, None]:
async def log_entries(
self,
info: strawberry.types.Info,
) -> AsyncGenerator[LogEntry, None]:
reject_if_unauthenticated(info)
return log_stream()