-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Subject: Some pyspark.ml docs were generated without rendering the docstring signature when Python 2 is used.
Problem
See https://issues.apache.org/jira/browse/SPARK-24530. We use autodoc_docstring_signature in PySpark to render some ML class docs correctly. A correct version looks like the following:
And when it doesn't render correctly, it shows
We tried different Python/Sphinx versions and it seems it only appears with Python 2.
Procedure to reproduce the problem
# use python 2
git checkout [email protected]:apache/spark.git
cd spark/python/docs
make html
open _build/html/pyspark.ml.html
Check the generated doc of LogisticRegression
Error logs / results
Didn't notice any suspicious warning messages (-v -w warn.txt).
Reproducible project / your project
apache/spark
Environment info
- OS: macOS
- Python version: 2
- Sphinx version: v1.6.3

