zero323 commented on a change in pull request #34466:
URL: https://github.com/apache/spark/pull/34466#discussion_r764260461
##########
File path: python/pyspark/context.py
##########
@@ -128,31 +152,40 @@ class SparkContext(object):
ValueError: ...
"""
- _gateway = None
- _jvm = None
+ # set assignment ignore temporarily to prevent errors from other files
+ _gateway: ClassVar[JavaGateway] = None # type: ignore[assignment]
+ _jvm: ClassVar[JVMView] = None # type: ignore[assignment]
_next_accum_id = 0
- _active_spark_context = None
+ _active_spark_context: ClassVar["SparkContext"] = None # type:
ignore[assignment]
Review comment:
Thanks all! Unless you have any requests here I'll try to make another
pass in the next few days, and if nothing stands out I'll merge it and start
working on refinements.
--
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]