This is an automated email from the ASF dual-hosted git repository.

zero323 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new ad211cc  [SPARK-34630][PYTHON][SQL] Added typehint for 
pyspark.sql.Column.contains
ad211cc is described below

commit ad211ccd9da479a7d6d6324b9ea6b52c066788bd
Author: Danny Meijer <danny.mei...@nike.com>
AuthorDate: Wed Mar 24 15:21:19 2021 +0100

    [SPARK-34630][PYTHON][SQL] Added typehint for pyspark.sql.Column.contains
    
    ### What changes were proposed in this pull request?
    
    This PR implements the missing typehints as per SPARK-34630.
    
    ### Why are the changes needed?
    
    To satisfy the aforementioned Jira ticket
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, just adding a missing typehint for Project Zen
    
    ### How was this patch tested?
    
    No tests needed (just adding a typehint)
    
    Closes #31823 from dannymeijer/feature/SPARK-34630.
    
    Authored-by: Danny Meijer <danny.mei...@nike.com>
    Signed-off-by: zero323 <mszymkiew...@gmail.com>
---
 python/pyspark/sql/column.pyi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/pyspark/sql/column.pyi b/python/pyspark/sql/column.pyi
index 1f63e65..36c1bcc 100644
--- a/python/pyspark/sql/column.pyi
+++ b/python/pyspark/sql/column.pyi
@@ -115,3 +115,4 @@ class Column:
     def over(self, window: WindowSpec) -> Column: ...
     def __nonzero__(self) -> None: ...
     def __bool__(self) -> None: ...
+    def contains(self, item: Any) -> Column: ...

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

Reply via email to