You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "李易庭 (Jira)" <ji...@apache.org> on 2026/10/11 04:21:00 UTC

[jira] [Updated] (SPARK-60140) Remove type: ignore caused by variable re-binding in pyspark.ml and pyspark.mllib linalg

     [ https://issues.apache.org/jira/browse/SPARK-60140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

李易庭 updated SPARK-60140:
------------------------
    Affects Version/s: 4.4.0
                           (was: 5.0.0)

> 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: 4.4.0
>            Reporter: 李易庭
>            Priority: Minor
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org