Skip to content

Commit ebe1fcc

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]> (cherry picked from commit d80a0f3) Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent c7ad2bf commit ebe1fcc

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
@@ -403,7 +403,11 @@ class AnyTimeType(DatetimeType):
403403

404404

405405
class TimeType(AnyTimeType):
406-
"""Time (datetime.time) data type."""
406+
"""
407+
Time (datetime.time) data type.
408+
409+
.. versionadded:: 4.1.0
410+
"""
407411

408412
def __init__(self, precision: int = 6):
409413
self.precision = precision

0 commit comments

Comments
 (0)