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



##########
File path: python/pyspark/resource/requests.py
##########
@@ -179,20 +183,23 @@ def requests(self):
 
 class TaskResourceRequest(object):
     """
-    .. note:: Evolving
-
     A task resource request. This is used in conjuntion with the
     :class:`pyspark.resource.ResourceProfile` to programmatically specify the 
resources
     needed for an RDD that will be applied at the stage level. The amount is 
specified
     as a Double to allow for saying you want more than 1 task per resource. 
Valid values
     are less than or equal to 0.5 or whole numbers.
     Use :class:`pyspark.resource.TaskResourceRequests` class as a convenience 
API.
 
-    :param resourceName: Name of the resource
-    :param amount: Amount requesting as a Double to support fractional 
resource requests.
+    Parameters
+    ----------
+    resourceName : str
+        Name of the resource
+    amount : float
+        Amount requesting as a float to support fractional resource requests.
         Valid values are less than or equal to 0.5 or whole numbers.
 
     .. versionadded:: 3.1.0
+    .. note:: Evolving

Review comment:
       Moved to this position, so it doesn't replace summary in the overview.




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

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