Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-40451 Type annotations for Spark Connect Python client
  3. SPARK-40693

mypy complains accessing the variable defined in the class method

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • Connect
    • None

    Description

      This is one example:

      for SparkConnectTestsPlanOnly, those unit tests access the mock remote session by `self.connect`, however mypy complains in as `error: "SparkConnectTestsPlanOnly" has no attribute "connect" [attr-defined]`

      Attachments

        Activity

          People

            amaliujia Rui Wang
            amaliujia Rui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: