HyukjinKwon commented on a change in pull request #29969:
URL: https://github.com/apache/spark/pull/29969#discussion_r501119392



##########
File path: python/pyspark/resource/profile.pyi
##########
@@ -22,30 +22,39 @@ from pyspark.resource.requests import (  # noqa: F401
     TaskResourceRequest as TaskResourceRequest,
     TaskResourceRequests as TaskResourceRequests,
 )
-from typing import Any, Optional
+from typing import overload, Dict, Optional, Union
+from py4j.java_gateway import JavaObject  # type: ignore
 
 class ResourceProfile:
+    @overload
     def __init__(
         self,
-        _java_resource_profile: Optional[Any] = ...,
-        _exec_req: Any = ...,
-        _task_req: Any = ...,
+        _java_resource_profile: Optional[JavaObject] = ...,
+    ) -> None: ...
+    @overload
+    def __init__(
+        self,
+        *,

Review comment:
       `ResourceProfile.__init__` seems not a keyword-only. Should we maybe 
change it back?




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