Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34629

Python type hints improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Done
    • 3.1.2
    • 3.3.0
    • PySpark
    • None

    Description

      We added PySpark type hints at SPARK-32681

      However, looks like there are still many missing APIs to type. I maintain a project called [Koalas](https://github.com/databricks/koalas), and I found these errors https://gist.github.com/HyukjinKwon/9faabc5f2680b56007d71ef7cf0ad400
      For example, pyspark._version_ and pyspark.sql.Column.contains are missing in the type hints.

      I believe this is the same case to other projects that enables mypy in their project (presumably also given SPARK-34544).

      This umbrella JIRA targets to identify such cases and improve Python type hints in PySpark.

      Attachments

        Activity

          People

            zero323 Maciej Szymkiewicz
            gurwls223 Hyukjin Kwon
            Maciej Szymkiewicz Maciej Szymkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: