From 01a03de71c2218f962a96f09fff7c423a84a88c4 Mon Sep 17 00:00:00 2001 From: nishad shabbir Date: Thu, 27 Aug 2026 19:52:59 +0530 Subject: [PATCH] MINOR: [Python] Mention interval in the is_temporal docstring `pyarrow.types.is_temporal()` returns True for interval types, since `_TEMPORAL_TYPES` is built from `_INTERVAL_TYPES` along with the date, time, timestamp and duration ids, and `test_is_temporal_date_time_timestamp` asserts that it does. The generated docstring only listed "date, time, timestamp or duration", so the documented contract was narrower than the behaviour. Add interval to the list. No behaviour change. --- python/pyarrow/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyarrow/types.py b/python/pyarrow/types.py index b72427e54d0..859bcd21abf 100644 --- a/python/pyarrow/types.py +++ b/python/pyarrow/types.py @@ -265,7 +265,7 @@ def is_run_end_encoded(t): return t.id == lib.Type_RUN_END_ENCODED -@doc(is_null, datatype="date, time, timestamp or duration") +@doc(is_null, datatype="date, time, timestamp, duration or interval") def is_temporal(t): return t.id in _TEMPORAL_TYPES