version fix

This commit is contained in:
Fengqing Liu
2025-10-25 17:03:02 +11:00
parent dd0e22462d
commit 50cdeca935
2 changed files with 1 additions and 2 deletions

View File

@@ -360,7 +360,7 @@ The application uses a web-based interface accessible via browser:
**Dockerfile:**
- Based on `python:3.11-slim`
- Based on `python:3`
- Installs dependencies from `pyproject.toml`
- Exposes port 8080
- Health check on `/api/status`

View File

@@ -22,7 +22,6 @@ logger = logging.getLogger("TwitchDrops")
async def first_to_complete(coros: abc.Iterable[abc.Coroutine[Any, Any, _T]]) -> _T:
"""Wait for the first coroutine to complete, canceling the rest."""
# In Python 3.11, we need to explicitly wrap awaitables
tasks: list[asyncio.Task[_T]] = [asyncio.ensure_future(coro) for coro in coros]
done: set[asyncio.Task[Any]]
pending: set[asyncio.Task[Any]]