HyukjinKwon commented on a change in pull request #35150:
URL: https://github.com/apache/spark/pull/35150#discussion_r781694743
##########
File path: python/pyspark/pandas/accessors.py
##########
@@ -335,14 +335,16 @@ def apply_batch(
if not isinstance(func, FunctionType):
assert callable(func), "the first argument should be a callable
function."
f = func
- func = lambda *args, **kwargs: f(*args, **kwargs)
+ func = lambda *args, **kwargs: f(*args, **kwargs) # noqa: E731
Review comment:
Ah, otherwise, it complains that `func` cannot be redefined in mypy
later.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]