zero323 commented on a change in pull request #35252:
URL: https://github.com/apache/spark/pull/35252#discussion_r789268344
##########
File path: python/pyspark/rdd.py
##########
@@ -1440,9 +1666,9 @@ def mean(self):
>>> sc.parallelize([1, 2, 3]).mean()
2.0
"""
- return self.stats().mean()
+ return self.stats().mean() # type: ignore[return-value]
Review comment:
We might revisit `StatCounter` later (maybe it should be generic, but it
is tricky to do right if input is empty), but for now let's use ignores.
--
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]