Github user BryanCutler commented on a diff in the pull request:
https://github.com/apache/spark/pull/16782#discussion_r103277884
--- Diff: python/pyspark/__init__.py ---
@@ -96,9 +96,11 @@ def keyword_only(func):
"""
@wraps(func)
def wrapper(*args, **kwargs):
+ # NOTE - this assumes we are wrapping a method and args[0] will be
'self'
if len(args) > 1:
raise TypeError("Method %s forces keyword arguments." %
func.__name__)
wrapper._input_kwargs = kwargs
--- End diff --
Yeah, that is what I was suggesting only that removing that would require
changing everywhere it is used in ml. So I just wanted to check with you guys
first.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]