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

dongjoon 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 d80a0f382d40 [SPARK-52837][PYTHON][FOLLOWUP] Add `versionadded` to 
`TimeType` doc
d80a0f382d40 is described below

commit d80a0f382d406808c18c0baa44d9ecba623ba701
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Dec 10 19:19:45 2025 -0800

    [SPARK-52837][PYTHON][FOLLOWUP] Add `versionadded` to `TimeType` doc
    
    ### What changes were proposed in this pull request?
    
    This PR aims to add `versionadded` to `TimeType`.
    
    ### Why are the changes needed?
    
    For `Scala/Java` documentation, we have `since` information.
    
    
https://github.com/apache/spark/blob/22e26598785e11303409f43fc08ce627053dadb4/sql/api/src/main/scala/org/apache/spark/sql/types/TimeType.scala#L31-L34
    
    We had better provide a correct information for the newly added `TimeType` 
in Python documentation.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #53436 from dongjoon-hyun/SPARK-52837.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 python/pyspark/sql/types.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/python/pyspark/sql/types.py b/python/pyspark/sql/types.py
index 4c36a2db5323..943e0943ca48 100644
--- a/python/pyspark/sql/types.py
+++ b/python/pyspark/sql/types.py
@@ -401,7 +401,11 @@ class AnyTimeType(DatetimeType):
 
 
 class TimeType(AnyTimeType):
-    """Time (datetime.time) data type."""
+    """
+    Time (datetime.time) data type.
+
+    .. versionadded:: 4.1.0
+    """
 
     def __init__(self, precision: int = 6):
         self.precision = precision


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to