李易庭 created SPARK-60140:
---------------------------

             Summary: Remove type: ignore caused by variable re-binding in 
pyspark.ml and pyspark.mllib linalg
                 Key: SPARK-60140
                 URL: https://issues.apache.org/jira/browse/SPARK-60140
             Project: Spark
          Issue Type: Improvement
          Components: ML, MLlib, PySpark
    Affects Versions: 5.0.0
            Reporter: 李易庭


Several "# type: ignore" comments in pyspark.ml.linalg, pyspark.ml.stat and 
pyspark.mllib.linalg exist only because a variable is re-bound to a value of
a different type (e.g. list -> str in __repr__, str -> int in
SparseVector.parse). This removes them by using a separate variable or
inlining the expression, matching the existing code in pyspark.mllib.linalg.
No behavior change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to