You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (Jira)" <ji...@apache.org> on 2020/09/18 07:10:00 UTC
[jira] [Created] (SPARK-32933) Use keyword-only syntax for
keyword_only methods
Maciej Szymkiewicz created SPARK-32933:
------------------------------------------
Summary: Use keyword-only syntax for keyword_only methods
Key: SPARK-32933
URL: https://issues.apache.org/jira/browse/SPARK-32933
Project: Spark
Issue Type: Improvement
Components: PySpark
Affects Versions: 3.1.0
Reporter: Maciej Szymkiewicz
Since 3.0, provides syntax for indicating keyword-only arguments ([PEP 3102|https://www.python.org/dev/peps/pep-3102/]).
It is not a full replacement for our current usage of {{keyword_only}}, but it would allow us to make our expectations explicit:
{code:python}
@keyword_only
def __init__(self, degree=2, inputCol=None, outputCol=None):
{code}
{code:python}
@keyword_only
def __init__(self, *, degree=2, inputCol=None, outputCol=None):
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org