HyukjinKwon commented on code in PR #46063:
URL: https://github.com/apache/spark/pull/46063#discussion_r1568166135


##########
python/pyspark/errors/utils.py:
##########
@@ -16,9 +16,14 @@
 #
 
 import re
-from typing import Dict, Match
-
+import functools
+import inspect
+from typing import Any, Callable, Dict, Match, TypeVar, Type
 from pyspark.errors.error_classes import ERROR_CLASSES_MAP
+from py4j.java_gateway import JavaClass

Review Comment:
   Can we hide this under `typing.TYPE_CHECKING`? For pure Python library 
package, we should avoid this whenever possible. Otherwise, the scheduled job 
would fail.



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