zero323 commented on a change in pull request #34466:
URL: https://github.com/apache/spark/pull/34466#discussion_r753827160



##########
File path: python/pyspark/context.py
##########
@@ -565,9 +614,9 @@ def range(self, start, end=None, step=1, numSlices=None):
             end = start
             start = 0
 
-        return self.parallelize(range(start, end, step), numSlices)
+        return self.parallelize(list(range(start, end, step)), numSlices)
 
-    def parallelize(self, c, numSlices=None):
+    def parallelize(self, c: List[T], numSlices: Optional[int] = None) -> 
RDD[T]:

Review comment:
       We did you change the signature here? 
   
   
https://github.com/apache/spark/blob/ef4f2546c58ef5fe67be7047f9aa2a793519fd54/python/pyspark/context.pyi#L100




-- 
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]

Reply via email to