Skip to content

Commit d705e60

Browse files
committed
pycodestyle: Fix linting errors
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 78a193f commit d705e60

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

api/main.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,19 +1152,17 @@ async def purge_handler(current_user: User = Depends(get_current_superuser),
11521152
return await purge_old_nodes(age_days=days, batch_size=batch_size)
11531153

11541154

1155-
versioned_app = VersionedFastAPI(
1156-
app,
1157-
version_format='{major}',
1158-
prefix_format='/v{major}',
1159-
enable_latest=True,
1160-
default_version=(0, 0),
1161-
on_startup=[
1162-
pubsub_startup,
1163-
create_indexes,
1164-
initialize_beanie,
1165-
start_background_tasks,
1166-
]
1167-
)
1155+
versioned_app = VersionedFastAPI(app,
1156+
version_format='{major}',
1157+
prefix_format='/v{major}',
1158+
enable_latest=True,
1159+
default_version=(0, 0),
1160+
on_startup=[
1161+
pubsub_startup,
1162+
create_indexes,
1163+
initialize_beanie,
1164+
start_background_tasks,
1165+
])
11681166

11691167

11701168
# traceback_exception_handler is a global exception handler that will be

api/pubsub_mongo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def __init__(self, mongo_client=None, host=None, db_number=None,
9292
# In-memory subscription tracking (for fire-and-forget mode)
9393
# {sub_id: {'sub': Subscription, 'redis_sub': PubSub,
9494
# 'subscriber_id': str|None, ...}}
95-
self._subscriptions: Dict[int, Dict[str, Any]] = {}
95+
self._subscriptions: Dict[int, Dict[str, Any]] = \
96+
{}
9697
self._channels = set()
9798
self._lock = asyncio.Lock()
9899
self._keep_alive_timer = None

0 commit comments

Comments
 (0)