You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (Jira)" <ji...@apache.org> on 2022/01/13 21:12:00 UTC
[jira] [Created] (SPARK-37902) Update annotations to resolve issues detected with mypy==0.931
Maciej Szymkiewicz created SPARK-37902:
------------------------------------------
Summary: Update annotations to resolve issues detected with mypy==0.931
Key: SPARK-37902
URL: https://issues.apache.org/jira/browse/SPARK-37902
Project: Spark
Issue Type: Improvement
Components: PySpark
Affects Versions: 3.3.0
Reporter: Maciej Szymkiewicz
The following new issues are detected when type checked with {{mypy==0.931}}
{code}
python/pyspark/pandas/base.py:879: error: "Sequence[Any]" has no attribute "tolist" [attr-defined]
python/pyspark/sql/tests/test_pandas_udf_typehints_with_future_annotations.py:268: error: Incompatible return value type (got "floating[Any]", expected "float") [return-value]
python/pyspark/sql/tests/test_pandas_udf_typehints.py:265: error: Incompatible return value type (got "floating[Any]", expected "float") [return-value]
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org