We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9623227 commit 48d2483Copy full SHA for 48d2483
1 file changed
examples/background_tasks.py
@@ -3,14 +3,16 @@
3
import asyncio
4
from collections.abc import AsyncIterator
5
from contextlib import asynccontextmanager, suppress
6
+from typing import Any
7
8
+from aiohttp import web
9
+
10
+valkey: Any
11
try:
- import valkey.asyncio as valkey # type: ignore[import-not-found]
12
+ import valkey.asyncio as valkey # noqa: E402
13
except ImportError:
14
valkey = None
15
-from aiohttp import web
-
16
valkey_listener = web.AppKey("valkey_listener", asyncio.Task[None])
17
websockets = web.AppKey("websockets", list[web.WebSocketResponse])
18
skip_valkey_key = web.AppKey("skip_valkey", bool)
0 commit comments