💥 Remove: 移除 Python 3.9 支持 (#3860)

This commit is contained in:
呵呵です
2026-02-18 00:11:36 +08:00
committed by GitHub
parent f719a6b41b
commit 63cde5da77
56 changed files with 603 additions and 1144 deletions

View File

@@ -1,6 +1,6 @@
from http.cookies import SimpleCookie
import json
from typing import Any, Optional
from typing import Any
from aiohttp import ClientSession, ClientWebSocketResponse, WSMessage, WSMsgType
import anyio
@@ -173,7 +173,7 @@ async def test_websocket_server(app: App, driver: Driver):
async def test_cross_context(app: App, driver: Driver):
assert isinstance(driver, ASGIMixin)
ws: Optional[WebSocket] = None
ws: WebSocket | None = None
ws_ready = anyio.Event()
ws_should_close = anyio.Event()
@@ -651,7 +651,7 @@ async def test_aiohttp_websocket_close_frame(msg_type: str) -> None:
def closed(self) -> bool:
return True
async def receive(self, timeout: Optional[float] = None) -> WSMessage: # noqa: ASYNC109
async def receive(self, timeout: float | None = None) -> WSMessage: # noqa: ASYNC109
return WSMessage(type=WSMsgType[msg_type], data=None, extra=None)
async with ClientSession() as session: