Yikun opened a new pull request #32118: URL: https://github.com/apache/spark/pull/32118
### What changes were proposed in this pull request? This patch adds the missing type hints of pyspark.sql.*: - pyspark.sql.column._to_java_column - pyspark.sql.column._to_seq - pyspark.sql.column._create_column_from_literal - pyspark.sql.types._parse_datatype_string ### Why are the changes needed? To cleanup these error: python/pyspark/pandas/frame.py:6486: error: Module 'pyspark.sql.types' has no attribute '_parse_datatype_string' python/pyspark/pandas/spark/functions.py:22: error: Module 'pyspark.sql.column' has no attribute '_to_java_column' python/pyspark/pandas/spark/functions.py:22: error: Module 'pyspark.sql.column' has no attribute '_to_seq' python/pyspark/pandas/spark/functions.py:22: error: Module 'pyspark.sql.column' has no attribute '_create_column_from_literal' Related: https://issues.apache.org/jira/browse/SPARK-34941 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? 1. Disable the ignore_error on mypy.ini and run mypy https://github.com/apache/spark/blob/ee7bf7d9628384548d09ac20e30992dd705c20f4/python/mypy.ini#L132 2. lint-python passed. -- 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]
