This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new ebe1fcced0c5 [SPARK-52837][PYTHON][FOLLOWUP] Add `versionadded` to
`TimeType` doc
ebe1fcced0c5 is described below
commit ebe1fcced0c522e02a9a0af65669584f0c720fc8
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]>
(cherry picked from commit d80a0f382d406808c18c0baa44d9ecba623ba701)
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 95307ea3859c..0504999ac65a 100644
--- a/python/pyspark/sql/types.py
+++ b/python/pyspark/sql/types.py
@@ -403,7 +403,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]