💥 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,7 +1,7 @@
import base64
import json
import socket
from typing import TypeVar, Union
from typing import TypeVar
from werkzeug import Request, Response
from werkzeug.datastructures import MultiDict
@@ -36,7 +36,7 @@ def json_safe(string, content_type="application/octet-stream") -> str:
).decode("utf-8")
def flattern(d: "MultiDict[K, V]") -> dict[K, Union[V, list[V]]]:
def flattern(d: "MultiDict[K, V]") -> dict[K, V | list[V]]:
return {k: v[0] if len(v) == 1 else v for k, v in d.to_dict(flat=False).items()}