Adding upstream version 0.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d887bee5ca
commit
148efc9122
69 changed files with 12923 additions and 0 deletions
27
stubs/pyarrow/types.pyi
Normal file
27
stubs/pyarrow/types.pyi
Normal file
|
@ -0,0 +1,27 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from . import DataType, Date32Type, Date64Type, TimestampType
|
||||
|
||||
def is_null(t: DataType) -> bool: ...
|
||||
def is_struct(t: DataType) -> bool: ...
|
||||
def is_boolean(t: DataType) -> bool: ...
|
||||
def is_integer(t: DataType) -> bool: ...
|
||||
def is_floating(t: DataType) -> bool: ...
|
||||
def is_decimal(t: DataType) -> bool: ...
|
||||
def is_temporal(t: DataType) -> bool: ...
|
||||
def is_date(t: DataType) -> bool: ...
|
||||
def is_date32(t: DataType) -> bool:
|
||||
if isinstance(t, Date32Type):
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_date64(t: DataType) -> bool:
|
||||
if isinstance(t, Date64Type):
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_time(t: DataType) -> bool: ...
|
||||
def is_timestamp(t: DataType) -> bool:
|
||||
if isinstance(t, TimestampType):
|
||||
return True
|
||||
return False
|
Loading…
Add table
Add a link
Reference in a new issue