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 2021/10/21 22:49:00 UTC

[jira] [Commented] (SPARK-36654) Drop type ignores from numpy imports

    [ https://issues.apache.org/jira/browse/SPARK-36654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432740#comment-17432740 ] 

Maciej Szymkiewicz commented on SPARK-36654:
--------------------------------------------

Issue resolved by pull request 33900
https://github.com/apache/spark/pull/33900

> Drop type ignores from numpy imports
> ------------------------------------
>
>                 Key: SPARK-36654
>                 URL: https://issues.apache.org/jira/browse/SPARK-36654
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.1.2, 3.2.0, 3.3.0
>            Reporter: Maciej Szymkiewicz
>            Priority: Minor
>
> Currently we use {{type: ingore[import]}} on all numpy imports ‒ this was necessary because numpy didn't provide annotations at the time when we added stubs to PySpark.
> Since numpy 1.20 (https://github.com/numpy/numpy/releases/tag/v1.20.0) numpy is PEP 561 compatible and these ignores are no longer necessary (current numpy version is 1.21).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org