You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2023/03/23 06:30:00 UTC
[jira] [Assigned] (SPARK-42903) Avoid documenting None as as a return value in docstring
[ https://issues.apache.org/jira/browse/SPARK-42903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon reassigned SPARK-42903:
------------------------------------
Assignee: Hyukjin Kwon
> Avoid documenting None as as a return value in docstring
> --------------------------------------------------------
>
> Key: SPARK-42903
> URL: https://issues.apache.org/jira/browse/SPARK-42903
> Project: Spark
> Issue Type: Documentation
> Components: PySpark
> Affects Versions: 3.4.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Trivial
>
> e.g.):
> {code}
> +++ b/python/pyspark/sql/dataframe.py
> @@ -385,10 +385,6 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
> name : str
> Name of the view.
> - Returns
> - -------
> - None
> -
> Examples
> --------
> Create a local temporary view named 'people'.
> @@ -426,10 +422,6 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
> name : str
> Name of the view.
> - Returns
> - -------
> - None
> -
> Examples
> --------
> Create a global temporary view.
> @@ -467,10 +459,6 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
> name : str
> Name of the view.
> - Returns
> - -------
> - None
> {code}
> to be consistent. In Python, it's idiomatic to don't specify the return for return None.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org