1515# specific language governing permissions and limitations
1616# under the License.
1717
18- from typing import (
19- Any ,
18+ from collections .abc import (
2019 Callable ,
2120 Iterable ,
22- Literal ,
2321 Sequence ,
22+ )
23+
24+ from typing import (
25+ Any ,
26+ Literal ,
2427 TypeAlias ,
2528 TypedDict ,
2629 overload ,
@@ -189,8 +192,9 @@ class ExtractRegexSpanOptions(FunctionOptions):
189192
190193
191194class FilterOptions (FunctionOptions ):
192- def __init__ (
193- self , null_selection_behavior : Literal ["drop" , "emit_null" ] = "drop" ) -> None : ...
195+ def __init__ (self ,
196+ null_selection_behavior : Literal ["drop" ,
197+ "emit_null" ] = "drop" ) -> None : ...
194198
195199
196200class IndexOptions (FunctionOptions ):
@@ -398,12 +402,16 @@ class SetLookupOptions(FunctionOptions):
398402
399403
400404class SliceOptions (FunctionOptions ):
401- def __init__ (self , start : int , stop : int | None = None , step : int = 1 ) -> None : ...
405+ def __init__ (
406+ self , start : int , stop : int | None = None , step : int = 1 ) -> None : ...
402407
403408
404409class SortOptions (FunctionOptions ):
405410 def __init__ (
406- self , sort_keys : Sequence [tuple [str , _Order ]], * , null_placement : _Placement = "at_end"
411+ self ,
412+ sort_keys : Sequence [tuple [str , _Order ]],
413+ * ,
414+ null_placement : _Placement = "at_end"
407415 ) -> None : ...
408416
409417
@@ -424,15 +432,18 @@ class StrftimeOptions(FunctionOptions):
424432
425433
426434class StrptimeOptions (FunctionOptions ):
427- def __init__ (
428- self , format : str , unit : Literal ["s" , "ms" , "us" , "ns" ], error_is_null : bool = False
429- ) -> None : ...
435+ def __init__ (self ,
436+ format : str ,
437+ unit : Literal ["s" ,
438+ "ms" ,
439+ "us" ,
440+ "ns" ],
441+ error_is_null : bool = False ) -> None : ...
430442
431443
432444class StructFieldOptions (FunctionOptions ):
433- def __init__ (
434- self , indices : list [str ] | list [bytes ] | list [int ] | Expression | bytes | str | int
435- ) -> None : ...
445+ def __init__ (self , indices : list [str ] | list [bytes ] |
446+ list [int ] | Expression | bytes | str | int ) -> None : ...
436447
437448
438449class TakeOptions (FunctionOptions ):
@@ -497,8 +508,9 @@ def list_functions() -> list[str]: ...
497508
498509
499510def call_tabular_function (
500- function_name : str , args : Iterable | None = None , func_registry : FunctionRegistry | None = None
501- ) -> lib .RecordBatchReader : ...
511+ function_name : str ,
512+ args : Iterable | None = None ,
513+ func_registry : FunctionRegistry | None = None ) -> lib .RecordBatchReader : ...
502514
503515
504516class _FunctionDoc (TypedDict ):
@@ -569,10 +581,10 @@ class Expression(lib._Weakrefable):
569581 def __sub__ (self , other ) -> Expression : ...
570582 def __eq__ (self , value : object ) -> Expression : ... # type: ignore[override]
571583 def __ne__ (self , value : object ) -> Expression : ... # type: ignore[override]
572- def __gt__ (self , value : object ) -> Expression : ... # type: ignore[override]
573- def __lt__ (self , value : object ) -> Expression : ... # type: ignore[override]
574- def __ge__ (self , value : object ) -> Expression : ... # type: ignore[override]
575- def __le__ (self , value : object ) -> Expression : ... # type: ignore[override]
584+ def __gt__ (self , value : object ) -> Expression : ...
585+ def __lt__ (self , value : object ) -> Expression : ...
586+ def __ge__ (self , value : object ) -> Expression : ...
587+ def __le__ (self , value : object ) -> Expression : ...
576588 def __truediv__ (self , other ) -> Expression : ...
577589 def is_valid (self ) -> bool : ...
578590 def is_null (self , nan_is_null : bool = False ) -> Expression : ...
0 commit comments