| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from datetime import datetime |
| 4 |
from typing import Any, Callable, Literal |
| 5 |
|
| 6 |
from . import DataType, MemoryPool, Scalar, _PandasConvertible |
| 7 |
|
| 8 |
class Expression: ... |
| 9 |
class ScalarAggregateOptions: ... |
| 10 |
|
| 11 |
class CastOptions: |
| 12 |
def __init__( |
| 13 |
self, |
| 14 |
target_type: DataType | None = None, |
| 15 |
allow_int_overflow: bool | None = None, |
| 16 |
allow_time_truncate: bool | None = None, |
| 17 |
allow_time_overflow: bool | None = None, |
| 18 |
allow_decimal_truncate: bool | None = None, |
| 19 |
allow_float_truncate: bool | None = None, |
| 20 |
allow_invalid_utf8: bool | None = None, |
| 21 |
) -> None: ... |
| 22 |
|
| 23 |
def max( # noqa: A001 |
| 24 |
array: _PandasConvertible, |
| 25 |
/, |
| 26 |
*, |
| 27 |
skip_nulls: bool = True, |
| 28 |
min_count: int = 1, |
| 29 |
options: ScalarAggregateOptions | None = None, |
| 30 |
memory_pool: MemoryPool | None = None, |
| 31 |
) -> Scalar: ... |
| 32 |
def utf8_length( |
| 33 |
strings: _PandasConvertible, /, *, memory_pool: MemoryPool | None = None |
| 34 |
) -> _PandasConvertible: ... |
| 35 |
def register_scalar_function( |
| 36 |
func: Callable, |
| 37 |
function_name: str, |
| 38 |
function_doc: dict[Literal["summary", "description"], str], |
| 39 |
in_types: dict[str, DataType], |
| 40 |
out_type: DataType, |
| 41 |
func_registry: Any | None = None, |
| 42 |
) -> None: ... |
| 43 |
def call_function( |
| 44 |
function_name: str, target: list[_PandasConvertible] |
| 45 |
) -> _PandasConvertible: ... |
| 46 |
def assume_timezone( |
| 47 |
timestamps: _PandasConvertible | Scalar | datetime, |
| 48 |
/, |
| 49 |
timezone: str, |
| 50 |
*, |
| 51 |
ambiguous: Literal["raise", "earliest", "latest"] = "raise", |
| 52 |
nonexistent: Literal["raise", "earliest", "latest"] = "raise", |
| 53 |
options: Any | None = None, |
| 54 |
memory_pool: MemoryPool | None = None, |
| 55 |
) -> _PandasConvertible: ... |