huangzhenyou opened a new pull request, #30265: URL: https://github.com/apache/flink/pull/30265
## What is the purpose of the change Fix PyFlink DataFrame API signature rendering on Python 3.14: Sphinx 7.4.7 omits the return annotation of `DataFrame.take_batch` and exposes `ForwardRef(...)` in other signatures. Sphinx 9.1.1 also fixes Chinese JavaScript search, which is broken in 9.1.0. Jira: https://issues.apache.org/jira/browse/FLINK-41024 ## Brief change log - Upgrade Sphinx to 9.1.1 and pydata-sphinx-theme to 0.23.0. - Raise the documentation minimum Python version to 3.12 and regenerate `uv.lock`. - Explain the documentation-only Python requirement in the README. ## Verifying this change - Full English and Chinese HTML builds on Python 3.14.7 with `-W`: passed without warnings. - Full English HTML and gettext builds on Python 3.13.9 with `-W`: passed without warnings. - Reproduced the missing return annotation and ForwardRef rendering with Sphinx 7.4.7; verified corrected English and Chinese signatures for `take_batch`, `iter_batches`, `flat_map`, and `join_lateral`. - Compared 1,337 API pages and 1,311 signatures against the baseline: no pages, signatures, or existing return annotations were lost. - Headless Chrome searches for `take_batch` returned the expected API page in both languages without JavaScript exceptions. - Locked environment installation and Sphinx startup passed on Python 3.12.14. - `uv lock --check --offline` and `git diff --check` passed. Full Maven verification and the CI wrapper were not run. Chinese HTML was built from existing catalogs; `.po` synchronization was not run. ## Does this pull request potentially affect one of the following parts: - Dependencies: yes, documentation dependencies only. - Public API: no. - Serializers: no. - Runtime per-record code paths: no. - Deployment or recovery: no. - S3 file system connector: no. ## Documentation - Introduces a new feature: no. - The README explains the documentation-only Python requirement. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes Generated-by: OpenAI Codex -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
