@@ -52,6 +52,7 @@ from pyarrow._compute import RoundBinaryOptions as RoundBinaryOptions
5252from pyarrow ._compute import RoundOptions as RoundOptions
5353from pyarrow ._compute import RoundTemporalOptions as RoundTemporalOptions
5454from pyarrow ._compute import RoundToMultipleOptions as RoundToMultipleOptions
55+ from pyarrow ._compute import RunEndEncodeOptions as RunEndEncodeOptions
5556from pyarrow ._compute import ScalarAggregateOptions as ScalarAggregateOptions
5657from pyarrow ._compute import SelectKOptions as SelectKOptions
5758from pyarrow ._compute import SetLookupOptions as SetLookupOptions
@@ -73,6 +74,7 @@ from pyarrow._compute import WeekOptions as WeekOptions
7374
7475from pyarrow ._compute import _Order , _Placement
7576from pyarrow ._stubs_typing import ArrayLike , ScalarLike
77+ from pyarrow ._types import _RunEndType
7678from . import lib
7779
7880_P = ParamSpec ("_P" )
@@ -645,8 +647,8 @@ def atan2(
645647
646648# ========================= 2.5 Comparisons functions =========================
647649def equal (
648- x : lib .Scalar | lib .Array | lib .ChunkedArray | Expression ,
649- y : lib .Scalar | lib .Array | lib .ChunkedArray | Expression ,
650+ x : lib .Scalar | lib .Array | lib .ChunkedArray | Expression | Any ,
651+ y : lib .Scalar | lib .Array | lib .ChunkedArray | Expression | Any ,
650652 / , * , memory_pool : lib .MemoryPool | None = None
651653) -> lib .BooleanScalar | lib .BooleanArray | Expression : ...
652654
@@ -1634,4 +1636,11 @@ def pairwise_diff(
16341636) -> _NumericOrTemporalArrayT | Expression : ...
16351637
16361638
1639+ def run_end_encode (
1640+ input : _NumericOrTemporalArrayT | Expression , / , * , run_end_type : _RunEndType ,
1641+ value_type : _DataTypeT , options : RunEndEncodeOptions | None = None ,
1642+ memory_pool : lib .MemoryPool | None = None
1643+ ) -> _NumericOrTemporalArrayT | Expression : ...
1644+
1645+
16371646pairwise_diff_checked = _clone_signature (pairwise_diff )
0 commit comments