Skip to content

Commit d80a0f3

Browse files
committed
[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]>
1 parent 22e2659 commit d80a0f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/pyspark/sql/types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ class AnyTimeType(DatetimeType):
401401

402402

403403
class TimeType(AnyTimeType):
404-
"""Time (datetime.time) data type."""
404+
"""
405+
Time (datetime.time) data type.
406+
407+
.. versionadded:: 4.1.0
408+
"""
405409

406410
def __init__(self, precision: int = 6):
407411
self.precision = precision

0 commit comments

Comments
 (0)