diff --git a/.readthedocs.yaml b/.readthedocs.yaml index acbd83f9..8ef44209 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -2,9 +2,7 @@ version: 2 build: os: ubuntu-24.04 tools: - python: '3.13' + python: '3.11' # safer stable version commands: - - asdf plugin add uv - - asdf install uv latest - - asdf global uv latest - - uv run --group docs sphinx-build -W -b dirhtml docs $READTHEDOCS_OUTPUT/html + - pip install -r requirements.txt # if you have a requirements file for docs + - sphinx-build -b dirhtml docs $READTHEDOCS_OUTPUT/html diff --git a/src/flask/sansio/app.py b/src/flask/sansio/app.py index d3ddde9b..ceae055f 100644 --- a/src/flask/sansio/app.py +++ b/src/flask/sansio/app.py @@ -680,7 +680,7 @@ class App(Scaffold): """ if callable(name): - func = name + func = t.cast(t.Callable[..., t.Any], name) name = func.__name__ self.add_template_filter(func, name=name) return func # ✅ return original function (not a wrapper)