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

Maciej Szymkiewicz resolved SPARK-37288.
----------------------------------------
      Assignee: Maciej Szymkiewicz
    Resolution: Fixed

Issue resolved by pull request 34555

https://github.com/apache/spark/pull/34555

> Backport update pyspark.since annotation to 3.1 and 3.2
> -------------------------------------------------------
>
>                 Key: SPARK-37288
>                 URL: https://issues.apache.org/jira/browse/SPARK-37288
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 3.1.0, 3.2.0
>            Reporter: Maciej Szymkiewicz
>            Assignee: Maciej Szymkiewicz
>            Priority: Major
>             Fix For: 3.1.3, 3.2.1
>
>
> Annotation for {{pyspark.since}} has been changed in SPARK-36906, from
> {code:python}
> def since(version: str) -> Callable[[T], T]: ...
> {code}
> to
> {code:python}
> def since(version: Union[str, float]) -> Callable[[T], T]: ...
> {code}
> We should backport this change to 3.1 and 3.2 (see for example 
> https://github.com/delta-io/delta/pull/305)
> This is technically a bug in the downstream projects that runs mypy checks 
> against pyspark.since. When they use it, for example, with 
> {{pyspark.since(3.2)}}, mypy checks fails; however, this case is legitimate. 
> After this change, the mypy change can pass.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to