Archived
This repository has been archived on 2026-10-02 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
0dbbb3ed63cb423ad7131b801bde43af640a9f15
music_api/compat.py 是「同步调用异步实现」的桥接门面——每个方法都用 core.async_bridge.run_sync 把 NeteaseAPI 的协程跑起来。调用方此前已陆续 迁到原生异步(await NeteaseAPI().xxx()),这 16 个方法在仓内(web/ services/ tests/ CLI)已零调用,只剩 __init__ 的再导出,属迁移期残留。 仅 url_v1 还有唯一调用方(music_api.podcast 的同步解析路径),予以保留, 并在 docstring 标注「应删不应增」,待 worker 子系统异步化时一并清除。 门禁:ruff 全过 / pyright 0-0 / pytest 387 项,失败数与前次一致(2 项 index golden,源于未提交的前端迁移,与本次无关)。
Languages
Python
61%
TypeScript
32.2%
CSS
6.6%
Dockerfile
0.1%