ITADN

response_factory is documented, but not present

#12718Opengabor-borbely 创建于 2026-05-28
bug
G
gabor-borbelycommented
### Describe the bug For the `web.Application` one can `add_static` for serving static files (https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_static) but the documentation and the implementation of this function differ. Namely, the `add_static` is documented to have a `response_factory` argument but it's long gone in source code. ### To Reproduce 1. visit https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_static 2. then click the [[source]](https://docs.aiohttp.org/en/stable/_modules/aiohttp/web_urldispatcher.html#UrlDispatcher.add_static) link ### Expected behavior All functions match their respective documentation. ### Logs/tracebacks ```python-traceback None ``` ### Python Version ```console $ python --version Python 3.12.10 ``` ### aiohttp Version ```console $ uv pip show aiohttp 3.13.5 ``` ### multidict Version ```console $ python -m pip show multidict 6.7.1 ``` ### propcache Version ```console $ python -m pip show propcache 0.4.1 ``` ### yarl Version ```console $ python -m pip show yarl 1.23.0 ``` ### OS Windows ### Related component Server ### Additional context _No response_ ### Code of Conduct - [x] I agree to follow the aio-libs Code of Conduct
1 条评论