zero323 commented on a change in pull request #34466:
URL: https://github.com/apache/spark/pull/34466#discussion_r753833289
##########
File path: python/pyspark/ml/clustering.py
##########
@@ -17,6 +17,7 @@
import sys
import warnings
+from typing import cast
Review comment:
`pyspark.ml` is still covered with stubs files, so no `casts` should be
necessary at the moment. Let's revert this, and focus on necessary changes.
##########
File path: python/pyspark/ml/feature.py
##########
@@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+from typing import cast
Review comment:
Ditto
##########
File path: python/pyspark/ml/wrapper.py
##########
@@ -16,6 +16,7 @@
#
from abc import ABCMeta, abstractmethod
+from typing import cast
Review comment:
Ditto
--
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]