dchvn commented on a change in pull request #34238:
URL: https://github.com/apache/spark/pull/34238#discussion_r726038993



##########
File path: python/pyspark/files.py
##########
@@ -30,23 +35,23 @@ class SparkFiles(object):
     instances.
     """
 
-    _root_directory = None
+    _root_directory = None  # type: str
     _is_running_on_worker = False
-    _sc = None
+    _sc = None  # type: SparkContext

Review comment:
       is it like
   ```python
       _root_directory: Optional[str] = None
       _is_running_on_worker: bool = False
       _sc: Optional["SparkContext"] = None
   ```
   thanks, 




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