From a80c874dce12ca76b818020e1e7239f027a28fe2 Mon Sep 17 00:00:00 2001 From: diviloper Date: Sun, 27 Jul 2025 19:33:22 +0200 Subject: [PATCH 01/36] Update to 1.3 --- builder/build_pymeos.py | 2 +- builder/build_pymeos_functions.py | 4 +- builder/meos.h | 1331 ++--- pymeos_cffi/__init__.py | 751 +-- pymeos_cffi/functions.py | 9109 +++++++++-------------------- 5 files changed, 3273 insertions(+), 7924 deletions(-) diff --git a/builder/build_pymeos.py b/builder/build_pymeos.py index 56f6a72..7620f26 100644 --- a/builder/build_pymeos.py +++ b/builder/build_pymeos.py @@ -22,7 +22,7 @@ def get_include_dirs(): ffibuilder.set_source( "_meos_cffi", - '#include "meos.h"\n' '#include "meos_catalog.h"\n' '#include "meos_internal.h"', + '#include "meos.h"\n#include "meos_catalog.h"\n#include "meos_internal.h"', libraries=["meos"], library_dirs=get_library_dirs(), include_dirs=get_include_dirs(), diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index 7f7b7c5..c6701c7 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -524,10 +524,10 @@ def build_function_string( ) # If the function didn't return anything, just add the function call to the base if return_type.return_type == "None": - function_string = f"{base}" f" _lib.{function_name}({inner_params})" + function_string = f"{base} _lib.{function_name}({inner_params})" # Otherwise, store the result in a variable else: - function_string = f"{base}" f" result = _lib.{function_name}({inner_params})" + function_string = f"{base} result = _lib.{function_name}({inner_params})" # Add error handling function_string += f"\n _check_error()" diff --git a/builder/meos.h b/builder/meos.h index c029ae7..d4a0119 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -25,7 +25,6 @@ typedef struct pj_ctx PJ_CONTEXT; //#include //#include -//#include typedef char *Pointer; typedef uintptr_t Datum; @@ -63,329 +62,19 @@ typedef struct varlena typedef varlena text; typedef struct varlena bytea; -extern DateADT date_in(const char *str); -extern char *date_out(DateADT d); -extern int interval_cmp(const Interval *interv1, const Interval *interv2); -extern Interval *interval_in(const char *str, int32 typmod); -extern Interval *interval_make(int32 years, int32 months, int32 weeks, int32 days, int32 hours, int32 mins, double secs); -extern char *interval_out(const Interval *interv); +/* extern DateADT date_in(const char *str); (undefined) */ +/* extern char *date_out(DateADT d); (undefined) */ +/* extern int interval_cmp(const Interval *interv1, const Interval *interv2); (undefined) */ +/* extern Interval *interval_in(const char *str, int32 typmod); (undefined) */ +/* extern char *interval_out(const Interval *interv); (undefined) */ extern TimeADT time_in(const char *str, int32 typmod); extern char *time_out(TimeADT t); -extern Timestamp timestamp_in(const char *str, int32 typmod); -extern char *timestamp_out(Timestamp t); -extern TimestampTz timestamptz_in(const char *str, int32 typmod); -extern char *timestamptz_out(TimestampTz t); - - - -typedef uint16_t lwflags_t; - -typedef struct { - double afac, bfac, cfac, dfac, efac, ffac, gfac, hfac, ifac, xoff, yoff, zoff; -} AFFINE; - -typedef struct -{ - double xmin, ymin, zmin; - double xmax, ymax, zmax; - int32_t srid; -} -BOX3D; - -typedef struct -{ - lwflags_t flags; - double xmin; - double xmax; - double ymin; - double ymax; - double zmin; - double zmax; - double mmin; - double mmax; -} GBOX; - -typedef struct -{ - double a; - double b; - double f; - double e; - double e_sq; - double radius; - char name[20]; -} -SPHEROID; - -typedef struct -{ - double x, y; -} -POINT2D; - -typedef struct -{ - double x, y, z; -} -POINT3DZ; - -typedef struct -{ - double x, y, z; -} -POINT3D; - -typedef struct -{ - double x, y, m; -} -POINT3DM; - -typedef struct -{ - double x, y, z, m; -} -POINT4D; - -typedef struct -{ - uint32_t npoints; - uint32_t maxpoints; - - - lwflags_t flags; - - - uint8_t *serialized_pointlist; -} -POINTARRAY; - -typedef struct -{ - uint32_t size; - uint8_t srid[3]; - uint8_t gflags; - uint8_t data[1]; -} GSERIALIZED; - -typedef struct -{ - GBOX *bbox; - void *data; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; -} -LWGEOM; - -typedef struct -{ - GBOX *bbox; - POINTARRAY *point; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; -} -LWPOINT; - -typedef struct -{ - GBOX *bbox; - POINTARRAY *points; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; -} -LWLINE; - -typedef struct -{ - GBOX *bbox; - POINTARRAY *points; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; -} -LWTRIANGLE; - -typedef struct -{ - GBOX *bbox; - POINTARRAY *points; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; -} -LWCIRCSTRING; - -typedef struct -{ - GBOX *bbox; - POINTARRAY **rings; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t nrings; - uint32_t maxrings; -} -LWPOLY; - -typedef struct -{ - GBOX *bbox; - LWPOINT **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWMPOINT; - -typedef struct -{ - GBOX *bbox; - LWLINE **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWMLINE; - -typedef struct -{ - GBOX *bbox; - LWPOLY **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWMPOLY; - -typedef struct -{ - GBOX *bbox; - LWGEOM **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWCOLLECTION; - -typedef struct -{ - GBOX *bbox; - LWGEOM **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWCOMPOUND; - -typedef struct -{ - GBOX *bbox; - LWGEOM **rings; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t nrings; - uint32_t maxrings; -} -LWCURVEPOLY; +/* extern Timestamp timestamp_in(const char *str, int32 typmod); (undefined) */ +/* extern char *timestamp_out(Timestamp t); (undefined) */ +/* extern TimestampTz timestamptz_in(const char *str, int32 typmod); (undefined) */ +/* extern char *timestamptz_out(TimestampTz t); (undefined) */ -typedef struct -{ - GBOX *bbox; - LWGEOM **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWMCURVE; - -typedef struct -{ - GBOX *bbox; - LWGEOM **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWMSURFACE; - -typedef struct -{ - GBOX *bbox; - LWPOLY **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWPSURFACE; - -typedef struct -{ - GBOX *bbox; - LWTRIANGLE **geoms; - int32_t srid; - lwflags_t flags; - uint8_t type; - char pad[1]; - uint32_t ngeoms; - uint32_t maxgeoms; -} -LWTIN; - -/* extern int32 geo_get_srid(const GSERIALIZED *g); (undefined) */ - -struct PJconsts; -typedef struct PJconsts PJ; - -typedef struct LWPROJ -{ - PJ* pj; - - - bool pipeline_is_forward; - - - uint8_t source_is_latlong; - - double source_semi_major_metre; - double source_semi_minor_metre; -} LWPROJ; - - + typedef struct { @@ -438,8 +127,8 @@ typedef struct double xmax; double ymax; double zmax; - int32_t srid; - int16 flags; + int32_t srid; + int16 flags; } STBox; typedef enum @@ -458,14 +147,6 @@ typedef enum LINEAR = 3, } interpType; -typedef enum -{ - INTERSECTS = 0, - CONTAINS = 1, - TOUCHES = 2, - COVERS = 3, -} spatialRel; - typedef struct { int32 vl_len_; @@ -547,29 +228,30 @@ typedef struct RTree RTree; typedef enum { - MEOS_SUCCESS = 0, - - MEOS_ERR_INTERNAL_ERROR = 1, - MEOS_ERR_INTERNAL_TYPE_ERROR = 2, - MEOS_ERR_VALUE_OUT_OF_RANGE = 3, - MEOS_ERR_DIVISION_BY_ZERO = 4, - MEOS_ERR_MEMORY_ALLOC_ERROR = 5, - MEOS_ERR_AGGREGATION_ERROR = 6, - MEOS_ERR_DIRECTORY_ERROR = 7, - MEOS_ERR_FILE_ERROR = 8, - - MEOS_ERR_INVALID_ARG = 10, - MEOS_ERR_INVALID_ARG_TYPE = 11, - MEOS_ERR_INVALID_ARG_VALUE = 12, - - MEOS_ERR_MFJSON_INPUT = 20, - MEOS_ERR_MFJSON_OUTPUT = 21, - MEOS_ERR_TEXT_INPUT = 22, - MEOS_ERR_TEXT_OUTPUT = 23, - MEOS_ERR_WKB_INPUT = 24, - MEOS_ERR_WKB_OUTPUT = 25, - MEOS_ERR_GEOJSON_INPUT = 26, - MEOS_ERR_GEOJSON_OUTPUT = 27, + MEOS_SUCCESS = 0, + + MEOS_ERR_INTERNAL_ERROR = 1, + MEOS_ERR_INTERNAL_TYPE_ERROR = 2, + MEOS_ERR_VALUE_OUT_OF_RANGE = 3, + MEOS_ERR_DIVISION_BY_ZERO = 4, + MEOS_ERR_MEMORY_ALLOC_ERROR = 5, + MEOS_ERR_AGGREGATION_ERROR = 6, + MEOS_ERR_DIRECTORY_ERROR = 7, + MEOS_ERR_FILE_ERROR = 8, + + MEOS_ERR_INVALID_ARG = 10, + MEOS_ERR_INVALID_ARG_TYPE = 11, + MEOS_ERR_INVALID_ARG_VALUE = 12, + MEOS_ERR_FEATURE_NOT_SUPPORTED = 13, + + MEOS_ERR_MFJSON_INPUT = 20, + MEOS_ERR_MFJSON_OUTPUT = 21, + MEOS_ERR_TEXT_INPUT = 22, + MEOS_ERR_TEXT_OUTPUT = 23, + MEOS_ERR_WKB_INPUT = 24, + MEOS_ERR_WKB_OUTPUT = 25, + MEOS_ERR_GEOJSON_INPUT = 26, + MEOS_ERR_GEOJSON_OUTPUT = 27, } errorCode; @@ -585,6 +267,8 @@ typedef void (*error_handler_fn)(int, int, const char *); extern void meos_initialize_timezone(const char *name); extern void meos_initialize_error_handler(error_handler_fn err_handler); extern void meos_finalize_timezone(void); +extern void meos_finalize_projsrs(void); +extern void meos_finalize_ways(void); extern bool meos_set_datestyle(const char *newval, void *extra); extern bool meos_set_intervalstyle(const char *newval, int extra); @@ -597,17 +281,33 @@ extern void meos_finalize(void); extern DateADT add_date_int(DateADT d, int32 days); extern Interval *add_interval_interval(const Interval *interv1, const Interval *interv2); extern TimestampTz add_timestamptz_interval(TimestampTz t, const Interval *interv); +/* extern TimestampTz sub_timestamptz_interval(TimestampTz t, const Interval *interv); (undefined) */ extern bool bool_in(const char *str); extern char *bool_out(bool b); extern text *cstring2text(const char *str); extern Timestamp date_to_timestamp(DateADT dateVal); extern TimestampTz date_to_timestamptz(DateADT d); +extern double float_exp(double d); +extern double float_ln(double d); +extern double float_log10(double d); +extern double float_round(double d, int maxdd); +extern Interval *interval_make(int32 years, int32 months, int32 weeks, int32 days, int32 hours, int32 mins, double secs); extern Interval *minus_date_date(DateADT d1, DateADT d2); extern DateADT minus_date_int(DateADT d, int32 days); extern TimestampTz minus_timestamptz_interval(TimestampTz t, const Interval *interv); extern Interval *minus_timestamptz_timestamptz(TimestampTz t1, TimestampTz t2); -extern Interval *mult_interval_double(const Interval *interv, double factor); - +extern Interval *mul_interval_double(const Interval *interv, double factor); +extern DateADT pg_date_in(const char *str); +extern char *pg_date_out(DateADT d); +extern int pg_interval_cmp(const Interval *interv1, const Interval *interv2); +extern Interval *pg_interval_in(const char *str, int32 typmod); +extern char *pg_interval_out(const Interval *interv); +/* extern TimeADT pg_time_in(const char *str, int32 typmod); (undefined) */ +/* extern char *pg_time_out(TimeADT t); (undefined) */ +extern Timestamp pg_timestamp_in(const char *str, int32 typmod); +extern char *pg_timestamp_out(Timestamp t); +extern TimestampTz pg_timestamptz_in(const char *str, int32 typmod); +extern char *pg_timestamptz_out(TimestampTz t); extern char *text2cstring(const text *txt); extern int text_cmp(const text *txt1, const text *txt2); extern text *text_copy(const text *txt); @@ -616,6 +316,7 @@ extern text *text_lower(const text *txt); extern char *text_out(const text *txt); extern text *text_upper(const text *txt); extern text *textcat_text_text(const text *txt1, const text *txt2); +extern TimestampTz timestamptz_shift(TimestampTz t, const Interval *interv); extern DateADT timestamp_to_date(Timestamp t); extern DateADT timestamptz_to_date(TimestampTz t); @@ -637,11 +338,6 @@ extern Span *floatspan_in(const char *str); extern char *floatspan_out(const Span *s, int maxdd); extern SpanSet *floatspanset_in(const char *str); extern char *floatspanset_out(const SpanSet *ss, int maxdd); -extern Set *geogset_in(const char *str); -extern Set *geomset_in(const char *str); -extern char *geoset_as_ewkt(const Set *set, int maxdd); -extern char *geoset_as_text(const Set *set, int maxdd); -extern char *geoset_out(const Set *set, int maxdd); extern Set *intset_in(const char *str); extern char *intset_out(const Set *set); extern Span *intspan_in(const char *str); @@ -675,13 +371,12 @@ extern Set *dateset_make(const DateADT *values, int count); extern Span *datespan_make(DateADT lower, DateADT upper, bool lower_inc, bool upper_inc); extern Set *floatset_make(const double *values, int count); extern Span *floatspan_make(double lower, double upper, bool lower_inc, bool upper_inc); -extern Set *geoset_make(const GSERIALIZED **values, int count); extern Set *intset_make(const int *values, int count); extern Span *intspan_make(int lower, int upper, bool lower_inc, bool upper_inc); extern Set *set_copy(const Set *s); extern Span *span_copy(const Span *s); extern SpanSet *spanset_copy(const SpanSet *ss); -extern SpanSet *spanset_make(Span *spans, int count, bool normalize, bool order); +extern SpanSet *spanset_make(Span *spans, int count); extern Set *textset_make(const text **values, int count); extern Set *tstzset_make(const TimestampTz *values, int count); extern Span *tstzspan_make(TimestampTz lower, TimestampTz upper, bool lower_inc, bool upper_inc); @@ -701,16 +396,16 @@ extern SpanSet *float_to_spanset(double d); extern Set *floatset_to_intset(const Set *s); extern Span *floatspan_to_intspan(const Span *s); extern SpanSet *floatspanset_to_intspanset(const SpanSet *ss); -extern Set *geo_to_set(GSERIALIZED *gs); extern Set *int_to_set(int i); extern Span *int_to_span(int i); extern SpanSet *int_to_spanset(int i); extern Set *intset_to_floatset(const Set *s); extern Span *intspan_to_floatspan(const Span *s); extern SpanSet *intspanset_to_floatspanset(const SpanSet *ss); +extern Span *set_to_span(const Set *s); extern SpanSet *set_to_spanset(const Set *s); extern SpanSet *span_to_spanset(const Span *s); -extern Set *text_to_set(text *txt); +extern Set *text_to_set(const text *txt); extern Set *timestamptz_to_set(TimestampTz t); extern Span *timestamptz_to_span(TimestampTz t); extern SpanSet *timestamptz_to_spanset(TimestampTz t); @@ -751,11 +446,6 @@ extern double floatspan_width(const Span *s); extern double floatspanset_lower(const SpanSet *ss); extern double floatspanset_upper(const SpanSet *ss); extern double floatspanset_width(const SpanSet *ss, bool boundspan); -extern GSERIALIZED *geoset_end_value(const Set *s); -extern int32_t geoset_srid(const Set *s); -extern GSERIALIZED *geoset_start_value(const Set *s); -extern bool geoset_value_n(const Set *s, int n, GSERIALIZED **result); -extern GSERIALIZED **geoset_values(const Set *s); extern int intset_end_value(const Set *s); extern int intset_start_value(const Set *s); extern bool intset_value_n(const Set *s, int n, int *result); @@ -769,7 +459,6 @@ extern int intspanset_width(const SpanSet *ss, bool boundspan); extern uint32 set_hash(const Set *s); extern uint64 set_hash_extended(const Set *s, uint64 seed); extern int set_num_values(const Set *s); -extern Span *set_to_span(const Set *s); extern uint32 span_hash(const Span *s); extern uint64 span_hash_extended(const Span *s, uint64 seed); extern bool span_lower_inc(const Span *s); @@ -800,8 +489,8 @@ extern TimestampTz tstzspanset_end_timestamptz(const SpanSet *ss); extern TimestampTz tstzspanset_lower(const SpanSet *ss); extern int tstzspanset_num_timestamps(const SpanSet *ss); extern TimestampTz tstzspanset_start_timestamptz(const SpanSet *ss); -extern bool tstzspanset_timestamptz_n(const SpanSet *ss, int n, TimestampTz *result); extern Set *tstzspanset_timestamps(const SpanSet *ss); +extern bool tstzspanset_timestamptz_n(const SpanSet *ss, int n, TimestampTz *result); extern TimestampTz tstzspanset_upper(const SpanSet *ss); extern Set *bigintset_shift_scale(const Set *s, int64 shift, int64 width, bool hasshift, bool haswidth); @@ -811,39 +500,33 @@ extern Set *dateset_shift_scale(const Set *s, int shift, int width, bool hasshif extern Span *datespan_shift_scale(const Span *s, int shift, int width, bool hasshift, bool haswidth); extern SpanSet *datespanset_shift_scale(const SpanSet *ss, int shift, int width, bool hasshift, bool haswidth); extern Set *floatset_ceil(const Set *s); -extern Set *floatset_floor(const Set *s); extern Set *floatset_degrees(const Set *s, bool normalize); +extern Set *floatset_floor(const Set *s); extern Set *floatset_radians(const Set *s); -extern Set *floatset_round(const Set *s, int maxdd); extern Set *floatset_shift_scale(const Set *s, double shift, double width, bool hasshift, bool haswidth); extern Span *floatspan_ceil(const Span *s); +extern Span *floatspan_degrees(const Span *s, bool normalize); extern Span *floatspan_floor(const Span *s); +extern Span *floatspan_radians(const Span *s); extern Span *floatspan_round(const Span *s, int maxdd); extern Span *floatspan_shift_scale(const Span *s, double shift, double width, bool hasshift, bool haswidth); extern SpanSet *floatspanset_ceil(const SpanSet *ss); extern SpanSet *floatspanset_floor(const SpanSet *ss); +extern SpanSet *floatspanset_degrees(const SpanSet *ss, bool normalize); +extern SpanSet *floatspanset_radians(const SpanSet *ss); extern SpanSet *floatspanset_round(const SpanSet *ss, int maxdd); extern SpanSet *floatspanset_shift_scale(const SpanSet *ss, double shift, double width, bool hasshift, bool haswidth); -extern Set *geoset_round(const Set *s, int maxdd); -extern Set *geoset_set_srid(const Set *s, int32_t srid); -extern Set *geoset_transform(const Set *s, int32_t srid); -extern Set *geoset_transform_pipeline(const Set *s, const char *pipelinestr, int32_t srid, bool is_forward); extern Set *intset_shift_scale(const Set *s, int shift, int width, bool hasshift, bool haswidth); extern Span *intspan_shift_scale(const Span *s, int shift, int width, bool hasshift, bool haswidth); extern SpanSet *intspanset_shift_scale(const SpanSet *ss, int shift, int width, bool hasshift, bool haswidth); -extern GSERIALIZED *point_transform(const GSERIALIZED *gs, int32_t srid); -extern GSERIALIZED *point_transform_pipeline(const GSERIALIZED *gs, const char *pipelinestr, int32_t srid, bool is_forward); -extern Span *set_spans(const Set *s); -extern Span *set_split_each_n_spans(const Set *s, int elem_count, int *count); -extern Span *set_split_n_spans(const Set *s, int span_count, int *count); -extern Span *spanset_spans(const SpanSet *ss); -extern Span *spanset_split_each_n_spans(const SpanSet *ss, int elem_count, int *count); -extern Span *spanset_split_n_spans(const SpanSet *ss, int span_count, int *count); +extern Span *numspan_expand(const Span *s, Datum value); +extern Span *tstzspan_expand(const Span *s, const Interval *interv); +extern Set *set_round(const Set *s, int maxdd); +extern Set *textcat_text_textset(const text *txt, const Set *s); +extern Set *textcat_textset_text(const Set *s, const text *txt); extern Set *textset_initcap(const Set *s); extern Set *textset_lower(const Set *s); extern Set *textset_upper(const Set *s); -extern Set *textcat_textset_text(const Set *s, const text *txt); -extern Set *textcat_text_textset(const text *txt, const Set *s); extern TimestampTz timestamptz_tprecision(TimestampTz t, const Interval *duration, TimestampTz torigin); extern Set *tstzset_shift_scale(const Set *s, const Interval *shift, const Interval *duration); extern Set *tstzset_tprecision(const Set *s, const Interval *duration, TimestampTz torigin); @@ -874,6 +557,13 @@ extern bool spanset_le(const SpanSet *ss1, const SpanSet *ss2); extern bool spanset_lt(const SpanSet *ss1, const SpanSet *ss2); extern bool spanset_ne(const SpanSet *ss1, const SpanSet *ss2); +extern Span *set_spans(const Set *s); +extern Span *set_split_each_n_spans(const Set *s, int elems_per_span, int *count); +extern Span *set_split_n_spans(const Set *s, int span_count, int *count); +extern Span *spanset_spans(const SpanSet *ss); +extern Span *spanset_split_each_n_spans(const SpanSet *ss, int elems_per_span, int *count); +extern Span *spanset_split_n_spans(const SpanSet *ss, int span_count, int *count); + extern bool adjacent_span_bigint(const Span *s, int64 i); extern bool adjacent_span_date(const Span *s, DateADT d); extern bool adjacent_span_float(const Span *s, double d); @@ -897,7 +587,6 @@ extern bool contained_date_spanset(DateADT d, const SpanSet *ss); extern bool contained_float_set(double d, const Set *s); extern bool contained_float_span(double d, const Span *s); extern bool contained_float_spanset(double d, const SpanSet *ss); -extern bool contained_geo_set(GSERIALIZED *gs, const Set *s); extern bool contained_int_set(int i, const Set *s); extern bool contained_int_span(int i, const Span *s); extern bool contained_int_spanset(int i, const SpanSet *ss); @@ -906,14 +595,13 @@ extern bool contained_span_span(const Span *s1, const Span *s2); extern bool contained_span_spanset(const Span *s, const SpanSet *ss); extern bool contained_spanset_span(const SpanSet *ss, const Span *s); extern bool contained_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); -extern bool contained_text_set(text *txt, const Set *s); +extern bool contained_text_set(const text *txt, const Set *s); extern bool contained_timestamptz_set(TimestampTz t, const Set *s); extern bool contained_timestamptz_span(TimestampTz t, const Span *s); extern bool contained_timestamptz_spanset(TimestampTz t, const SpanSet *ss); extern bool contains_set_bigint(const Set *s, int64 i); extern bool contains_set_date(const Set *s, DateADT d); extern bool contains_set_float(const Set *s, double d); -extern bool contains_set_geo(const Set *s, GSERIALIZED *gs); extern bool contains_set_int(const Set *s, int i); extern bool contains_set_set(const Set *s1, const Set *s2); extern bool contains_set_text(const Set *s, text *t); @@ -986,7 +674,7 @@ extern bool left_spanset_float(const SpanSet *ss, double d); extern bool left_spanset_int(const SpanSet *ss, int i); extern bool left_spanset_span(const SpanSet *ss, const Span *s); extern bool left_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); -extern bool left_text_set(text *txt, const Set *s); +extern bool left_text_set(const text *txt, const Set *s); extern bool overafter_date_set(DateADT d, const Set *s); extern bool overafter_date_span(DateADT d, const Span *s); extern bool overafter_date_spanset(DateADT d, const SpanSet *ss); @@ -1035,7 +723,7 @@ extern bool overleft_spanset_float(const SpanSet *ss, double d); extern bool overleft_spanset_int(const SpanSet *ss, int i); extern bool overleft_spanset_span(const SpanSet *ss, const Span *s); extern bool overleft_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); -extern bool overleft_text_set(text *txt, const Set *s); +extern bool overleft_text_set(const text *txt, const Set *s); extern bool overright_bigint_set(int64 i, const Set *s); extern bool overright_bigint_span(int64 i, const Span *s); extern bool overright_bigint_spanset(int64 i, const SpanSet *ss); @@ -1060,7 +748,7 @@ extern bool overright_spanset_float(const SpanSet *ss, double d); extern bool overright_spanset_int(const SpanSet *ss, int i); extern bool overright_spanset_span(const SpanSet *ss, const Span *s); extern bool overright_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); -extern bool overright_text_set(text *txt, const Set *s); +extern bool overright_text_set(const text *txt, const Set *s); extern bool right_bigint_set(int64 i, const Set *s); extern bool right_bigint_span(int64 i, const Span *s); extern bool right_bigint_spanset(int64 i, const SpanSet *ss); @@ -1085,17 +773,15 @@ extern bool right_spanset_float(const SpanSet *ss, double d); extern bool right_spanset_int(const SpanSet *ss, int i); extern bool right_spanset_span(const SpanSet *ss, const Span *s); extern bool right_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); -extern bool right_text_set(text *txt, const Set *s); +extern bool right_text_set(const text *txt, const Set *s); extern Set *intersection_bigint_set(int64 i, const Set *s); -extern Set *intersection_date_set(const DateADT d, const Set *s); +extern Set *intersection_date_set(DateADT d, const Set *s); extern Set *intersection_float_set(double d, const Set *s); -extern Set *intersection_geo_set(const GSERIALIZED *gs, const Set *s); extern Set *intersection_int_set(int i, const Set *s); extern Set *intersection_set_bigint(const Set *s, int64 i); extern Set *intersection_set_date(const Set *s, DateADT d); extern Set *intersection_set_float(const Set *s, double d); -extern Set *intersection_set_geo(const Set *s, const GSERIALIZED *gs); extern Set *intersection_set_int(const Set *s, int i); extern Set *intersection_set_set(const Set *s1, const Set *s2); extern Set *intersection_set_text(const Set *s, const text *txt); @@ -1115,7 +801,7 @@ extern SpanSet *intersection_spanset_span(const SpanSet *ss, const Span *s); extern SpanSet *intersection_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); extern SpanSet *intersection_spanset_timestamptz(const SpanSet *ss, TimestampTz t); extern Set *intersection_text_set(const text *txt, const Set *s); -extern Set *intersection_timestamptz_set(const TimestampTz t, const Set *s); +extern Set *intersection_timestamptz_set(TimestampTz t, const Set *s); extern Set *minus_bigint_set(int64 i, const Set *s); extern SpanSet *minus_bigint_span(int64 i, const Span *s); extern SpanSet *minus_bigint_spanset(int64 i, const SpanSet *ss); @@ -1125,14 +811,12 @@ extern SpanSet *minus_date_spanset(DateADT d, const SpanSet *ss); extern Set *minus_float_set(double d, const Set *s); extern SpanSet *minus_float_span(double d, const Span *s); extern SpanSet *minus_float_spanset(double d, const SpanSet *ss); -extern Set *minus_geo_set(const GSERIALIZED *gs, const Set *s); extern Set *minus_int_set(int i, const Set *s); extern SpanSet *minus_int_span(int i, const Span *s); extern SpanSet *minus_int_spanset(int i, const SpanSet *ss); extern Set *minus_set_bigint(const Set *s, int64 i); extern Set *minus_set_date(const Set *s, DateADT d); extern Set *minus_set_float(const Set *s, double d); -extern Set *minus_set_geo(const Set *s, const GSERIALIZED *gs); extern Set *minus_set_int(const Set *s, int i); extern Set *minus_set_set(const Set *s1, const Set *s2); extern Set *minus_set_text(const Set *s, const text *txt); @@ -1158,24 +842,22 @@ extern SpanSet *minus_timestamptz_spanset(TimestampTz t, const SpanSet *ss); extern Set *union_bigint_set(int64 i, const Set *s); extern SpanSet *union_bigint_span(const Span *s, int64 i); extern SpanSet *union_bigint_spanset(int64 i, SpanSet *ss); -extern Set *union_date_set(const DateADT d, const Set *s); +extern Set *union_date_set(DateADT d, const Set *s); extern SpanSet *union_date_span(const Span *s, DateADT d); extern SpanSet *union_date_spanset(DateADT d, SpanSet *ss); extern Set *union_float_set(double d, const Set *s); extern SpanSet *union_float_span(const Span *s, double d); extern SpanSet *union_float_spanset(double d, SpanSet *ss); -extern Set *union_geo_set(const GSERIALIZED *gs, const Set *s); extern Set *union_int_set(int i, const Set *s); extern SpanSet *union_int_span(int i, const Span *s); extern SpanSet *union_int_spanset(int i, SpanSet *ss); extern Set *union_set_bigint(const Set *s, int64 i); extern Set *union_set_date(const Set *s, DateADT d); extern Set *union_set_float(const Set *s, double d); -extern Set *union_set_geo(const Set *s, const GSERIALIZED *gs); extern Set *union_set_int(const Set *s, int i); extern Set *union_set_set(const Set *s1, const Set *s2); extern Set *union_set_text(const Set *s, const text *txt); -extern Set *union_set_timestamptz(const Set *s, const TimestampTz t); +extern Set *union_set_timestamptz(const Set *s, TimestampTz t); extern SpanSet *union_span_bigint(const Span *s, int64 i); extern SpanSet *union_span_date(const Span *s, DateADT d); extern SpanSet *union_span_float(const Span *s, double d); @@ -1191,7 +873,7 @@ extern SpanSet *union_spanset_span(const SpanSet *ss, const Span *s); extern SpanSet *union_spanset_spanset(const SpanSet *ss1, const SpanSet *ss2); extern SpanSet *union_spanset_timestamptz(const SpanSet *ss, TimestampTz t); extern Set *union_text_set(const text *txt, const Set *s); -extern Set *union_timestamptz_set(const TimestampTz t, const Set *s); +extern Set *union_timestamptz_set(TimestampTz t, const Set *s); extern SpanSet *union_timestamptz_span(TimestampTz t, const Span *s); extern SpanSet *union_timestamptz_spanset(TimestampTz t, SpanSet *ss); @@ -1251,72 +933,48 @@ extern Set *text_union_transfn(Set *state, const text *txt); extern Span *timestamptz_extent_transfn(Span *state, TimestampTz t); extern Set *timestamptz_union_transfn(Set *state, TimestampTz t); +extern int64 bigint_get_bin(int64 value, int64 vsize, int64 vorigin); +extern Span *bigintspan_bins(const Span *s, int64 vsize, int64 vorigin, int *count); +extern Span *bigintspanset_bins(const SpanSet *ss, int64 vsize, int64 vorigin, int *count); +extern DateADT date_get_bin(DateADT d, const Interval *duration, DateADT torigin); +extern Span *datespan_bins(const Span *s, const Interval *duration, DateADT torigin, int *count); +extern Span *datespanset_bins(const SpanSet *ss, const Interval *duration, DateADT torigin, int *count); +extern double float_get_bin(double value, double vsize, double vorigin); +extern Span *floatspan_bins(const Span *s, double vsize, double vorigin, int *count); +extern Span *floatspanset_bins(const SpanSet *ss, double vsize, double vorigin, int *count); +extern int int_get_bin(int value, int vsize, int vorigin); +extern Span *intspan_bins(const Span *s, int vsize, int vorigin, int *count); +extern Span *intspanset_bins(const SpanSet *ss, int vsize, int vorigin, int *count); +extern TimestampTz timestamptz_get_bin(TimestampTz t, const Interval *duration, TimestampTz torigin); +extern Span *tstzspan_bins(const Span *s, const Interval *duration, TimestampTz origin, int *count); +extern Span *tstzspanset_bins(const SpanSet *ss, const Interval *duration, TimestampTz torigin, int *count); + +extern char *tbox_as_hexwkb(const TBox *box, uint8_t variant, size_t *size); +extern uint8_t *tbox_as_wkb(const TBox *box, uint8_t variant, size_t *size_out); +extern TBox *tbox_from_hexwkb(const char *hexwkb); +extern TBox *tbox_from_wkb(const uint8_t *wkb, size_t size); extern TBox *tbox_in(const char *str); extern char *tbox_out(const TBox *box, int maxdd); -extern TBox *tbox_from_wkb(const uint8_t *wkb, size_t size); -extern TBox *tbox_from_hexwkb(const char *hexwkb); -extern STBox *stbox_from_wkb(const uint8_t *wkb, size_t size); -extern STBox *stbox_from_hexwkb(const char *hexwkb); -extern uint8_t *tbox_as_wkb(const TBox *box, uint8_t variant, size_t *size_out); -extern char *tbox_as_hexwkb(const TBox *box, uint8_t variant, size_t *size); -extern uint8_t *stbox_as_wkb(const STBox *box, uint8_t variant, size_t *size_out); -extern char *stbox_as_hexwkb(const STBox *box, uint8_t variant, size_t *size); -extern STBox *stbox_in(const char *str); -extern char *stbox_out(const STBox *box, int maxdd); -extern TBox *float_tstzspan_to_tbox(double d, const Span *s); extern TBox *float_timestamptz_to_tbox(double d, TimestampTz t); -extern STBox *geo_tstzspan_to_stbox(const GSERIALIZED *gs, const Span *s); -extern STBox *geo_timestamptz_to_stbox(const GSERIALIZED *gs, TimestampTz t); -extern TBox *int_tstzspan_to_tbox(int i, const Span *s); +extern TBox *float_tstzspan_to_tbox(double d, const Span *s); extern TBox *int_timestamptz_to_tbox(int i, TimestampTz t); +extern TBox *int_tstzspan_to_tbox(int i, const Span *s); extern TBox *numspan_tstzspan_to_tbox(const Span *span, const Span *s); extern TBox *numspan_timestamptz_to_tbox(const Span *span, TimestampTz t); -extern STBox *stbox_copy(const STBox *box); -extern STBox *stbox_make(bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *s); extern TBox *tbox_copy(const TBox *box); extern TBox *tbox_make(const Span *s, const Span *p); extern TBox *float_to_tbox(double d); -extern STBox *geo_to_stbox(const GSERIALIZED *gs); extern TBox *int_to_tbox(int i); extern TBox *set_to_tbox(const Set *s); extern TBox *span_to_tbox(const Span *s); extern TBox *spanset_to_tbox(const SpanSet *ss); -extern STBox *spatialset_to_stbox(const Set *s); -extern GBOX *stbox_to_gbox(const STBox *box); -extern BOX3D *stbox_to_box3d(const STBox *box); -extern GSERIALIZED *stbox_to_geo(const STBox *box); -extern Span *stbox_to_tstzspan(const STBox *box); extern Span *tbox_to_intspan(const TBox *box); extern Span *tbox_to_floatspan(const TBox *box); extern Span *tbox_to_tstzspan(const TBox *box); -extern STBox *timestamptz_to_stbox(TimestampTz t); extern TBox *timestamptz_to_tbox(TimestampTz t); -extern STBox *tstzset_to_stbox(const Set *s); -extern STBox *tstzspan_to_stbox(const Span *s); -extern STBox *tstzspanset_to_stbox(const SpanSet *ss); -extern TBox *tnumber_to_tbox(const Temporal *temp); -extern STBox *tpoint_to_stbox(const Temporal *temp); - -extern double stbox_area(const STBox *box, bool spheroid); -extern bool stbox_hast(const STBox *box); -extern bool stbox_hasx(const STBox *box); -extern bool stbox_hasz(const STBox *box); -extern bool stbox_isgeodetic(const STBox *box); -extern double stbox_perimeter(const STBox *box, bool spheroid); -extern int32_t stbox_srid(const STBox *box); -extern bool stbox_tmax(const STBox *box, TimestampTz *result); -extern bool stbox_tmax_inc(const STBox *box, bool *result); -extern bool stbox_tmin(const STBox *box, TimestampTz *result); -extern bool stbox_tmin_inc(const STBox *box, bool *result); -extern double stbox_volume(const STBox *box); -extern bool stbox_xmax(const STBox *box, double *result); -extern bool stbox_xmin(const STBox *box, double *result); -extern bool stbox_ymax(const STBox *box, double *result); -extern bool stbox_ymin(const STBox *box, double *result); -extern bool stbox_zmax(const STBox *box, double *result); -extern bool stbox_zmin(const STBox *box, double *result); + extern bool tbox_hast(const TBox *box); extern bool tbox_hasx(const TBox *box); extern bool tbox_tmax(const TBox *box, TimestampTz *result); @@ -1332,19 +990,9 @@ extern bool tboxfloat_xmin(const TBox *box, double *result); extern bool tboxint_xmax(const TBox *box, int *result); extern bool tboxint_xmin(const TBox *box, int *result); -extern STBox *stbox_expand_space(const STBox *box, double d); -extern STBox *stbox_expand_time(const STBox *box, const Interval *interv); -extern STBox *stbox_get_space(const STBox *box); -extern STBox *stbox_quad_split(const STBox *box, int *count); -extern STBox *stbox_round(const STBox *box, int maxdd); -extern STBox *stbox_set_srid(const STBox *box, int32_t srid); -extern STBox *stbox_shift_scale_time(const STBox *box, const Interval *shift, const Interval *duration); -extern STBox *stbox_transform(const STBox *box, int32_t srid); -extern STBox *stbox_transform_pipeline(const STBox *box, const char *pipelinestr, int32_t srid, bool is_forward); -extern STBox *stboxarr_round(const STBox *boxarr, int count, int maxdd); +extern TBox *tbox_expand_float(const TBox *box, double d); +extern TBox *tbox_expand_int(const TBox *box, int i); extern TBox *tbox_expand_time(const TBox *box, const Interval *interv); -extern TBox *tbox_expand_float(const TBox *box, const double d); -extern TBox *tbox_expand_int(const TBox *box, const int i); extern TBox *tbox_round(const TBox *box, int maxdd); extern TBox *tbox_shift_scale_float(const TBox *box, double shift, double width, bool hasshift, bool haswidth); extern TBox *tbox_shift_scale_int(const TBox *box, int shift, int width, bool hasshift, bool haswidth); @@ -1352,90 +1000,47 @@ extern TBox *tbox_shift_scale_time(const TBox *box, const Interval *shift, const extern TBox *union_tbox_tbox(const TBox *box1, const TBox *box2, bool strict); extern TBox *intersection_tbox_tbox(const TBox *box1, const TBox *box2); -extern STBox *union_stbox_stbox(const STBox *box1, const STBox *box2, bool strict); -extern STBox *intersection_stbox_stbox(const STBox *box1, const STBox *box2); - -extern RTree * rtree_create_stbox(); -extern void rtree_insert (RTree *rtree ,STBox *box, int64 id); -extern int * rtree_search ( const RTree* rtree,const STBox * query, int * count); -extern void rtree_free(RTree* rtree); -extern bool adjacent_stbox_stbox(const STBox *box1, const STBox *box2); extern bool adjacent_tbox_tbox(const TBox *box1, const TBox *box2); extern bool contained_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool contained_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool contains_stbox_stbox(const STBox *box1, const STBox *box2); extern bool contains_tbox_tbox(const TBox *box1, const TBox *box2); extern bool overlaps_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool overlaps_stbox_stbox(const STBox *box1, const STBox *box2); extern bool same_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool same_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool after_tbox_tbox(const TBox *box1, const TBox *box2); +extern bool before_tbox_tbox(const TBox *box1, const TBox *box2); extern bool left_tbox_tbox(const TBox *box1, const TBox *box2); +extern bool overafter_tbox_tbox(const TBox *box1, const TBox *box2); +extern bool overbefore_tbox_tbox(const TBox *box1, const TBox *box2); extern bool overleft_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool right_tbox_tbox(const TBox *box1, const TBox *box2); extern bool overright_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool before_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool overbefore_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool after_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool overafter_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool left_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overleft_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool right_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overright_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool below_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overbelow_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool above_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overabove_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool front_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overfront_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool back_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overback_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool before_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overbefore_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool after_stbox_stbox(const STBox *box1, const STBox *box2); -extern bool overafter_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool right_tbox_tbox(const TBox *box1, const TBox *box2); -extern bool tbox_eq(const TBox *box1, const TBox *box2); -extern bool tbox_ne(const TBox *box1, const TBox *box2); extern int tbox_cmp(const TBox *box1, const TBox *box2); -extern bool tbox_lt(const TBox *box1, const TBox *box2); -extern bool tbox_le(const TBox *box1, const TBox *box2); +extern bool tbox_eq(const TBox *box1, const TBox *box2); extern bool tbox_ge(const TBox *box1, const TBox *box2); extern bool tbox_gt(const TBox *box1, const TBox *box2); -extern bool stbox_eq(const STBox *box1, const STBox *box2); -extern bool stbox_ne(const STBox *box1, const STBox *box2); -extern int stbox_cmp(const STBox *box1, const STBox *box2); -extern bool stbox_lt(const STBox *box1, const STBox *box2); -extern bool stbox_le(const STBox *box1, const STBox *box2); -extern bool stbox_ge(const STBox *box1, const STBox *box2); -extern bool stbox_gt(const STBox *box1, const STBox *box2); +extern bool tbox_le(const TBox *box1, const TBox *box2); +extern bool tbox_lt(const TBox *box1, const TBox *box2); +extern bool tbox_ne(const TBox *box1, const TBox *box2); +extern Temporal *tbool_from_mfjson(const char *str); extern Temporal *tbool_in(const char *str); -extern Temporal *tint_in(const char *str); +extern char *tbool_out(const Temporal *temp); +extern char *temporal_as_hexwkb(const Temporal *temp, uint8_t variant, size_t *size_out); +extern char *temporal_as_mfjson(const Temporal *temp, bool with_bbox, int flags, int precision, const char *srs); +extern uint8_t *temporal_as_wkb(const Temporal *temp, uint8_t variant, size_t *size_out); +extern Temporal *temporal_from_hexwkb(const char *hexwkb); +extern Temporal *temporal_from_wkb(const uint8_t *wkb, size_t size); +extern Temporal *tfloat_from_mfjson(const char *str); extern Temporal *tfloat_in(const char *str); -extern Temporal *ttext_in(const char *str); -extern Temporal *tgeompoint_in(const char *str); -extern Temporal *tgeogpoint_in(const char *str); -extern Temporal *tbool_from_mfjson(const char *str); +extern char *tfloat_out(const Temporal *temp, int maxdd); extern Temporal *tint_from_mfjson(const char *str); -extern Temporal *tfloat_from_mfjson(const char *str); -extern Temporal *ttext_from_mfjson(const char *str); -extern Temporal *tgeompoint_from_mfjson(const char *str); -extern Temporal *tgeogpoint_from_mfjson(const char *str); -extern Temporal *temporal_from_wkb(const uint8_t *wkb, size_t size); -extern Temporal *temporal_from_hexwkb(const char *hexwkb); - -extern char *tbool_out(const Temporal *temp); +extern Temporal *tint_in(const char *str); extern char *tint_out(const Temporal *temp); -extern char *tfloat_out(const Temporal *temp, int maxdd); +extern Temporal *ttext_from_mfjson(const char *str); +extern Temporal *ttext_in(const char *str); extern char *ttext_out(const Temporal *temp); -extern char *tpoint_out(const Temporal *temp, int maxdd); -extern char *tpoint_as_text(const Temporal *temp, int maxdd); -extern char *tpoint_as_ewkt(const Temporal *temp, int maxdd); -extern char *temporal_as_mfjson(const Temporal *temp, bool with_bbox, int flags, int precision, const char *srs); -extern uint8_t *temporal_as_wkb(const Temporal *temp, uint8_t variant, size_t *size_out); -extern char *temporal_as_hexwkb(const Temporal *temp, uint8_t variant, size_t *size_out); extern Temporal *tbool_from_base_temp(bool b, const Temporal *temp); extern TInstant *tboolinst_make(bool b, TimestampTz t); @@ -1445,32 +1050,29 @@ extern TSequenceSet *tboolseqset_from_base_tstzspanset(bool b, const SpanSet *ss extern Temporal *temporal_copy(const Temporal *temp); extern Temporal *tfloat_from_base_temp(double d, const Temporal *temp); extern TInstant *tfloatinst_make(double d, TimestampTz t); -extern TSequence *tfloatseq_from_base_tstzspan(double d, const Span *s, interpType interp); extern TSequence *tfloatseq_from_base_tstzset(double d, const Set *s); +extern TSequence *tfloatseq_from_base_tstzspan(double d, const Span *s, interpType interp); extern TSequenceSet *tfloatseqset_from_base_tstzspanset(double d, const SpanSet *ss, interpType interp); extern Temporal *tint_from_base_temp(int i, const Temporal *temp); extern TInstant *tintinst_make(int i, TimestampTz t); -extern TSequence *tintseq_from_base_tstzspan(int i, const Span *s); extern TSequence *tintseq_from_base_tstzset(int i, const Set *s); +extern TSequence *tintseq_from_base_tstzspan(int i, const Span *s); extern TSequenceSet *tintseqset_from_base_tstzspanset(int i, const SpanSet *ss); -extern Temporal *tpoint_from_base_temp(const GSERIALIZED *gs, const Temporal *temp); -extern TInstant *tpointinst_make(const GSERIALIZED *gs, TimestampTz t); -extern TSequence *tpointseq_from_base_tstzspan(const GSERIALIZED *gs, const Span *s, interpType interp); -extern TSequence *tpointseq_from_base_tstzset(const GSERIALIZED *gs, const Set *s); -extern TSequenceSet *tpointseqset_from_base_tstzspanset(const GSERIALIZED *gs, const SpanSet *ss, interpType interp); extern TSequence *tsequence_make(const TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, bool normalize); extern TSequenceSet *tsequenceset_make(const TSequence **sequences, int count, bool normalize); extern TSequenceSet *tsequenceset_make_gaps(const TInstant **instants, int count, interpType interp, const Interval *maxt, double maxdist); extern Temporal *ttext_from_base_temp(const text *txt, const Temporal *temp); extern TInstant *ttextinst_make(const text *txt, TimestampTz t); -extern TSequence *ttextseq_from_base_tstzspan(const text *txt, const Span *s); extern TSequence *ttextseq_from_base_tstzset(const text *txt, const Set *s); +extern TSequence *ttextseq_from_base_tstzspan(const text *txt, const Span *s); extern TSequenceSet *ttextseqset_from_base_tstzspanset(const text *txt, const SpanSet *ss); +extern Temporal *tbool_to_tint(const Temporal *temp); extern Span *temporal_to_tstzspan(const Temporal *temp); extern Temporal *tfloat_to_tint(const Temporal *temp); extern Temporal *tint_to_tfloat(const Temporal *temp); extern Span *tnumber_to_span(const Temporal *temp); +extern TBox *tnumber_to_tbox (const Temporal *temp); extern bool tbool_end_value(const Temporal *temp); extern bool tbool_start_value(const Temporal *temp); @@ -1485,6 +1087,7 @@ extern uint32 temporal_hash(const Temporal *temp); extern TInstant *temporal_instant_n(const Temporal *temp, int n); extern TInstant **temporal_instants(const Temporal *temp, int *count); extern const char *temporal_interp(const Temporal *temp); +extern bool temporal_lower_inc(const Temporal *temp); extern TInstant *temporal_max_instant(const Temporal *temp); extern TInstant *temporal_min_instant(const Temporal *temp); extern int temporal_num_instants(const Temporal *temp); @@ -1493,16 +1096,15 @@ extern int temporal_num_timestamps(const Temporal *temp); extern TSequence **temporal_segments(const Temporal *temp, int *count); extern TSequence *temporal_sequence_n(const Temporal *temp, int i); extern TSequence **temporal_sequences(const Temporal *temp, int *count); -extern bool temporal_lower_inc(const Temporal *temp); -extern bool temporal_upper_inc(const Temporal *temp); extern TInstant *temporal_start_instant(const Temporal *temp); extern TSequence *temporal_start_sequence(const Temporal *temp); extern TimestampTz temporal_start_timestamptz(const Temporal *temp); extern TSequenceSet *temporal_stops(const Temporal *temp, double maxdist, const Interval *minduration); extern const char *temporal_subtype(const Temporal *temp); extern SpanSet *temporal_time(const Temporal *temp); -extern bool temporal_timestamptz_n(const Temporal *temp, int n, TimestampTz *result); extern TimestampTz *temporal_timestamps(const Temporal *temp, int *count); +extern bool temporal_timestamptz_n(const Temporal *temp, int n, TimestampTz *result); +extern bool temporal_upper_inc(const Temporal *temp); extern double tfloat_end_value(const Temporal *temp); extern double tfloat_max_value(const Temporal *temp); extern double tfloat_min_value(const Temporal *temp); @@ -1520,11 +1122,6 @@ extern int *tint_values(const Temporal *temp, int *count); extern double tnumber_integral(const Temporal *temp); extern double tnumber_twavg(const Temporal *temp); extern SpanSet *tnumber_valuespans(const Temporal *temp); -extern GSERIALIZED *tpoint_end_value(const Temporal *temp); -extern GSERIALIZED *tpoint_start_value(const Temporal *temp); -extern bool tpoint_value_at_timestamptz(const Temporal *temp, TimestampTz t, bool strict, GSERIALIZED **value); -extern bool tpoint_value_n(const Temporal *temp, int n, GSERIALIZED **result); -extern GSERIALIZED **tpoint_values(const Temporal *temp, int *count); extern text *ttext_end_value(const Temporal *temp); extern text *ttext_max_value(const Temporal *temp); extern text *ttext_min_value(const Temporal *temp); @@ -1534,39 +1131,32 @@ extern bool ttext_value_n(const Temporal *temp, int n, text **result); extern text **ttext_values(const Temporal *temp, int *count); extern double float_degrees(double value, bool normalize); -extern bool meos_srid_is_latlong(int32_t srid); +extern Temporal **temparr_round(const Temporal **temp, int count, int maxdd); +extern Temporal *temporal_round(const Temporal *temp, int maxdd); extern Temporal *temporal_scale_time(const Temporal *temp, const Interval *duration); extern Temporal *temporal_set_interp(const Temporal *temp, interpType interp); extern Temporal *temporal_shift_scale_time(const Temporal *temp, const Interval *shift, const Interval *duration); extern Temporal *temporal_shift_time(const Temporal *temp, const Interval *shift); extern TInstant *temporal_to_tinstant(const Temporal *temp); -extern TSequence *temporal_to_tsequence(const Temporal *temp, const char *interp_str); -extern TSequenceSet *temporal_to_tsequenceset(const Temporal *temp, const char *interp_str); -extern Temporal *tfloat_floor(const Temporal *temp); +extern TSequence *temporal_to_tsequence(const Temporal *temp, interpType interp); +extern TSequenceSet *temporal_to_tsequenceset(const Temporal *temp, interpType interp); extern Temporal *tfloat_ceil(const Temporal *temp); extern Temporal *tfloat_degrees(const Temporal *temp, bool normalize); +extern Temporal *tfloat_floor(const Temporal *temp); extern Temporal *tfloat_radians(const Temporal *temp); -extern Temporal *tfloat_round(const Temporal *temp, int maxdd); extern Temporal *tfloat_scale_value(const Temporal *temp, double width); extern Temporal *tfloat_shift_scale_value(const Temporal *temp, double shift, double width); extern Temporal *tfloat_shift_value(const Temporal *temp, double shift); -extern Temporal **tfloatarr_round(const Temporal **temp, int count, int maxdd); extern Temporal *tint_scale_value(const Temporal *temp, int width); extern Temporal *tint_shift_scale_value(const Temporal *temp, int shift, int width); extern Temporal *tint_shift_value(const Temporal *temp, int shift); -extern Temporal *tpoint_round(const Temporal *temp, int maxdd); -extern Temporal *tpoint_transform(const Temporal *temp, int32 srid); -extern Temporal *tpoint_transform_pipeline(const Temporal *temp, const char *pipelinestr, int32 srid, bool is_forward); -extern Temporal *tpoint_transform_pj(const Temporal *temp, int32 srid, const LWPROJ *pj); -extern LWPROJ *lwproj_transform(int32 srid_from, int32 srid_to); -extern Temporal **tpointarr_round(const Temporal **temp, int count, int maxdd); - -extern Temporal *temporal_append_tinstant(Temporal *temp, const TInstant *inst, double maxdist, const Interval *maxt, bool expand); + +extern Temporal *temporal_append_tinstant(Temporal *temp, const TInstant *inst, interpType interp, double maxdist, const Interval *maxt, bool expand); extern Temporal *temporal_append_tsequence(Temporal *temp, const TSequence *seq, bool expand); -extern Temporal *temporal_delete_tstzspan(const Temporal *temp, const Span *s, bool connect); -extern Temporal *temporal_delete_tstzspanset(const Temporal *temp, const SpanSet *ss, bool connect); extern Temporal *temporal_delete_timestamptz(const Temporal *temp, TimestampTz t, bool connect); extern Temporal *temporal_delete_tstzset(const Temporal *temp, const Set *s, bool connect); +extern Temporal *temporal_delete_tstzspan(const Temporal *temp, const Span *s, bool connect); +extern Temporal *temporal_delete_tstzspanset(const Temporal *temp, const SpanSet *ss, bool connect); extern Temporal *temporal_insert(const Temporal *temp1, const Temporal *temp2, bool connect); extern Temporal *temporal_merge(const Temporal *temp1, const Temporal *temp2); extern Temporal *temporal_merge_array(const Temporal **temparr, int count); @@ -1576,17 +1166,17 @@ extern Temporal *tbool_at_value(const Temporal *temp, bool b); extern Temporal *tbool_minus_value(const Temporal *temp, bool b); extern Temporal *temporal_at_max(const Temporal *temp); extern Temporal *temporal_at_min(const Temporal *temp); -extern Temporal *temporal_at_tstzspan(const Temporal *temp, const Span *s); -extern Temporal *temporal_at_tstzspanset(const Temporal *temp, const SpanSet *ss); extern Temporal *temporal_at_timestamptz(const Temporal *temp, TimestampTz t); extern Temporal *temporal_at_tstzset(const Temporal *temp, const Set *s); +extern Temporal *temporal_at_tstzspan(const Temporal *temp, const Span *s); +extern Temporal *temporal_at_tstzspanset(const Temporal *temp, const SpanSet *ss); extern Temporal *temporal_at_values(const Temporal *temp, const Set *set); extern Temporal *temporal_minus_max(const Temporal *temp); extern Temporal *temporal_minus_min(const Temporal *temp); -extern Temporal *temporal_minus_tstzspan(const Temporal *temp, const Span *s); -extern Temporal *temporal_minus_tstzspanset(const Temporal *temp, const SpanSet *ss); extern Temporal *temporal_minus_timestamptz(const Temporal *temp, TimestampTz t); extern Temporal *temporal_minus_tstzset(const Temporal *temp, const Set *s); +extern Temporal *temporal_minus_tstzspan(const Temporal *temp, const Span *s); +extern Temporal *temporal_minus_tstzspanset(const Temporal *temp, const SpanSet *ss); extern Temporal *temporal_minus_values(const Temporal *temp, const Set *set); extern Temporal *tfloat_at_value(const Temporal *temp, double d); extern Temporal *tfloat_minus_value(const Temporal *temp, double d); @@ -1598,12 +1188,6 @@ extern Temporal *tnumber_at_tbox(const Temporal *temp, const TBox *box); extern Temporal *tnumber_minus_span(const Temporal *temp, const Span *span); extern Temporal *tnumber_minus_spanset(const Temporal *temp, const SpanSet *ss); extern Temporal *tnumber_minus_tbox(const Temporal *temp, const TBox *box); -extern Temporal *tpoint_at_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan); -extern Temporal *tpoint_at_stbox(const Temporal *temp, const STBox *box, bool border_inc); -extern Temporal *tpoint_at_value(const Temporal *temp, GSERIALIZED *gs); -extern Temporal *tpoint_minus_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan); -extern Temporal *tpoint_minus_stbox(const Temporal *temp, const STBox *box, bool border_inc); -extern Temporal *tpoint_minus_value(const Temporal *temp, GSERIALIZED *gs); extern Temporal *ttext_at_value(const Temporal *temp, text *txt); extern Temporal *ttext_minus_value(const Temporal *temp, text *txt); @@ -1618,27 +1202,12 @@ extern bool temporal_ne(const Temporal *temp1, const Temporal *temp2); extern int always_eq_bool_tbool(bool b, const Temporal *temp); extern int always_eq_float_tfloat(double d, const Temporal *temp); extern int always_eq_int_tint(int i, const Temporal *temp); -extern int always_eq_point_tpoint(const GSERIALIZED *gs, const Temporal *temp); extern int always_eq_tbool_bool(const Temporal *temp, bool b); extern int always_eq_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern int always_eq_text_ttext(const text *txt, const Temporal *temp); extern int always_eq_tfloat_float(const Temporal *temp, double d); extern int always_eq_tint_int(const Temporal *temp, int i); -extern int always_eq_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); -extern int always_eq_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern int always_eq_ttext_text(const Temporal *temp, const text *txt); -extern int always_ne_bool_tbool(bool b, const Temporal *temp); -extern int always_ne_float_tfloat(double d, const Temporal *temp); -extern int always_ne_int_tint(int i, const Temporal *temp); -extern int always_ne_point_tpoint(const GSERIALIZED *gs, const Temporal *temp); -extern int always_ne_tbool_bool(const Temporal *temp, bool b); -extern int always_ne_temporal_temporal(const Temporal *temp1, const Temporal *temp2); -extern int always_ne_text_ttext(const text *txt, const Temporal *temp); -extern int always_ne_tfloat_float(const Temporal *temp, double d); -extern int always_ne_tint_int(const Temporal *temp, int i); -extern int always_ne_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); -extern int always_ne_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern int always_ne_ttext_text(const Temporal *temp, const text *txt); extern int always_ge_float_tfloat(double d, const Temporal *temp); extern int always_ge_int_tint(int i, const Temporal *temp); extern int always_ge_temporal_temporal(const Temporal *temp1, const Temporal *temp2); @@ -1667,17 +1236,23 @@ extern int always_lt_text_ttext(const text *txt, const Temporal *temp); extern int always_lt_tfloat_float(const Temporal *temp, double d); extern int always_lt_tint_int(const Temporal *temp, int i); extern int always_lt_ttext_text(const Temporal *temp, const text *txt); +extern int always_ne_bool_tbool(bool b, const Temporal *temp); +extern int always_ne_float_tfloat(double d, const Temporal *temp); +extern int always_ne_int_tint(int i, const Temporal *temp); +extern int always_ne_tbool_bool(const Temporal *temp, bool b); +extern int always_ne_temporal_temporal(const Temporal *temp1, const Temporal *temp2); +extern int always_ne_text_ttext(const text *txt, const Temporal *temp); +extern int always_ne_tfloat_float(const Temporal *temp, double d); +extern int always_ne_tint_int(const Temporal *temp, int i); +extern int always_ne_ttext_text(const Temporal *temp, const text *txt); extern int ever_eq_bool_tbool(bool b, const Temporal *temp); extern int ever_eq_float_tfloat(double d, const Temporal *temp); extern int ever_eq_int_tint(int i, const Temporal *temp); -extern int ever_eq_point_tpoint(const GSERIALIZED *gs, const Temporal *temp); extern int ever_eq_tbool_bool(const Temporal *temp, bool b); extern int ever_eq_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern int ever_eq_text_ttext(const text *txt, const Temporal *temp); extern int ever_eq_tfloat_float(const Temporal *temp, double d); extern int ever_eq_tint_int(const Temporal *temp, int i); -extern int ever_eq_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); -extern int ever_eq_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern int ever_eq_ttext_text(const Temporal *temp, const text *txt); extern int ever_ge_float_tfloat(double d, const Temporal *temp); extern int ever_ge_int_tint(int i, const Temporal *temp); @@ -1710,25 +1285,20 @@ extern int ever_lt_ttext_text(const Temporal *temp, const text *txt); extern int ever_ne_bool_tbool(bool b, const Temporal *temp); extern int ever_ne_float_tfloat(double d, const Temporal *temp); extern int ever_ne_int_tint(int i, const Temporal *temp); -extern int ever_ne_point_tpoint(const GSERIALIZED *gs, const Temporal *temp); extern int ever_ne_tbool_bool(const Temporal *temp, bool b); extern int ever_ne_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern int ever_ne_text_ttext(const text *txt, const Temporal *temp); extern int ever_ne_tfloat_float(const Temporal *temp, double d); extern int ever_ne_tint_int(const Temporal *temp, int i); -extern int ever_ne_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); -extern int ever_ne_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern int ever_ne_ttext_text(const Temporal *temp, const text *txt); extern Temporal *teq_bool_tbool(bool b, const Temporal *temp); extern Temporal *teq_float_tfloat(double d, const Temporal *temp); extern Temporal *teq_int_tint(int i, const Temporal *temp); -extern Temporal *teq_point_tpoint(const GSERIALIZED *gs, const Temporal *temp); extern Temporal *teq_tbool_bool(const Temporal *temp, bool b); extern Temporal *teq_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern Temporal *teq_text_ttext(const text *txt, const Temporal *temp); extern Temporal *teq_tfloat_float(const Temporal *temp, double d); -extern Temporal *teq_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); extern Temporal *teq_tint_int(const Temporal *temp, int i); extern Temporal *teq_ttext_text(const Temporal *temp, const text *txt); extern Temporal *tge_float_tfloat(double d, const Temporal *temp); @@ -1762,177 +1332,105 @@ extern Temporal *tlt_ttext_text(const Temporal *temp, const text *txt); extern Temporal *tne_bool_tbool(bool b, const Temporal *temp); extern Temporal *tne_float_tfloat(double d, const Temporal *temp); extern Temporal *tne_int_tint(int i, const Temporal *temp); -extern Temporal *tne_point_tpoint(const GSERIALIZED *gs, const Temporal *temp); extern Temporal *tne_tbool_bool(const Temporal *temp, bool b); extern Temporal *tne_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern Temporal *tne_text_ttext(const text *txt, const Temporal *temp); extern Temporal *tne_tfloat_float(const Temporal *temp, double d); -extern Temporal *tne_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); extern Temporal *tne_tint_int(const Temporal *temp, int i); extern Temporal *tne_ttext_text(const Temporal *temp, const text *txt); extern Span *temporal_spans(const Temporal *temp, int *count); extern Span *temporal_split_each_n_spans(const Temporal *temp, int elem_count, int *count); extern Span *temporal_split_n_spans(const Temporal *temp, int span_count, int *count); -extern TBox *tnumber_tboxes(const Temporal *temp, int *count); extern TBox *tnumber_split_each_n_tboxes(const Temporal *temp, int elem_count, int *count); extern TBox *tnumber_split_n_tboxes(const Temporal *temp, int box_count, int *count); -extern STBox *tpoint_stboxes(const Temporal *temp, int *count); -extern STBox *tpoint_space_boxes(const Temporal *temp, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool bitmatrix, bool border_inc, int *count); -extern STBox *tpoint_space_time_boxes(const Temporal *temp, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool bitmatrix, bool border_inc, int *count); -extern STBox *tpoint_split_each_n_stboxes(const Temporal *temp, int elem_count, int *count); -extern STBox *tpoint_split_n_stboxes(const Temporal *temp, int box_count, int *count); -extern GBOX *geo_split_each_n_gboxes(const GSERIALIZED *gs, int elem_count, int *count); -extern GBOX *geo_split_n_gboxes(const GSERIALIZED *gs, int box_count, int *count); +extern TBox *tnumber_tboxes(const Temporal *temp, int *count); extern bool adjacent_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool adjacent_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool adjacent_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool adjacent_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool adjacent_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool adjacent_tnumber_numspan(const Temporal *temp, const Span *s); extern bool adjacent_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool adjacent_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool adjacent_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool adjacent_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool adjacent_tstzspan_temporal(const Span *s, const Temporal *temp); extern bool contained_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool contained_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool contained_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool contained_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool contained_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool contained_tnumber_numspan(const Temporal *temp, const Span *s); extern bool contained_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool contained_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool contained_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool contained_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool contained_tstzspan_temporal(const Span *s, const Temporal *temp); extern bool contains_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool contains_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool contains_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool contains_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool contains_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool contains_tnumber_numspan(const Temporal *temp, const Span *s); extern bool contains_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool contains_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool contains_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool contains_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool contains_tstzspan_temporal(const Span *s, const Temporal *temp); extern bool overlaps_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool overlaps_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool overlaps_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool overlaps_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool overlaps_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool overlaps_tnumber_numspan(const Temporal *temp, const Span *s); extern bool overlaps_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool overlaps_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool overlaps_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overlaps_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool overlaps_tstzspan_temporal(const Span *s, const Temporal *temp); extern bool same_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool same_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool same_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool same_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool same_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool same_tnumber_numspan(const Temporal *temp, const Span *s); extern bool same_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool same_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool same_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool same_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool same_tstzspan_temporal(const Span *s, const Temporal *temp); -extern bool above_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool above_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool above_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool after_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool after_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool after_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool after_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool after_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool after_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool after_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool after_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool after_tstzspan_temporal(const Span *s, const Temporal *temp); -extern bool back_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool back_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool back_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool before_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool before_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool before_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool before_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool before_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool before_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool before_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool before_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool before_tstzspan_temporal(const Span *s, const Temporal *temp); -extern bool below_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool below_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool below_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool front_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool front_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool front_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool left_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool left_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool left_numspan_tnumber(const Span *s, const Temporal *temp); extern bool left_tnumber_numspan(const Temporal *temp, const Span *s); extern bool left_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool left_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool left_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool left_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool overabove_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool overabove_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overabove_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool overafter_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool overafter_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool overafter_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool overafter_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool overafter_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool overafter_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool overafter_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overafter_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool overafter_tstzspan_temporal(const Span *s, const Temporal *temp); -extern bool overback_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool overback_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overback_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool overbefore_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool overbefore_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool overbefore_temporal_tstzspan(const Temporal *temp, const Span *s); extern bool overbefore_temporal_temporal(const Temporal *temp1, const Temporal *temp2); extern bool overbefore_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool overbefore_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool overbefore_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overbefore_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool overbefore_tstzspan_temporal(const Span *s, const Temporal *temp); -extern bool overbelow_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool overbelow_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overbelow_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern bool overfront_stbox_tpoint(const STBox *box, const Temporal *temp); -extern bool overfront_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overfront_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool overleft_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool overleft_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool overleft_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool overleft_tnumber_numspan(const Temporal *temp, const Span *s); extern bool overleft_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool overleft_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool overleft_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overleft_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool overright_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool overright_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool overright_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool overright_tnumber_numspan(const Temporal *temp, const Span *s); extern bool overright_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool overright_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool overright_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool overright_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern bool right_numspan_tnumber(const Span *s, const Temporal *temp); -extern bool right_stbox_tpoint(const STBox *box, const Temporal *temp); extern bool right_tbox_tnumber(const TBox *box, const Temporal *temp); extern bool right_tnumber_numspan(const Temporal *temp, const Span *s); extern bool right_tnumber_tbox(const Temporal *temp, const TBox *box); extern bool right_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern bool right_tpoint_stbox(const Temporal *temp, const STBox *box); -extern bool right_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); extern Temporal *tand_bool_tbool(bool b, const Temporal *temp); extern Temporal *tand_tbool_bool(const Temporal *temp, bool b); @@ -1963,95 +1461,33 @@ extern Temporal *sub_int_tint(int i, const Temporal *tnumber); extern Temporal *sub_tfloat_float(const Temporal *tnumber, double d); extern Temporal *sub_tint_int(const Temporal *tnumber, int i); extern Temporal *sub_tnumber_tnumber(const Temporal *tnumber1, const Temporal *tnumber2); -extern Temporal *tfloat_derivative(const Temporal *temp); +extern Temporal *temporal_derivative(const Temporal *temp); +extern Temporal *tfloat_exp(const Temporal *temp); +extern Temporal *tfloat_ln(const Temporal *temp); +extern Temporal *tfloat_log10(const Temporal *temp); extern Temporal *tnumber_abs(const Temporal *temp); +extern double float_angular_difference(double degrees1, double degrees2); extern Temporal *tnumber_angular_difference(const Temporal *temp); extern Temporal *tnumber_delta_value(const Temporal *temp); extern Temporal *textcat_text_ttext(const text *txt, const Temporal *temp); extern Temporal *textcat_ttext_text(const Temporal *temp, const text *txt); extern Temporal *textcat_ttext_ttext(const Temporal *temp1, const Temporal *temp2); +extern Temporal *ttext_initcap(const Temporal *temp); extern Temporal *ttext_upper(const Temporal *temp); extern Temporal *ttext_lower(const Temporal *temp); -extern Temporal *ttext_initcap(const Temporal *temp); -extern Temporal *distance_tfloat_float(const Temporal *temp, double d); -extern Temporal *distance_tint_int(const Temporal *temp, int i); -extern Temporal *distance_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); -extern Temporal *distance_tpoint_point(const Temporal *temp, const GSERIALIZED *gs); -extern Temporal *distance_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern double nad_stbox_geo(const STBox *box, const GSERIALIZED *gs); -extern double nad_stbox_stbox(const STBox *box1, const STBox *box2); -extern int nad_tint_int(const Temporal *temp, int i); -extern int nad_tint_tbox(const Temporal *temp, const TBox *box); -extern int nad_tint_tint(const Temporal *temp1, const Temporal *temp2); +extern Temporal *tdistance_tfloat_float(const Temporal *temp, double d); +extern Temporal *tdistance_tint_int(const Temporal *temp, int i); +extern Temporal *tdistance_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); +extern double nad_tboxfloat_tboxfloat(const TBox *box1, const TBox *box2); extern int nad_tboxint_tboxint(const TBox *box1, const TBox *box2); extern double nad_tfloat_float(const Temporal *temp, double d); extern double nad_tfloat_tfloat(const Temporal *temp1, const Temporal *temp2); extern double nad_tfloat_tbox(const Temporal *temp, const TBox *box); -extern double nad_tboxfloat_tboxfloat(const TBox *box1, const TBox *box2); -extern double nad_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern double nad_tpoint_stbox(const Temporal *temp, const STBox *box); -extern double nad_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern TInstant *nai_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern TInstant *nai_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern GSERIALIZED *shortestline_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern GSERIALIZED *shortestline_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); - -extern bool bearing_point_point(const GSERIALIZED *gs1, const GSERIALIZED *gs2, double *result); -extern Temporal *bearing_tpoint_point(const Temporal *temp, const GSERIALIZED *gs, bool invert); -extern Temporal *bearing_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern GBOX *geo_gboxes(const GSERIALIZED *gs, int *count); -extern Temporal *tpoint_angular_difference(const Temporal *temp); -extern Temporal *tpoint_azimuth(const Temporal *temp); -extern GSERIALIZED *tpoint_convex_hull(const Temporal *temp); -extern Temporal *tpoint_cumulative_length(const Temporal *temp); -extern bool tpoint_direction(const Temporal *temp, double *result); -extern Temporal *tpoint_get_x(const Temporal *temp); -extern Temporal *tpoint_get_y(const Temporal *temp); -extern Temporal *tpoint_get_z(const Temporal *temp); -extern bool tpoint_is_simple(const Temporal *temp); -extern double tpoint_length(const Temporal *temp); -extern Temporal *tpoint_speed(const Temporal *temp); -extern int32_t tpoint_srid(const Temporal *temp); -extern GSERIALIZED *tpoint_trajectory(const Temporal *temp); -extern GSERIALIZED *tpoint_twcentroid(const Temporal *temp); - -extern STBox *geo_expand_space(const GSERIALIZED *gs, double d); -extern Temporal *geomeas_to_tpoint(const GSERIALIZED *gs); -extern Temporal *tgeogpoint_to_tgeompoint(const Temporal *temp); -extern Temporal *tgeompoint_to_tgeogpoint(const Temporal *temp); -extern bool tpoint_AsMVTGeom(const Temporal *temp, const STBox *bounds, int32_t extent, int32_t buffer, bool clip_geom, GSERIALIZED **gsarr, int64 **timesarr, int *count); -extern STBox *tpoint_expand_space(const Temporal *temp, double d); -extern Temporal **tpoint_make_simple(const Temporal *temp, int *count); -extern Temporal *tpoint_set_srid(const Temporal *temp, int32_t srid); -extern bool tpoint_tfloat_to_geomeas(const Temporal *tpoint, const Temporal *measure, bool segmentize, GSERIALIZED **result); - -extern int acontains_geo_tpoint(const GSERIALIZED *gs, const Temporal *temp); -extern int adisjoint_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern int adisjoint_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern int adwithin_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs, double dist); -extern int adwithin_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2, double dist); -extern int aintersects_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern int aintersects_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern int atouches_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern int econtains_geo_tpoint(const GSERIALIZED *gs, const Temporal *temp); -extern int edisjoint_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern int edisjoint_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern int edwithin_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs, double dist); -extern int edwithin_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2, double dist); -extern int eintersects_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); -extern int eintersects_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); -extern int etouches_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); - -extern Temporal *tcontains_geo_tpoint(const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue); -extern Temporal *tdisjoint_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); -extern Temporal *tdisjoint_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); -extern Temporal *tdwithin_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs, double dist, bool restr, bool atvalue); -extern Temporal *tdwithin_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2, double dist, bool restr, bool atvalue); -extern Temporal *tintersects_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); -extern Temporal *tintersects_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); -extern Temporal *ttouches_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); +extern int nad_tint_int(const Temporal *temp, int i); +extern int nad_tint_tbox(const Temporal *temp, const TBox *box); +extern int nad_tint_tint(const Temporal *temp1, const Temporal *temp2); extern SkipList *tbool_tand_transfn(SkipList *state, const Temporal *temp); extern SkipList *tbool_tor_transfn(SkipList *state, const Temporal *temp); @@ -2071,14 +1507,10 @@ extern SkipList *tint_tsum_transfn(SkipList *state, const Temporal *temp); extern SkipList *tint_wmax_transfn(SkipList *state, const Temporal *temp, const Interval *interv); extern SkipList *tint_wmin_transfn(SkipList *state, const Temporal *temp, const Interval *interv); extern SkipList *tint_wsum_transfn(SkipList *state, const Temporal *temp, const Interval *interv); - extern TBox *tnumber_extent_transfn(TBox *box, const Temporal *temp); extern Temporal *tnumber_tavg_finalfn(SkipList *state); extern SkipList *tnumber_tavg_transfn(SkipList *state, const Temporal *temp); extern SkipList *tnumber_wavg_transfn(SkipList *state, const Temporal *temp, const Interval *interv); -extern STBox *tpoint_extent_transfn(STBox *box, const Temporal *temp); -extern Temporal *tpoint_tcentroid_finalfn(SkipList *state); -extern SkipList *tpoint_tcentroid_transfn(SkipList *state, Temporal *temp); extern SkipList *tstzset_tcount_transfn(SkipList *state, const Set *s); extern SkipList *tstzspan_tcount_transfn(SkipList *state, const Span *s); extern SkipList *tstzspanset_tcount_transfn(SkipList *state, const SpanSet *ss); @@ -2099,58 +1531,26 @@ extern double temporal_frechet_distance(const Temporal *temp1, const Temporal *t extern Match *temporal_frechet_path(const Temporal *temp1, const Temporal *temp2, int *count); extern double temporal_hausdorff_distance(const Temporal *temp1, const Temporal *temp2); -extern int64 bigint_get_bin(int64 value, int64 vsize, int64 vorigin); -/* extern Span *bigintspan_bins(const Span *s, int64 vsize, int64 vorigin, int *count); (undefined) */ -/* extern Span *bigintspanset_bins(const SpanSet *ss, int64 vsize, int64 vorigin, int *count); (undefined) */ -extern Span *bigintspanset_value_spans(const SpanSet *ss, int64 vsize, int64 vorigin, int *count); -extern DateADT date_get_bin(DateADT d, const Interval *duration, DateADT torigin); -extern Span *datespan_bins(const Span *s, const Interval *duration, DateADT torigin, int *count); -/* extern Span *datespanset_bins(const SpanSet *ss, const Interval *duration, DateADT torigin, int *count); (undefined) */ -extern Span *datespanset_time_spans(const SpanSet *ss, const Interval *duration, DateADT torigin, int *count); -extern double float_get_bin(double value, double vsize, double vorigin); -extern Span *floatspan_bins(const Span *s, double vsize, double vorigin, int *count); -/* extern Span *floatspanset_bins(const SpanSet *ss, double vsize, double vorigin, - int *count); (undefined) */ -extern Span *floatspanset_value_spans(const SpanSet *ss, double vsize, double vorigin, int *count); -extern int int_get_bin(int value, int vsize, int vorigin); -extern Span *intspan_bins(const Span *s, int vsize, int vorigin, int *count); -/* extern Span *intspanset_bins(const SpanSet *ss, int vsize, int vorigin, int *count); (undefined) */ -extern Span *intspanset_value_spans(const SpanSet *ss, int vsize, int vorigin, int *count); -extern TimestampTz timestamptz_get_bin(TimestampTz t, const Interval *duration, TimestampTz torigin); -extern Span *tstzspan_bins(const Span *s, const Interval *duration, TimestampTz origin, int *count); -/* extern Span *tstzspanset_bins(const SpanSet *ss, const Interval *duration, TimestampTz torigin, int *count); (undefined) */ -extern Span *tstzspanset_time_spans(const SpanSet *ss, const Interval *duration, TimestampTz torigin, int *count); - -extern STBox *stbox_get_space_tile(const GSERIALIZED *point, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin); -extern STBox *stbox_get_space_time_tile(const GSERIALIZED *point, TimestampTz t, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin); -extern STBox *stbox_get_time_tile(TimestampTz t, const Interval *duration, TimestampTz torigin); -extern STBox *stbox_space_tiles(const STBox *bounds, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool border_inc, int *count); -extern STBox *stbox_space_time_tiles(const STBox *bounds, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool border_inc, int *count); -/* extern STBox *stbox_time_tiles(const STBox *bounds, const Interval *duration, TimestampTz torigin, bool border_inc, int *count); (undefined) */ -extern Span *temporal_time_spans(const Temporal *temp, const Interval *duration, TimestampTz origin, int *count); +extern Span *temporal_time_bins(const Temporal *temp, const Interval *duration, TimestampTz origin, int *count); extern Temporal **temporal_time_split(const Temporal *temp, const Interval *duration, TimestampTz torigin, TimestampTz **time_bins, int *count); -extern Span *tfloat_value_spans(const Temporal *temp, double vsize, double vorigin, int *count); -extern Temporal **tfloat_value_split(const Temporal *temp, double vsize, double vorigin, double **value_bins, int *count); +extern TBox *tfloat_time_boxes(const Temporal *temp, const Interval *duration, TimestampTz torigin, int *count); +extern Span *tfloat_value_bins(const Temporal *temp, double vsize, double vorigin, int *count); +extern TBox *tfloat_value_boxes(const Temporal *temp, double vsize, double vorigin, int *count); +extern Temporal **tfloat_value_split(const Temporal *temp, double size, double origin, double **bins, int *count); +extern TBox *tfloat_value_time_boxes(const Temporal *temp, double vsize, const Interval *duration, double vorigin, TimestampTz torigin, int *count); extern Temporal **tfloat_value_time_split(const Temporal *temp, double vsize, const Interval *duration, double vorigin, TimestampTz torigin, double **value_bins, TimestampTz **time_bins, int *count); -extern TBox *tfloatbox_get_time_tile(TimestampTz t, const Interval *duration, TimestampTz torigin); -extern TBox *tfloatbox_get_value_tile(double value, double vsize, double vorigin); -extern TBox *tfloatbox_get_value_time_tile(double value, TimestampTz t, double vsize, const Interval *duration, double vorigin, TimestampTz torigin); -/* extern TBox *tfloatbox_time_tiles(const TBox *box, const Interval *duration, TimestampTz torigin, int *count); (undefined) */ -/* extern TBox *tfloatbox_value_tiles(const TBox *box, double vsize, double vorigin, int *count); (undefined) */ +extern TBox *tfloatbox_time_tiles(const TBox *box, const Interval *duration, TimestampTz torigin, int *count); +extern TBox *tfloatbox_value_tiles(const TBox *box, double vsize, double vorigin, int *count); extern TBox *tfloatbox_value_time_tiles(const TBox *box, double vsize, const Interval *duration, double vorigin, TimestampTz torigin, int *count); -/* extern TimestampTz timestamptz_get_bin(TimestampTz timestamp, const Interval *duration, TimestampTz torigin); (repeated) */ -extern Span *tint_value_spans(const Temporal *temp, int vsize, int vorigin, int *count); +extern TBox *tint_time_boxes(const Temporal *temp, const Interval *duration, TimestampTz torigin, int *count); +extern Span *tint_value_bins(const Temporal *temp, int vsize, int vorigin, int *count); +extern TBox *tint_value_boxes(const Temporal *temp, int vsize, int vorigin, int *count); extern Temporal **tint_value_split(const Temporal *temp, int vsize, int vorigin, int **value_bins, int *count); +extern TBox *tint_value_time_boxes(const Temporal *temp, int vsize, const Interval *duration, int vorigin, TimestampTz torigin, int *count); extern Temporal **tint_value_time_split(const Temporal *temp, int size, const Interval *duration, int vorigin, TimestampTz torigin, int **value_bins, TimestampTz **time_bins, int *count); -extern TBox *tintbox_get_time_tile(TimestampTz t, const Interval *duration, TimestampTz torigin); -extern TBox *tintbox_get_value_tile(int value, int vsize, int vorigin); -extern TBox *tintbox_get_value_time_tile(int value, TimestampTz t, int vsize, const Interval *duration, int vorigin, TimestampTz torigin); -/* extern TBox *tintbox_time_tiles(const TBox *box, const Interval *duration, TimestampTz torigin, int *count); (undefined) */ -/* extern TBox *tintbox_value_tiles(const TBox *box, int xsize, int xorigin, int *count); (undefined) */ +extern TBox *tintbox_time_tiles(const TBox *box, const Interval *duration, TimestampTz torigin, int *count); +extern TBox *tintbox_value_tiles(const TBox *box, int xsize, int xorigin, int *count); extern TBox *tintbox_value_time_tiles(const TBox *box, int xsize, const Interval *duration, int xorigin, TimestampTz torigin, int *count); -extern Temporal **tpoint_space_split(const Temporal *temp, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool bitmatrix, bool border_inc, GSERIALIZED ***space_bins, int *count); -extern Temporal **tpoint_space_time_split(const Temporal *temp, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool bitmatrix, bool border_inc, GSERIALIZED ***space_bins, TimestampTz **time_bins, int *count); -/* extern Temporal **tpoint_time_split(const Temporal *temp, const Interval *duration, TimestampTz torigin, bool border_inc, TimestampTz **time_bins, int *count); (undefined) */ //-------------------- meos_catalog.h -------------------- @@ -2218,10 +1618,17 @@ typedef enum T_NSEGMENT = 50, T_TNPOINT = 51, T_POSE = 54, - T_TPOSE = 55, + T_POSESET = 55, + T_TPOSE = 56, + T_CBUFFER = 57, + T_CBUFFERSET = 58, + T_TCBUFFER = 59, + T_TGEOMETRY = 60, + T_TGEOGRAPHY = 61, + T_TRGEOMETRY = 62, } meosType; -#define NO_MEOS_TYPES 56 +#define NO_MEOS_TYPES 63 typedef enum { UNKNOWN_OP = 0, @@ -2312,11 +1719,10 @@ extern meosType basetype_spantype(meosType type); extern meosType basetype_settype(meosType type); /* extern bool meos_basetype(meosType type); (undefined) */ -/* extern bool alpha_basetype(meosType type); (undefined) */ extern bool tnumber_basetype(meosType type); /* extern bool alphanum_basetype(meosType type); (undefined) */ +/* extern bool alphanum_temptype(meosType type); (undefined) */ extern bool geo_basetype(meosType type); -extern bool spatial_basetype(meosType type); extern bool time_type(meosType type); /* extern bool set_basetype(meosType type); (undefined) */ @@ -2325,7 +1731,6 @@ extern bool set_type(meosType type); extern bool numset_type(meosType type); extern bool ensure_numset_type(meosType type); extern bool timeset_type(meosType type); -/* extern bool ensure_timeset_type(meosType type); (undefined) */ extern bool set_spantype(meosType type); extern bool ensure_set_spantype(meosType type); extern bool alphanumset_type(meosType settype); @@ -2337,16 +1742,16 @@ extern bool ensure_spatialset_type(meosType type); extern bool span_basetype(meosType type); extern bool span_canon_basetype(meosType type); extern bool span_type(meosType type); -/* extern bool span_bbox_type(meosType type); (undefined) */ +/* extern bool type_span_bbox(meosType type); (undefined) */ +/* extern bool span_tbox_type(meosType type); (undefined) */ +/* extern bool ensure_span_tbox_type(meosType type); (undefined) */ extern bool numspan_basetype(meosType type); extern bool numspan_type(meosType type); extern bool ensure_numspan_type(meosType type); extern bool timespan_basetype(meosType type); extern bool timespan_type(meosType type); -/* extern bool ensure_timespan_type(meosType type); (undefined) */ extern bool spanset_type(meosType type); -/* extern bool numspanset_type(meosType type); (undefined) */ extern bool timespanset_type(meosType type); extern bool ensure_timespanset_type(meosType type); @@ -2361,15 +1766,21 @@ extern bool talpha_type(meosType type); extern bool tnumber_type(meosType type); extern bool ensure_tnumber_type(meosType type); extern bool ensure_tnumber_basetype(meosType type); -/* extern bool tnumber_settype(meosType type); (undefined) */ extern bool tnumber_spantype(meosType type); -extern bool tnumber_spansettype(meosType type); +extern bool spatial_basetype(meosType type); extern bool tspatial_type(meosType type); extern bool ensure_tspatial_type(meosType type); -extern bool tspatial_basetype(meosType type); +extern bool tpoint_type(meosType type); +extern bool ensure_tpoint_type(meosType type); extern bool tgeo_type(meosType type); extern bool ensure_tgeo_type(meosType type); -extern bool ensure_tnumber_tgeo_type(meosType type); +extern bool tgeo_type_all(meosType type); +extern bool ensure_tgeo_type_all(meosType type); +extern bool tgeometry_type(meosType type); +extern bool ensure_tgeometry_type(meosType type); +extern bool tgeodetic_type(meosType type); +extern bool ensure_tgeodetic_type(meosType type); +extern bool ensure_tnumber_tpoint_type(meosType type); @@ -2388,21 +1799,108 @@ extern bool ensure_tnumber_tgeo_type(meosType type); //#include //#include "meos_catalog.h" + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + +/* extern void *SET_BBOX_PTR(const Set *s); (undefined) */ +/* extern size_t *SET_OFFSETS_PTR(const Set *s); (undefined) */ +/* extern Datum SET_VAL_N(const Set *s, int index); (undefined) */ +/* extern const Span *SPANSET_SP_N(const SpanSet *ss, int index); (undefined) */ +//#else + +/* extern size_t *TSEQUENCE_OFFSETS_PTR(const TSequence *seq); (undefined) */ +/* extern const TInstant *TSEQUENCE_INST_N(const TSequence *seq, int index); (undefined) */ +/* extern size_t *TSEQUENCESET_OFFSETS_PTR(const TSequenceSet *ss); (undefined) */ +/* extern const TSequence *TSEQUENCESET_SEQ_N(const TSequenceSet *ss, int index); (undefined) */ +//#else + + + extern gsl_rng *gsl_get_generation_rng(void); extern gsl_rng *gsl_get_aggregation_rng(void); -extern PJ_CONTEXT *proj_get_context(void); - -extern Datum datum_floor(Datum d); extern Datum datum_ceil(Datum d); extern Datum datum_degrees(Datum d, Datum normalize); -extern Datum datum_radians(Datum d); +extern Datum datum_float_round(Datum value, Datum size); +extern Datum datum_floor(Datum d); extern uint32 datum_hash(Datum d, meosType basetype); extern uint64 datum_hash_extended(Datum d, meosType basetype, uint64 seed); - - +extern Datum datum_radians(Datum d); +extern void floatspan_round_set(const Span *s, int maxdd, Span *result); extern Set *set_in(const char *str, meosType basetype); extern char *set_out(const Set *s, int maxdd); @@ -2411,36 +1909,20 @@ extern char *span_out(const Span *s, int maxdd); extern SpanSet *spanset_in(const char *str, meosType spantype); extern char *spanset_out(const SpanSet *ss, int maxdd); -extern Set *set_cp(const Set *s); extern Set *set_make(const Datum *values, int count, meosType basetype, bool order); extern Set *set_make_exp(const Datum *values, int count, int maxcount, meosType basetype, bool order); extern Set *set_make_free(Datum *values, int count, meosType basetype, bool order); -extern Span *span_cp(const Span *s); extern Span *span_make(Datum lower, Datum upper, bool lower_inc, bool upper_inc, meosType basetype); extern void span_set(Datum lower, Datum upper, bool lower_inc, bool upper_inc, meosType basetype, meosType spantype, Span *s); -extern SpanSet *spanset_cp(const SpanSet *ss); extern SpanSet *spanset_make_exp(Span *spans, int count, int maxcount, bool normalize, bool order); extern SpanSet *spanset_make_free(Span *spans, int count, bool normalize, bool order); -extern Set *dateset_tstzset(const Set *s); -extern Span *datespan_tstzspan(const Span *s); -extern SpanSet *datespanset_tstzspanset(const SpanSet *ss); -extern Set *floatset_intset(const Set *s); -extern Span *floatspan_intspan(const Span *s); -extern SpanSet *floatspanset_intspanset(const SpanSet *ss); -extern Set *intset_floatset(const Set *s); -extern Span *intspan_floatspan(const Span *s); -extern SpanSet *intspanset_floatspanset(const SpanSet *ss); extern Span *set_span(const Set *s); extern SpanSet *set_spanset(const Set *s); -extern SpanSet *span_spanset(const Span *s); -extern Set *tstzset_dateset(const Set *s); -extern Span *tstzspan_datespan(const Span *s); -extern SpanSet *tstzspanset_datespanset(const SpanSet *ss); extern void value_set_span(Datum value, meosType basetype, Span *s); -extern Set *value_to_set(Datum d, meosType basetype); -extern Span *value_to_span(Datum d, meosType basetype); -extern SpanSet *value_to_spanset(Datum d, meosType basetype); +extern Set *value_set(Datum d, meosType basetype); +extern Span *value_span(Datum d, meosType basetype); +extern SpanSet *value_spanset(Datum d, meosType basetype); extern Datum numspan_width(const Span *s); extern Datum numspanset_width(const SpanSet *ss, bool boundspan); @@ -2458,33 +1940,22 @@ extern const Span **spanset_sps(const SpanSet *ss); extern Datum spanset_upper(const SpanSet *ss); extern void datespan_set_tstzspan(const Span *s1, Span *s2); -extern Set * floatset_deg(const Set *s, bool normalize); -extern Set * floatset_rad(const Set *s); -extern Set * floatset_rnd(const Set *s, int size); -extern Span *floatspan_rnd(const Span *s, int size); -extern SpanSet *floatspanset_rnd(const SpanSet *ss, int size); extern void floatspan_set_intspan(const Span *s1, Span *s2); extern void intspan_set_floatspan(const Span *s1, Span *s2); extern Set *numset_shift_scale(const Set *s, Datum shift, Datum width, bool hasshift, bool haswidth); +/* extern Span *numspan_expand(const Span *s, Datum value); (repeated) */ extern Span *numspan_shift_scale(const Span *s, Datum shift, Datum width, bool hasshift, bool haswidth); extern SpanSet *numspanset_shift_scale(const SpanSet *ss, Datum shift, Datum width, bool hasshift, bool haswidth); extern Set *set_compact(const Set *s); extern void span_expand(const Span *s1, Span *s2); extern SpanSet *spanset_compact(const SpanSet *ss); +extern TBox *tbox_expand_value(const TBox *box, Datum value, meosType basetyp); extern Set *textcat_textset_text_int(const Set *s, const text *txt, bool invert); extern void tstzspan_set_datespan(const Span *s1, Span *s2); -extern int set_cmp_int(const Set *s1, const Set *s2); -extern int span_cmp_int(const Span *s1, const Span *s2); -extern bool span_eq_int(const Span *s1, const Span *s2); -extern int spanset_cmp_int(const SpanSet *ss1, const SpanSet *ss2); -extern bool spanset_eq_int(const SpanSet *ss1, const SpanSet *ss2); - -extern bool adj_span_span(const Span *s1, const Span *s2); extern bool adjacent_span_value(const Span *s, Datum value); extern bool adjacent_spanset_value(const SpanSet *ss, Datum value); extern bool adjacent_value_spanset(Datum value, const SpanSet *ss); -extern bool cont_span_span(const Span *s1, const Span *s2); extern bool contained_value_set(Datum value, const Set *s); extern bool contained_value_span(Datum value, const Span *s); extern bool contained_value_spanset(Datum value, const SpanSet *ss); @@ -2492,7 +1963,6 @@ extern bool contains_set_value(const Set *s, Datum value); extern bool contains_span_value(const Span *s, Datum value); extern bool contains_spanset_value(const SpanSet *ss, Datum value); extern bool ovadj_span_span(const Span *s1, const Span *s2); -extern bool over_span_span(const Span *s1, const Span *s2); extern bool left_set_value(const Set *s, Datum value); extern bool left_span_value(const Span *s, Datum value); @@ -2500,7 +1970,6 @@ extern bool left_spanset_value(const SpanSet *ss, Datum value); extern bool left_value_set(Datum value, const Set *s); extern bool left_value_span(Datum value, const Span *s); extern bool left_value_spanset(Datum value, const SpanSet *ss); -extern bool lf_span_span(const Span *s1, const Span *s2); extern bool lfnadj_span_span(const Span *s1, const Span *s2); extern bool overleft_set_value(const Set *s, Datum value); extern bool overleft_span_value(const Span *s, Datum value); @@ -2514,9 +1983,6 @@ extern bool overright_spanset_value(const SpanSet *ss, Datum value); extern bool overright_value_set(Datum value, const Set *s); extern bool overright_value_span(Datum value, const Span *s); extern bool overright_value_spanset(Datum value, const SpanSet *ss); -extern bool ovlf_span_span(const Span *s1, const Span *s2); -extern bool ovri_span_span(const Span *s1, const Span *s2); -extern bool ri_span_span(const Span *s1, const Span *s2); extern bool right_value_set(Datum value, const Set *s); extern bool right_set_value(const Set *s, Datum value); extern bool right_value_span(Datum value, const Span *s); @@ -2540,15 +2006,13 @@ extern Set *minus_value_set(Datum value, const Set *s); extern SpanSet *minus_value_span(Datum value, const Span *s); extern SpanSet *minus_value_spanset(Datum value, const SpanSet *ss); extern Span *super_union_span_span(const Span *s1, const Span *s2); -extern Set *union_set_value(const Set *s, const Datum value); +extern Set *union_set_value(const Set *s, Datum value); extern SpanSet *union_span_value(const Span *s, Datum value); extern SpanSet *union_spanset_value(const SpanSet *ss, Datum value); -extern Set *union_value_set(const Datum value, const Set *s); +extern Set *union_value_set(Datum value, const Set *s); extern SpanSet *union_value_span(Datum value, const Span *s); extern SpanSet *union_value_spanset(Datum value, const SpanSet *ss); -extern Datum dist_set_set(const Set *s1, const Set *s2); -extern Datum dist_span_span(const Span *s1, const Span *s2); extern Datum distance_set_set(const Set *s1, const Set *s2); extern Datum distance_set_value(const Set *s, Datum value); extern Datum distance_span_span(const Span *s1, const Span *s2); @@ -2563,122 +2027,76 @@ extern Set *value_union_transfn(Set *state, Datum value, meosType basetype); extern TBox *number_tstzspan_to_tbox(Datum d, meosType basetype, const Span *s); extern TBox *number_timestamptz_to_tbox(Datum d, meosType basetype, TimestampTz t); -extern STBox *stbox_cp(const STBox *box); -extern void stbox_set(bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *s, STBox *box); -extern TBox *tbox_cp(const TBox *box); extern void tbox_set(const Span *s, const Span *p, TBox *box); -extern STBox *box3d_to_stbox(const BOX3D *box); -extern STBox *gbox_to_stbox(const GBOX *box); extern void float_set_tbox(double d, TBox *box); -extern void gbox_set_stbox(const GBOX *box, int srid, STBox *result); -extern bool geo_set_stbox(const GSERIALIZED *gs, STBox *box); -extern void geoarr_set_stbox(const Datum *values, int count, STBox *box); extern void int_set_tbox(int i, TBox *box); extern void number_set_tbox(Datum d, meosType basetype, TBox *box); -extern TBox *number_to_tbox(Datum value, meosType basetype); +extern TBox *number_tbox(Datum value, meosType basetype); extern void numset_set_tbox(const Set *s, TBox *box); extern void numspan_set_tbox(const Span *span, TBox *box); -extern void numspanset_set_tbox(const SpanSet *ss, TBox *box); -extern void spatialset_set_stbox(const Set *set, STBox *box); -extern void stbox_set_box3d(const STBox *box, BOX3D *box3d); -extern void stbox_set_gbox(const STBox *box, GBOX *gbox); -extern void timestamptz_set_stbox(TimestampTz t, STBox *box); +/* extern void numspanset_set_tbox(const SpanSet *ss, TBox *box); (undefined) */ extern void timestamptz_set_tbox(TimestampTz t, TBox *box); -extern void tstzset_set_stbox(const Set *s, STBox *box); extern void tstzset_set_tbox(const Set *s, TBox *box); -extern void tstzspan_set_stbox(const Span *s, STBox *box); extern void tstzspan_set_tbox(const Span *s, TBox *box); -extern void tstzspanset_set_stbox(const SpanSet *ss, STBox *box); -extern void tstzspanset_set_tbox(const SpanSet *ss, TBox *box); +/* extern void tstzspanset_set_tbox(const SpanSet *ss, TBox *box); (undefined) */ extern TBox *tbox_shift_scale_value(const TBox *box, Datum shift, Datum width, bool hasshift, bool haswidth); -extern void stbox_expand(const STBox *box1, STBox *box2); extern void tbox_expand(const TBox *box1, TBox *box2); -extern bool inter_stbox_stbox(const STBox *box1, const STBox *box2, STBox *result); extern bool inter_tbox_tbox(const TBox *box1, const TBox *box2, TBox *result); -extern char **geoarr_as_text(const Datum *geoarr, int count, int maxdd, bool extended); -extern char *tboolinst_as_mfjson(const TInstant *inst, bool with_bbox); /* extern TInstant *tboolinst_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TInstant *tboolinst_in(const char *str); -extern char *tboolseq_as_mfjson(const TSequence *seq, bool with_bbox); /* extern TSequence *tboolseq_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TSequence *tboolseq_in(const char *str, interpType interp); -extern char *tboolseqset_as_mfjson(const TSequenceSet *ss, bool with_bbox); /* extern TSequenceSet *tboolseqset_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TSequenceSet *tboolseqset_in(const char *str); extern Temporal *temporal_in(const char *str, meosType temptype); extern char *temporal_out(const Temporal *temp, int maxdd); extern char **temparr_out(const Temporal **temparr, int count, int maxdd); -extern char *tfloatinst_as_mfjson(const TInstant *inst, bool with_bbox, int precision); /* extern TInstant *tfloatinst_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TInstant *tfloatinst_in(const char *str); -extern char *tfloatseq_as_mfjson(const TSequence *seq, bool with_bbox, int precision); /* extern TSequence *tfloatseq_from_mfjson(json_object *mfjson, interpType interp); (undefined type json_object) */ extern TSequence *tfloatseq_in(const char *str, interpType interp); -extern char *tfloatseqset_as_mfjson(const TSequenceSet *ss, bool with_bbox, int precision); /* extern TSequenceSet *tfloatseqset_from_mfjson(json_object *mfjson, interpType interp); (undefined type json_object) */ extern TSequenceSet *tfloatseqset_in(const char *str); -/* extern TInstant *tgeogpointinst_from_mfjson(json_object *mfjson, int srid); (undefined type json_object) */ -extern TInstant *tgeogpointinst_in(const char *str); -/* extern TSequence *tgeogpointseq_from_mfjson(json_object *mfjson, int srid, interpType interp); (undefined type json_object) */ -extern TSequence *tgeogpointseq_in(const char *str, interpType interp); -/* extern TSequenceSet *tgeogpointseqset_from_mfjson(json_object *mfjson, int srid, interpType interp); (undefined type json_object) */ -extern TSequenceSet *tgeogpointseqset_in(const char *str); -/* extern TInstant *tgeompointinst_from_mfjson(json_object *mfjson, int srid); (undefined type json_object) */ -extern TInstant *tgeompointinst_in(const char *str); -/* extern TSequence *tgeompointseq_from_mfjson(json_object *mfjson, int srid, interpType interp); (undefined type json_object) */ -extern TSequence *tgeompointseq_in(const char *str, interpType interp); -/* extern TSequenceSet *tgeompointseqset_from_mfjson(json_object *mfjson, int srid, interpType interp); (undefined type json_object) */ -extern TSequenceSet *tgeompointseqset_in(const char *str); -/* extern TInstant *tinstant_from_mfjson(json_object *mfjson, bool isgeo, int srid, meosType temptype); (undefined type json_object) */ +/* extern TInstant *tinstant_from_mfjson(json_object *mfjson, bool spatial, int32_t srid, meosType temptype); (undefined type json_object) */ extern TInstant *tinstant_in(const char *str, meosType temptype); extern char *tinstant_out(const TInstant *inst, int maxdd); -extern char *tintinst_as_mfjson(const TInstant *inst, bool with_bbox); /* extern TInstant *tintinst_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TInstant *tintinst_in(const char *str); -extern char *tintseq_as_mfjson(const TSequence *seq, bool with_bbox); /* extern TSequence *tintseq_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TSequence *tintseq_in(const char *str, interpType interp); -extern char *tintseqset_as_mfjson(const TSequenceSet *ss, bool with_bbox); /* extern TSequenceSet *tintseqset_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TSequenceSet *tintseqset_in(const char *str); -extern char **tpointarr_as_text(const Temporal **temparr, int count, int maxdd, bool extended); -extern char *tpointinst_as_mfjson(const TInstant *inst, bool with_bbox, int precision, char *srs); -extern char *tpointseq_as_mfjson(const TSequence *seq, bool with_bbox, int precision, char *srs); -extern char *tpointseqset_as_mfjson(const TSequenceSet *ss, bool with_bbox, int precision, char *srs); -/* extern TSequence *tsequence_from_mfjson(json_object *mfjson, bool isgeo, int srid, meosType temptype, interpType interp); (undefined type json_object) */ +/* extern TSequence *tsequence_from_mfjson(json_object *mfjson, bool spatial, int32_t srid, meosType temptype, interpType interp); (undefined type json_object) */ extern TSequence *tsequence_in(const char *str, meosType temptype, interpType interp); extern char *tsequence_out(const TSequence *seq, int maxdd); -/* extern TSequenceSet *tsequenceset_from_mfjson(json_object *mfjson, bool isgeo, int srid, meosType temptype, interpType interp); (undefined type json_object) */ +/* extern TSequenceSet *tsequenceset_from_mfjson(json_object *mfjson, bool spatial, int32_t srid, meosType temptype, interpType interp); (undefined type json_object) */ extern TSequenceSet *tsequenceset_in(const char *str, meosType temptype, interpType interp); extern char *tsequenceset_out(const TSequenceSet *ss, int maxdd); -extern char *ttextinst_as_mfjson(const TInstant *inst, bool with_bbox); /* extern TInstant *ttextinst_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TInstant *ttextinst_in(const char *str); -extern char *ttextseq_as_mfjson(const TSequence *seq, bool with_bbox); /* extern TSequence *ttextseq_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TSequence *ttextseq_in(const char *str, interpType interp); -extern char *ttextseqset_as_mfjson(const TSequenceSet *ss, bool with_bbox); /* extern TSequenceSet *ttextseqset_from_mfjson(json_object *mfjson); (undefined type json_object) */ extern TSequenceSet *ttextseqset_in(const char *str); extern Temporal *temporal_from_mfjson(const char *mfjson, meosType temptype); -extern Temporal *temporal_cp(const Temporal *temp); extern Temporal *temporal_from_base_temp(Datum value, meosType temptype, const Temporal *temp); extern TInstant *tinstant_copy(const TInstant *inst); extern TInstant *tinstant_make(Datum value, meosType temptype, TimestampTz t); extern TInstant *tinstant_make_free(Datum value, meosType temptype, TimestampTz t); -extern TSequence *tpointseq_make_coords(const double *xcoords, const double *ycoords, const double *zcoords, const TimestampTz *times, int count, int32 srid, bool geodetic, bool lower_inc, bool upper_inc, interpType interp, bool normalize); extern TSequence *tsequence_copy(const TSequence *seq); -extern TSequence *tsequence_from_base_tstzset(Datum value, meosType temptype, const Set *ss); +extern TSequence *tsequence_from_base_temp(Datum value, meosType temptype, const TSequence *seq); +extern TSequence *tsequence_from_base_tstzset(Datum value, meosType temptype, const Set *s); extern TSequence *tsequence_from_base_tstzspan(Datum value, meosType temptype, const Span *s, interpType interp); extern TSequence *tsequence_make_exp(const TInstant **instants, int count, int maxcount, bool lower_inc, bool upper_inc, interpType interp, bool normalize); extern TSequence *tsequence_make_free(TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, bool normalize); extern TSequenceSet *tsequenceset_copy(const TSequenceSet *ss); extern TSequenceSet *tseqsetarr_to_tseqset(TSequenceSet **seqsets, int count, int totalseqs); +extern TSequenceSet *tsequenceset_from_base_temp(Datum value, meosType temptype, const TSequenceSet *ss); extern TSequenceSet *tsequenceset_from_base_tstzspanset(Datum value, meosType temptype, const SpanSet *ss, interpType interp); extern TSequenceSet *tsequenceset_make_exp(const TSequence **sequences, int count, int maxcount, bool normalize); extern TSequenceSet *tsequenceset_make_free(TSequence **sequences, int count, bool normalize); @@ -2686,22 +2104,24 @@ extern TSequenceSet *tsequenceset_make_free(TSequence **sequences, int count, bo extern void temporal_set_tstzspan(const Temporal *temp, Span *s); extern void tinstant_set_tstzspan(const TInstant *inst, Span *s); extern void tnumber_set_tbox(const Temporal *temp, TBox *box); -extern Span *tnumber_span(const Temporal *temp); extern void tnumberinst_set_tbox(const TInstant *inst, TBox *box); extern void tnumberseq_set_tbox(const TSequence *seq, TBox *box); extern void tnumberseqset_set_tbox(const TSequenceSet *ss, TBox *box); extern void tsequence_set_tstzspan(const TSequence *seq, Span *s); extern void tsequenceset_set_tstzspan(const TSequenceSet *ss, Span *s); +extern const TInstant *temporal_end_inst(const Temporal *temp); extern Datum temporal_end_value(const Temporal *temp); -extern const TInstant **temporal_insts(const Temporal *temp, int *count); +extern const TInstant *temporal_inst_n(const Temporal *temp, int n); +extern const TInstant **temporal_instants_p(const Temporal *temp, int *count); extern Datum temporal_max_value(const Temporal *temp); extern size_t temporal_mem_size(const Temporal *temp); extern Datum temporal_min_value(const Temporal *temp); -extern const TSequence **temporal_seqs(const Temporal *temp, int *count); +extern const TSequence **temporal_sequences_p(const Temporal *temp, int *count); extern void temporal_set_bbox(const Temporal *temp, void *box); -extern Datum temporal_start_value (const Temporal *temp); -extern Datum *temporal_vals(const Temporal *temp, int *count); +extern const TInstant *temporal_start_inst(const Temporal *temp); +extern Datum temporal_start_value(const Temporal *temp); +extern Datum *temporal_values_p(const Temporal *temp, int *count); extern bool temporal_value_n(const Temporal *temp, int n, Datum *result); extern Datum *temporal_values(const Temporal *temp, int *count); extern uint32 tinstant_hash(const TInstant *inst); @@ -2709,10 +2129,10 @@ extern const TInstant **tinstant_insts(const TInstant *inst, int *count); extern void tinstant_set_bbox(const TInstant *inst, void *box); extern SpanSet *tinstant_time(const TInstant *inst); extern TimestampTz *tinstant_timestamps(const TInstant *inst, int *count); -extern Datum tinstant_val(const TInstant *inst); +extern Datum tinstant_value_p(const TInstant *inst); extern Datum tinstant_value(const TInstant *inst); extern bool tinstant_value_at_timestamptz(const TInstant *inst, TimestampTz t, Datum *result); -extern Datum *tinstant_vals(const TInstant *inst, int *count); +extern Datum *tinstant_values_p(const TInstant *inst, int *count); extern void tnumber_set_span(const Temporal *temp, Span *span); extern SpanSet *tnumberinst_valuespans(const TInstant *inst); extern SpanSet *tnumberseq_valuespans(const TSequence *seq); @@ -2720,7 +2140,7 @@ extern SpanSet *tnumberseqset_valuespans(const TSequenceSet *ss); extern Interval *tsequence_duration(const TSequence *seq); extern TimestampTz tsequence_end_timestamptz(const TSequence *seq); extern uint32 tsequence_hash(const TSequence *seq); -extern const TInstant **tsequence_insts(const TSequence *seq); +extern const TInstant **tsequence_insts_p(const TSequence *seq); extern const TInstant *tsequence_max_inst(const TSequence *seq); extern Datum tsequence_max_val(const TSequence *seq); extern const TInstant *tsequence_min_inst(const TSequence *seq); @@ -2731,12 +2151,12 @@ extern TimestampTz tsequence_start_timestamptz(const TSequence *seq); extern SpanSet *tsequence_time(const TSequence *seq); extern TimestampTz *tsequence_timestamps(const TSequence *seq, int *count); extern bool tsequence_value_at_timestamptz(const TSequence *seq, TimestampTz t, bool strict, Datum *result); -extern Datum *tsequence_vals(const TSequence *seq, int *count); +extern Datum *tsequence_values_p(const TSequence *seq, int *count); extern Interval *tsequenceset_duration(const TSequenceSet *ss, bool boundspan); extern TimestampTz tsequenceset_end_timestamptz(const TSequenceSet *ss); extern uint32 tsequenceset_hash(const TSequenceSet *ss); extern const TInstant *tsequenceset_inst_n(const TSequenceSet *ss, int n); -extern const TInstant **tsequenceset_insts(const TSequenceSet *ss); +extern const TInstant **tsequenceset_insts_p(const TSequenceSet *ss); extern const TInstant *tsequenceset_max_inst(const TSequenceSet *ss); extern Datum tsequenceset_max_val(const TSequenceSet *ss); extern const TInstant *tsequenceset_min_inst(const TSequenceSet *ss); @@ -2744,14 +2164,14 @@ extern Datum tsequenceset_min_val(const TSequenceSet *ss); extern int tsequenceset_num_instants(const TSequenceSet *ss); extern int tsequenceset_num_timestamps(const TSequenceSet *ss); extern TSequence **tsequenceset_segments(const TSequenceSet *ss, int *count); -extern const TSequence **tsequenceset_seqs(const TSequenceSet *ss); +extern const TSequence **tsequenceset_sequences_p(const TSequenceSet *ss); extern TimestampTz tsequenceset_start_timestamptz(const TSequenceSet *ss); extern SpanSet *tsequenceset_time(const TSequenceSet *ss); extern bool tsequenceset_timestamptz_n(const TSequenceSet *ss, int n, TimestampTz *result); extern TimestampTz *tsequenceset_timestamps(const TSequenceSet *ss, int *count); extern bool tsequenceset_value_at_timestamptz(const TSequenceSet *ss, TimestampTz t, bool strict, Datum *result); extern bool tsequenceset_value_n(const TSequenceSet *ss, int n, Datum *result); -extern Datum *tsequenceset_vals(const TSequenceSet *ss, int *count); +extern Datum *tsequenceset_values_p(const TSequenceSet *ss, int *count); extern void temporal_restart(Temporal *temp, int count); extern TSequence *temporal_tsequence(const Temporal *temp, interpType interp); @@ -2802,10 +2222,6 @@ extern TSequenceSet *tsequenceset_insert(const TSequenceSet *ss1, const TSequenc extern TSequenceSet *tsequenceset_merge(const TSequenceSet *ss1, const TSequenceSet *ss2); extern TSequenceSet *tsequenceset_merge_array(const TSequenceSet **seqsets, int count); -extern void tspatial_set_stbox(const Temporal *temp, STBox *box); -extern void tpointinst_set_stbox(const TInstant *inst, STBox *box); -extern void tspatialseq_set_stbox(const TSequence *seq, STBox *box); -extern void tspatialseqset_set_stbox(const TSequenceSet *ss, STBox *box); extern void tsequence_expand_bbox(TSequence *seq, const TInstant *inst); extern void tsequence_set_bbox(const TSequence *seq, void *box); extern void tsequenceset_expand_bbox(TSequenceSet *ss, const TSequence *seq); @@ -2834,16 +2250,6 @@ extern TInstant *tnumberinst_restrict_span(const TInstant *inst, const Span *spa extern TInstant *tnumberinst_restrict_spanset(const TInstant *inst, const SpanSet *ss, bool atfunc); extern TSequenceSet *tnumberseqset_restrict_span(const TSequenceSet *ss, const Span *span, bool atfunc); extern TSequenceSet *tnumberseqset_restrict_spanset(const TSequenceSet *ss, const SpanSet *spanset, bool atfunc); -extern Temporal *tnpoint_restrict_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan, const bool atfunc); -extern Temporal *tnpoint_restrict_stbox(const Temporal *temp, const STBox *box, bool border_inc, bool atfunc); -extern Temporal *tpoint_restrict_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan, const bool atfunc); -extern Temporal *tpoint_restrict_stbox(const Temporal *temp, const STBox *box, bool border_inc, bool atfunc); -extern TInstant *tpointinst_restrict_geom(const TInstant *inst, const GSERIALIZED *gs, const Span *zspan, bool atfunc); -extern TInstant *tpointinst_restrict_stbox(const TInstant *inst, const STBox *box, bool border_inc, bool atfunc); -extern Temporal *tpointseq_restrict_geom(const TSequence *seq, const GSERIALIZED *gs, const Span *zspan, bool atfunc); -extern Temporal *tpointseq_restrict_stbox(const TSequence *seq, const STBox *box, bool border_inc, bool atfunc); -extern TSequenceSet *tpointseqset_restrict_geom(const TSequenceSet *ss, const GSERIALIZED *gs, const Span *zspan, bool atfunc); -extern TSequenceSet *tpointseqset_restrict_stbox(const TSequenceSet *ss, const STBox *box, bool border_inc, bool atfunc); extern TInstant *tsequence_at_timestamptz(const TSequence *seq, TimestampTz t); extern Temporal *tsequence_restrict_tstzspan(const TSequence *seq, const Span *s, bool atfunc); extern Temporal *tsequence_restrict_tstzspanset(const TSequence *seq, const SpanSet *ss, bool atfunc); @@ -2887,8 +2293,8 @@ extern int ever_le_temporal_base(const Temporal *temp, Datum value); extern int ever_lt_base_temporal(Datum value, const Temporal *temp); extern int ever_lt_temporal_base(const Temporal *temp, Datum value); -extern TSequence *tfloatseq_derivative(const TSequence *seq); -extern TSequenceSet *tfloatseqset_derivative(const TSequenceSet *ss); +/* extern TSequence *tfloatseq_derivative(const TSequence *seq); (undefined) */ +/* extern TSequenceSet *tfloatseqset_derivative(const TSequenceSet *ss); (undefined) */ extern TInstant *tnumberinst_abs(const TInstant *inst); extern TSequence *tnumberseq_abs(const TSequence *seq); extern TSequence *tnumberseq_angular_difference(const TSequence *seq); @@ -2897,67 +2303,28 @@ extern TSequenceSet *tnumberseqset_abs(const TSequenceSet *ss); extern TSequence *tnumberseqset_angular_difference(const TSequenceSet *ss); extern TSequenceSet *tnumberseqset_delta_value(const TSequenceSet *ss); -extern Temporal *distance_tnumber_number(const Temporal *temp, Datum value); -extern Datum nad_tbox_tbox(const TBox *box1, const TBox *box2); -extern Datum nad_tnumber_number(const Temporal *temp, Datum value); -extern Datum nad_tnumber_tbox(const Temporal *temp, const TBox *box); -extern Datum nad_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); - -extern int tpointinst_srid(const TInstant *inst); -extern GSERIALIZED *tpointseq_trajectory(const TSequence *seq); -extern TSequenceSet *tpointseq_azimuth(const TSequence *seq); -extern TSequence *tpointseq_cumulative_length(const TSequence *seq, double prevlength); -extern bool tpointseq_is_simple(const TSequence *seq); -extern double tpointseq_length(const TSequence *seq); -extern TSequence *tpointseq_speed(const TSequence *seq); -extern int tpointseq_srid(const TSequence *seq); -extern STBox *tpointseq_stboxes(const TSequence *seq, int *count); -extern STBox *tpointseq_split_n_stboxes(const TSequence *seq, int max_count, int *count); -extern TSequenceSet *tpointseqset_azimuth(const TSequenceSet *ss); -extern TSequenceSet *tpointseqset_cumulative_length(const TSequenceSet *ss); -extern bool tpointseqset_is_simple(const TSequenceSet *ss); -extern double tpointseqset_length(const TSequenceSet *ss); -extern TSequenceSet *tpointseqset_speed(const TSequenceSet *ss); -extern int tpointseqset_srid(const TSequenceSet *ss); -extern STBox *tpointseqset_stboxes(const TSequenceSet *ss, int *count); -extern STBox *tpointseqset_split_n_stboxes(const TSequenceSet *ss, int max_count, int *count); -extern GSERIALIZED *tpointseqset_trajectory(const TSequenceSet *ss); -extern Temporal *tpoint_get_coord(const Temporal *temp, int coord); - -extern TInstant *tgeompointinst_tgeogpointinst(const TInstant *inst, bool oper); -extern TSequence *tgeompointseq_tgeogpointseq(const TSequence *seq, bool oper); -extern TSequenceSet *tgeompointseqset_tgeogpointseqset(const TSequenceSet *ss, bool oper); -extern Temporal *tgeompoint_tgeogpoint(const Temporal *temp, bool oper); -extern Temporal *tgeompoint_tnpoint(const Temporal *temp); -extern Temporal *tnpoint_tgeompoint(const Temporal *temp); -extern TInstant *tpointinst_set_srid(const TInstant *inst, int32 srid); -extern TSequence **tpointseq_make_simple(const TSequence *seq, int *count); -extern TSequence *tpointseq_set_srid(const TSequence *seq, int32 srid); -extern TSequence **tpointseqset_make_simple(const TSequenceSet *ss, int *count); -extern TSequenceSet *tpointseqset_set_srid(const TSequenceSet *ss, int32 srid); +extern Temporal *tdistance_tnumber_number(const Temporal *temp, Datum value); +extern double nad_tbox_tbox(const TBox *box1, const TBox *box2); +extern double nad_tnumber_number(const Temporal *temp, Datum value); +extern double nad_tnumber_tbox(const Temporal *temp, const TBox *box); +extern double nad_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2); extern double tnumberseq_integral(const TSequence *seq); extern double tnumberseq_twavg(const TSequence *seq); extern double tnumberseqset_integral(const TSequenceSet *ss); extern double tnumberseqset_twavg(const TSequenceSet *ss); -extern GSERIALIZED *tpointseq_twcentroid(const TSequence *seq); -extern GSERIALIZED *tpointseqset_twcentroid(const TSequenceSet *ss); extern Temporal *temporal_compact(const Temporal *temp); extern TSequence *tsequence_compact(const TSequence *seq); extern TSequenceSet *tsequenceset_compact(const TSequenceSet *ss); extern void skiplist_free(SkipList *list); -extern Temporal *temporal_app_tinst_transfn(Temporal *state, const TInstant *inst, double maxdist, const Interval *maxt); +extern Temporal *temporal_app_tinst_transfn(Temporal *state, const TInstant *inst, interpType interp, double maxdist, const Interval *maxt); extern Temporal *temporal_app_tseq_transfn(Temporal *state, const TSequence *seq); -/* extern Span *numspanset_spans(const SpanSet *ss, Datum vsize, Datum vorigin, int *count); (undefined) */ -extern Span *spanset_time_spans(const SpanSet *ss, const Interval *duration, Datum torigin, int *count); -extern Span *spanset_value_spans(const SpanSet *ss, Datum vsize, Datum vorigin, int *count); -/* extern Span *timespanset_spans(const SpanSet *ss, const Interval *duration, Datum torigin, int *count); (undefined) */ -extern Span *tnumber_value_spans(const Temporal *temp, Datum size, Datum origin, int *count); -/* extern TBox *tnumber_value_boxes(const Temporal *temp, Datum vsize, Datum vorigin, int *count); (undefined) */ -/* extern TBox *tnumber_time_boxes(const Temporal *temp, const Interval *duration, TimestampTz torigin, int *count); (undefined) */ +extern Span *span_bins(const Span *s, Datum size, Datum origin, int *count); +extern Span *spanset_bins(const SpanSet *ss, Datum size, Datum origin, int *count); +extern Span *tnumber_value_bins(const Temporal *temp, Datum size, Datum origin, int *count); extern TBox *tnumber_value_time_boxes(const Temporal *temp, Datum vsize, const Interval *duration, Datum vorigin, TimestampTz torigin, int *count); extern Temporal **tnumber_value_split(const Temporal *temp, Datum vsize, Datum vorigin, Datum **bins, int *count); extern TBox *tbox_get_value_time_tile(Datum value, TimestampTz t, Datum vsize, const Interval *duration, Datum vorigin, TimestampTz torigin, meosType basetype, meosType spantype); diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index 7d0f0d6..c63e531 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -55,7 +55,6 @@ "date_out", "interval_cmp", "interval_in", - "interval_make", "interval_out", "time_in", "time_out", @@ -63,11 +62,12 @@ "timestamp_out", "timestamptz_in", "timestamptz_out", - "geo_get_srid", "meos_errno", "meos_errno_set", "meos_errno_restore", "meos_errno_reset", + "meos_finalize_projsrs", + "meos_finalize_ways", "meos_set_datestyle", "meos_set_intervalstyle", "meos_get_datestyle", @@ -77,16 +77,33 @@ "add_date_int", "add_interval_interval", "add_timestamptz_interval", + "sub_timestamptz_interval", "bool_in", "bool_out", "cstring2text", "date_to_timestamp", "date_to_timestamptz", + "float_exp", + "float_ln", + "float_log10", + "float_round", + "interval_make", "minus_date_date", "minus_date_int", "minus_timestamptz_interval", "minus_timestamptz_timestamptz", - "mult_interval_double", + "mul_interval_double", + "pg_date_in", + "pg_date_out", + "pg_interval_cmp", + "pg_interval_in", + "pg_interval_out", + "pg_time_in", + "pg_time_out", + "pg_timestamp_in", + "pg_timestamp_out", + "pg_timestamptz_in", + "pg_timestamptz_out", "text2cstring", "text_cmp", "text_copy", @@ -95,6 +112,7 @@ "text_out", "text_upper", "textcat_text_text", + "timestamptz_shift", "timestamp_to_date", "timestamptz_to_date", "bigintset_in", @@ -115,11 +133,6 @@ "floatspan_out", "floatspanset_in", "floatspanset_out", - "geogset_in", - "geomset_in", - "geoset_as_ewkt", - "geoset_as_text", - "geoset_out", "intset_in", "intset_out", "intspan_in", @@ -152,7 +165,6 @@ "datespan_make", "floatset_make", "floatspan_make", - "geoset_make", "intset_make", "intspan_make", "set_copy", @@ -177,13 +189,13 @@ "floatset_to_intset", "floatspan_to_intspan", "floatspanset_to_intspanset", - "geo_to_set", "int_to_set", "int_to_span", "int_to_spanset", "intset_to_floatset", "intspan_to_floatspan", "intspanset_to_floatspanset", + "set_to_span", "set_to_spanset", "span_to_spanset", "text_to_set", @@ -226,11 +238,6 @@ "floatspanset_lower", "floatspanset_upper", "floatspanset_width", - "geoset_end_value", - "geoset_srid", - "geoset_start_value", - "geoset_value_n", - "geoset_values", "intset_end_value", "intset_start_value", "intset_value_n", @@ -244,7 +251,6 @@ "set_hash", "set_hash_extended", "set_num_values", - "set_to_span", "span_hash", "span_hash_extended", "span_lower_inc", @@ -275,8 +281,8 @@ "tstzspanset_lower", "tstzspanset_num_timestamps", "tstzspanset_start_timestamptz", - "tstzspanset_timestamptz_n", "tstzspanset_timestamps", + "tstzspanset_timestamptz_n", "tstzspanset_upper", "bigintset_shift_scale", "bigintspan_shift_scale", @@ -285,39 +291,33 @@ "datespan_shift_scale", "datespanset_shift_scale", "floatset_ceil", - "floatset_floor", "floatset_degrees", + "floatset_floor", "floatset_radians", - "floatset_round", "floatset_shift_scale", "floatspan_ceil", + "floatspan_degrees", "floatspan_floor", + "floatspan_radians", "floatspan_round", "floatspan_shift_scale", "floatspanset_ceil", "floatspanset_floor", + "floatspanset_degrees", + "floatspanset_radians", "floatspanset_round", "floatspanset_shift_scale", - "geoset_round", - "geoset_set_srid", - "geoset_transform", - "geoset_transform_pipeline", "intset_shift_scale", "intspan_shift_scale", "intspanset_shift_scale", - "point_transform", - "point_transform_pipeline", - "set_spans", - "set_split_each_n_spans", - "set_split_n_spans", - "spanset_spans", - "spanset_split_each_n_spans", - "spanset_split_n_spans", + "numspan_expand", + "tstzspan_expand", + "set_round", + "textcat_text_textset", + "textcat_textset_text", "textset_initcap", "textset_lower", "textset_upper", - "textcat_textset_text", - "textcat_text_textset", "timestamptz_tprecision", "tstzset_shift_scale", "tstzset_tprecision", @@ -346,6 +346,12 @@ "spanset_le", "spanset_lt", "spanset_ne", + "set_spans", + "set_split_each_n_spans", + "set_split_n_spans", + "spanset_spans", + "spanset_split_each_n_spans", + "spanset_split_n_spans", "adjacent_span_bigint", "adjacent_span_date", "adjacent_span_float", @@ -369,7 +375,6 @@ "contained_float_set", "contained_float_span", "contained_float_spanset", - "contained_geo_set", "contained_int_set", "contained_int_span", "contained_int_spanset", @@ -385,7 +390,6 @@ "contains_set_bigint", "contains_set_date", "contains_set_float", - "contains_set_geo", "contains_set_int", "contains_set_set", "contains_set_text", @@ -560,12 +564,10 @@ "intersection_bigint_set", "intersection_date_set", "intersection_float_set", - "intersection_geo_set", "intersection_int_set", "intersection_set_bigint", "intersection_set_date", "intersection_set_float", - "intersection_set_geo", "intersection_set_int", "intersection_set_set", "intersection_set_text", @@ -595,14 +597,12 @@ "minus_float_set", "minus_float_span", "minus_float_spanset", - "minus_geo_set", "minus_int_set", "minus_int_span", "minus_int_spanset", "minus_set_bigint", "minus_set_date", "minus_set_float", - "minus_set_geo", "minus_set_int", "minus_set_set", "minus_set_text", @@ -634,14 +634,12 @@ "union_float_set", "union_float_span", "union_float_spanset", - "union_geo_set", "union_int_set", "union_int_span", "union_int_spanset", "union_set_bigint", "union_set_date", "union_set_float", - "union_set_geo", "union_set_int", "union_set_set", "union_set_text", @@ -718,69 +716,44 @@ "text_union_transfn", "timestamptz_extent_transfn", "timestamptz_union_transfn", + "bigint_get_bin", + "bigintspan_bins", + "bigintspanset_bins", + "date_get_bin", + "datespan_bins", + "datespanset_bins", + "float_get_bin", + "floatspan_bins", + "floatspanset_bins", + "int_get_bin", + "intspan_bins", + "intspanset_bins", + "timestamptz_get_bin", + "tstzspan_bins", + "tstzspanset_bins", + "tbox_as_hexwkb", + "tbox_as_wkb", + "tbox_from_hexwkb", + "tbox_from_wkb", "tbox_in", "tbox_out", - "tbox_from_wkb", - "tbox_from_hexwkb", - "stbox_from_wkb", - "stbox_from_hexwkb", - "tbox_as_wkb", - "tbox_as_hexwkb", - "stbox_as_wkb", - "stbox_as_hexwkb", - "stbox_in", - "stbox_out", - "float_tstzspan_to_tbox", "float_timestamptz_to_tbox", - "geo_tstzspan_to_stbox", - "geo_timestamptz_to_stbox", - "int_tstzspan_to_tbox", + "float_tstzspan_to_tbox", "int_timestamptz_to_tbox", + "int_tstzspan_to_tbox", "numspan_tstzspan_to_tbox", "numspan_timestamptz_to_tbox", - "stbox_copy", - "stbox_make", "tbox_copy", "tbox_make", "float_to_tbox", - "geo_to_stbox", "int_to_tbox", "set_to_tbox", "span_to_tbox", "spanset_to_tbox", - "spatialset_to_stbox", - "stbox_to_gbox", - "stbox_to_box3d", - "stbox_to_geo", - "stbox_to_tstzspan", "tbox_to_intspan", "tbox_to_floatspan", "tbox_to_tstzspan", - "timestamptz_to_stbox", "timestamptz_to_tbox", - "tstzset_to_stbox", - "tstzspan_to_stbox", - "tstzspanset_to_stbox", - "tnumber_to_tbox", - "tpoint_to_stbox", - "stbox_area", - "stbox_hast", - "stbox_hasx", - "stbox_hasz", - "stbox_isgeodetic", - "stbox_perimeter", - "stbox_srid", - "stbox_tmax", - "stbox_tmax_inc", - "stbox_tmin", - "stbox_tmin_inc", - "stbox_volume", - "stbox_xmax", - "stbox_xmin", - "stbox_ymax", - "stbox_ymin", - "stbox_zmax", - "stbox_zmin", "tbox_hast", "tbox_hasx", "tbox_tmax", @@ -795,101 +768,52 @@ "tboxfloat_xmin", "tboxint_xmax", "tboxint_xmin", - "stbox_expand_space", - "stbox_expand_time", - "stbox_get_space", - "stbox_quad_split", - "stbox_round", - "stbox_set_srid", - "stbox_shift_scale_time", - "stbox_transform", - "stbox_transform_pipeline", - "stboxarr_round", - "tbox_expand_time", "tbox_expand_float", "tbox_expand_int", + "tbox_expand_time", "tbox_round", "tbox_shift_scale_float", "tbox_shift_scale_int", "tbox_shift_scale_time", "union_tbox_tbox", "intersection_tbox_tbox", - "union_stbox_stbox", - "intersection_stbox_stbox", - "rtree_create_stbox", - "rtree_free", - "adjacent_stbox_stbox", "adjacent_tbox_tbox", "contained_tbox_tbox", - "contained_stbox_stbox", - "contains_stbox_stbox", "contains_tbox_tbox", "overlaps_tbox_tbox", - "overlaps_stbox_stbox", "same_tbox_tbox", - "same_stbox_stbox", + "after_tbox_tbox", + "before_tbox_tbox", "left_tbox_tbox", + "overafter_tbox_tbox", + "overbefore_tbox_tbox", "overleft_tbox_tbox", - "right_tbox_tbox", "overright_tbox_tbox", - "before_tbox_tbox", - "overbefore_tbox_tbox", - "after_tbox_tbox", - "overafter_tbox_tbox", - "left_stbox_stbox", - "overleft_stbox_stbox", - "right_stbox_stbox", - "overright_stbox_stbox", - "below_stbox_stbox", - "overbelow_stbox_stbox", - "above_stbox_stbox", - "overabove_stbox_stbox", - "front_stbox_stbox", - "overfront_stbox_stbox", - "back_stbox_stbox", - "overback_stbox_stbox", - "before_stbox_stbox", - "overbefore_stbox_stbox", - "after_stbox_stbox", - "overafter_stbox_stbox", - "tbox_eq", - "tbox_ne", + "right_tbox_tbox", "tbox_cmp", - "tbox_lt", - "tbox_le", + "tbox_eq", "tbox_ge", "tbox_gt", - "stbox_eq", - "stbox_ne", - "stbox_cmp", - "stbox_lt", - "stbox_le", - "stbox_ge", - "stbox_gt", + "tbox_le", + "tbox_lt", + "tbox_ne", + "tbool_from_mfjson", "tbool_in", - "tint_in", + "tbool_out", + "temporal_as_hexwkb", + "temporal_as_mfjson", + "temporal_as_wkb", + "temporal_from_hexwkb", + "temporal_from_wkb", + "tfloat_from_mfjson", "tfloat_in", - "ttext_in", - "tgeompoint_in", - "tgeogpoint_in", - "tbool_from_mfjson", + "tfloat_out", "tint_from_mfjson", - "tfloat_from_mfjson", - "ttext_from_mfjson", - "tgeompoint_from_mfjson", - "tgeogpoint_from_mfjson", - "temporal_from_wkb", - "temporal_from_hexwkb", - "tbool_out", + "tint_in", "tint_out", - "tfloat_out", + "ttext_from_mfjson", + "ttext_in", "ttext_out", - "tpoint_out", - "tpoint_as_text", - "tpoint_as_ewkt", - "temporal_as_mfjson", - "temporal_as_wkb", - "temporal_as_hexwkb", "tbool_from_base_temp", "tboolinst_make", "tboolseq_from_base_tstzset", @@ -898,27 +822,23 @@ "temporal_copy", "tfloat_from_base_temp", "tfloatinst_make", - "tfloatseq_from_base_tstzspan", "tfloatseq_from_base_tstzset", + "tfloatseq_from_base_tstzspan", "tfloatseqset_from_base_tstzspanset", "tint_from_base_temp", "tintinst_make", - "tintseq_from_base_tstzspan", "tintseq_from_base_tstzset", + "tintseq_from_base_tstzspan", "tintseqset_from_base_tstzspanset", - "tpoint_from_base_temp", - "tpointinst_make", - "tpointseq_from_base_tstzspan", - "tpointseq_from_base_tstzset", - "tpointseqset_from_base_tstzspanset", "tsequence_make", "tsequenceset_make", "tsequenceset_make_gaps", "ttext_from_base_temp", "ttextinst_make", - "ttextseq_from_base_tstzspan", "ttextseq_from_base_tstzset", + "ttextseq_from_base_tstzspan", "ttextseqset_from_base_tstzspanset", + "tbool_to_tint", "temporal_to_tstzspan", "tfloat_to_tint", "tint_to_tfloat", @@ -936,6 +856,7 @@ "temporal_instant_n", "temporal_instants", "temporal_interp", + "temporal_lower_inc", "temporal_max_instant", "temporal_min_instant", "temporal_num_instants", @@ -944,16 +865,15 @@ "temporal_segments", "temporal_sequence_n", "temporal_sequences", - "temporal_lower_inc", - "temporal_upper_inc", "temporal_start_instant", "temporal_start_sequence", "temporal_start_timestamptz", "temporal_stops", "temporal_subtype", "temporal_time", - "temporal_timestamptz_n", "temporal_timestamps", + "temporal_timestamptz_n", + "temporal_upper_inc", "tfloat_end_value", "tfloat_max_value", "tfloat_min_value", @@ -971,11 +891,6 @@ "tnumber_integral", "tnumber_twavg", "tnumber_valuespans", - "tpoint_end_value", - "tpoint_start_value", - "tpoint_value_at_timestamptz", - "tpoint_value_n", - "tpoint_values", "ttext_end_value", "ttext_max_value", "ttext_min_value", @@ -984,7 +899,8 @@ "ttext_value_n", "ttext_values", "float_degrees", - "meos_srid_is_latlong", + "temparr_round", + "temporal_round", "temporal_scale_time", "temporal_set_interp", "temporal_shift_scale_time", @@ -992,30 +908,22 @@ "temporal_to_tinstant", "temporal_to_tsequence", "temporal_to_tsequenceset", - "tfloat_floor", "tfloat_ceil", "tfloat_degrees", + "tfloat_floor", "tfloat_radians", - "tfloat_round", "tfloat_scale_value", "tfloat_shift_scale_value", "tfloat_shift_value", - "tfloatarr_round", "tint_scale_value", "tint_shift_scale_value", "tint_shift_value", - "tpoint_round", - "tpoint_transform", - "tpoint_transform_pipeline", - "tpoint_transform_pj", - "lwproj_transform", - "tpointarr_round", "temporal_append_tinstant", "temporal_append_tsequence", - "temporal_delete_tstzspan", - "temporal_delete_tstzspanset", "temporal_delete_timestamptz", "temporal_delete_tstzset", + "temporal_delete_tstzspan", + "temporal_delete_tstzspanset", "temporal_insert", "temporal_merge", "temporal_merge_array", @@ -1024,17 +932,17 @@ "tbool_minus_value", "temporal_at_max", "temporal_at_min", - "temporal_at_tstzspan", - "temporal_at_tstzspanset", "temporal_at_timestamptz", "temporal_at_tstzset", + "temporal_at_tstzspan", + "temporal_at_tstzspanset", "temporal_at_values", "temporal_minus_max", "temporal_minus_min", - "temporal_minus_tstzspan", - "temporal_minus_tstzspanset", "temporal_minus_timestamptz", "temporal_minus_tstzset", + "temporal_minus_tstzspan", + "temporal_minus_tstzspanset", "temporal_minus_values", "tfloat_at_value", "tfloat_minus_value", @@ -1046,12 +954,6 @@ "tnumber_minus_span", "tnumber_minus_spanset", "tnumber_minus_tbox", - "tpoint_at_geom", - "tpoint_at_stbox", - "tpoint_at_value", - "tpoint_minus_geom", - "tpoint_minus_stbox", - "tpoint_minus_value", "ttext_at_value", "ttext_minus_value", "temporal_cmp", @@ -1064,27 +966,12 @@ "always_eq_bool_tbool", "always_eq_float_tfloat", "always_eq_int_tint", - "always_eq_point_tpoint", "always_eq_tbool_bool", "always_eq_temporal_temporal", "always_eq_text_ttext", "always_eq_tfloat_float", "always_eq_tint_int", - "always_eq_tpoint_point", - "always_eq_tpoint_tpoint", "always_eq_ttext_text", - "always_ne_bool_tbool", - "always_ne_float_tfloat", - "always_ne_int_tint", - "always_ne_point_tpoint", - "always_ne_tbool_bool", - "always_ne_temporal_temporal", - "always_ne_text_ttext", - "always_ne_tfloat_float", - "always_ne_tint_int", - "always_ne_tpoint_point", - "always_ne_tpoint_tpoint", - "always_ne_ttext_text", "always_ge_float_tfloat", "always_ge_int_tint", "always_ge_temporal_temporal", @@ -1113,17 +1000,23 @@ "always_lt_tfloat_float", "always_lt_tint_int", "always_lt_ttext_text", + "always_ne_bool_tbool", + "always_ne_float_tfloat", + "always_ne_int_tint", + "always_ne_tbool_bool", + "always_ne_temporal_temporal", + "always_ne_text_ttext", + "always_ne_tfloat_float", + "always_ne_tint_int", + "always_ne_ttext_text", "ever_eq_bool_tbool", "ever_eq_float_tfloat", "ever_eq_int_tint", - "ever_eq_point_tpoint", "ever_eq_tbool_bool", "ever_eq_temporal_temporal", "ever_eq_text_ttext", "ever_eq_tfloat_float", "ever_eq_tint_int", - "ever_eq_tpoint_point", - "ever_eq_tpoint_tpoint", "ever_eq_ttext_text", "ever_ge_float_tfloat", "ever_ge_int_tint", @@ -1156,24 +1049,19 @@ "ever_ne_bool_tbool", "ever_ne_float_tfloat", "ever_ne_int_tint", - "ever_ne_point_tpoint", "ever_ne_tbool_bool", "ever_ne_temporal_temporal", "ever_ne_text_ttext", "ever_ne_tfloat_float", "ever_ne_tint_int", - "ever_ne_tpoint_point", - "ever_ne_tpoint_tpoint", "ever_ne_ttext_text", "teq_bool_tbool", "teq_float_tfloat", "teq_int_tint", - "teq_point_tpoint", "teq_tbool_bool", "teq_temporal_temporal", "teq_text_ttext", "teq_tfloat_float", - "teq_tpoint_point", "teq_tint_int", "teq_ttext_text", "tge_float_tfloat", @@ -1207,174 +1095,102 @@ "tne_bool_tbool", "tne_float_tfloat", "tne_int_tint", - "tne_point_tpoint", "tne_tbool_bool", "tne_temporal_temporal", "tne_text_ttext", "tne_tfloat_float", - "tne_tpoint_point", "tne_tint_int", "tne_ttext_text", "temporal_spans", "temporal_split_each_n_spans", "temporal_split_n_spans", - "tnumber_tboxes", "tnumber_split_each_n_tboxes", "tnumber_split_n_tboxes", - "tpoint_stboxes", - "tpoint_space_boxes", - "tpoint_space_time_boxes", - "tpoint_split_each_n_stboxes", - "tpoint_split_n_stboxes", - "geo_split_each_n_gboxes", - "geo_split_n_gboxes", + "tnumber_tboxes", "adjacent_numspan_tnumber", - "adjacent_stbox_tpoint", "adjacent_tbox_tnumber", "adjacent_temporal_temporal", "adjacent_temporal_tstzspan", "adjacent_tnumber_numspan", "adjacent_tnumber_tbox", "adjacent_tnumber_tnumber", - "adjacent_tpoint_stbox", - "adjacent_tpoint_tpoint", "adjacent_tstzspan_temporal", "contained_numspan_tnumber", - "contained_stbox_tpoint", "contained_tbox_tnumber", "contained_temporal_temporal", "contained_temporal_tstzspan", "contained_tnumber_numspan", "contained_tnumber_tbox", "contained_tnumber_tnumber", - "contained_tpoint_stbox", - "contained_tpoint_tpoint", "contained_tstzspan_temporal", "contains_numspan_tnumber", - "contains_stbox_tpoint", "contains_tbox_tnumber", "contains_temporal_tstzspan", "contains_temporal_temporal", "contains_tnumber_numspan", "contains_tnumber_tbox", "contains_tnumber_tnumber", - "contains_tpoint_stbox", - "contains_tpoint_tpoint", "contains_tstzspan_temporal", "overlaps_numspan_tnumber", - "overlaps_stbox_tpoint", "overlaps_tbox_tnumber", "overlaps_temporal_temporal", "overlaps_temporal_tstzspan", "overlaps_tnumber_numspan", "overlaps_tnumber_tbox", "overlaps_tnumber_tnumber", - "overlaps_tpoint_stbox", - "overlaps_tpoint_tpoint", "overlaps_tstzspan_temporal", "same_numspan_tnumber", - "same_stbox_tpoint", "same_tbox_tnumber", "same_temporal_temporal", "same_temporal_tstzspan", "same_tnumber_numspan", "same_tnumber_tbox", "same_tnumber_tnumber", - "same_tpoint_stbox", - "same_tpoint_tpoint", "same_tstzspan_temporal", - "above_stbox_tpoint", - "above_tpoint_stbox", - "above_tpoint_tpoint", - "after_stbox_tpoint", "after_tbox_tnumber", "after_temporal_tstzspan", "after_temporal_temporal", "after_tnumber_tbox", "after_tnumber_tnumber", - "after_tpoint_stbox", - "after_tpoint_tpoint", "after_tstzspan_temporal", - "back_stbox_tpoint", - "back_tpoint_stbox", - "back_tpoint_tpoint", - "before_stbox_tpoint", "before_tbox_tnumber", "before_temporal_tstzspan", "before_temporal_temporal", "before_tnumber_tbox", "before_tnumber_tnumber", - "before_tpoint_stbox", - "before_tpoint_tpoint", "before_tstzspan_temporal", - "below_stbox_tpoint", - "below_tpoint_stbox", - "below_tpoint_tpoint", - "front_stbox_tpoint", - "front_tpoint_stbox", - "front_tpoint_tpoint", - "left_stbox_tpoint", "left_tbox_tnumber", "left_numspan_tnumber", "left_tnumber_numspan", "left_tnumber_tbox", "left_tnumber_tnumber", - "left_tpoint_stbox", - "left_tpoint_tpoint", - "overabove_stbox_tpoint", - "overabove_tpoint_stbox", - "overabove_tpoint_tpoint", - "overafter_stbox_tpoint", "overafter_tbox_tnumber", "overafter_temporal_tstzspan", "overafter_temporal_temporal", "overafter_tnumber_tbox", "overafter_tnumber_tnumber", - "overafter_tpoint_stbox", - "overafter_tpoint_tpoint", "overafter_tstzspan_temporal", - "overback_stbox_tpoint", - "overback_tpoint_stbox", - "overback_tpoint_tpoint", - "overbefore_stbox_tpoint", "overbefore_tbox_tnumber", "overbefore_temporal_tstzspan", "overbefore_temporal_temporal", "overbefore_tnumber_tbox", "overbefore_tnumber_tnumber", - "overbefore_tpoint_stbox", - "overbefore_tpoint_tpoint", "overbefore_tstzspan_temporal", - "overbelow_stbox_tpoint", - "overbelow_tpoint_stbox", - "overbelow_tpoint_tpoint", - "overfront_stbox_tpoint", - "overfront_tpoint_stbox", - "overfront_tpoint_tpoint", "overleft_numspan_tnumber", - "overleft_stbox_tpoint", "overleft_tbox_tnumber", "overleft_tnumber_numspan", "overleft_tnumber_tbox", "overleft_tnumber_tnumber", - "overleft_tpoint_stbox", - "overleft_tpoint_tpoint", "overright_numspan_tnumber", - "overright_stbox_tpoint", "overright_tbox_tnumber", "overright_tnumber_numspan", "overright_tnumber_tbox", "overright_tnumber_tnumber", - "overright_tpoint_stbox", - "overright_tpoint_tpoint", "right_numspan_tnumber", - "right_stbox_tpoint", "right_tbox_tnumber", "right_tnumber_numspan", "right_tnumber_tbox", "right_tnumber_tnumber", - "right_tpoint_stbox", - "right_tpoint_tpoint", "tand_bool_tbool", "tand_tbool_bool", "tand_tbool_tbool", @@ -1403,87 +1219,31 @@ "sub_tfloat_float", "sub_tint_int", "sub_tnumber_tnumber", - "tfloat_derivative", + "temporal_derivative", + "tfloat_exp", + "tfloat_ln", + "tfloat_log10", "tnumber_abs", + "float_angular_difference", "tnumber_angular_difference", "tnumber_delta_value", "textcat_text_ttext", "textcat_ttext_text", "textcat_ttext_ttext", + "ttext_initcap", "ttext_upper", "ttext_lower", - "ttext_initcap", - "distance_tfloat_float", - "distance_tint_int", - "distance_tnumber_tnumber", - "distance_tpoint_point", - "distance_tpoint_tpoint", - "nad_stbox_geo", - "nad_stbox_stbox", - "nad_tint_int", - "nad_tint_tbox", - "nad_tint_tint", + "tdistance_tfloat_float", + "tdistance_tint_int", + "tdistance_tnumber_tnumber", + "nad_tboxfloat_tboxfloat", "nad_tboxint_tboxint", "nad_tfloat_float", "nad_tfloat_tfloat", "nad_tfloat_tbox", - "nad_tboxfloat_tboxfloat", - "nad_tpoint_geo", - "nad_tpoint_stbox", - "nad_tpoint_tpoint", - "nai_tpoint_geo", - "nai_tpoint_tpoint", - "shortestline_tpoint_geo", - "shortestline_tpoint_tpoint", - "bearing_point_point", - "bearing_tpoint_point", - "bearing_tpoint_tpoint", - "geo_gboxes", - "tpoint_angular_difference", - "tpoint_azimuth", - "tpoint_convex_hull", - "tpoint_cumulative_length", - "tpoint_direction", - "tpoint_get_x", - "tpoint_get_y", - "tpoint_get_z", - "tpoint_is_simple", - "tpoint_length", - "tpoint_speed", - "tpoint_srid", - "tpoint_trajectory", - "tpoint_twcentroid", - "geo_expand_space", - "geomeas_to_tpoint", - "tgeogpoint_to_tgeompoint", - "tgeompoint_to_tgeogpoint", - "tpoint_AsMVTGeom", - "tpoint_expand_space", - "tpoint_make_simple", - "tpoint_set_srid", - "tpoint_tfloat_to_geomeas", - "acontains_geo_tpoint", - "adisjoint_tpoint_geo", - "adisjoint_tpoint_tpoint", - "adwithin_tpoint_geo", - "adwithin_tpoint_tpoint", - "aintersects_tpoint_geo", - "aintersects_tpoint_tpoint", - "atouches_tpoint_geo", - "econtains_geo_tpoint", - "edisjoint_tpoint_geo", - "edisjoint_tpoint_tpoint", - "edwithin_tpoint_geo", - "edwithin_tpoint_tpoint", - "eintersects_tpoint_geo", - "eintersects_tpoint_tpoint", - "etouches_tpoint_geo", - "tcontains_geo_tpoint", - "tdisjoint_tpoint_geo", - "tdwithin_tpoint_geo", - "tdwithin_tpoint_tpoint", - "tintersects_tpoint_geo", - "ttouches_tpoint_geo", + "nad_tint_int", + "nad_tint_tbox", + "nad_tint_tint", "tbool_tand_transfn", "tbool_tor_transfn", "temporal_extent_transfn", @@ -1506,9 +1266,6 @@ "tnumber_tavg_finalfn", "tnumber_tavg_transfn", "tnumber_wavg_transfn", - "tpoint_extent_transfn", - "tpoint_tcentroid_finalfn", - "tpoint_tcentroid_transfn", "tstzset_tcount_transfn", "tstzspan_tcount_transfn", "tstzspanset_tcount_transfn", @@ -1525,56 +1282,26 @@ "temporal_frechet_distance", "temporal_frechet_path", "temporal_hausdorff_distance", - "bigint_get_bin", - "bigintspan_bins", - "bigintspanset_bins", - "bigintspanset_value_spans", - "date_get_bin", - "datespan_bins", - "datespanset_bins", - "datespanset_time_spans", - "float_get_bin", - "floatspan_bins", - "floatspanset_bins", - "floatspanset_value_spans", - "int_get_bin", - "intspan_bins", - "intspanset_bins", - "intspanset_value_spans", - "timestamptz_get_bin", - "tstzspan_bins", - "tstzspanset_bins", - "tstzspanset_time_spans", - "stbox_get_space_tile", - "stbox_get_space_time_tile", - "stbox_get_time_tile", - "stbox_space_tiles", - "stbox_space_time_tiles", - "stbox_time_tiles", - "temporal_time_spans", + "temporal_time_bins", "temporal_time_split", - "tfloat_value_spans", + "tfloat_time_boxes", + "tfloat_value_bins", + "tfloat_value_boxes", "tfloat_value_split", + "tfloat_value_time_boxes", "tfloat_value_time_split", - "tfloatbox_get_time_tile", - "tfloatbox_get_value_tile", - "tfloatbox_get_value_time_tile", "tfloatbox_time_tiles", "tfloatbox_value_tiles", "tfloatbox_value_time_tiles", - "timestamptz_get_bin", - "tint_value_spans", + "tint_time_boxes", + "tint_value_bins", + "tint_value_boxes", "tint_value_split", + "tint_value_time_boxes", "tint_value_time_split", - "tintbox_get_time_tile", - "tintbox_get_value_tile", - "tintbox_get_value_time_tile", "tintbox_time_tiles", "tintbox_value_tiles", "tintbox_value_time_tiles", - "tpoint_space_split", - "tpoint_space_time_split", - "tpoint_time_split", "temptype_subtype", "temptype_subtype_all", "tempsubtype_name", @@ -1592,18 +1319,16 @@ "basetype_spantype", "basetype_settype", "meos_basetype", - "alpha_basetype", "tnumber_basetype", "alphanum_basetype", + "alphanum_temptype", "geo_basetype", - "spatial_basetype", "time_type", "set_basetype", "set_type", "numset_type", "ensure_numset_type", "timeset_type", - "ensure_timeset_type", "set_spantype", "ensure_set_spantype", "alphanumset_type", @@ -1614,15 +1339,15 @@ "span_basetype", "span_canon_basetype", "span_type", - "span_bbox_type", + "type_span_bbox", + "span_tbox_type", + "ensure_span_tbox_type", "numspan_basetype", "numspan_type", "ensure_numspan_type", "timespan_basetype", "timespan_type", - "ensure_timespan_type", "spanset_type", - "numspanset_type", "timespanset_type", "ensure_timespanset_type", "temporal_type", @@ -1636,59 +1361,58 @@ "tnumber_type", "ensure_tnumber_type", "ensure_tnumber_basetype", - "tnumber_settype", "tnumber_spantype", - "tnumber_spansettype", + "spatial_basetype", "tspatial_type", "ensure_tspatial_type", - "tspatial_basetype", + "tpoint_type", + "ensure_tpoint_type", "tgeo_type", "ensure_tgeo_type", - "ensure_tnumber_tgeo_type", + "tgeo_type_all", + "ensure_tgeo_type_all", + "tgeometry_type", + "ensure_tgeometry_type", + "tgeodetic_type", + "ensure_tgeodetic_type", + "ensure_tnumber_tpoint_type", + "SET_BBOX_PTR", + "SET_OFFSETS_PTR", + "SET_VAL_N", + "SPANSET_SP_N", + "TSEQUENCE_OFFSETS_PTR", + "TSEQUENCE_INST_N", + "TSEQUENCESET_OFFSETS_PTR", + "TSEQUENCESET_SEQ_N", "gsl_get_generation_rng", "gsl_get_aggregation_rng", - "proj_get_context", - "datum_floor", "datum_ceil", "datum_degrees", - "datum_radians", + "datum_float_round", + "datum_floor", "datum_hash", "datum_hash_extended", + "datum_radians", + "floatspan_round_set", "set_in", "set_out", "span_in", "span_out", "spanset_in", "spanset_out", - "set_cp", "set_make", "set_make_exp", "set_make_free", - "span_cp", "span_make", "span_set", - "spanset_cp", "spanset_make_exp", "spanset_make_free", - "dateset_tstzset", - "datespan_tstzspan", - "datespanset_tstzspanset", - "floatset_intset", - "floatspan_intspan", - "floatspanset_intspanset", - "intset_floatset", - "intspan_floatspan", - "intspanset_floatspanset", "set_span", "set_spanset", - "span_spanset", - "tstzset_dateset", - "tstzspan_datespan", - "tstzspanset_datespanset", "value_set_span", - "value_to_set", - "value_to_span", - "value_to_spanset", + "value_set", + "value_span", + "value_spanset", "numspan_width", "numspanset_width", "set_end_value", @@ -1704,31 +1428,21 @@ "spanset_sps", "spanset_upper", "datespan_set_tstzspan", - "floatset_deg", - "floatset_rad", - "floatset_rnd", - "floatspan_rnd", - "floatspanset_rnd", "floatspan_set_intspan", "intspan_set_floatspan", "numset_shift_scale", + "numspan_expand", "numspan_shift_scale", "numspanset_shift_scale", "set_compact", "span_expand", "spanset_compact", + "tbox_expand_value", "textcat_textset_text_int", "tstzspan_set_datespan", - "set_cmp_int", - "span_cmp_int", - "span_eq_int", - "spanset_cmp_int", - "spanset_eq_int", - "adj_span_span", "adjacent_span_value", "adjacent_spanset_value", "adjacent_value_spanset", - "cont_span_span", "contained_value_set", "contained_value_span", "contained_value_spanset", @@ -1736,14 +1450,12 @@ "contains_span_value", "contains_spanset_value", "ovadj_span_span", - "over_span_span", "left_set_value", "left_span_value", "left_spanset_value", "left_value_set", "left_value_span", "left_value_spanset", - "lf_span_span", "lfnadj_span_span", "overleft_set_value", "overleft_span_value", @@ -1757,9 +1469,6 @@ "overright_value_set", "overright_value_span", "overright_value_spanset", - "ovlf_span_span", - "ovri_span_span", - "ri_span_span", "right_value_set", "right_set_value", "right_value_span", @@ -1788,8 +1497,6 @@ "union_value_set", "union_value_span", "union_value_spanset", - "dist_set_set", - "dist_span_span", "distance_set_set", "distance_set_value", "distance_span_span", @@ -1802,137 +1509,94 @@ "value_union_transfn", "number_tstzspan_to_tbox", "number_timestamptz_to_tbox", - "stbox_cp", - "stbox_set", - "tbox_cp", "tbox_set", - "box3d_to_stbox", - "gbox_to_stbox", "float_set_tbox", - "gbox_set_stbox", - "geo_set_stbox", - "geoarr_set_stbox", "int_set_tbox", "number_set_tbox", - "number_to_tbox", + "number_tbox", "numset_set_tbox", "numspan_set_tbox", "numspanset_set_tbox", - "spatialset_set_stbox", - "stbox_set_box3d", - "stbox_set_gbox", - "timestamptz_set_stbox", "timestamptz_set_tbox", - "tstzset_set_stbox", "tstzset_set_tbox", - "tstzspan_set_stbox", "tstzspan_set_tbox", - "tstzspanset_set_stbox", "tstzspanset_set_tbox", "tbox_shift_scale_value", - "stbox_expand", "tbox_expand", - "inter_stbox_stbox", "inter_tbox_tbox", - "geoarr_as_text", - "tboolinst_as_mfjson", "tboolinst_from_mfjson", "tboolinst_in", - "tboolseq_as_mfjson", "tboolseq_from_mfjson", "tboolseq_in", - "tboolseqset_as_mfjson", "tboolseqset_from_mfjson", "tboolseqset_in", "temporal_in", "temporal_out", "temparr_out", - "tfloatinst_as_mfjson", "tfloatinst_from_mfjson", "tfloatinst_in", - "tfloatseq_as_mfjson", "tfloatseq_from_mfjson", "tfloatseq_in", - "tfloatseqset_as_mfjson", "tfloatseqset_from_mfjson", "tfloatseqset_in", - "tgeogpointinst_from_mfjson", - "tgeogpointinst_in", - "tgeogpointseq_from_mfjson", - "tgeogpointseq_in", - "tgeogpointseqset_from_mfjson", - "tgeogpointseqset_in", - "tgeompointinst_from_mfjson", - "tgeompointinst_in", - "tgeompointseq_from_mfjson", - "tgeompointseq_in", - "tgeompointseqset_from_mfjson", - "tgeompointseqset_in", "tinstant_from_mfjson", "tinstant_in", "tinstant_out", - "tintinst_as_mfjson", "tintinst_from_mfjson", "tintinst_in", - "tintseq_as_mfjson", "tintseq_from_mfjson", "tintseq_in", - "tintseqset_as_mfjson", "tintseqset_from_mfjson", "tintseqset_in", - "tpointarr_as_text", - "tpointinst_as_mfjson", - "tpointseq_as_mfjson", - "tpointseqset_as_mfjson", "tsequence_from_mfjson", "tsequence_in", "tsequence_out", "tsequenceset_from_mfjson", "tsequenceset_in", "tsequenceset_out", - "ttextinst_as_mfjson", "ttextinst_from_mfjson", "ttextinst_in", - "ttextseq_as_mfjson", "ttextseq_from_mfjson", "ttextseq_in", - "ttextseqset_as_mfjson", "ttextseqset_from_mfjson", "ttextseqset_in", "temporal_from_mfjson", - "temporal_cp", "temporal_from_base_temp", "tinstant_copy", "tinstant_make", "tinstant_make_free", - "tpointseq_make_coords", "tsequence_copy", + "tsequence_from_base_temp", "tsequence_from_base_tstzset", "tsequence_from_base_tstzspan", "tsequence_make_exp", "tsequence_make_free", "tsequenceset_copy", "tseqsetarr_to_tseqset", + "tsequenceset_from_base_temp", "tsequenceset_from_base_tstzspanset", "tsequenceset_make_exp", "tsequenceset_make_free", "temporal_set_tstzspan", "tinstant_set_tstzspan", "tnumber_set_tbox", - "tnumber_span", "tnumberinst_set_tbox", "tnumberseq_set_tbox", "tnumberseqset_set_tbox", "tsequence_set_tstzspan", "tsequenceset_set_tstzspan", + "temporal_end_inst", "temporal_end_value", - "temporal_insts", + "temporal_inst_n", + "temporal_instants_p", "temporal_max_value", "temporal_mem_size", "temporal_min_value", - "temporal_seqs", + "temporal_sequences_p", "temporal_set_bbox", - "temporal_vals", + "temporal_start_inst", + "temporal_start_value", + "temporal_values_p", "temporal_value_n", "temporal_values", "tinstant_hash", @@ -1940,10 +1604,10 @@ "tinstant_set_bbox", "tinstant_time", "tinstant_timestamps", - "tinstant_val", + "tinstant_value_p", "tinstant_value", "tinstant_value_at_timestamptz", - "tinstant_vals", + "tinstant_values_p", "tnumber_set_span", "tnumberinst_valuespans", "tnumberseq_valuespans", @@ -1951,7 +1615,7 @@ "tsequence_duration", "tsequence_end_timestamptz", "tsequence_hash", - "tsequence_insts", + "tsequence_insts_p", "tsequence_max_inst", "tsequence_max_val", "tsequence_min_inst", @@ -1962,12 +1626,12 @@ "tsequence_time", "tsequence_timestamps", "tsequence_value_at_timestamptz", - "tsequence_vals", + "tsequence_values_p", "tsequenceset_duration", "tsequenceset_end_timestamptz", "tsequenceset_hash", "tsequenceset_inst_n", - "tsequenceset_insts", + "tsequenceset_insts_p", "tsequenceset_max_inst", "tsequenceset_max_val", "tsequenceset_min_inst", @@ -1975,14 +1639,14 @@ "tsequenceset_num_instants", "tsequenceset_num_timestamps", "tsequenceset_segments", - "tsequenceset_seqs", + "tsequenceset_sequences_p", "tsequenceset_start_timestamptz", "tsequenceset_time", "tsequenceset_timestamptz_n", "tsequenceset_timestamps", "tsequenceset_value_at_timestamptz", "tsequenceset_value_n", - "tsequenceset_vals", + "tsequenceset_values_p", "temporal_restart", "temporal_tsequence", "temporal_tsequenceset", @@ -2030,10 +1694,6 @@ "tsequenceset_insert", "tsequenceset_merge", "tsequenceset_merge_array", - "tspatial_set_stbox", - "tpointinst_set_stbox", - "tspatialseq_set_stbox", - "tspatialseqset_set_stbox", "tsequence_expand_bbox", "tsequence_set_bbox", "tsequenceset_expand_bbox", @@ -2061,16 +1721,6 @@ "tnumberinst_restrict_spanset", "tnumberseqset_restrict_span", "tnumberseqset_restrict_spanset", - "tnpoint_restrict_geom", - "tnpoint_restrict_stbox", - "tpoint_restrict_geom", - "tpoint_restrict_stbox", - "tpointinst_restrict_geom", - "tpointinst_restrict_stbox", - "tpointseq_restrict_geom", - "tpointseq_restrict_stbox", - "tpointseqset_restrict_geom", - "tpointseqset_restrict_stbox", "tsequence_at_timestamptz", "tsequence_restrict_tstzspan", "tsequence_restrict_tstzspanset", @@ -2120,61 +1770,24 @@ "tnumberseqset_abs", "tnumberseqset_angular_difference", "tnumberseqset_delta_value", - "distance_tnumber_number", + "tdistance_tnumber_number", "nad_tbox_tbox", "nad_tnumber_number", "nad_tnumber_tbox", "nad_tnumber_tnumber", - "tpointinst_srid", - "tpointseq_trajectory", - "tpointseq_azimuth", - "tpointseq_cumulative_length", - "tpointseq_is_simple", - "tpointseq_length", - "tpointseq_speed", - "tpointseq_srid", - "tpointseq_stboxes", - "tpointseq_split_n_stboxes", - "tpointseqset_azimuth", - "tpointseqset_cumulative_length", - "tpointseqset_is_simple", - "tpointseqset_length", - "tpointseqset_speed", - "tpointseqset_srid", - "tpointseqset_stboxes", - "tpointseqset_split_n_stboxes", - "tpointseqset_trajectory", - "tpoint_get_coord", - "tgeompointinst_tgeogpointinst", - "tgeompointseq_tgeogpointseq", - "tgeompointseqset_tgeogpointseqset", - "tgeompoint_tgeogpoint", - "tgeompoint_tnpoint", - "tnpoint_tgeompoint", - "tpointinst_set_srid", - "tpointseq_make_simple", - "tpointseq_set_srid", - "tpointseqset_make_simple", - "tpointseqset_set_srid", "tnumberseq_integral", "tnumberseq_twavg", "tnumberseqset_integral", "tnumberseqset_twavg", - "tpointseq_twcentroid", - "tpointseqset_twcentroid", "temporal_compact", "tsequence_compact", "tsequenceset_compact", "skiplist_free", "temporal_app_tinst_transfn", "temporal_app_tseq_transfn", - "numspanset_spans", - "spanset_time_spans", - "spanset_value_spans", - "timespanset_spans", - "tnumber_value_spans", - "tnumber_value_boxes", - "tnumber_time_boxes", + "span_bins", + "spanset_bins", + "tnumber_value_bins", "tnumber_value_time_boxes", "tnumber_value_split", "tbox_get_value_time_tile", diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 9294971..961434b 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -174,28 +174,6 @@ def interval_in(string: str, typmod: int) -> "Interval *": return result if result != _ffi.NULL else None -def interval_make( - years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float -) -> "Interval *": - years_converted = _ffi.cast("int32", years) - months_converted = _ffi.cast("int32", months) - weeks_converted = _ffi.cast("int32", weeks) - days_converted = _ffi.cast("int32", days) - hours_converted = _ffi.cast("int32", hours) - mins_converted = _ffi.cast("int32", mins) - result = _lib.interval_make( - years_converted, - months_converted, - weeks_converted, - days_converted, - hours_converted, - mins_converted, - secs, - ) - _check_error() - return result if result != _ffi.NULL else None - - def interval_out(interv: "const Interval *") -> str: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.interval_out(interv_converted) @@ -252,13 +230,6 @@ def timestamptz_out(t: int) -> str: return result if result != _ffi.NULL else None -def geo_get_srid(g: "const GSERIALIZED *") -> "int32": - g_converted = _ffi.cast("const GSERIALIZED *", g) - result = _lib.geo_get_srid(g_converted) - _check_error() - return result if result != _ffi.NULL else None - - def meos_errno() -> "int": result = _lib.meos_errno() _check_error() @@ -283,6 +254,16 @@ def meos_errno_reset() -> "int": return result if result != _ffi.NULL else None +def meos_finalize_projsrs() -> None: + _lib.meos_finalize_projsrs() + _check_error() + + +def meos_finalize_ways() -> None: + _lib.meos_finalize_ways() + _check_error() + + def meos_set_datestyle(newval: str, extra: "void *") -> "bool": newval_converted = newval.encode("utf-8") extra_converted = _ffi.cast("void *", extra) @@ -358,6 +339,14 @@ def add_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz return result if result != _ffi.NULL else None +def sub_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.sub_timestamptz_interval(t_converted, interv_converted) + _check_error() + return result if result != _ffi.NULL else None + + def bool_in(string: str) -> "bool": string_converted = string.encode("utf-8") result = _lib.bool_in(string_converted) @@ -392,6 +381,52 @@ def date_to_timestamptz(d: "DateADT") -> "TimestampTz": return result if result != _ffi.NULL else None +def float_exp(d: float) -> "double": + result = _lib.float_exp(d) + _check_error() + return result if result != _ffi.NULL else None + + +def float_ln(d: float) -> "double": + result = _lib.float_ln(d) + _check_error() + return result if result != _ffi.NULL else None + + +def float_log10(d: float) -> "double": + result = _lib.float_log10(d) + _check_error() + return result if result != _ffi.NULL else None + + +def float_round(d: float, maxdd: int) -> "double": + result = _lib.float_round(d, maxdd) + _check_error() + return result if result != _ffi.NULL else None + + +def interval_make( + years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float +) -> "Interval *": + years_converted = _ffi.cast("int32", years) + months_converted = _ffi.cast("int32", months) + weeks_converted = _ffi.cast("int32", weeks) + days_converted = _ffi.cast("int32", days) + hours_converted = _ffi.cast("int32", hours) + mins_converted = _ffi.cast("int32", mins) + result = _lib.interval_make( + years_converted, + months_converted, + weeks_converted, + days_converted, + hours_converted, + mins_converted, + secs, + ) + _check_error() + return result if result != _ffi.NULL else None + + def minus_date_date(d1: "DateADT", d2: "DateADT") -> "Interval *": d1_converted = _ffi.cast("DateADT", d1) d2_converted = _ffi.cast("DateADT", d2) @@ -424,10 +459,97 @@ def minus_timestamptz_timestamptz(t1: int, t2: int) -> "Interval *": return result if result != _ffi.NULL else None -def mult_interval_double(interv: "const Interval *", factor: float) -> "Interval *": +def mul_interval_double(interv: "const Interval *", factor: float) -> "Interval *": + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.mul_interval_double(interv_converted, factor) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_date_in(string: str) -> "DateADT": + string_converted = string.encode("utf-8") + result = _lib.pg_date_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_date_out(d: "DateADT") -> str: + d_converted = _ffi.cast("DateADT", d) + result = _lib.pg_date_out(d_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + +def pg_interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": + interv1_converted = _ffi.cast("const Interval *", interv1) + interv2_converted = _ffi.cast("const Interval *", interv2) + result = _lib.pg_interval_cmp(interv1_converted, interv2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_interval_in(string: str, typmod: int) -> "Interval *": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.pg_interval_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_interval_out(interv: "const Interval *") -> str: interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.mult_interval_double(interv_converted, factor) + result = _lib.pg_interval_out(interv_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + +def pg_time_in(string: str, typmod: int) -> "TimeADT": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.pg_time_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_time_out(t: "TimeADT") -> str: + t_converted = _ffi.cast("TimeADT", t) + result = _lib.pg_time_out(t_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + +def pg_timestamp_in(string: str, typmod: int) -> "Timestamp": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.pg_timestamp_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_timestamp_out(t: int) -> str: + t_converted = _ffi.cast("Timestamp", t) + result = _lib.pg_timestamp_out(t_converted) _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + +def pg_timestamptz_in(string: str, typmod: int) -> "TimestampTz": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.pg_timestamptz_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def pg_timestamptz_out(t: int) -> str: + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.pg_timestamptz_out(t_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None @@ -494,6 +616,14 @@ def textcat_text_text(txt1: str, txt2: str) -> str: return result if result != _ffi.NULL else None +def timestamptz_shift(t: int, interv: "const Interval *") -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.timestamptz_shift(t_converted, interv_converted) + _check_error() + return result if result != _ffi.NULL else None + + def timestamp_to_date(t: int) -> "DateADT": t_converted = _ffi.cast("Timestamp", t) result = _lib.timestamp_to_date(t_converted) @@ -643,44 +773,6 @@ def floatspanset_out(ss: "const SpanSet *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def geogset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") - result = _lib.geogset_in(string_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geomset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") - result = _lib.geomset_in(string_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geoset_as_ewkt(set: "const Set *", maxdd: int) -> str: - set_converted = _ffi.cast("const Set *", set) - result = _lib.geoset_as_ewkt(set_converted, maxdd) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def geoset_as_text(set: "const Set *", maxdd: int) -> str: - set_converted = _ffi.cast("const Set *", set) - result = _lib.geoset_as_text(set_converted, maxdd) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def geoset_out(set: "const Set *", maxdd: int) -> str: - set_converted = _ffi.cast("const Set *", set) - result = _lib.geoset_out(set_converted, maxdd) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def intset_in(string: str) -> "Set *": string_converted = string.encode("utf-8") result = _lib.intset_in(string_converted) @@ -942,13 +1034,6 @@ def floatspan_make( return result if result != _ffi.NULL else None -def geoset_make(values: "const GSERIALIZED **") -> "Set *": - values_converted = [_ffi.cast("const GSERIALIZED *", x) for x in values] - result = _lib.geoset_make(values_converted, len(values)) - _check_error() - return result if result != _ffi.NULL else None - - def intset_make(values: "List[const int]") -> "Set *": values_converted = _ffi.new("const int []", values) result = _lib.intset_make(values_converted, len(values)) @@ -983,9 +1068,9 @@ def spanset_copy(ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def spanset_make(spans: "List[Span *]", normalize: bool, order: bool) -> "SpanSet *": +def spanset_make(spans: "List[Span *]") -> "SpanSet *": spans_converted = _ffi.new("Span []", spans) - result = _lib.spanset_make(spans_converted, len(spans), normalize, order) + result = _lib.spanset_make(spans_converted, len(spans)) _check_error() return result if result != _ffi.NULL else None @@ -1112,13 +1197,6 @@ def floatspanset_to_intspanset(ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def geo_to_set(gs: "GSERIALIZED *") -> "Set *": - gs_converted = _ffi.cast("GSERIALIZED *", gs) - result = _lib.geo_to_set(gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - def int_to_set(i: int) -> "Set *": result = _lib.int_to_set(i) _check_error() @@ -1158,6 +1236,13 @@ def intspanset_to_floatspanset(ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None +def set_to_span(s: "const Set *") -> "Span *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.set_to_span(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + def set_to_spanset(s: "const Set *") -> "SpanSet *": s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_spanset(s_converted) @@ -1464,44 +1549,6 @@ def floatspanset_width(ss: "const SpanSet *", boundspan: bool) -> "double": return result if result != _ffi.NULL else None -def geoset_end_value(s: "const Set *") -> "GSERIALIZED *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.geoset_end_value(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geoset_srid(s: "const Set *") -> "int32_t": - s_converted = _ffi.cast("const Set *", s) - result = _lib.geoset_srid(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geoset_start_value(s: "const Set *") -> "GSERIALIZED *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.geoset_start_value(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geoset_value_n(s: "const Set *", n: int) -> "GSERIALIZED **": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("GSERIALIZED **") - result = _lib.geoset_value_n(s_converted, n, out_result) - _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None - - -def geoset_values(s: "const Set *") -> "GSERIALIZED **": - s_converted = _ffi.cast("const Set *", s) - result = _lib.geoset_values(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def intset_end_value(s: "const Set *") -> "int": s_converted = _ffi.cast("const Set *", s) result = _lib.intset_end_value(s_converted) @@ -1597,13 +1644,6 @@ def set_num_values(s: "const Set *") -> "int": return result if result != _ffi.NULL else None -def set_to_span(s: "const Set *") -> "Span *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_to_span(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def span_hash(s: "const Span *") -> "uint32": s_converted = _ffi.cast("const Span *", s) result = _lib.span_hash(s_converted) @@ -1824,6 +1864,13 @@ def tstzspanset_start_timestamptz(ss: "const SpanSet *") -> "TimestampTz": return result if result != _ffi.NULL else None +def tstzspanset_timestamps(ss: "const SpanSet *") -> "Set *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tstzspanset_timestamps(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: ss_converted = _ffi.cast("const SpanSet *", ss) out_result = _ffi.new("TimestampTz *") @@ -1834,13 +1881,6 @@ def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: return None -def tstzspanset_timestamps(ss: "const SpanSet *") -> "Set *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tstzspanset_timestamps(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tstzspanset_upper(ss: "const SpanSet *") -> "TimestampTz": ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_upper(ss_converted) @@ -1923,13 +1963,6 @@ def floatset_ceil(s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def floatset_floor(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_floor(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def floatset_degrees(s: "const Set *", normalize: bool) -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_degrees(s_converted, normalize) @@ -1937,16 +1970,16 @@ def floatset_degrees(s: "const Set *", normalize: bool) -> "Set *": return result if result != _ffi.NULL else None -def floatset_radians(s: "const Set *") -> "Set *": +def floatset_floor(s: "const Set *") -> "Set *": s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_radians(s_converted) + result = _lib.floatset_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_round(s: "const Set *", maxdd: int) -> "Set *": +def floatset_radians(s: "const Set *") -> "Set *": s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_round(s_converted, maxdd) + result = _lib.floatset_radians(s_converted) _check_error() return result if result != _ffi.NULL else None @@ -1967,6 +2000,13 @@ def floatspan_ceil(s: "const Span *") -> "Span *": return result if result != _ffi.NULL else None +def floatspan_degrees(s: "const Span *", normalize: bool) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + result = _lib.floatspan_degrees(s_converted, normalize) + _check_error() + return result if result != _ffi.NULL else None + + def floatspan_floor(s: "const Span *") -> "Span *": s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_floor(s_converted) @@ -1974,6 +2014,13 @@ def floatspan_floor(s: "const Span *") -> "Span *": return result if result != _ffi.NULL else None +def floatspan_radians(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + result = _lib.floatspan_radians(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + def floatspan_round(s: "const Span *", maxdd: int) -> "Span *": s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_round(s_converted, maxdd) @@ -2004,55 +2051,33 @@ def floatspanset_floor(ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def floatspanset_round(ss: "const SpanSet *", maxdd: int) -> "SpanSet *": +def floatspanset_degrees(ss: "const SpanSet *", normalize: bool) -> "SpanSet *": ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.floatspanset_round(ss_converted, maxdd) + result = _lib.floatspanset_degrees(ss_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspanset_shift_scale( - ss: "const SpanSet *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "SpanSet *": +def floatspanset_radians(ss: "const SpanSet *") -> "SpanSet *": ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.floatspanset_shift_scale( - ss_converted, shift, width, hasshift, haswidth - ) - _check_error() - return result if result != _ffi.NULL else None - - -def geoset_round(s: "const Set *", maxdd: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.geoset_round(s_converted, maxdd) - _check_error() - return result if result != _ffi.NULL else None - - -def geoset_set_srid(s: "const Set *", srid: "int32_t") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.geoset_set_srid(s_converted, srid_converted) + result = _lib.floatspanset_radians(ss_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_transform(s: "const Set *", srid: "int32_t") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.geoset_transform(s_converted, srid_converted) +def floatspanset_round(ss: "const SpanSet *", maxdd: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.floatspanset_round(ss_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def geoset_transform_pipeline( - s: "const Set *", pipelinestr: str, srid: "int32_t", is_forward: bool -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - pipelinestr_converted = pipelinestr.encode("utf-8") - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.geoset_transform_pipeline( - s_converted, pipelinestr_converted, srid_converted, is_forward +def floatspanset_shift_scale( + ss: "const SpanSet *", shift: float, width: float, hasshift: bool, haswidth: bool +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.floatspanset_shift_scale( + ss_converted, shift, width, hasshift, haswidth ) _check_error() return result if result != _ffi.NULL else None @@ -2085,79 +2110,45 @@ def intspanset_shift_scale( return result if result != _ffi.NULL else None -def point_transform(gs: "const GSERIALIZED *", srid: "int32_t") -> "GSERIALIZED *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.point_transform(gs_converted, srid_converted) +def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) + result = _lib.numspan_expand(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def point_transform_pipeline( - gs: "const GSERIALIZED *", pipelinestr: str, srid: "int32_t", is_forward: bool -) -> "GSERIALIZED *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - pipelinestr_converted = pipelinestr.encode("utf-8") - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.point_transform_pipeline( - gs_converted, pipelinestr_converted, srid_converted, is_forward - ) +def tstzspan_expand(s: "const Span *", interv: "const Interval *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tstzspan_expand(s_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def set_spans(s: "const Set *") -> "Span *": +def set_round(s: "const Set *", maxdd: int) -> "Set *": s_converted = _ffi.cast("const Set *", s) - result = _lib.set_spans(s_converted) + result = _lib.set_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def set_split_each_n_spans( - s: "const Set *", elem_count: int -) -> "Tuple['Span *', 'int']": +def textcat_text_textset(txt: str, s: "const Set *") -> "Set *": + txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) - count = _ffi.new("int *") - result = _lib.set_split_each_n_spans(s_converted, elem_count, count) + result = _lib.textcat_text_textset(txt_converted, s_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def set_split_n_spans(s: "const Set *", span_count: int) -> "Tuple['Span *', 'int']": +def textcat_textset_text(s: "const Set *", txt: str) -> "Set *": s_converted = _ffi.cast("const Set *", s) - count = _ffi.new("int *") - result = _lib.set_split_n_spans(s_converted, span_count, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def spanset_spans(ss: "const SpanSet *") -> "Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_spans(ss_converted) + txt_converted = cstring2text(txt) + result = _lib.textcat_textset_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_split_each_n_spans( - ss: "const SpanSet *", elem_count: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.spanset_split_each_n_spans(ss_converted, elem_count, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def spanset_split_n_spans( - ss: "const SpanSet *", span_count: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.spanset_split_n_spans(ss_converted, span_count, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - def textset_initcap(s: "const Set *") -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.textset_initcap(s_converted) @@ -2179,22 +2170,6 @@ def textset_upper(s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def textcat_textset_text(s: "const Set *", txt: str) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - txt_converted = cstring2text(txt) - result = _lib.textcat_textset_text(s_converted, txt_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def textcat_text_textset(txt: str, s: "const Set *") -> "Set *": - txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) - result = _lib.textcat_text_textset(txt_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def timestamptz_tprecision( t: int, duration: "const Interval *", torigin: int ) -> "TimestampTz": @@ -2466,6 +2441,58 @@ def spanset_ne(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None +def set_spans(s: "const Set *") -> "Span *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.set_spans(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_split_each_n_spans( + s: "const Set *", elems_per_span: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Set *", s) + count = _ffi.new("int *") + result = _lib.set_split_each_n_spans(s_converted, elems_per_span, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def set_split_n_spans(s: "const Set *", span_count: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Set *", s) + count = _ffi.new("int *") + result = _lib.set_split_n_spans(s_converted, span_count, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def spanset_spans(ss: "const SpanSet *") -> "Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.spanset_spans(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_split_each_n_spans( + ss: "const SpanSet *", elems_per_span: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") + result = _lib.spanset_split_each_n_spans(ss_converted, elems_per_span, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def spanset_split_n_spans( + ss: "const SpanSet *", span_count: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") + result = _lib.spanset_split_n_spans(ss_converted, span_count, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + def adjacent_span_bigint(s: "const Span *", i: int) -> "bool": s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) @@ -2643,14 +2670,6 @@ def contained_float_spanset(d: float, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contained_geo_set(gs: "GSERIALIZED *", s: "const Set *") -> "bool": - gs_converted = _ffi.cast("GSERIALIZED *", gs) - s_converted = _ffi.cast("const Set *", s) - result = _lib.contained_geo_set(gs_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def contained_int_set(i: int, s: "const Set *") -> "bool": s_converted = _ffi.cast("const Set *", s) result = _lib.contained_int_set(i, s_converted) @@ -2767,14 +2786,6 @@ def contains_set_float(s: "const Set *", d: float) -> "bool": return result if result != _ffi.NULL else None -def contains_set_geo(s: "const Set *", gs: "GSERIALIZED *") -> "bool": - s_converted = _ffi.cast("const Set *", s) - gs_converted = _ffi.cast("GSERIALIZED *", gs) - result = _lib.contains_set_geo(s_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - def contains_set_int(s: "const Set *", i: int) -> "bool": s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_int(s_converted, i) @@ -4098,8 +4109,8 @@ def intersection_bigint_set(i: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_date_set(d: "const DateADT", s: "const Set *") -> "Set *": - d_converted = _ffi.cast("const DateADT", d) +def intersection_date_set(d: "DateADT", s: "const Set *") -> "Set *": + d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_date_set(d_converted, s_converted) _check_error() @@ -4113,14 +4124,6 @@ def intersection_float_set(d: float, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - s_converted = _ffi.cast("const Set *", s) - result = _lib.intersection_geo_set(gs_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def intersection_int_set(i: int, s: "const Set *") -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_int_set(i, s_converted) @@ -4151,14 +4154,6 @@ def intersection_set_float(s: "const Set *", d: float) -> "Set *": return result if result != _ffi.NULL else None -def intersection_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.intersection_set_geo(s_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - def intersection_set_int(s: "const Set *", i: int) -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_int(s_converted, i) @@ -4309,7 +4304,7 @@ def intersection_text_set(txt: str, s: "const Set *") -> "Set *": def intersection_timestamptz_set(t: int, s: "const Set *") -> "Set *": - t_converted = _ffi.cast("const TimestampTz", t) + t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_timestamptz_set(t_converted, s_converted) _check_error() @@ -4385,14 +4380,6 @@ def minus_float_spanset(d: float, ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - s_converted = _ffi.cast("const Set *", s) - result = _lib.minus_geo_set(gs_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def minus_int_set(i: int, s: "const Set *") -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.minus_int_set(i, s_converted) @@ -4437,14 +4424,6 @@ def minus_set_float(s: "const Set *", d: float) -> "Set *": return result if result != _ffi.NULL else None -def minus_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.minus_set_geo(s_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - def minus_set_int(s: "const Set *", i: int) -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_int(s_converted, i) @@ -4642,8 +4621,8 @@ def union_bigint_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_date_set(d: "const DateADT", s: "const Set *") -> "Set *": - d_converted = _ffi.cast("const DateADT", d) +def union_date_set(d: "DateADT", s: "const Set *") -> "Set *": + d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.union_date_set(d_converted, s_converted) _check_error() @@ -4687,14 +4666,6 @@ def union_float_spanset(d: float, ss: "SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - s_converted = _ffi.cast("const Set *", s) - result = _lib.union_geo_set(gs_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def union_int_set(i: int, s: "const Set *") -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.union_int_set(i, s_converted) @@ -4739,14 +4710,6 @@ def union_set_float(s: "const Set *", d: float) -> "Set *": return result if result != _ffi.NULL else None -def union_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.union_set_geo(s_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - def union_set_int(s: "const Set *", i: int) -> "Set *": s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_int(s_converted, i) @@ -4772,7 +4735,7 @@ def union_set_text(s: "const Set *", txt: str) -> "Set *": def union_set_timestamptz(s: "const Set *", t: int) -> "Set *": s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("const TimestampTz", t) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None @@ -4897,7 +4860,7 @@ def union_text_set(txt: str, s: "const Set *") -> "Set *": def union_timestamptz_set(t: int, s: "const Set *") -> "Set *": - t_converted = _ffi.cast("const TimestampTz", t) + t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.union_timestamptz_set(t_converted, s_converted) _check_error() @@ -5355,57 +5318,173 @@ def timestamptz_union_transfn(state: "Set *", t: int) -> "Set *": return result if result != _ffi.NULL else None -def tbox_in(string: str) -> "TBox *": - string_converted = string.encode("utf-8") - result = _lib.tbox_in(string_converted) +def bigint_get_bin(value: int, vsize: int, vorigin: int) -> "int64": + value_converted = _ffi.cast("int64", value) + vsize_converted = _ffi.cast("int64", vsize) + vorigin_converted = _ffi.cast("int64", vorigin) + result = _lib.bigint_get_bin(value_converted, vsize_converted, vorigin_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_out(box: "const TBox *", maxdd: int) -> str: - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tbox_out(box_converted, maxdd) +def bigintspan_bins( + s: "const Span *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + vsize_converted = _ffi.cast("int64", vsize) + vorigin_converted = _ffi.cast("int64", vorigin) + count = _ffi.new("int *") + result = _lib.bigintspan_bins( + s_converted, vsize_converted, vorigin_converted, count + ) _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def tbox_from_wkb(wkb: bytes) -> "TBOX *": - wkb_converted = _ffi.new("uint8_t []", wkb) - result = _lib.tbox_from_wkb(wkb_converted, len(wkb)) - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tbox_from_hexwkb(hexwkb: str) -> "TBox *": - hexwkb_converted = hexwkb.encode("utf-8") - result = _lib.tbox_from_hexwkb(hexwkb_converted) +def bigintspanset_bins( + ss: "const SpanSet *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + vsize_converted = _ffi.cast("int64", vsize) + vorigin_converted = _ffi.cast("int64", vorigin) + count = _ffi.new("int *") + result = _lib.bigintspanset_bins( + ss_converted, vsize_converted, vorigin_converted, count + ) _check_error() - return result if result != _ffi.NULL else None - - -def stbox_from_wkb(wkb: bytes) -> "STBOX *": - wkb_converted = _ffi.new("uint8_t []", wkb) - result = _lib.stbox_from_wkb(wkb_converted, len(wkb)) - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def stbox_from_hexwkb(hexwkb: str) -> "STBox *": - hexwkb_converted = hexwkb.encode("utf-8") - result = _lib.stbox_from_hexwkb(hexwkb_converted) +def date_get_bin( + d: "DateADT", duration: "const Interval *", torigin: "DateADT" +) -> "DateADT": + d_converted = _ffi.cast("DateADT", d) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("DateADT", torigin) + result = _lib.date_get_bin(d_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_as_wkb(box: "const TBox *", variant: int) -> bytes: - box_converted = _ffi.cast("const TBox *", box) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") - result = _lib.tbox_as_wkb(box_converted, variant_converted, size_out) +def datespan_bins( + s: "const Span *", duration: "const Interval *", torigin: "DateADT" +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("DateADT", torigin) + count = _ffi.new("int *") + result = _lib.datespan_bins( + s_converted, duration_converted, torigin_converted, count + ) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] + + +def datespanset_bins( + ss: "const SpanSet *", duration: "const Interval *", torigin: "DateADT" +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("DateADT", torigin) + count = _ffi.new("int *") + result = _lib.datespanset_bins( + ss_converted, duration_converted, torigin_converted, count ) - return result_converted + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def float_get_bin(value: float, vsize: float, vorigin: float) -> "double": + result = _lib.float_get_bin(value, vsize, vorigin) + _check_error() + return result if result != _ffi.NULL else None + + +def floatspan_bins( + s: "const Span *", vsize: float, vorigin: float +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + count = _ffi.new("int *") + result = _lib.floatspan_bins(s_converted, vsize, vorigin, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def floatspanset_bins( + ss: "const SpanSet *", vsize: float, vorigin: float +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") + result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def int_get_bin(value: int, vsize: int, vorigin: int) -> "int": + result = _lib.int_get_bin(value, vsize, vorigin) + _check_error() + return result if result != _ffi.NULL else None + + +def intspan_bins( + s: "const Span *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + count = _ffi.new("int *") + result = _lib.intspan_bins(s_converted, vsize, vorigin, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def intspanset_bins( + ss: "const SpanSet *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") + result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def timestamptz_get_bin( + t: int, duration: "const Interval *", torigin: int +) -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.timestamptz_get_bin( + t_converted, duration_converted, torigin_converted + ) + _check_error() + return result if result != _ffi.NULL else None + + +def tstzspan_bins( + s: "const Span *", duration: "const Interval *", origin: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + count = _ffi.new("int *") + result = _lib.tstzspan_bins( + s_converted, duration_converted, origin_converted, count + ) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tstzspanset_bins( + ss: "const SpanSet *", duration: "const Interval *", torigin: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tstzspanset_bins( + ss_converted, duration_converted, torigin_converted, count + ) + _check_error() + return result if result != _ffi.NULL else None, count[0] def tbox_as_hexwkb(box: "const TBox *", variant: int) -> "Tuple[str, 'size_t *']": @@ -5418,11 +5497,11 @@ def tbox_as_hexwkb(box: "const TBox *", variant: int) -> "Tuple[str, 'size_t *'] return result if result != _ffi.NULL else None, size[0] -def stbox_as_wkb(box: "const STBox *", variant: int) -> bytes: - box_converted = _ffi.cast("const STBox *", box) +def tbox_as_wkb(box: "const TBox *", variant: int) -> bytes: + box_converted = _ffi.cast("const TBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") - result = _lib.stbox_as_wkb(box_converted, variant_converted, size_out) + result = _lib.tbox_as_wkb(box_converted, variant_converted, size_out) _check_error() result_converted = ( bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None @@ -5430,35 +5509,31 @@ def stbox_as_wkb(box: "const STBox *", variant: int) -> bytes: return result_converted -def stbox_as_hexwkb(box: "const STBox *", variant: int) -> "Tuple[str, 'size_t *']": - box_converted = _ffi.cast("const STBox *", box) - variant_converted = _ffi.cast("uint8_t", variant) - size = _ffi.new("size_t *") - result = _lib.stbox_as_hexwkb(box_converted, variant_converted, size) +def tbox_from_hexwkb(hexwkb: str) -> "TBox *": + hexwkb_converted = hexwkb.encode("utf-8") + result = _lib.tbox_from_hexwkb(hexwkb_converted) _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None, size[0] + return result if result != _ffi.NULL else None -def stbox_in(string: str) -> "STBox *": - string_converted = string.encode("utf-8") - result = _lib.stbox_in(string_converted) - _check_error() +def tbox_from_wkb(wkb: bytes) -> "TBOX *": + wkb_converted = _ffi.new("uint8_t []", wkb) + result = _lib.tbox_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def stbox_out(box: "const STBox *", maxdd: int) -> str: - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_out(box_converted, maxdd) +def tbox_in(string: str) -> "TBox *": + string_converted = string.encode("utf-8") + result = _lib.tbox_in(string_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def float_tstzspan_to_tbox(d: float, s: "const Span *") -> "TBox *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.float_tstzspan_to_tbox(d, s_converted) +def tbox_out(box: "const TBox *", maxdd: int) -> str: + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tbox_out(box_converted, maxdd) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None @@ -5469,18 +5544,16 @@ def float_timestamptz_to_tbox(d: float, t: int) -> "TBox *": return result if result != _ffi.NULL else None -def geo_tstzspan_to_stbox(gs: "const GSERIALIZED *", s: "const Span *") -> "STBox *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) +def float_tstzspan_to_tbox(d: float, s: "const Span *") -> "TBox *": s_converted = _ffi.cast("const Span *", s) - result = _lib.geo_tstzspan_to_stbox(gs_converted, s_converted) + result = _lib.float_tstzspan_to_tbox(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def geo_timestamptz_to_stbox(gs: "const GSERIALIZED *", t: int) -> "STBox *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) +def int_timestamptz_to_tbox(i: int, t: int) -> "TBox *": t_converted = _ffi.cast("TimestampTz", t) - result = _lib.geo_timestamptz_to_stbox(gs_converted, t_converted) + result = _lib.int_timestamptz_to_tbox(i, t_converted) _check_error() return result if result != _ffi.NULL else None @@ -5492,13 +5565,6 @@ def int_tstzspan_to_tbox(i: int, s: "const Span *") -> "TBox *": return result if result != _ffi.NULL else None -def int_timestamptz_to_tbox(i: int, t: int) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.int_timestamptz_to_tbox(i, t_converted) - _check_error() - return result if result != _ffi.NULL else None - - def numspan_tstzspan_to_tbox(span: "const Span *", s: "const Span *") -> "TBox *": span_converted = _ffi.cast("const Span *", span) s_converted = _ffi.cast("const Span *", s) @@ -5515,45 +5581,6 @@ def numspan_timestamptz_to_tbox(span: "const Span *", t: int) -> "TBox *": return result if result != _ffi.NULL else None -def stbox_copy(box: "const STBox *") -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_copy(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_make( - hasx: bool, - hasz: bool, - geodetic: bool, - srid: int, - xmin: float, - xmax: float, - ymin: float, - ymax: float, - zmin: float, - zmax: float, - s: "Optional['const Span *']", -) -> "STBox *": - srid_converted = _ffi.cast("int32", srid) - s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL - result = _lib.stbox_make( - hasx, - hasz, - geodetic, - srid_converted, - xmin, - xmax, - ymin, - ymax, - zmin, - zmax, - s_converted, - ) - _check_error() - return result if result != _ffi.NULL else None - - def tbox_copy(box: "const TBox *") -> "TBox *": box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_copy(box_converted) @@ -5575,13 +5602,6 @@ def float_to_tbox(d: float) -> "TBox *": return result if result != _ffi.NULL else None -def geo_to_stbox(gs: "const GSERIALIZED *") -> "STBox *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.geo_to_stbox(gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - def int_to_tbox(i: int) -> "TBox *": result = _lib.int_to_tbox(i) _check_error() @@ -5609,41 +5629,6 @@ def spanset_to_tbox(ss: "const SpanSet *") -> "TBox *": return result if result != _ffi.NULL else None -def spatialset_to_stbox(s: "const Set *") -> "STBox *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.spatialset_to_stbox(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_to_gbox(box: "const STBox *") -> "GBOX *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_to_gbox(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_to_box3d(box: "const STBox *") -> "BOX3D *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_to_box3d(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_to_geo(box: "const STBox *") -> "GSERIALIZED *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_to_geo(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_to_tstzspan(box: "const STBox *") -> "Span *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_to_tstzspan(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tbox_to_intspan(box: "const TBox *") -> "Span *": box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_intspan(box_converted) @@ -5665,13 +5650,6 @@ def tbox_to_tstzspan(box: "const TBox *") -> "Span *": return result if result != _ffi.NULL else None -def timestamptz_to_stbox(t: int) -> "STBox *": - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.timestamptz_to_stbox(t_converted) - _check_error() - return result if result != _ffi.NULL else None - - def timestamptz_to_tbox(t: int) -> "TBox *": t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_tbox(t_converted) @@ -5679,265 +5657,74 @@ def timestamptz_to_tbox(t: int) -> "TBox *": return result if result != _ffi.NULL else None -def tstzset_to_stbox(s: "const Set *") -> "STBox *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.tstzset_to_stbox(s_converted) +def tbox_hast(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_stbox(s: "const Span *") -> "STBox *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.tstzspan_to_stbox(s_converted) +def tbox_hasx(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_stbox(ss: "const SpanSet *") -> "STBox *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tstzspanset_to_stbox(ss_converted) +def tbox_tmax(box: "const TBox *") -> int: + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("TimestampTz *") + result = _lib.tbox_tmax(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def tnumber_to_tbox(temp: "const Temporal *") -> "TBox *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_to_tbox(temp_converted) +def tbox_tmax_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") + result = _lib.tbox_tmax_inc(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def tpoint_to_stbox(temp: "const Temporal *") -> "STBox *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_to_stbox(temp_converted) +def tbox_tmin(box: "const TBox *") -> int: + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("TimestampTz *") + result = _lib.tbox_tmin(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def stbox_area(box: "const STBox *", spheroid: bool) -> "double": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_area(box_converted, spheroid) +def tbox_tmin_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") + result = _lib.tbox_tmin_inc(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def stbox_hast(box: "const STBox *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_hast(box_converted) +def tbox_xmax(box: "const TBox *") -> "double": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("double *") + result = _lib.tbox_xmax(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def stbox_hasx(box: "const STBox *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_hasx(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_hasz(box: "const STBox *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_hasz(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_isgeodetic(box: "const STBox *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_isgeodetic(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_perimeter(box: "const STBox *", spheroid: bool) -> "double": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_perimeter(box_converted, spheroid) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_srid(box: "const STBox *") -> "int32_t": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_srid(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_tmax(box: "const STBox *") -> int: - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("TimestampTz *") - result = _lib.stbox_tmax(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_tmax_inc(box: "const STBox *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("bool *") - result = _lib.stbox_tmax_inc(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_tmin(box: "const STBox *") -> int: - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("TimestampTz *") - result = _lib.stbox_tmin(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_tmin_inc(box: "const STBox *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("bool *") - result = _lib.stbox_tmin_inc(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_volume(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_volume(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_xmax(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("double *") - result = _lib.stbox_xmax(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_xmin(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("double *") - result = _lib.stbox_xmin(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_ymax(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("double *") - result = _lib.stbox_ymax(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_ymin(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("double *") - result = _lib.stbox_ymin(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_zmax(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("double *") - result = _lib.stbox_zmax(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def stbox_zmin(box: "const STBox *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - out_result = _ffi.new("double *") - result = _lib.stbox_zmin(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tbox_hast(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tbox_hast(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tbox_hasx(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tbox_hasx(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tbox_tmax(box: "const TBox *") -> int: - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("TimestampTz *") - result = _lib.tbox_tmax(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tbox_tmax_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") - result = _lib.tbox_tmax_inc(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tbox_tmin(box: "const TBox *") -> int: - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("TimestampTz *") - result = _lib.tbox_tmin(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tbox_tmin_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") - result = _lib.tbox_tmin_inc(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tbox_xmax(box: "const TBox *") -> "double": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("double *") - result = _lib.tbox_xmax(box_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tbox_xmax_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") - result = _lib.tbox_xmax_inc(box_converted, out_result) +def tbox_xmax_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") + result = _lib.tbox_xmax_inc(box_converted, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None @@ -6004,94 +5791,16 @@ def tboxint_xmin(box: "const TBox *") -> "int": return None -def stbox_expand_space(box: "const STBox *", d: float) -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_expand_space(box_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_expand_time(box: "const STBox *", interv: "const Interval *") -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.stbox_expand_time(box_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_get_space(box: "const STBox *") -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_get_space(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_quad_split(box: "const STBox *") -> "Tuple['STBox *', 'int']": - box_converted = _ffi.cast("const STBox *", box) - count = _ffi.new("int *") - result = _lib.stbox_quad_split(box_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def stbox_round(box: "const STBox *", maxdd: int) -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_round(box_converted, maxdd) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_set_srid(box: "const STBox *", srid: "int32_t") -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.stbox_set_srid(box_converted, srid_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_shift_scale_time( - box: "const STBox *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.stbox_shift_scale_time( - box_converted, shift_converted, duration_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_transform(box: "const STBox *", srid: "int32_t") -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.stbox_transform(box_converted, srid_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_transform_pipeline( - box: "const STBox *", pipelinestr: str, srid: "int32_t", is_forward: bool -) -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - pipelinestr_converted = pipelinestr.encode("utf-8") - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.stbox_transform_pipeline( - box_converted, pipelinestr_converted, srid_converted, is_forward - ) +def tbox_expand_float(box: "const TBox *", d: float) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tbox_expand_float(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def stboxarr_round(boxarr: "const STBox *", count: int, maxdd: int) -> "STBox *": - boxarr_converted = _ffi.cast("const STBox *", boxarr) - result = _lib.stboxarr_round(boxarr_converted, count, maxdd) +def tbox_expand_int(box: "const TBox *", i: int) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tbox_expand_int(box_converted, i) _check_error() return result if result != _ffi.NULL else None @@ -6104,22 +5813,6 @@ def tbox_expand_time(box: "const TBox *", interv: "const Interval *") -> "TBox * return result if result != _ffi.NULL else None -def tbox_expand_float(box: "const TBox *", d: "const double") -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - d_converted = _ffi.cast("const double", d) - result = _lib.tbox_expand_float(box_converted, d_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tbox_expand_int(box: "const TBox *", i: "const int") -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - i_converted = _ffi.cast("const int", i) - result = _lib.tbox_expand_int(box_converted, i_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tbox_round(box: "const TBox *", maxdd: int) -> "TBox *": box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_round(box_converted, maxdd) @@ -6184,44 +5877,6 @@ def intersection_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox return result if result != _ffi.NULL else None -def union_stbox_stbox( - box1: "const STBox *", box2: "const STBox *", strict: bool -) -> "STBox *": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.union_stbox_stbox(box1_converted, box2_converted, strict) - _check_error() - return result if result != _ffi.NULL else None - - -def intersection_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.intersection_stbox_stbox(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def rtree_create_stbox() -> "RTree *": - result = _lib.rtree_create_stbox() - _check_error() - return result if result != _ffi.NULL else None - - -def rtree_free(rtree: "RTree*") -> None: - rtree_converted = _ffi.cast("RTree*", rtree) - _lib.rtree_free(rtree_converted) - _check_error() - - -def adjacent_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.adjacent_stbox_stbox(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def adjacent_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6238,22 +5893,6 @@ def contained_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def contained_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.contained_stbox_stbox(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def contains_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.contains_stbox_stbox(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def contains_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6270,14 +5909,6 @@ def overlaps_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overlaps_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overlaps_stbox_stbox(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def same_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6286,10 +5917,18 @@ def same_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def same_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.same_stbox_stbox(box1_converted, box2_converted) +def after_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.after_tbox_tbox(box1_converted, box2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def before_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.before_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None @@ -6302,805 +5941,761 @@ def left_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overleft_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overafter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.overleft_tbox_tbox(box1_converted, box2_converted) + result = _lib.overafter_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def right_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overbefore_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.right_tbox_tbox(box1_converted, box2_converted) + result = _lib.overbefore_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overleft_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.overright_tbox_tbox(box1_converted, box2_converted) + result = _lib.overleft_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overright_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.before_tbox_tbox(box1_converted, box2_converted) + result = _lib.overright_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def right_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.overbefore_tbox_tbox(box1_converted, box2_converted) + result = _lib.right_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_cmp(box1: "const TBox *", box2: "const TBox *") -> "int": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.after_tbox_tbox(box1_converted, box2_converted) + result = _lib.tbox_cmp(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_eq(box1: "const TBox *", box2: "const TBox *") -> "bool": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.overafter_tbox_tbox(box1_converted, box2_converted) + result = _lib.tbox_eq(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def left_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.left_stbox_stbox(box1_converted, box2_converted) +def tbox_ge(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.tbox_ge(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overleft_stbox_stbox(box1_converted, box2_converted) +def tbox_gt(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.tbox_gt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def right_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.right_stbox_stbox(box1_converted, box2_converted) +def tbox_le(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.tbox_le(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overright_stbox_stbox(box1_converted, box2_converted) +def tbox_lt(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.tbox_lt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def below_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.below_stbox_stbox(box1_converted, box2_converted) +def tbox_ne(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.tbox_ne(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overbelow_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overbelow_stbox_stbox(box1_converted, box2_converted) +def tbool_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.tbool_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def above_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.above_stbox_stbox(box1_converted, box2_converted) +def tbool_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.tbool_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overabove_stbox_stbox(box1_converted, box2_converted) +def tbool_out(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tbool_out(temp_converted) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def front_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.front_stbox_stbox(box1_converted, box2_converted) +def temporal_as_hexwkb( + temp: "const Temporal *", variant: int +) -> "Tuple[str, 'size_t *']": + temp_converted = _ffi.cast("const Temporal *", temp) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") + result = _lib.temporal_as_hexwkb(temp_converted, variant_converted, size_out) _check_error() - return result if result != _ffi.NULL else None + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None, size_out[0] -def overfront_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overfront_stbox_stbox(box1_converted, box2_converted) +def temporal_as_mfjson( + temp: "const Temporal *", + with_bbox: bool, + flags: int, + precision: int, + srs: "Optional[str]", +) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL + result = _lib.temporal_as_mfjson( + temp_converted, with_bbox, flags, precision, srs_converted + ) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def back_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.back_stbox_stbox(box1_converted, box2_converted) +def temporal_as_wkb(temp: "const Temporal *", variant: int) -> bytes: + temp_converted = _ffi.cast("const Temporal *", temp) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") + result = _lib.temporal_as_wkb(temp_converted, variant_converted, size_out) _check_error() - return result if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) + return result_converted -def overback_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overback_stbox_stbox(box1_converted, box2_converted) +def temporal_from_hexwkb(hexwkb: str) -> "Temporal *": + hexwkb_converted = hexwkb.encode("utf-8") + result = _lib.temporal_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def before_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.before_stbox_stbox(box1_converted, box2_converted) - _check_error() +def temporal_from_wkb(wkb: bytes) -> "Temporal *": + wkb_converted = _ffi.new("uint8_t []", wkb) + result = _lib.temporal_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def overbefore_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overbefore_stbox_stbox(box1_converted, box2_converted) +def tfloat_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.tfloat_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def after_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.after_stbox_stbox(box1_converted, box2_converted) +def tfloat_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.tfloat_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.overafter_stbox_stbox(box1_converted, box2_converted) +def tfloat_out(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tfloat_out(temp_converted, maxdd) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tbox_eq(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_eq(box1_converted, box2_converted) +def tint_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.tint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_ne(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_ne(box1_converted, box2_converted) +def tint_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.tint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_cmp(box1: "const TBox *", box2: "const TBox *") -> "int": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_cmp(box1_converted, box2_converted) +def tint_out(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tint_out(temp_converted) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tbox_lt(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_lt(box1_converted, box2_converted) +def ttext_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.ttext_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_le(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_le(box1_converted, box2_converted) +def ttext_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") + result = _lib.ttext_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_ge(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_ge(box1_converted, box2_converted) +def ttext_out(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ttext_out(temp_converted) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tbox_gt(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.tbox_gt(box1_converted, box2_converted) +def tbool_from_base_temp(b: bool, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tbool_from_base_temp(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_eq(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_eq(box1_converted, box2_converted) +def tboolinst_make(b: bool, t: int) -> "TInstant *": + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.tboolinst_make(b, t_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_ne(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_ne(box1_converted, box2_converted) +def tboolseq_from_base_tstzset(b: bool, s: "const Set *") -> "TSequence *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.tboolseq_from_base_tstzset(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_cmp(box1: "const STBox *", box2: "const STBox *") -> "int": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_cmp(box1_converted, box2_converted) +def tboolseq_from_base_tstzspan(b: bool, s: "const Span *") -> "TSequence *": + s_converted = _ffi.cast("const Span *", s) + result = _lib.tboolseq_from_base_tstzspan(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_lt(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_lt(box1_converted, box2_converted) +def tboolseqset_from_base_tstzspanset( + b: bool, ss: "const SpanSet *" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tboolseqset_from_base_tstzspanset(b, ss_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_le(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_le(box1_converted, box2_converted) +def temporal_copy(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_copy(temp_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_ge(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_ge(box1_converted, box2_converted) +def tfloat_from_base_temp(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tfloat_from_base_temp(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_gt(box1: "const STBox *", box2: "const STBox *") -> "bool": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.stbox_gt(box1_converted, box2_converted) +def tfloatinst_make(d: float, t: int) -> "TInstant *": + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.tfloatinst_make(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tbool_in(string_converted) +def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.tfloatseq_from_base_tstzset(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def tint_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tint_in(string_converted) +def tfloatseq_from_base_tstzspan( + d: float, s: "const Span *", interp: "interpType" +) -> "TSequence *": + s_converted = _ffi.cast("const Span *", s) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tfloat_in(string_converted) +def tfloatseqset_from_base_tstzspanset( + d: float, ss: "const SpanSet *", interp: "interpType" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.ttext_in(string_converted) +def tint_from_base_temp(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tint_from_base_temp(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tgeompoint_in(string_converted) +def tintinst_make(i: int, t: int) -> "TInstant *": + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.tintinst_make(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tgeogpoint_in(string_converted) +def tintseq_from_base_tstzset(i: int, s: "const Set *") -> "TSequence *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.tintseq_from_base_tstzset(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tbool_from_mfjson(string_converted) +def tintseq_from_base_tstzspan(i: int, s: "const Span *") -> "TSequence *": + s_converted = _ffi.cast("const Span *", s) + result = _lib.tintseq_from_base_tstzspan(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tint_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tint_from_mfjson(string_converted) +def tintseqset_from_base_tstzspanset(i: int, ss: "const SpanSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tintseqset_from_base_tstzspanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tfloat_from_mfjson(string_converted) +def tsequence_make( + instants: "const TInstant **", + count: int, + lower_inc: bool, + upper_inc: bool, + interp: "interpType", + normalize: bool, +) -> "TSequence *": + instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequence_make( + instants_converted, count, lower_inc, upper_inc, interp_converted, normalize + ) _check_error() return result if result != _ffi.NULL else None -def ttext_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.ttext_from_mfjson(string_converted) +def tsequenceset_make( + sequences: "const TSequence **", count: int, normalize: bool +) -> "TSequenceSet *": + sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] + result = _lib.tsequenceset_make(sequences_converted, count, normalize) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tgeompoint_from_mfjson(string_converted) +def tsequenceset_make_gaps( + instants: "const TInstant **", + interp: "interpType", + maxt: "Optional['const Interval *']", + maxdist: float, +) -> "TSequenceSet *": + instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] + interp_converted = _ffi.cast("interpType", interp) + maxt_converted = ( + _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL + ) + result = _lib.tsequenceset_make_gaps( + instants_converted, len(instants), interp_converted, maxt_converted, maxdist + ) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") - result = _lib.tgeogpoint_from_mfjson(string_converted) +def ttext_from_base_temp(txt: str, temp: "const Temporal *") -> "Temporal *": + txt_converted = cstring2text(txt) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ttext_from_base_temp(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_wkb(wkb: bytes) -> "Temporal *": - wkb_converted = _ffi.new("uint8_t []", wkb) - result = _lib.temporal_from_wkb(wkb_converted, len(wkb)) +def ttextinst_make(txt: str, t: int) -> "TInstant *": + txt_converted = cstring2text(txt) + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.ttextinst_make(txt_converted, t_converted) + _check_error() return result if result != _ffi.NULL else None -def temporal_from_hexwkb(hexwkb: str) -> "Temporal *": - hexwkb_converted = hexwkb.encode("utf-8") - result = _lib.temporal_from_hexwkb(hexwkb_converted) +def ttextseq_from_base_tstzset(txt: str, s: "const Set *") -> "TSequence *": + txt_converted = cstring2text(txt) + s_converted = _ffi.cast("const Set *", s) + result = _lib.ttextseq_from_base_tstzset(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_out(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_out(temp_converted) +def ttextseq_from_base_tstzspan(txt: str, s: "const Span *") -> "TSequence *": + txt_converted = cstring2text(txt) + s_converted = _ffi.cast("const Span *", s) + result = _lib.ttextseq_from_base_tstzspan(txt_converted, s_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tint_out(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_out(temp_converted) +def ttextseqset_from_base_tstzspanset( + txt: str, ss: "const SpanSet *" +) -> "TSequenceSet *": + txt_converted = cstring2text(txt) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.ttextseqset_from_base_tstzspanset(txt_converted, ss_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tfloat_out(temp: "const Temporal *", maxdd: int) -> str: +def tbool_to_tint(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_out(temp_converted, maxdd) + result = _lib.tbool_to_tint(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def ttext_out(temp: "const Temporal *") -> str: +def temporal_to_tstzspan(temp: "const Temporal *") -> "Span *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_out(temp_converted) + result = _lib.temporal_to_tstzspan(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tpoint_out(temp: "const Temporal *", maxdd: int) -> str: +def tfloat_to_tint(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_out(temp_converted, maxdd) + result = _lib.tfloat_to_tint(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tpoint_as_text(temp: "const Temporal *", maxdd: int) -> str: +def tint_to_tfloat(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_as_text(temp_converted, maxdd) + result = _lib.tint_to_tfloat(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tpoint_as_ewkt(temp: "const Temporal *", maxdd: int) -> str: +def tnumber_to_span(temp: "const Temporal *") -> "Span *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_as_ewkt(temp_converted, maxdd) + result = _lib.tnumber_to_span(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_as_mfjson( - temp: "const Temporal *", - with_bbox: bool, - flags: int, - precision: int, - srs: "Optional[str]", -) -> str: +def tbool_end_value(temp: "const Temporal *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL - result = _lib.temporal_as_mfjson( - temp_converted, with_bbox, flags, precision, srs_converted - ) + result = _lib.tbool_end_value(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_as_wkb(temp: "const Temporal *", variant: int) -> bytes: +def tbool_start_value(temp: "const Temporal *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") - result = _lib.temporal_as_wkb(temp_converted, variant_converted, size_out) + result = _lib.tbool_start_value(temp_converted) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) - return result_converted + return result if result != _ffi.NULL else None -def temporal_as_hexwkb( - temp: "const Temporal *", variant: int -) -> "Tuple[str, 'size_t *']": +def tbool_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool +) -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") - result = _lib.temporal_as_hexwkb(temp_converted, variant_converted, size_out) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("bool *") + result = _lib.tbool_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None, size_out[0] + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def tbool_from_base_temp(b: bool, temp: "const Temporal *") -> "Temporal *": +def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_from_base_temp(b, temp_converted) + out_result = _ffi.new("bool *") + result = _lib.tbool_value_n(temp_converted, n, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def tboolinst_make(b: bool, t: int) -> "TInstant *": - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tboolinst_make(b, t_converted) +def tbool_values(temp: "const Temporal *") -> "Tuple['bool *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") + result = _lib.tbool_values(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tboolseq_from_base_tstzset(b: bool, s: "const Set *") -> "TSequence *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.tboolseq_from_base_tstzset(b, s_converted) +def temporal_duration(temp: "const Temporal *", boundspan: bool) -> "Interval *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_duration(temp_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzspan(b: bool, s: "const Span *") -> "TSequence *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.tboolseq_from_base_tstzspan(b, s_converted) +def temporal_end_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_end_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_from_base_tstzspanset( - b: bool, ss: "const SpanSet *" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tboolseqset_from_base_tstzspanset(b, ss_converted) +def temporal_end_sequence(temp: "const Temporal *") -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_end_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_copy(temp: "const Temporal *") -> "Temporal *": +def temporal_end_timestamptz(temp: "const Temporal *") -> "TimestampTz": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_copy(temp_converted) + result = _lib.temporal_end_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_from_base_temp(d: float, temp: "const Temporal *") -> "Temporal *": +def temporal_hash(temp: "const Temporal *") -> "uint32": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_from_base_temp(d, temp_converted) + result = _lib.temporal_hash(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_make(d: float, t: int) -> "TInstant *": - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tfloatinst_make(d, t_converted) +def temporal_instant_n(temp: "const Temporal *", n: int) -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_instant_n(temp_converted, n) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzspan( - d: float, s: "const Span *", interp: "interpType" -) -> "TSequence *": - s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp_converted) +def temporal_instants(temp: "const Temporal *") -> "Tuple['TInstant **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") + result = _lib.temporal_instants(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.tfloatseq_from_base_tstzset(d, s_converted) +def temporal_interp(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_interp(temp_converted) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tfloatseqset_from_base_tstzspanset( - d: float, ss: "const SpanSet *", interp: "interpType" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp_converted) +def temporal_lower_inc(temp: "const Temporal *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_lower_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_from_base_temp(i: int, temp: "const Temporal *") -> "Temporal *": +def temporal_max_instant(temp: "const Temporal *") -> "TInstant *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_from_base_temp(i, temp_converted) + result = _lib.temporal_max_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintinst_make(i: int, t: int) -> "TInstant *": - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tintinst_make(i, t_converted) +def temporal_min_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_min_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzspan(i: int, s: "const Span *") -> "TSequence *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.tintseq_from_base_tstzspan(i, s_converted) +def temporal_num_instants(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_num_instants(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzset(i: int, s: "const Set *") -> "TSequence *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.tintseq_from_base_tstzset(i, s_converted) +def temporal_num_sequences(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_num_sequences(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_from_base_tstzspanset(i: int, ss: "const SpanSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tintseqset_from_base_tstzspanset(i, ss_converted) +def temporal_num_timestamps(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_num_timestamps(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_from_base_temp( - gs: "const GSERIALIZED *", temp: "const Temporal *" -) -> "Temporal *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) +def temporal_segments(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_from_base_temp(gs_converted, temp_converted) + count = _ffi.new("int *") + result = _lib.temporal_segments(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tpointinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tpointinst_make(gs_converted, t_converted) +def temporal_sequence_n(temp: "const Temporal *", i: int) -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_sequence_n(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tpointseq_from_base_tstzspan( - gs: "const GSERIALIZED *", s: "const Span *", interp: "interpType" -) -> "TSequence *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tpointseq_from_base_tstzspan( - gs_converted, s_converted, interp_converted - ) +def temporal_sequences(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") + result = _lib.temporal_sequences(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tpointseq_from_base_tstzset( - gs: "const GSERIALIZED *", s: "const Set *" -) -> "TSequence *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tpointseq_from_base_tstzset(gs_converted, s_converted) +def temporal_start_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_start_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_from_base_tstzspanset( - gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: "interpType" -) -> "TSequenceSet *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tpointseqset_from_base_tstzspanset( - gs_converted, ss_converted, interp_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tsequence_make( - instants: "const TInstant **", - count: int, - lower_inc: bool, - upper_inc: bool, - interp: "interpType", - normalize: bool, -) -> "TSequence *": - instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_make( - instants_converted, count, lower_inc, upper_inc, interp_converted, normalize - ) +def temporal_start_sequence(temp: "const Temporal *") -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_start_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make( - sequences: "const TSequence **", count: int, normalize: bool -) -> "TSequenceSet *": - sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] - result = _lib.tsequenceset_make(sequences_converted, count, normalize) +def temporal_start_timestamptz(temp: "const Temporal *") -> "TimestampTz": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_start_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_gaps( - instants: "const TInstant **", - interp: "interpType", - maxt: "Optional['const Interval *']", - maxdist: float, +def temporal_stops( + temp: "const Temporal *", maxdist: float, minduration: "const Interval *" ) -> "TSequenceSet *": - instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) - maxt_converted = ( - _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL - ) - result = _lib.tsequenceset_make_gaps( - instants_converted, len(instants), interp_converted, maxt_converted, maxdist - ) - _check_error() - return result if result != _ffi.NULL else None - - -def ttext_from_base_temp(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_from_base_temp(txt_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ttextinst_make(txt: str, t: int) -> "TInstant *": - txt_converted = cstring2text(txt) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.ttextinst_make(txt_converted, t_converted) + minduration_converted = _ffi.cast("const Interval *", minduration) + result = _lib.temporal_stops(temp_converted, maxdist, minduration_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzspan(txt: str, s: "const Span *") -> "TSequence *": - txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Span *", s) - result = _lib.ttextseq_from_base_tstzspan(txt_converted, s_converted) +def temporal_subtype(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_subtype(temp_converted) _check_error() + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzset(txt: str, s: "const Set *") -> "TSequence *": - txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) - result = _lib.ttextseq_from_base_tstzset(txt_converted, s_converted) +def temporal_time(temp: "const Temporal *") -> "SpanSet *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_time(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_from_base_tstzspanset( - txt: str, ss: "const SpanSet *" -) -> "TSequenceSet *": - txt_converted = cstring2text(txt) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.ttextseqset_from_base_tstzspanset(txt_converted, ss_converted) +def temporal_timestamps(temp: "const Temporal *") -> "Tuple['TimestampTz *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") + result = _lib.temporal_timestamps(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def temporal_to_tstzspan(temp: "const Temporal *") -> "Span *": +def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_to_tstzspan(temp_converted) + out_result = _ffi.new("TimestampTz *") + result = _lib.temporal_timestamptz_n(temp_converted, n, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def tfloat_to_tint(temp: "const Temporal *") -> "Temporal *": +def temporal_upper_inc(temp: "const Temporal *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_to_tint(temp_converted) + result = _lib.temporal_upper_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_to_tfloat(temp: "const Temporal *") -> "Temporal *": +def tfloat_end_value(temp: "const Temporal *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_to_tfloat(temp_converted) + result = _lib.tfloat_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_span(temp: "const Temporal *") -> "Span *": +def tfloat_max_value(temp: "const Temporal *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_to_span(temp_converted) + result = _lib.tfloat_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_end_value(temp: "const Temporal *") -> "bool": +def tfloat_min_value(temp: "const Temporal *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_end_value(temp_converted) + result = _lib.tfloat_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_start_value(temp: "const Temporal *") -> "bool": +def tfloat_start_value(temp: "const Temporal *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_start_value(temp_converted) + result = _lib.tfloat_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_value_at_timestamptz( +def tfloat_value_at_timestamptz( temp: "const Temporal *", t: int, strict: bool -) -> "bool": +) -> "double": temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("bool *") - result = _lib.tbool_value_at_timestamptz( + out_result = _ffi.new("double *") + result = _lib.tfloat_value_at_timestamptz( temp_converted, t_converted, strict, out_result ) _check_error() @@ -7109,5504 +6704,3438 @@ def tbool_value_at_timestamptz( return None -def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": +def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("bool *") - result = _lib.tbool_value_n(temp_converted, n, out_result) + out_result = _ffi.new("double *") + result = _lib.tfloat_value_n(temp_converted, n, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tbool_values(temp: "const Temporal *") -> "Tuple['bool *', 'int']": +def tfloat_values(temp: "const Temporal *") -> "Tuple['double *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) count = _ffi.new("int *") - result = _lib.tbool_values(temp_converted, count) + result = _lib.tfloat_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_duration(temp: "const Temporal *", boundspan: bool) -> "Interval *": +def tint_end_value(temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_duration(temp_converted, boundspan) + result = _lib.tint_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_instant(temp: "const Temporal *") -> "TInstant *": +def tint_max_value(temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_end_instant(temp_converted) + result = _lib.tint_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_sequence(temp: "const Temporal *") -> "TSequence *": +def tint_min_value(temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_end_sequence(temp_converted) + result = _lib.tint_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_timestamptz(temp: "const Temporal *") -> "TimestampTz": +def tint_start_value(temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_end_timestamptz(temp_converted) + result = _lib.tint_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_hash(temp: "const Temporal *") -> "uint32": +def tint_value_at_timestamptz(temp: "const Temporal *", t: int, strict: bool) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_hash(temp_converted) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("int *") + result = _lib.tint_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def temporal_instant_n(temp: "const Temporal *", n: int) -> "TInstant *": +def tint_value_n(temp: "const Temporal *", n: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_instant_n(temp_converted, n) + out_result = _ffi.new("int *") + result = _lib.tint_value_n(temp_converted, n, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def temporal_instants(temp: "const Temporal *") -> "Tuple['TInstant **', 'int']": +def tint_values(temp: "const Temporal *") -> "Tuple['int *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) count = _ffi.new("int *") - result = _lib.temporal_instants(temp_converted, count) + result = _lib.tint_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_interp(temp: "const Temporal *") -> str: +def tnumber_integral(temp: "const Temporal *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_interp(temp_converted) + result = _lib.tnumber_integral(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_max_instant(temp: "const Temporal *") -> "TInstant *": +def tnumber_twavg(temp: "const Temporal *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_max_instant(temp_converted) + result = _lib.tnumber_twavg(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_instant(temp: "const Temporal *") -> "TInstant *": +def tnumber_valuespans(temp: "const Temporal *") -> "SpanSet *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_min_instant(temp_converted) + result = _lib.tnumber_valuespans(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_instants(temp: "const Temporal *") -> "int": +def ttext_end_value(temp: "const Temporal *") -> str: temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_num_instants(temp_converted) + result = _lib.ttext_end_value(temp_converted) _check_error() + result = text2cstring(result) return result if result != _ffi.NULL else None -def temporal_num_sequences(temp: "const Temporal *") -> "int": +def ttext_max_value(temp: "const Temporal *") -> str: temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_num_sequences(temp_converted) + result = _lib.ttext_max_value(temp_converted) _check_error() + result = text2cstring(result) return result if result != _ffi.NULL else None -def temporal_num_timestamps(temp: "const Temporal *") -> "int": +def ttext_min_value(temp: "const Temporal *") -> str: temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_num_timestamps(temp_converted) + result = _lib.ttext_min_value(temp_converted) _check_error() + result = text2cstring(result) return result if result != _ffi.NULL else None -def temporal_segments(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": +def ttext_start_value(temp: "const Temporal *") -> str: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_segments(temp_converted, count) + result = _lib.ttext_start_value(temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + result = text2cstring(result) + return result if result != _ffi.NULL else None -def temporal_sequence_n(temp: "const Temporal *", i: int) -> "TSequence *": +def ttext_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool +) -> "text **": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_sequence_n(temp_converted, i) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("text **") + result = _lib.ttext_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result if out_result != _ffi.NULL else None + return None -def temporal_sequences(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": +def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_sequences(temp_converted, count) + out_result = _ffi.new("text **") + result = _lib.ttext_value_n(temp_converted, n, out_result) _check_error() - return result if result != _ffi.NULL else None, count[0] + if result: + return out_result if out_result != _ffi.NULL else None + return None -def temporal_lower_inc(temp: "const Temporal *") -> "bool": +def ttext_values(temp: "const Temporal *") -> "Tuple['text **', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_lower_inc(temp_converted) + count = _ffi.new("int *") + result = _lib.ttext_values(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def temporal_upper_inc(temp: "const Temporal *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_upper_inc(temp_converted) +def float_degrees(value: float, normalize: bool) -> "double": + result = _lib.float_degrees(value, normalize) _check_error() return result if result != _ffi.NULL else None -def temporal_start_instant(temp: "const Temporal *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_start_instant(temp_converted) +def temparr_round(temp: "const Temporal **", count: int, maxdd: int) -> "Temporal **": + temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] + result = _lib.temparr_round(temp_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_start_sequence(temp: "const Temporal *") -> "TSequence *": +def temporal_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_start_sequence(temp_converted) + result = _lib.temporal_round(temp_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_start_timestamptz(temp: "const Temporal *") -> "TimestampTz": +def temporal_scale_time( + temp: "const Temporal *", duration: "const Interval *" +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_start_timestamptz(temp_converted) + duration_converted = _ffi.cast("const Interval *", duration) + result = _lib.temporal_scale_time(temp_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_stops( - temp: "const Temporal *", maxdist: float, minduration: "const Interval *" -) -> "TSequenceSet *": +def temporal_set_interp(temp: "const Temporal *", interp: "interpType") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - minduration_converted = _ffi.cast("const Interval *", minduration) - result = _lib.temporal_stops(temp_converted, maxdist, minduration_converted) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.temporal_set_interp(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_subtype(temp: "const Temporal *") -> str: +def temporal_shift_scale_time( + temp: "const Temporal *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_subtype(temp_converted) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) + result = _lib.temporal_shift_scale_time( + temp_converted, shift_converted, duration_converted + ) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_time(temp: "const Temporal *") -> "SpanSet *": +def temporal_shift_time( + temp: "const Temporal *", shift: "const Interval *" +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_time(temp_converted) + shift_converted = _ffi.cast("const Interval *", shift) + result = _lib.temporal_shift_time(temp_converted, shift_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: +def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("TimestampTz *") - result = _lib.temporal_timestamptz_n(temp_converted, n, out_result) + result = _lib.temporal_to_tinstant(temp_converted) _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def temporal_timestamps(temp: "const Temporal *") -> "Tuple['TimestampTz *', 'int']": +def temporal_to_tsequence( + temp: "const Temporal *", interp: "interpType" +) -> "TSequence *": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_timestamps(temp_converted, count) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.temporal_to_tsequence(temp_converted, interp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tfloat_end_value(temp: "const Temporal *") -> "double": +def temporal_to_tsequenceset( + temp: "const Temporal *", interp: "interpType" +) -> "TSequenceSet *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_end_value(temp_converted) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.temporal_to_tsequenceset(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_max_value(temp: "const Temporal *") -> "double": +def tfloat_ceil(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_max_value(temp_converted) + result = _lib.tfloat_ceil(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_min_value(temp: "const Temporal *") -> "double": +def tfloat_degrees(temp: "const Temporal *", normalize: bool) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_min_value(temp_converted) + result = _lib.tfloat_degrees(temp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def tfloat_start_value(temp: "const Temporal *") -> "double": +def tfloat_floor(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_start_value(temp_converted) + result = _lib.tfloat_floor(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "double": +def tfloat_radians(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("double *") - result = _lib.tfloat_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.tfloat_radians(temp_converted) _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": +def tfloat_scale_value(temp: "const Temporal *", width: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("double *") - result = _lib.tfloat_value_n(temp_converted, n, out_result) + result = _lib.tfloat_scale_value(temp_converted, width) _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tfloat_values(temp: "const Temporal *") -> "Tuple['double *', 'int']": +def tfloat_shift_scale_value( + temp: "const Temporal *", shift: float, width: float +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tfloat_values(temp_converted, count) + result = _lib.tfloat_shift_scale_value(temp_converted, shift, width) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tint_end_value(temp: "const Temporal *") -> "int": +def tfloat_shift_value(temp: "const Temporal *", shift: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_end_value(temp_converted) + result = _lib.tfloat_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def tint_max_value(temp: "const Temporal *") -> "int": +def tint_scale_value(temp: "const Temporal *", width: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_max_value(temp_converted) + result = _lib.tint_scale_value(temp_converted, width) _check_error() return result if result != _ffi.NULL else None -def tint_min_value(temp: "const Temporal *") -> "int": +def tint_shift_scale_value( + temp: "const Temporal *", shift: int, width: int +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_min_value(temp_converted) + result = _lib.tint_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tint_start_value(temp: "const Temporal *") -> "int": +def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_start_value(temp_converted) + result = _lib.tint_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def tint_value_at_timestamptz(temp: "const Temporal *", t: int, strict: bool) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("int *") - result = _lib.tint_value_at_timestamptz( - temp_converted, t_converted, strict, out_result +def temporal_append_tinstant( + temp: "Temporal *", + inst: "const TInstant *", + interp: "interpType", + maxdist: float, + maxt: "Optional['const Interval *']", + expand: bool, +) -> "Temporal *": + temp_converted = _ffi.cast("Temporal *", temp) + inst_converted = _ffi.cast("const TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) + maxt_converted = ( + _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL + ) + result = _lib.temporal_append_tinstant( + temp_converted, + inst_converted, + interp_converted, + maxdist, + maxt_converted, + expand, ) _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tint_value_n(temp: "const Temporal *", n: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("int *") - result = _lib.tint_value_n(temp_converted, n, out_result) +def temporal_append_tsequence( + temp: "Temporal *", seq: "const TSequence *", expand: bool +) -> "Temporal *": + temp_converted = _ffi.cast("Temporal *", temp) + seq_converted = _ffi.cast("const TSequence *", seq) + result = _lib.temporal_append_tsequence(temp_converted, seq_converted, expand) _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tint_values(temp: "const Temporal *") -> "Tuple['int *', 'int']": +def temporal_delete_timestamptz( + temp: "const Temporal *", t: int, connect: bool +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tint_values(temp_converted, count) + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.temporal_delete_timestamptz(temp_converted, t_converted, connect) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_integral(temp: "const Temporal *") -> "double": +def temporal_delete_tstzset( + temp: "const Temporal *", s: "const Set *", connect: bool +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_integral(temp_converted) + s_converted = _ffi.cast("const Set *", s) + result = _lib.temporal_delete_tstzset(temp_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tnumber_twavg(temp: "const Temporal *") -> "double": +def temporal_delete_tstzspan( + temp: "const Temporal *", s: "const Span *", connect: bool +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_twavg(temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.temporal_delete_tstzspan(temp_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tnumber_valuespans(temp: "const Temporal *") -> "SpanSet *": +def temporal_delete_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *", connect: bool +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_valuespans(temp_converted) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.temporal_delete_tstzspanset(temp_converted, ss_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tpoint_end_value(temp: "const Temporal *") -> "GSERIALIZED *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_end_value(temp_converted) +def temporal_insert( + temp1: "const Temporal *", temp2: "const Temporal *", connect: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_insert(temp1_converted, temp2_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tpoint_start_value(temp: "const Temporal *") -> "GSERIALIZED *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_start_value(temp_converted) +def temporal_merge( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_merge(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "GSERIALIZED **": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("GSERIALIZED **") - result = _lib.tpoint_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) +def temporal_merge_array(temparr: "const Temporal **", count: int) -> "Temporal *": + temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] + result = _lib.temporal_merge_array(temparr_converted, count) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tpoint_value_n(temp: "const Temporal *", n: int) -> "GSERIALIZED **": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("GSERIALIZED **") - result = _lib.tpoint_value_n(temp_converted, n, out_result) +def temporal_update( + temp1: "const Temporal *", temp2: "const Temporal *", connect: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_update(temp1_converted, temp2_converted, connect) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tpoint_values(temp: "const Temporal *") -> "Tuple['GSERIALIZED **', 'int']": +def tbool_at_value(temp: "const Temporal *", b: bool) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tpoint_values(temp_converted, count) + result = _lib.tbool_at_value(temp_converted, b) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def ttext_end_value(temp: "const Temporal *") -> str: +def tbool_minus_value(temp: "const Temporal *", b: bool) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_end_value(temp_converted) + result = _lib.tbool_minus_value(temp_converted, b) _check_error() - result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_max_value(temp: "const Temporal *") -> str: +def temporal_at_max(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_max_value(temp_converted) + result = _lib.temporal_at_max(temp_converted) _check_error() - result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_min_value(temp: "const Temporal *") -> str: +def temporal_at_min(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_min_value(temp_converted) + result = _lib.temporal_at_min(temp_converted) _check_error() - result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_start_value(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_start_value(temp_converted) - _check_error() - result = text2cstring(result) - return result if result != _ffi.NULL else None - - -def ttext_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "text **": +def temporal_at_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("text **") - result = _lib.ttext_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) - _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None - - -def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("text **") - result = _lib.ttext_value_n(temp_converted, n, out_result) + result = _lib.temporal_at_timestamptz(temp_converted, t_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def ttext_values(temp: "const Temporal *") -> "Tuple['text **', 'int']": +def temporal_at_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.ttext_values(temp_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def float_degrees(value: float, normalize: bool) -> "double": - result = _lib.float_degrees(value, normalize) + s_converted = _ffi.cast("const Set *", s) + result = _lib.temporal_at_tstzset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def meos_srid_is_latlong(srid: "int32_t") -> "bool": - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.meos_srid_is_latlong(srid_converted) +def temporal_at_tstzspan(temp: "const Temporal *", s: "const Span *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) + result = _lib.temporal_at_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_scale_time( - temp: "const Temporal *", duration: "const Interval *" +def temporal_at_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *" ) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - result = _lib.temporal_scale_time(temp_converted, duration_converted) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.temporal_at_tstzspanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_set_interp(temp: "const Temporal *", interp: "interpType") -> "Temporal *": +def temporal_at_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_set_interp(temp_converted, interp_converted) + set_converted = _ffi.cast("const Set *", set) + result = _lib.temporal_at_values(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_shift_scale_time( - temp: "const Temporal *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Temporal *": +def temporal_minus_max(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.temporal_shift_scale_time( - temp_converted, shift_converted, duration_converted - ) + result = _lib.temporal_minus_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_shift_time( - temp: "const Temporal *", shift: "const Interval *" -) -> "Temporal *": +def temporal_minus_min(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - shift_converted = _ffi.cast("const Interval *", shift) - result = _lib.temporal_shift_time(temp_converted, shift_converted) + result = _lib.temporal_minus_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": +def temporal_minus_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_to_tinstant(temp_converted) + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.temporal_minus_timestamptz(temp_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tsequence(temp: "const Temporal *", interp_str: str) -> "TSequence *": +def temporal_minus_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_str_converted = interp_str.encode("utf-8") - result = _lib.temporal_to_tsequence(temp_converted, interp_str_converted) + s_converted = _ffi.cast("const Set *", s) + result = _lib.temporal_minus_tstzset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tsequenceset( - temp: "const Temporal *", interp_str: str -) -> "TSequenceSet *": +def temporal_minus_tstzspan( + temp: "const Temporal *", s: "const Span *" +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_str_converted = interp_str.encode("utf-8") - result = _lib.temporal_to_tsequenceset(temp_converted, interp_str_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.temporal_minus_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_floor(temp: "const Temporal *") -> "Temporal *": +def temporal_minus_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *" +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_floor(temp_converted) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.temporal_minus_tstzspanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ceil(temp: "const Temporal *") -> "Temporal *": +def temporal_minus_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_ceil(temp_converted) + set_converted = _ffi.cast("const Set *", set) + result = _lib.temporal_minus_values(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_degrees(temp: "const Temporal *", normalize: bool) -> "Temporal *": +def tfloat_at_value(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_degrees(temp_converted, normalize) + result = _lib.tfloat_at_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tfloat_radians(temp: "const Temporal *") -> "Temporal *": +def tfloat_minus_value(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_radians(temp_converted) + result = _lib.tfloat_minus_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tfloat_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": +def tint_at_value(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_round(temp_converted, maxdd) + result = _lib.tint_at_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tfloat_scale_value(temp: "const Temporal *", width: float) -> "Temporal *": +def tint_minus_value(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_scale_value(temp_converted, width) + result = _lib.tint_minus_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_scale_value( - temp: "const Temporal *", shift: float, width: float -) -> "Temporal *": +def tnumber_at_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_shift_scale_value(temp_converted, shift, width) + span_converted = _ffi.cast("const Span *", span) + result = _lib.tnumber_at_span(temp_converted, span_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_value(temp: "const Temporal *", shift: float) -> "Temporal *": +def tnumber_at_spanset(temp: "const Temporal *", ss: "const SpanSet *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_shift_value(temp_converted, shift) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tnumber_at_spanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatarr_round(temp: "const Temporal **", count: int, maxdd: int) -> "Temporal **": - temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] - result = _lib.tfloatarr_round(temp_converted, count, maxdd) +def tnumber_at_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tnumber_at_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tint_scale_value(temp: "const Temporal *", width: int) -> "Temporal *": +def tnumber_minus_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_scale_value(temp_converted, width) + span_converted = _ffi.cast("const Span *", span) + result = _lib.tnumber_minus_span(temp_converted, span_converted) _check_error() return result if result != _ffi.NULL else None -def tint_shift_scale_value( - temp: "const Temporal *", shift: int, width: int +def tnumber_minus_spanset( + temp: "const Temporal *", ss: "const SpanSet *" ) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_shift_scale_value(temp_converted, shift, width) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tnumber_minus_spanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": +def tnumber_minus_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_shift_value(temp_converted, shift) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tnumber_minus_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": +def ttext_at_value(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_round(temp_converted, maxdd) + txt_converted = cstring2text(txt) + result = _lib.ttext_at_value(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_transform(temp: "const Temporal *", srid: int) -> "Temporal *": +def ttext_minus_value(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - srid_converted = _ffi.cast("int32", srid) - result = _lib.tpoint_transform(temp_converted, srid_converted) + txt_converted = cstring2text(txt) + result = _lib.ttext_minus_value(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_transform_pipeline( - temp: "const Temporal *", pipelinestr: str, srid: int, is_forward: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - pipelinestr_converted = pipelinestr.encode("utf-8") - srid_converted = _ffi.cast("int32", srid) - result = _lib.tpoint_transform_pipeline( - temp_converted, pipelinestr_converted, srid_converted, is_forward - ) +def temporal_cmp(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_cmp(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_transform_pj( - temp: "const Temporal *", srid: int, pj: "const LWPROJ *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - srid_converted = _ffi.cast("int32", srid) - pj_converted = _ffi.cast("const LWPROJ *", pj) - result = _lib.tpoint_transform_pj(temp_converted, srid_converted, pj_converted) +def temporal_eq(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_eq(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def lwproj_transform(srid_from: int, srid_to: int) -> "LWPROJ *": - srid_from_converted = _ffi.cast("int32", srid_from) - srid_to_converted = _ffi.cast("int32", srid_to) - result = _lib.lwproj_transform(srid_from_converted, srid_to_converted) +def temporal_ge(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_ge(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tpointarr_round(temp: "const Temporal **", count: int, maxdd: int) -> "Temporal **": - temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] - result = _lib.tpointarr_round(temp_converted, count, maxdd) +def temporal_gt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_gt(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_append_tinstant( - temp: "Temporal *", - inst: "const TInstant *", - maxdist: float, - maxt: "Optional['const Interval *']", - expand: bool, -) -> "Temporal *": - temp_converted = _ffi.cast("Temporal *", temp) - inst_converted = _ffi.cast("const TInstant *", inst) - maxt_converted = ( - _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL - ) - result = _lib.temporal_append_tinstant( - temp_converted, inst_converted, maxdist, maxt_converted, expand - ) +def temporal_le(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_le(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_append_tsequence( - temp: "Temporal *", seq: "const TSequence *", expand: bool -) -> "Temporal *": - temp_converted = _ffi.cast("Temporal *", temp) - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.temporal_append_tsequence(temp_converted, seq_converted, expand) +def temporal_lt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_lt(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzspan( - temp: "const Temporal *", s: "const Span *", connect: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.temporal_delete_tstzspan(temp_converted, s_converted, connect) +def temporal_ne(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.temporal_ne(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *", connect: bool -) -> "Temporal *": +def always_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.temporal_delete_tstzspanset(temp_converted, ss_converted, connect) + result = _lib.always_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_timestamptz( - temp: "const Temporal *", t: int, connect: bool -) -> "Temporal *": +def always_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.temporal_delete_timestamptz(temp_converted, t_converted, connect) + result = _lib.always_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzset( - temp: "const Temporal *", s: "const Set *", connect: bool -) -> "Temporal *": +def always_eq_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) - result = _lib.temporal_delete_tstzset(temp_converted, s_converted, connect) + result = _lib.always_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_insert( - temp1: "const Temporal *", temp2: "const Temporal *", connect: bool -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_insert(temp1_converted, temp2_converted, connect) +def always_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.always_eq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def temporal_merge( +def always_eq_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": +) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_merge(temp1_converted, temp2_converted) + result = _lib.always_eq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_merge_array(temparr: "const Temporal **", count: int) -> "Temporal *": - temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] - result = _lib.temporal_merge_array(temparr_converted, count) +def always_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.always_eq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_update( - temp1: "const Temporal *", temp2: "const Temporal *", connect: bool -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_update(temp1_converted, temp2_converted, connect) +def always_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.always_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tbool_at_value(temp: "const Temporal *", b: bool) -> "Temporal *": +def always_eq_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_at_value(temp_converted, b) + result = _lib.always_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tbool_minus_value(temp: "const Temporal *", b: bool) -> "Temporal *": +def always_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_minus_value(temp_converted, b) + txt_converted = cstring2text(txt) + result = _lib.always_eq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_max(temp: "const Temporal *") -> "Temporal *": +def always_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_at_max(temp_converted) + result = _lib.always_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_min(temp: "const Temporal *") -> "Temporal *": +def always_ge_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_at_min(temp_converted) + result = _lib.always_ge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzspan(temp: "const Temporal *", s: "const Span *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.temporal_at_tstzspan(temp_converted, s_converted) +def always_ge_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.always_ge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": +def always_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.temporal_at_tstzspanset(temp_converted, ss_converted) + result = _lib.always_ge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": +def always_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.temporal_at_timestamptz(temp_converted, t_converted) + result = _lib.always_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": +def always_ge_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) - result = _lib.temporal_at_tstzset(temp_converted, s_converted) + result = _lib.always_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def temporal_at_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": +def always_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - set_converted = _ffi.cast("const Set *", set) - result = _lib.temporal_at_values(temp_converted, set_converted) + txt_converted = cstring2text(txt) + result = _lib.always_ge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_max(temp: "const Temporal *") -> "Temporal *": +def always_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_minus_max(temp_converted) + result = _lib.always_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_min(temp: "const Temporal *") -> "Temporal *": +def always_gt_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_minus_min(temp_converted) + result = _lib.always_gt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzspan( - temp: "const Temporal *", s: "const Span *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.temporal_minus_tstzspan(temp_converted, s_converted) +def always_gt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.always_gt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": +def always_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.temporal_minus_tstzspanset(temp_converted, ss_converted) + result = _lib.always_gt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": +def always_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.temporal_minus_timestamptz(temp_converted, t_converted) + result = _lib.always_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": +def always_gt_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) - result = _lib.temporal_minus_tstzset(temp_converted, s_converted) + result = _lib.always_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": +def always_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - set_converted = _ffi.cast("const Set *", set) - result = _lib.temporal_minus_values(temp_converted, set_converted) + txt_converted = cstring2text(txt) + result = _lib.always_gt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_at_value(temp: "const Temporal *", d: float) -> "Temporal *": +def always_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_at_value(temp_converted, d) + result = _lib.always_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_minus_value(temp: "const Temporal *", d: float) -> "Temporal *": +def always_le_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_minus_value(temp_converted, d) + result = _lib.always_le_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_at_value(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_at_value(temp_converted, i) +def always_le_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.always_le_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tint_minus_value(temp: "const Temporal *", i: int) -> "Temporal *": +def always_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_minus_value(temp_converted, i) + result = _lib.always_le_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": +def always_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumber_at_span(temp_converted, span_converted) + result = _lib.always_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_spanset(temp: "const Temporal *", ss: "const SpanSet *") -> "Temporal *": +def always_le_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tnumber_at_spanset(temp_converted, ss_converted) + result = _lib.always_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": +def always_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tnumber_at_tbox(temp_converted, box_converted) + txt_converted = cstring2text(txt) + result = _lib.always_le_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": +def always_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumber_minus_span(temp_converted, span_converted) + result = _lib.always_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_spanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": +def always_lt_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tnumber_minus_spanset(temp_converted, ss_converted) + result = _lib.always_lt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tnumber_minus_tbox(temp_converted, box_converted) +def always_lt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.always_lt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_at_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *", zspan: "const Span *" -) -> "Temporal *": +def always_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tpoint_at_geom(temp_converted, gs_converted, zspan_converted) + result = _lib.always_lt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_at_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool -) -> "Temporal *": +def always_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tpoint_at_stbox(temp_converted, box_converted, border_inc) + result = _lib.always_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tpoint_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": +def always_lt_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("GSERIALIZED *", gs) - result = _lib.tpoint_at_value(temp_converted, gs_converted) + result = _lib.always_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tpoint_minus_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *", zspan: "const Span *" -) -> "Temporal *": +def always_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tpoint_minus_geom(temp_converted, gs_converted, zspan_converted) + txt_converted = cstring2text(txt) + result = _lib.always_lt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_minus_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool -) -> "Temporal *": +def always_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tpoint_minus_stbox(temp_converted, box_converted, border_inc) + result = _lib.always_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": +def always_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("GSERIALIZED *", gs) - result = _lib.tpoint_minus_value(temp_converted, gs_converted) + result = _lib.always_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_at_value(temp: "const Temporal *", txt: str) -> "Temporal *": +def always_ne_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.ttext_at_value(temp_converted, txt_converted) + result = _lib.always_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_minus_value(temp: "const Temporal *", txt: str) -> "Temporal *": +def always_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.ttext_minus_value(temp_converted, txt_converted) + result = _lib.always_ne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def temporal_cmp(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def always_ne_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_cmp(temp1_converted, temp2_converted) + result = _lib.always_ne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_eq(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_eq(temp1_converted, temp2_converted) +def always_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.always_ne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_ge(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_ge(temp1_converted, temp2_converted) +def always_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.always_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def temporal_gt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_gt(temp1_converted, temp2_converted) +def always_ne_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.always_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def temporal_le(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_le(temp1_converted, temp2_converted) +def always_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + txt_converted = cstring2text(txt) + result = _lib.always_ne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_lt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_lt(temp1_converted, temp2_converted) +def ever_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ever_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_ne(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_ne(temp1_converted, temp2_converted) +def ever_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ever_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def ever_eq_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_bool_tbool(b, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def always_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_float_tfloat(d, temp_converted) + result = _lib.ever_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_int_tint(i, temp_converted) + result = _lib.ever_eq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def always_eq_point_tpoint( - gs: "const GSERIALIZED *", temp: "const Temporal *" +def ever_eq_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" ) -> "int": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_point_tpoint(gs_converted, temp_converted) + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.ever_eq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def ever_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": + txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_tbool_bool(temp_converted, b) + result = _lib.ever_eq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_eq_temporal_temporal(temp1_converted, temp2_converted) +def ever_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ever_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": - txt_converted = cstring2text(txt) +def ever_eq_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_text_ttext(txt_converted, temp_converted) + result = _lib.ever_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_tfloat_float(temp_converted, d) + txt_converted = cstring2text(txt) + result = _lib.ever_eq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_tint_int(temp_converted, i) + result = _lib.ever_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "int": +def ever_ge_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.always_eq_tpoint_point(temp_converted, gs_converted) + result = _lib.ever_ge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tpoint_tpoint( +def ever_ge_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_eq_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.ever_ge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - result = _lib.always_eq_ttext_text(temp_converted, txt_converted) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ever_ge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def ever_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_bool_tbool(b, temp_converted) + result = _lib.ever_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_ge_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_float_tfloat(d, temp_converted) + result = _lib.ever_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ne_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_int_tint(i, temp_converted) + txt_converted = cstring2text(txt) + result = _lib.ever_ge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_point_tpoint( - gs: "const GSERIALIZED *", temp: "const Temporal *" -) -> "int": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) +def ever_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_point_tpoint(gs_converted, temp_converted) + result = _lib.ever_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def ever_gt_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_tbool_bool(temp_converted, b) + result = _lib.ever_gt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_temporal_temporal( +def ever_gt_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_ne_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.ever_gt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_text_ttext(txt_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def always_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_tfloat_float(temp_converted, d) + result = _lib.ever_gt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_tint_int(temp_converted, i) + result = _lib.ever_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ne_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "int": +def ever_gt_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.always_ne_tpoint_point(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def always_ne_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_ne_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.ever_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.always_ne_ttext_text(temp_converted, txt_converted) + result = _lib.ever_gt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ge_float_tfloat(d, temp_converted) + result = _lib.ever_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_le_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ge_int_tint(i, temp_converted) + result = _lib.ever_le_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_temporal_temporal( +def ever_le_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_ge_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.ever_le_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ge_text_ttext(txt_converted, temp_converted) + result = _lib.ever_le_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ge_tfloat_float(temp_converted, d) + result = _lib.ever_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ge_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_le_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ge_tint_int(temp_converted, i) + result = _lib.ever_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.always_ge_ttext_text(temp_converted, txt_converted) + result = _lib.ever_le_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_gt_float_tfloat(d, temp_converted) + result = _lib.ever_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_lt_int_tint(i: int, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_gt_int_tint(i, temp_converted) + result = _lib.ever_lt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_temporal_temporal( +def ever_lt_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_gt_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.ever_lt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_gt_text_ttext(txt_converted, temp_converted) + result = _lib.ever_lt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_gt_tfloat_float(temp_converted, d) + result = _lib.ever_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_gt_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_lt_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_gt_tint_int(temp_converted, i) + result = _lib.ever_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.always_gt_ttext_text(temp_converted, txt_converted) + result = _lib.ever_lt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_le_float_tfloat(d, temp_converted) + result = _lib.ever_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_le_int_tint(i, temp_converted) + result = _lib.ever_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_temporal_temporal( +def ever_ne_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ever_ne_int_tint(i, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.ever_ne_tbool_bool(temp_converted, b) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_le_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.ever_ne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_le_text_ttext(txt_converted, temp_converted) + result = _lib.ever_ne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_le_tfloat_float(temp_converted, d) + result = _lib.ever_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_le_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_ne_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_le_tint_int(temp_converted, i) + result = _lib.ever_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.always_le_ttext_text(temp_converted, txt_converted) + result = _lib.ever_ne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def teq_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_lt_float_tfloat(d, temp_converted) + result = _lib.teq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_int_tint(i: int, temp: "const Temporal *") -> "int": +def teq_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_lt_int_tint(i, temp_converted) + result = _lib.teq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_temporal_temporal( +def teq_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.teq_int_tint(i, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def teq_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.teq_tbool_bool(temp_converted, b) + _check_error() + return result if result != _ffi.NULL else None + + +def teq_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.always_lt_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.teq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def teq_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_lt_text_ttext(txt_converted, temp_converted) + result = _lib.teq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def teq_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_lt_tfloat_float(temp_converted, d) + result = _lib.teq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_lt_tint_int(temp: "const Temporal *", i: int) -> "int": +def teq_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_lt_tint_int(temp_converted, i) + result = _lib.teq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def teq_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.always_lt_ttext_text(temp_converted, txt_converted) + result = _lib.teq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def tge_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_bool_tbool(b, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ever_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_float_tfloat(d, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ever_eq_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_int_tint(i, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ever_eq_point_tpoint(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_point_tpoint(gs_converted, temp_converted) + result = _lib.tge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def tge_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_tbool_bool(temp_converted, b) + result = _lib.tge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_temporal_temporal( +def tge_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_eq_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.tge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def tge_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_text_ttext(txt_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ever_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_tfloat_float(temp_converted, d) + result = _lib.tge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tint_int(temp: "const Temporal *", i: int) -> "int": +def tge_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_tint_int(temp_converted, i) + result = _lib.tge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tpoint_point(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def tge_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.ever_eq_tpoint_point(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ever_eq_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_eq_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.tge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def tge_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.ever_eq_ttext_text(temp_converted, txt_converted) + result = _lib.tge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def tgt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ge_float_tfloat(d, temp_converted) + result = _lib.tgt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_int_tint(i: int, temp: "const Temporal *") -> "int": +def tgt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ge_int_tint(i, temp_converted) + result = _lib.tgt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_temporal_temporal( +def tgt_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_ge_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.tgt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def tgt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ge_text_ttext(txt_converted, temp_converted) + result = _lib.tgt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def tgt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ge_tfloat_float(temp_converted, d) + result = _lib.tgt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tint_int(temp: "const Temporal *", i: int) -> "int": +def tgt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ge_tint_int(temp_converted, i) + result = _lib.tgt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def tgt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.ever_ge_ttext_text(temp_converted, txt_converted) + result = _lib.tgt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def tle_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_gt_float_tfloat(d, temp_converted) + result = _lib.tle_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_int_tint(i: int, temp: "const Temporal *") -> "int": +def tle_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_gt_int_tint(i, temp_converted) + result = _lib.tle_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_temporal_temporal( +def tle_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_gt_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.tle_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def tle_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_gt_text_ttext(txt_converted, temp_converted) + result = _lib.tle_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def tle_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_gt_tfloat_float(temp_converted, d) + result = _lib.tle_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tint_int(temp: "const Temporal *", i: int) -> "int": +def tle_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_gt_tint_int(temp_converted, i) + result = _lib.tle_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def tle_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.ever_gt_ttext_text(temp_converted, txt_converted) + result = _lib.tle_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def tlt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_le_float_tfloat(d, temp_converted) + result = _lib.tlt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_int_tint(i: int, temp: "const Temporal *") -> "int": +def tlt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_le_int_tint(i, temp_converted) + result = _lib.tlt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_temporal_temporal( +def tlt_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_le_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.tlt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def tlt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_le_text_ttext(txt_converted, temp_converted) + result = _lib.tlt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def tlt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_le_tfloat_float(temp_converted, d) + result = _lib.tlt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_le_tint_int(temp: "const Temporal *", i: int) -> "int": +def tlt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_le_tint_int(temp_converted, i) + result = _lib.tlt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def tlt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.ever_le_ttext_text(temp_converted, txt_converted) + result = _lib.tlt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def tne_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_lt_float_tfloat(d, temp_converted) + result = _lib.tne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_int_tint(i: int, temp: "const Temporal *") -> "int": +def tne_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_lt_int_tint(i, temp_converted) + result = _lib.tne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_temporal_temporal( +def tne_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tne_int_tint(i, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tne_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tne_tbool_bool(temp_converted, b) + _check_error() + return result if result != _ffi.NULL else None + + +def tne_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_lt_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.tne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def tne_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_lt_text_ttext(txt_converted, temp_converted) + result = _lib.tne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def tne_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_lt_tfloat_float(temp_converted, d) + result = _lib.tne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tint_int(temp: "const Temporal *", i: int) -> "int": +def tne_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_lt_tint_int(temp_converted, i) + result = _lib.tne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def tne_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) - result = _lib.ever_lt_ttext_text(temp_converted, txt_converted) + result = _lib.tne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def temporal_spans(temp: "const Temporal *") -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_bool_tbool(b, temp_converted) + count = _ffi.new("int *") + result = _lib.temporal_spans(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def temporal_split_each_n_spans( + temp: "const Temporal *", elem_count: int +) -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_float_tfloat(d, temp_converted) + count = _ffi.new("int *") + result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_ne_int_tint(i: int, temp: "const Temporal *") -> "int": +def temporal_split_n_spans( + temp: "const Temporal *", span_count: int +) -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_int_tint(i, temp_converted) + count = _ffi.new("int *") + result = _lib.temporal_split_n_spans(temp_converted, span_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_ne_point_tpoint(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) +def tnumber_split_each_n_tboxes( + temp: "const Temporal *", elem_count: int +) -> "Tuple['TBox *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_point_tpoint(gs_converted, temp_converted) + count = _ffi.new("int *") + result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def tnumber_split_n_tboxes( + temp: "const Temporal *", box_count: int +) -> "Tuple['TBox *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_tbool_bool(temp_converted, b) + count = _ffi.new("int *") + result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_ne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_ne_temporal_temporal(temp1_converted, temp2_converted) +def tnumber_tboxes(temp: "const Temporal *") -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") + result = _lib.tnumber_tboxes(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": - txt_converted = cstring2text(txt) +def adjacent_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_text_ttext(txt_converted, temp_converted) + result = _lib.adjacent_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def adjacent_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_tfloat_float(temp_converted, d) + result = _lib.adjacent_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_tint_int(temp_converted, i) +def adjacent_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.adjacent_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tpoint_point(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def adjacent_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.ever_ne_tpoint_point(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ever_ne_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.ever_ne_tpoint_tpoint(temp1_converted, temp2_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.adjacent_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def adjacent_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.ever_ne_ttext_text(temp_converted, txt_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.adjacent_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def teq_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": +def adjacent_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_bool_tbool(b, temp_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.adjacent_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def teq_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_float_tfloat(d, temp_converted) +def adjacent_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.adjacent_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def teq_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def adjacent_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_int_tint(i, temp_converted) + result = _lib.adjacent_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_point_tpoint( - gs: "const GSERIALIZED *", temp: "const Temporal *" -) -> "Temporal *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) +def contained_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_point_tpoint(gs_converted, temp_converted) + result = _lib.contained_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": +def contained_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_tbool_bool(temp_converted, b) + result = _lib.contained_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_temporal_temporal( +def contained_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": +) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.teq_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.contained_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def teq_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) +def contained_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_text_ttext(txt_converted, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.contained_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def contained_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_tfloat_float(temp_converted, d) + s_converted = _ffi.cast("const Span *", s) + result = _lib.contained_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": +def contained_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.teq_tpoint_point(temp_converted, gs_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.contained_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def contained_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.contained_tnumber_tnumber(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.teq_tint_int(temp_converted, i) + result = _lib.contained_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def contains_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.teq_ttext_text(temp_converted, txt_converted) + result = _lib.contains_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def contains_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tge_float_tfloat(d, temp_converted) + result = _lib.contains_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def contains_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tge_int_tint(i, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.contains_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tge_temporal_temporal( +def contains_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": +) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tge_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.contains_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tge_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) +def contains_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tge_text_ttext(txt_converted, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.contains_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tge_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def contains_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tge_tfloat_float(temp_converted, d) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.contains_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tge_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tge_tint_int(temp_converted, i) +def contains_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.contains_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tge_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def contains_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.tge_ttext_text(temp_converted, txt_converted) + result = _lib.contains_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def overlaps_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgt_float_tfloat(d, temp_converted) + result = _lib.overlaps_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def overlaps_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgt_int_tint(i, temp_converted) + result = _lib.overlaps_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_temporal_temporal( +def overlaps_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": +) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tgt_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.overlaps_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) +def overlaps_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgt_text_ttext(txt_converted, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.overlaps_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def overlaps_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgt_tfloat_float(temp_converted, d) + s_converted = _ffi.cast("const Span *", s) + result = _lib.overlaps_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def overlaps_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgt_tint_int(temp_converted, i) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.overlaps_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def overlaps_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.overlaps_tnumber_tnumber(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overlaps_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.tgt_ttext_text(temp_converted, txt_converted) + result = _lib.overlaps_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def same_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tle_float_tfloat(d, temp_converted) + result = _lib.same_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def same_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tle_int_tint(i, temp_converted) + result = _lib.same_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_temporal_temporal( +def same_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": +) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tle_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.same_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tle_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) +def same_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tle_text_ttext(txt_converted, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.same_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tle_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def same_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tle_tfloat_float(temp_converted, d) + s_converted = _ffi.cast("const Span *", s) + result = _lib.same_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tle_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def same_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tle_tint_int(temp_converted, i) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.same_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tle_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def same_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.same_tnumber_tnumber(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def same_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.tle_ttext_text(temp_converted, txt_converted) + result = _lib.same_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def after_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tlt_float_tfloat(d, temp_converted) + result = _lib.after_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def after_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tlt_int_tint(i, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.after_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_temporal_temporal( +def after_temporal_temporal( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": +) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tlt_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.after_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) +def after_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tlt_text_ttext(txt_converted, temp_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.after_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tlt_tfloat_float(temp_converted, d) +def after_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.after_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def after_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tlt_tint_int(temp_converted, i) + result = _lib.after_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def before_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.tlt_ttext_text(temp_converted, txt_converted) + result = _lib.before_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": +def before_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_bool_tbool(b, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.before_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tne_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_float_tfloat(d, temp_converted) +def before_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.before_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tne_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def before_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_int_tint(i, temp_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.before_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tne_point_tpoint( - gs: "const GSERIALIZED *", temp: "const Temporal *" -) -> "Temporal *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_point_tpoint(gs_converted, temp_converted) +def before_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.before_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": +def before_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_tbool_bool(temp_converted, b) + result = _lib.before_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tne_temporal_temporal(temp1_converted, temp2_converted) +def left_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.left_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) +def left_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_text_ttext(txt_converted, temp_converted) + result = _lib.left_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def left_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_tfloat_float(temp_converted, d) + s_converted = _ffi.cast("const Span *", s) + result = _lib.left_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": +def left_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.tne_tpoint_point(temp_converted, gs_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.left_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tne_tint_int(temp_converted, i) +def left_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.left_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tne_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def overafter_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.tne_ttext_text(temp_converted, txt_converted) + result = _lib.overafter_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_spans(temp: "const Temporal *") -> "Tuple['Span *', 'int']": +def overafter_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_spans(temp_converted, count) + s_converted = _ffi.cast("const Span *", s) + result = _lib.overafter_temporal_tstzspan(temp_converted, s_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_split_each_n_spans( - temp: "const Temporal *", elem_count: int -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count) +def overafter_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.overafter_temporal_temporal(temp1_converted, temp2_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_split_n_spans( - temp: "const Temporal *", span_count: int -) -> "Tuple['Span *', 'int']": +def overafter_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_split_n_spans(temp_converted, span_count, count) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.overafter_tnumber_tbox(temp_converted, box_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_tboxes(temp: "const Temporal *") -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnumber_tboxes(temp_converted, count) +def overafter_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.overafter_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_split_each_n_tboxes( - temp: "const Temporal *", elem_count: int -) -> "Tuple['TBox *', 'int']": +def overafter_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count) + result = _lib.overafter_tstzspan_temporal(s_converted, temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_split_n_tboxes( - temp: "const Temporal *", box_count: int -) -> "Tuple['TBox *', 'int']": +def overbefore_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count) + result = _lib.overbefore_tbox_tnumber(box_converted, temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_stboxes(temp: "const Temporal *") -> "Tuple['STBox *', 'int']": +def overbefore_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tpoint_stboxes(temp_converted, count) + s_converted = _ffi.cast("const Span *", s) + result = _lib.overbefore_temporal_tstzspan(temp_converted, s_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_space_boxes( - temp: "const Temporal *", - xsize: float, - ysize: float, - zsize: float, - sorigin: "const GSERIALIZED *", - bitmatrix: bool, - border_inc: bool, -) -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - count = _ffi.new("int *") - result = _lib.tpoint_space_boxes( - temp_converted, - xsize, - ysize, - zsize, - sorigin_converted, - bitmatrix, - border_inc, - count, - ) +def overbefore_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.overbefore_temporal_temporal(temp1_converted, temp2_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_space_time_boxes( - temp: "const Temporal *", - xsize: float, - ysize: float, - zsize: float, - duration: "const Interval *", - sorigin: "const GSERIALIZED *", - torigin: int, - bitmatrix: bool, - border_inc: bool, -) -> "Tuple['STBox *', 'int']": +def overbefore_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tpoint_space_time_boxes( - temp_converted, - xsize, - ysize, - zsize, - duration_converted, - sorigin_converted, - torigin_converted, - bitmatrix, - border_inc, - count, - ) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.overbefore_tnumber_tbox(temp_converted, box_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_split_each_n_stboxes( - temp: "const Temporal *", elem_count: int -) -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tpoint_split_each_n_stboxes(temp_converted, elem_count, count) +def overbefore_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.overbefore_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_split_n_stboxes( - temp: "const Temporal *", box_count: int -) -> "Tuple['STBox *', 'int']": +def overbefore_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tpoint_split_n_stboxes(temp_converted, box_count, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def geo_split_each_n_gboxes( - gs: "const GSERIALIZED *", elem_count: int -) -> "Tuple['GBOX *', 'int']": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - count = _ffi.new("int *") - result = _lib.geo_split_each_n_gboxes(gs_converted, elem_count, count) + result = _lib.overbefore_tstzspan_temporal(s_converted, temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def geo_split_n_gboxes( - gs: "const GSERIALIZED *", box_count: int -) -> "Tuple['GBOX *', 'int']": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - count = _ffi.new("int *") - result = _lib.geo_split_n_gboxes(gs_converted, box_count, count) +def overleft_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.overleft_numspan_tnumber(s_converted, temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def adjacent_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overleft_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.adjacent_numspan_tnumber(s_converted, temp_converted) + result = _lib.overleft_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def overleft_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.adjacent_stbox_tpoint(box_converted, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.overleft_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def overleft_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.adjacent_tbox_tnumber(box_converted, temp_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.overleft_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_temporal_temporal( +def overleft_tnumber_tnumber( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.adjacent_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.overleft_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) +def overright_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": s_converted = _ffi.cast("const Span *", s) - result = _lib.adjacent_temporal_tstzspan(temp_converted, s_converted) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.overright_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overright_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.adjacent_tnumber_numspan(temp_converted, s_converted) + result = _lib.overright_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def overright_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.adjacent_tnumber_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def adjacent_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.adjacent_tnumber_tnumber(temp1_converted, temp2_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.overright_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overright_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.adjacent_tpoint_stbox(temp_converted, box_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.overright_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tpoint_tpoint( +def overright_tnumber_tnumber( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.adjacent_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.overright_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def right_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.adjacent_tstzspan_temporal(s_converted, temp_converted) + result = _lib.right_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def right_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contained_numspan_tnumber(s_converted, temp_converted) + result = _lib.right_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def right_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contained_stbox_tpoint(box_converted, temp_converted) + s_converted = _ffi.cast("const Span *", s) + result = _lib.right_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def right_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contained_tbox_tnumber(box_converted, temp_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.right_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contained_temporal_temporal( +def right_tnumber_tnumber( temp1: "const Temporal *", temp2: "const Temporal *" ) -> "bool": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.contained_temporal_temporal(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def contained_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.contained_temporal_tstzspan(temp_converted, s_converted) + result = _lib.right_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def tand_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.contained_tnumber_numspan(temp_converted, s_converted) + result = _lib.tand_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def tand_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.contained_tnumber_tbox(temp_converted, box_converted) + result = _lib.tand_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_tnumber( +def tand_tbool_tbool( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.contained_tnumber_tnumber(temp1_converted, temp2_converted) + result = _lib.tand_tbool_tbool(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tbool_when_true(temp: "const Temporal *") -> "SpanSet *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.contained_tpoint_stbox(temp_converted, box_converted) + result = _lib.tbool_when_true(temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.contained_tpoint_tpoint(temp1_converted, temp2_converted) +def tnot_tbool(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tnot_tbool(temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def tor_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contained_tstzspan_temporal(s_converted, temp_converted) + result = _lib.tor_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def tor_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contains_numspan_tnumber(s_converted, temp_converted) + result = _lib.tor_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def contains_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contains_stbox_tpoint(box_converted, temp_converted) +def tor_tbool_tbool( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.tor_tbool_tbool(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contains_tbox_tnumber(box_converted, temp_converted) +def add_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.add_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def contains_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.contains_temporal_tstzspan(temp_converted, s_converted) +def add_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.add_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def contains_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.contains_temporal_temporal(temp1_converted, temp2_converted) +def add_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.add_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.contains_tnumber_numspan(temp_converted, s_converted) +def add_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.add_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.contains_tnumber_tbox(temp_converted, box_converted) +def add_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) + result = _lib.add_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.contains_tnumber_tnumber(temp1_converted, temp2_converted) +def div_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.div_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.contains_tpoint_stbox(temp_converted, box_converted) +def div_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.div_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.contains_tpoint_tpoint(temp1_converted, temp2_converted) +def div_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.div_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.contains_tstzspan_temporal(s_converted, temp_converted) +def div_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.div_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def overlaps_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overlaps_numspan_tnumber(s_converted, temp_converted) +def div_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) + result = _lib.div_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overlaps_stbox_tpoint(box_converted, temp_converted) +def mult_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.mult_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overlaps_tbox_tnumber(box_converted, temp_converted) +def mult_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.mult_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overlaps_temporal_temporal(temp1_converted, temp2_converted) +def mult_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.mult_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def overlaps_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overlaps_temporal_tstzspan(temp_converted, s_converted) +def mult_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.mult_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overlaps_tnumber_numspan(temp_converted, s_converted) +def mult_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) + result = _lib.mult_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.overlaps_tnumber_tbox(temp_converted, box_converted) +def sub_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.sub_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overlaps_tnumber_tnumber(temp1_converted, temp2_converted) +def sub_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.sub_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overlaps_tpoint_stbox(temp_converted, box_converted) +def sub_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.sub_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def overlaps_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overlaps_tpoint_tpoint(temp1_converted, temp2_converted) +def sub_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) + result = _lib.sub_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def overlaps_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def sub_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) + result = _lib.sub_tnumber_tnumber(tnumber1_converted, tnumber2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_derivative(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overlaps_tstzspan_temporal(s_converted, temp_converted) + result = _lib.temporal_derivative(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def tfloat_exp(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.same_numspan_tnumber(s_converted, temp_converted) + result = _lib.tfloat_exp(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tfloat_ln(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.same_stbox_tpoint(box_converted, temp_converted) + result = _lib.tfloat_ln(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def tfloat_log10(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.same_tbox_tnumber(box_converted, temp_converted) + result = _lib.tfloat_log10(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.same_temporal_temporal(temp1_converted, temp2_converted) +def tnumber_abs(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tnumber_abs(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.same_temporal_tstzspan(temp_converted, s_converted) +def float_angular_difference(degrees1: float, degrees2: float) -> "double": + result = _lib.float_angular_difference(degrees1, degrees2) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def tnumber_angular_difference(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.same_tnumber_numspan(temp_converted, s_converted) + result = _lib.tnumber_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def tnumber_delta_value(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.same_tnumber_tbox(temp_converted, box_converted) + result = _lib.tnumber_delta_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.same_tnumber_tnumber(temp1_converted, temp2_converted) +def textcat_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": + txt_converted = cstring2text(txt) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.textcat_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def textcat_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.same_tpoint_stbox(temp_converted, box_converted) + txt_converted = cstring2text(txt) + result = _lib.textcat_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def same_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def textcat_ttext_ttext( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.same_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def same_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.same_tstzspan_temporal(s_converted, temp_converted) + result = _lib.textcat_ttext_ttext(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def above_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def ttext_initcap(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.above_stbox_tpoint(box_converted, temp_converted) + result = _lib.ttext_initcap(temp_converted) _check_error() return result if result != _ffi.NULL else None -def above_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def ttext_upper(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.above_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def above_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.above_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.ttext_upper(temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def ttext_lower(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.after_stbox_tpoint(box_converted, temp_converted) + result = _lib.ttext_lower(temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def tdistance_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.after_tbox_tnumber(box_converted, temp_converted) + result = _lib.tdistance_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def after_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def tdistance_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.after_temporal_tstzspan(temp_converted, s_converted) + result = _lib.tdistance_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def after_temporal_temporal( +def tdistance_tnumber_tnumber( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": +) -> "Temporal *": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.after_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.tdistance_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.after_tnumber_tbox(temp_converted, box_converted) +def nad_tboxfloat_tboxfloat(box1: "const TBox *", box2: "const TBox *") -> "double": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.nad_tboxfloat_tboxfloat(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.after_tnumber_tnumber(temp1_converted, temp2_converted) +def nad_tboxint_tboxint(box1: "const TBox *", box2: "const TBox *") -> "int": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + result = _lib.nad_tboxint_tboxint(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def nad_tfloat_float(temp: "const Temporal *", d: float) -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.after_tpoint_stbox(temp_converted, box_converted) + result = _lib.nad_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def after_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def nad_tfloat_tfloat(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.after_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.nad_tfloat_tfloat(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def nad_tfloat_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.after_tstzspan_temporal(s_converted, temp_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.nad_tfloat_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def back_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def nad_tint_int(temp: "const Temporal *", i: int) -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.back_stbox_tpoint(box_converted, temp_converted) + result = _lib.nad_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def back_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def nad_tint_tbox(temp: "const Temporal *", box: "const TBox *") -> "int": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.back_tpoint_stbox(temp_converted, box_converted) + box_converted = _ffi.cast("const TBox *", box) + result = _lib.nad_tint_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def back_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def nad_tint_tint(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.back_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.nad_tint_tint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def before_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tbool_tand_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.before_stbox_tpoint(box_converted, temp_converted) + result = _lib.tbool_tand_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def tbool_tor_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.before_tbox_tnumber(box_converted, temp_converted) + result = _lib.tbool_tor_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def temporal_extent_transfn(s: "Span *", temp: "const Temporal *") -> "Span *": + s_converted = _ffi.cast("Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.before_temporal_tstzspan(temp_converted, s_converted) + result = _lib.temporal_extent_transfn(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.before_temporal_temporal(temp1_converted, temp2_converted) +def temporal_tagg_finalfn(state: "SkipList *") -> "Temporal *": + state_converted = _ffi.cast("SkipList *", state) + result = _lib.temporal_tagg_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def before_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def temporal_tcount_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.before_tnumber_tbox(temp_converted, box_converted) + result = _lib.temporal_tcount_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.before_tnumber_tnumber(temp1_converted, temp2_converted) +def tfloat_tmax_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tfloat_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tfloat_tmin_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.before_tpoint_stbox(temp_converted, box_converted) + result = _lib.tfloat_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.before_tpoint_tpoint(temp1_converted, temp2_converted) +def tfloat_tsum_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tfloat_tsum_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def tfloat_wmax_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.before_tstzspan_temporal(s_converted, temp_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tfloat_wmax_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def below_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tfloat_wmin_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.below_stbox_tpoint(box_converted, temp_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tfloat_wmin_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def below_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tfloat_wsum_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.below_tpoint_stbox(temp_converted, box_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tfloat_wsum_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def below_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.below_tpoint_tpoint(temp1_converted, temp2_converted) +def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.timestamptz_tcount_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def front_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tint_tmax_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.front_stbox_tpoint(box_converted, temp_converted) + result = _lib.tint_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def front_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tint_tmin_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.front_tpoint_stbox(temp_converted, box_converted) + result = _lib.tint_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def front_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.front_tpoint_tpoint(temp1_converted, temp2_converted) +def tint_tsum_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tint_tsum_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tint_wmax_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.left_stbox_tpoint(box_converted, temp_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tint_wmax_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def left_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def tint_wmin_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.left_tbox_tnumber(box_converted, temp_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tint_wmin_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def left_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def tint_wsum_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.left_numspan_tnumber(s_converted, temp_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tint_wsum_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def tnumber_extent_transfn( + box: "Optional['TBox *']", temp: "const Temporal *" +) -> "TBox *": + box_converted = _ffi.cast("TBox *", box) if box is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.left_tnumber_numspan(temp_converted, s_converted) + result = _lib.tnumber_extent_transfn(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.left_tnumber_tbox(temp_converted, box_converted) +def tnumber_tavg_finalfn(state: "SkipList *") -> "Temporal *": + state_converted = _ffi.cast("SkipList *", state) + result = _lib.tnumber_tavg_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.left_tnumber_tnumber(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def left_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tnumber_tavg_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.left_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def left_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.left_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.tnumber_tavg_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tnumber_wavg_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overabove_stbox_tpoint(box_converted, temp_converted) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tnumber_wavg_transfn( + state_converted, temp_converted, interv_converted + ) _check_error() return result if result != _ffi.NULL else None -def overabove_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overabove_tpoint_stbox(temp_converted, box_converted) +def tstzset_tcount_transfn( + state: "Optional['SkipList *']", s: "const Set *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + s_converted = _ffi.cast("const Set *", s) + result = _lib.tstzset_tcount_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overabove_tpoint_tpoint(temp1_converted, temp2_converted) +def tstzspan_tcount_transfn( + state: "Optional['SkipList *']", s: "const Span *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + s_converted = _ffi.cast("const Span *", s) + result = _lib.tstzspan_tcount_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overafter_stbox_tpoint(box_converted, temp_converted) +def tstzspanset_tcount_transfn( + state: "Optional['SkipList *']", ss: "const SpanSet *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tstzspanset_tcount_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def ttext_tmax_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overafter_tbox_tnumber(box_converted, temp_converted) + result = _lib.ttext_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def ttext_tmin_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overafter_temporal_tstzspan(temp_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overafter_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overafter_temporal_temporal(temp1_converted, temp2_converted) + result = _lib.ttext_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def temporal_simplify_dp( + temp: "const Temporal *", eps_dist: float, synchronized: bool +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.overafter_tnumber_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overafter_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overafter_tnumber_tnumber(temp1_converted, temp2_converted) + result = _lib.temporal_simplify_dp(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def overafter_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def temporal_simplify_max_dist( + temp: "const Temporal *", eps_dist: float, synchronized: bool +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overafter_tpoint_stbox(temp_converted, box_converted) + result = _lib.temporal_simplify_max_dist(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def overafter_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overafter_tpoint_tpoint(temp1_converted, temp2_converted) +def temporal_simplify_min_dist(temp: "const Temporal *", dist: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_simplify_min_dist(temp_converted, dist) _check_error() return result if result != _ffi.NULL else None -def overafter_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def temporal_simplify_min_tdelta( + temp: "const Temporal *", mint: "const Interval *" +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overafter_tstzspan_temporal(s_converted, temp_converted) + mint_converted = _ffi.cast("const Interval *", mint) + result = _lib.temporal_simplify_min_tdelta(temp_converted, mint_converted) _check_error() return result if result != _ffi.NULL else None -def overback_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def temporal_tprecision( + temp: "const Temporal *", duration: "const Interval *", origin: int +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overback_stbox_tpoint(box_converted, temp_converted) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + result = _lib.temporal_tprecision( + temp_converted, duration_converted, origin_converted + ) _check_error() return result if result != _ffi.NULL else None -def overback_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def temporal_tsample( + temp: "const Temporal *", + duration: "const Interval *", + origin: int, + interp: "interpType", +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overback_tpoint_stbox(temp_converted, box_converted) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.temporal_tsample( + temp_converted, duration_converted, origin_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def overback_tpoint_tpoint( +def temporal_dyntimewarp_distance( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": +) -> "double": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overback_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overbefore_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overbefore_stbox_tpoint(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overbefore_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overbefore_tbox_tnumber(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overbefore_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overbefore_temporal_tstzspan(temp_converted, s_converted) + result = _lib.temporal_dyntimewarp_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_temporal_temporal( +def temporal_dyntimewarp_path( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": +) -> "Tuple['Match *', 'int']": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overbefore_temporal_temporal(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overbefore_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.overbefore_tnumber_tbox(temp_converted, box_converted) + count = _ffi.new("int *") + result = _lib.temporal_dyntimewarp_path(temp1_converted, temp2_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overbefore_tnumber_tnumber( +def temporal_frechet_distance( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": +) -> "double": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overbefore_tnumber_tnumber(temp1_converted, temp2_converted) + result = _lib.temporal_frechet_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overbefore_tpoint_stbox(temp_converted, box_converted) +def temporal_frechet_path( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Tuple['Match *', 'int']": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + count = _ffi.new("int *") + result = _lib.temporal_frechet_path(temp1_converted, temp2_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overbefore_tpoint_tpoint( +def temporal_hausdorff_distance( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": +) -> "double": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overbefore_tpoint_tpoint(temp1_converted, temp2_converted) + result = _lib.temporal_hausdorff_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def temporal_time_bins( + temp: "const Temporal *", duration: "const Interval *", origin: int +) -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overbefore_tstzspan_temporal(s_converted, temp_converted) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + count = _ffi.new("int *") + result = _lib.temporal_time_bins( + temp_converted, duration_converted, origin_converted, count + ) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overbelow_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def temporal_time_split( + temp: "const Temporal *", duration: "const Interval *", torigin: int +) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overbelow_stbox_tpoint(box_converted, temp_converted) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + time_bins = _ffi.new("TimestampTz **") + count = _ffi.new("int *") + result = _lib.temporal_time_split( + temp_converted, duration_converted, torigin_converted, time_bins, count + ) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, time_bins[0], count[0] -def overbelow_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tfloat_time_boxes( + temp: "const Temporal *", duration: "const Interval *", torigin: int +) -> "Tuple['TBox *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overbelow_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overbelow_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overbelow_tpoint_tpoint(temp1_converted, temp2_converted) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tfloat_time_boxes( + temp_converted, duration_converted, torigin_converted, count + ) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overfront_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) +def tfloat_value_bins( + temp: "const Temporal *", vsize: float, vorigin: float +) -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overfront_stbox_tpoint(box_converted, temp_converted) + count = _ffi.new("int *") + result = _lib.tfloat_value_bins(temp_converted, vsize, vorigin, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overfront_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def tfloat_value_boxes( + temp: "const Temporal *", vsize: float, vorigin: float +) -> "Tuple['TBox *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overfront_tpoint_stbox(temp_converted, box_converted) + count = _ffi.new("int *") + result = _lib.tfloat_value_boxes(temp_converted, vsize, vorigin, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overfront_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overfront_tpoint_tpoint(temp1_converted, temp2_converted) +def tfloat_value_split( + temp: "const Temporal *", size: float, origin: float, bins: "double **" +) -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + bins_converted = [_ffi.cast("double *", x) for x in bins] + count = _ffi.new("int *") + result = _lib.tfloat_value_split( + temp_converted, size, origin, bins_converted, count + ) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def overleft_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overleft_numspan_tnumber(s_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overleft_stbox_tpoint(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overleft_tbox_tnumber(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overleft_tnumber_numspan(temp_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.overleft_tnumber_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overleft_tnumber_tnumber(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overleft_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overleft_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overleft_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overright_numspan_tnumber(s_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overright_stbox_tpoint(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.overright_tbox_tnumber(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overright_tnumber_numspan(temp_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.overright_tnumber_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overright_tnumber_tnumber(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.overright_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def overright_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.overright_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.right_numspan_tnumber(s_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_stbox_tpoint(box: "const STBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const STBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.right_stbox_tpoint(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.right_tbox_tnumber(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.right_tnumber_numspan(temp_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.right_tnumber_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.right_tnumber_tnumber(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.right_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def right_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.right_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tand_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tand_bool_tbool(b, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tand_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tand_tbool_bool(temp_converted, b) - _check_error() - return result if result != _ffi.NULL else None - - -def tand_tbool_tbool( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tand_tbool_tbool(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tbool_when_true(temp: "const Temporal *") -> "SpanSet *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_when_true(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnot_tbool(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnot_tbool(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tor_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tor_bool_tbool(b, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tor_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tor_tbool_bool(temp_converted, b) - _check_error() - return result if result != _ffi.NULL else None - - -def tor_tbool_tbool( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tor_tbool_tbool(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def add_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.add_float_tfloat(d, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def add_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.add_int_tint(i, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def add_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.add_tfloat_float(tnumber_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def add_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.add_tint_int(tnumber_converted, i) - _check_error() - return result if result != _ffi.NULL else None - - -def add_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) - result = _lib.add_tnumber_tnumber(tnumber1_converted, tnumber2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def div_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.div_float_tfloat(d, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def div_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.div_int_tint(i, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def div_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.div_tfloat_float(tnumber_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def div_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.div_tint_int(tnumber_converted, i) - _check_error() - return result if result != _ffi.NULL else None - - -def div_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) - result = _lib.div_tnumber_tnumber(tnumber1_converted, tnumber2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def mult_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.mult_float_tfloat(d, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def mult_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.mult_int_tint(i, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def mult_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.mult_tfloat_float(tnumber_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def mult_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.mult_tint_int(tnumber_converted, i) - _check_error() - return result if result != _ffi.NULL else None - - -def mult_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) - result = _lib.mult_tnumber_tnumber(tnumber1_converted, tnumber2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def sub_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.sub_float_tfloat(d, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def sub_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.sub_int_tint(i, tnumber_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def sub_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.sub_tfloat_float(tnumber_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def sub_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) - result = _lib.sub_tint_int(tnumber_converted, i) - _check_error() - return result if result != _ffi.NULL else None - - -def sub_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) - result = _lib.sub_tnumber_tnumber(tnumber1_converted, tnumber2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_derivative(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_derivative(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_abs(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_abs(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_angular_difference(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_angular_difference(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_delta_value(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_delta_value(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def textcat_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": - txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.textcat_text_ttext(txt_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def textcat_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - txt_converted = cstring2text(txt) - result = _lib.textcat_ttext_text(temp_converted, txt_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def textcat_ttext_ttext( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.textcat_ttext_ttext(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ttext_upper(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_upper(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ttext_lower(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_lower(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ttext_initcap(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_initcap(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def distance_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.distance_tfloat_float(temp_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def distance_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.distance_tint_int(temp_converted, i) - _check_error() - return result if result != _ffi.NULL else None - - -def distance_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.distance_tnumber_tnumber(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def distance_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.distance_tpoint_point(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def distance_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.distance_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_stbox_geo(box: "const STBox *", gs: "const GSERIALIZED *") -> "double": - box_converted = _ffi.cast("const STBox *", box) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.nad_stbox_geo(box_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "double": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - result = _lib.nad_stbox_stbox(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.nad_tint_int(temp_converted, i) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tint_tbox(temp: "const Temporal *", box: "const TBox *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.nad_tint_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tint_tint(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.nad_tint_tint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tboxint_tboxint(box1: "const TBox *", box2: "const TBox *") -> "int": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.nad_tboxint_tboxint(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tfloat_float(temp: "const Temporal *", d: float) -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.nad_tfloat_float(temp_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tfloat_tfloat(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.nad_tfloat_tfloat(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tfloat_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.nad_tfloat_tbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tboxfloat_tboxfloat(box1: "const TBox *", box2: "const TBox *") -> "double": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.nad_tboxfloat_tboxfloat(box1_converted, box2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.nad_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.nad_tpoint_stbox(temp_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nad_tpoint_tpoint(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.nad_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nai_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.nai_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def nai_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "TInstant *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.nai_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def shortestline_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "GSERIALIZED *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.shortestline_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def shortestline_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "GSERIALIZED *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.shortestline_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def bearing_point_point( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" -) -> "double": - gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) - gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) - out_result = _ffi.new("double *") - result = _lib.bearing_point_point(gs1_converted, gs2_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def bearing_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *", invert: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.bearing_tpoint_point(temp_converted, gs_converted, invert) - _check_error() - return result if result != _ffi.NULL else None - - -def bearing_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.bearing_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geo_gboxes(gs: "const GSERIALIZED *") -> "Tuple['GBOX *', 'int']": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - count = _ffi.new("int *") - result = _lib.geo_gboxes(gs_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpoint_angular_difference(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_angular_difference(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_azimuth(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_azimuth(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_convex_hull(temp: "const Temporal *") -> "GSERIALIZED *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_convex_hull(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_cumulative_length(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_cumulative_length(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_direction(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("double *") - result = _lib.tpoint_direction(temp_converted, out_result) - _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None - - -def tpoint_get_x(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_get_x(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_get_y(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_get_y(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_get_z(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_get_z(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_is_simple(temp: "const Temporal *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_is_simple(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_length(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_length(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_speed(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_speed(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_srid(temp: "const Temporal *") -> "int32_t": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_srid(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_trajectory(temp: "const Temporal *") -> "GSERIALIZED *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_trajectory(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_twcentroid(temp: "const Temporal *") -> "GSERIALIZED *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_twcentroid(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geo_expand_space(gs: "const GSERIALIZED *", d: float) -> "STBox *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.geo_expand_space(gs_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def geomeas_to_tpoint(gs: "const GSERIALIZED *") -> "Temporal *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.geomeas_to_tpoint(gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpoint_to_tgeompoint(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgeogpoint_to_tgeompoint(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeompoint_to_tgeogpoint(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgeompoint_to_tgeogpoint(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_AsMVTGeom( - temp: "const Temporal *", - bounds: "const STBox *", - extent: "int32_t", - buffer: "int32_t", - clip_geom: bool, - gsarr: "GSERIALIZED **", - timesarr: "int64 **", -) -> "Tuple['bool', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - bounds_converted = _ffi.cast("const STBox *", bounds) - extent_converted = _ffi.cast("int32_t", extent) - buffer_converted = _ffi.cast("int32_t", buffer) - gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] - timesarr_converted = [_ffi.cast("int64 *", x) for x in timesarr] - count = _ffi.new("int *") - result = _lib.tpoint_AsMVTGeom( - temp_converted, - bounds_converted, - extent_converted, - buffer_converted, - clip_geom, - gsarr_converted, - timesarr_converted, - count, - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpoint_expand_space(temp: "const Temporal *", d: float) -> "STBox *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_expand_space(temp_converted, d) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_make_simple(temp: "const Temporal *") -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tpoint_make_simple(temp_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpoint_set_srid(temp: "const Temporal *", srid: "int32_t") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - srid_converted = _ffi.cast("int32_t", srid) - result = _lib.tpoint_set_srid(temp_converted, srid_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_tfloat_to_geomeas( - tpoint: "const Temporal *", measure: "const Temporal *", segmentize: bool -) -> "GSERIALIZED **": - tpoint_converted = _ffi.cast("const Temporal *", tpoint) - measure_converted = _ffi.cast("const Temporal *", measure) - out_result = _ffi.new("GSERIALIZED **") - result = _lib.tpoint_tfloat_to_geomeas( - tpoint_converted, measure_converted, segmentize, out_result - ) - _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None - - -def acontains_geo_tpoint(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.acontains_geo_tpoint(gs_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def adisjoint_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.adisjoint_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def adisjoint_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.adisjoint_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def adwithin_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", dist: float -) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.adwithin_tpoint_geo(temp_converted, gs_converted, dist) - _check_error() - return result if result != _ffi.NULL else None - - -def adwithin_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *", dist: float -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.adwithin_tpoint_tpoint(temp1_converted, temp2_converted, dist) - _check_error() - return result if result != _ffi.NULL else None - - -def aintersects_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.aintersects_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def aintersects_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.aintersects_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def atouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.atouches_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def econtains_geo_tpoint(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.econtains_geo_tpoint(gs_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def edisjoint_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.edisjoint_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def edisjoint_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.edisjoint_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def edwithin_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", dist: float -) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.edwithin_tpoint_geo(temp_converted, gs_converted, dist) - _check_error() - return result if result != _ffi.NULL else None - - -def edwithin_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *", dist: float -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.edwithin_tpoint_tpoint(temp1_converted, temp2_converted, dist) - _check_error() - return result if result != _ffi.NULL else None - - -def eintersects_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.eintersects_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def eintersects_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.eintersects_tpoint_tpoint(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def etouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.etouches_tpoint_geo(temp_converted, gs_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tcontains_geo_tpoint( - gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tcontains_geo_tpoint(gs_converted, temp_converted, restr, atvalue) - _check_error() - return result if result != _ffi.NULL else None - - -def tdisjoint_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.tdisjoint_tpoint_geo(temp_converted, gs_converted, restr, atvalue) - _check_error() - return result if result != _ffi.NULL else None - - -def tdwithin_tpoint_geo( - temp: "const Temporal *", - gs: "const GSERIALIZED *", - dist: float, - restr: bool, - atvalue: bool, -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.tdwithin_tpoint_geo( - temp_converted, gs_converted, dist, restr, atvalue - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tdwithin_tpoint_tpoint( - temp1: "const Temporal *", - temp2: "const Temporal *", - dist: float, - restr: bool, - atvalue: bool, -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tdwithin_tpoint_tpoint( - temp1_converted, temp2_converted, dist, restr, atvalue - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tintersects_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.tintersects_tpoint_geo(temp_converted, gs_converted, restr, atvalue) - _check_error() - return result if result != _ffi.NULL else None - - -def ttouches_tpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - result = _lib.ttouches_tpoint_geo(temp_converted, gs_converted, restr, atvalue) - _check_error() - return result if result != _ffi.NULL else None - - -def tbool_tand_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_tand_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tbool_tor_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tbool_tor_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_extent_transfn(s: "Span *", temp: "const Temporal *") -> "Span *": - s_converted = _ffi.cast("Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_extent_transfn(s_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_tagg_finalfn(state: "SkipList *") -> "Temporal *": - state_converted = _ffi.cast("SkipList *", state) - result = _lib.temporal_tagg_finalfn(state_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_tcount_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_tcount_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_tmax_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_tmin_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_tsum_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tfloat_tsum_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_wmax_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tfloat_wmax_transfn(state_converted, temp_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_wmin_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tfloat_wmin_transfn(state_converted, temp_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloat_wsum_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tfloat_wsum_transfn(state_converted, temp_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.timestamptz_tcount_transfn(state_converted, t_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tint_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_tmax_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tint_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_tmin_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tint_tsum_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tint_tsum_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tint_wmax_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tint_wmax_transfn(state_converted, temp_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tint_wmin_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tint_wmin_transfn(state_converted, temp_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tint_wsum_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tint_wsum_transfn(state_converted, temp_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_extent_transfn( - box: "Optional['TBox *']", temp: "const Temporal *" -) -> "TBox *": - box_converted = _ffi.cast("TBox *", box) if box is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_extent_transfn(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_tavg_finalfn(state: "SkipList *") -> "Temporal *": - state_converted = _ffi.cast("SkipList *", state) - result = _lib.tnumber_tavg_finalfn(state_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_tavg_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_tavg_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_wavg_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tnumber_wavg_transfn( - state_converted, temp_converted, interv_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_extent_transfn( - box: "Optional['STBox *']", temp: "const Temporal *" -) -> "STBox *": - box_converted = _ffi.cast("STBox *", box) if box is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_extent_transfn(box_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_tcentroid_finalfn(state: "SkipList *") -> "Temporal *": - state_converted = _ffi.cast("SkipList *", state) - result = _lib.tpoint_tcentroid_finalfn(state_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("Temporal *", temp) - result = _lib.tpoint_tcentroid_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzset_tcount_transfn( - state: "Optional['SkipList *']", s: "const Set *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - s_converted = _ffi.cast("const Set *", s) - result = _lib.tstzset_tcount_transfn(state_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzspan_tcount_transfn( - state: "Optional['SkipList *']", s: "const Span *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - s_converted = _ffi.cast("const Span *", s) - result = _lib.tstzspan_tcount_transfn(state_converted, s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzspanset_tcount_transfn( - state: "Optional['SkipList *']", ss: "const SpanSet *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tstzspanset_tcount_transfn(state_converted, ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ttext_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_tmax_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ttext_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ttext_tmin_transfn(state_converted, temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_simplify_dp( - temp: "const Temporal *", eps_dist: float, synchronized: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_simplify_dp(temp_converted, eps_dist, synchronized) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_simplify_max_dist( - temp: "const Temporal *", eps_dist: float, synchronized: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_simplify_max_dist(temp_converted, eps_dist, synchronized) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_simplify_min_dist(temp: "const Temporal *", dist: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_simplify_min_dist(temp_converted, dist) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_simplify_min_tdelta( - temp: "const Temporal *", mint: "const Interval *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - mint_converted = _ffi.cast("const Interval *", mint) - result = _lib.temporal_simplify_min_tdelta(temp_converted, mint_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_tprecision( - temp: "const Temporal *", duration: "const Interval *", origin: int -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - result = _lib.temporal_tprecision( - temp_converted, duration_converted, origin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_tsample( - temp: "const Temporal *", - duration: "const Interval *", - origin: int, - interp: "interpType", -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_tsample( - temp_converted, duration_converted, origin_converted, interp_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_dyntimewarp_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_dyntimewarp_distance(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_dyntimewarp_path( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Tuple['Match *', 'int']": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - count = _ffi.new("int *") - result = _lib.temporal_dyntimewarp_path(temp1_converted, temp2_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def temporal_frechet_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_frechet_distance(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temporal_frechet_path( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Tuple['Match *', 'int']": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - count = _ffi.new("int *") - result = _lib.temporal_frechet_path(temp1_converted, temp2_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def temporal_hausdorff_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.temporal_hausdorff_distance(temp1_converted, temp2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def bigint_get_bin(value: int, vsize: int, vorigin: int) -> "int64": - value_converted = _ffi.cast("int64", value) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) - result = _lib.bigint_get_bin(value_converted, vsize_converted, vorigin_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def bigintspan_bins( - s: "const Span *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspan_bins( - s_converted, vsize_converted, vorigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def bigintspanset_bins( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspanset_bins( - ss_converted, vsize_converted, vorigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def bigintspanset_value_spans( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspanset_value_spans( - ss_converted, vsize_converted, vorigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def date_get_bin( - d: "DateADT", duration: "const Interval *", torigin: "DateADT" -) -> "DateADT": - d_converted = _ffi.cast("DateADT", d) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) - result = _lib.date_get_bin(d_converted, duration_converted, torigin_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def datespan_bins( - s: "const Span *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespan_bins( - s_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def datespanset_bins( - ss: "const SpanSet *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespanset_bins( - ss_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def datespanset_time_spans( - ss: "const SpanSet *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespanset_time_spans( - ss_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def float_get_bin(value: float, vsize: float, vorigin: float) -> "double": - result = _lib.float_get_bin(value, vsize, vorigin) - _check_error() - return result if result != _ffi.NULL else None - - -def floatspan_bins( - s: "const Span *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - count = _ffi.new("int *") - result = _lib.floatspan_bins(s_converted, vsize, vorigin, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def floatspanset_bins( - ss: "const SpanSet *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def floatspanset_value_spans( - ss: "const SpanSet *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.floatspanset_value_spans(ss_converted, vsize, vorigin, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def int_get_bin(value: int, vsize: int, vorigin: int) -> "int": - result = _lib.int_get_bin(value, vsize, vorigin) - _check_error() - return result if result != _ffi.NULL else None - - -def intspan_bins( - s: "const Span *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - count = _ffi.new("int *") - result = _lib.intspan_bins(s_converted, vsize, vorigin, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def intspanset_bins( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def intspanset_value_spans( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.intspanset_value_spans(ss_converted, vsize, vorigin, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def timestamptz_get_bin( - t: int, duration: "const Interval *", torigin: int -) -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.timestamptz_get_bin( - t_converted, duration_converted, torigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzspan_bins( - s: "const Span *", duration: "const Interval *", origin: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - count = _ffi.new("int *") - result = _lib.tstzspan_bins( - s_converted, duration_converted, origin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tstzspanset_bins( - ss: "const SpanSet *", duration: "const Interval *", torigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tstzspanset_bins( - ss_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tstzspanset_time_spans( - ss: "const SpanSet *", duration: "const Interval *", torigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tstzspanset_time_spans( - ss_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def stbox_get_space_tile( - point: "const GSERIALIZED *", - xsize: float, - ysize: float, - zsize: float, - sorigin: "const GSERIALIZED *", -) -> "STBox *": - point_converted = _ffi.cast("const GSERIALIZED *", point) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - result = _lib.stbox_get_space_tile( - point_converted, xsize, ysize, zsize, sorigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_get_space_time_tile( - point: "const GSERIALIZED *", - t: int, - xsize: float, - ysize: float, - zsize: float, - duration: "const Interval *", - sorigin: "const GSERIALIZED *", - torigin: int, -) -> "STBox *": - point_converted = _ffi.cast("const GSERIALIZED *", point) - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.stbox_get_space_time_tile( - point_converted, - t_converted, - xsize, - ysize, - zsize, - duration_converted, - sorigin_converted, - torigin_converted, - ) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_get_time_tile( - t: int, duration: "const Interval *", torigin: int -) -> "STBox *": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.stbox_get_time_tile( - t_converted, duration_converted, torigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_space_tiles( - bounds: "const STBox *", - xsize: float, - ysize: float, - zsize: float, - sorigin: "const GSERIALIZED *", - border_inc: bool, -) -> "Tuple['STBox *', 'int']": - bounds_converted = _ffi.cast("const STBox *", bounds) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - count = _ffi.new("int *") - result = _lib.stbox_space_tiles( - bounds_converted, xsize, ysize, zsize, sorigin_converted, border_inc, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def stbox_space_time_tiles( - bounds: "const STBox *", - xsize: float, - ysize: float, - zsize: float, - duration: "Optional['const Interval *']", - sorigin: "const GSERIALIZED *", - torigin: int, - border_inc: bool, -) -> "Tuple['STBox *', 'int']": - bounds_converted = _ffi.cast("const STBox *", bounds) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.stbox_space_time_tiles( - bounds_converted, - xsize, - ysize, - zsize, - duration_converted, - sorigin_converted, - torigin_converted, - border_inc, - count, - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def stbox_time_tiles( - bounds: "const STBox *", +def tfloat_value_time_boxes( + temp: "const Temporal *", + vsize: float, duration: "const Interval *", + vorigin: float, torigin: int, - border_inc: bool, -) -> "Tuple['STBox *', 'int']": - bounds_converted = _ffi.cast("const STBox *", bounds) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.stbox_time_tiles( - bounds_converted, duration_converted, torigin_converted, border_inc, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def temporal_time_spans( - temp: "const Temporal *", duration: "const Interval *", origin: int -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - count = _ffi.new("int *") - result = _lib.temporal_time_spans( - temp_converted, duration_converted, origin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def temporal_time_split( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - time_bins = _ffi.new("TimestampTz **") - count = _ffi.new("int *") - result = _lib.temporal_time_split( - temp_converted, duration_converted, torigin_converted, time_bins, count - ) - _check_error() - return result if result != _ffi.NULL else None, time_bins[0], count[0] - - -def tfloat_value_spans( - temp: "const Temporal *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": +) -> "Tuple['TBox *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) count = _ffi.new("int *") - result = _lib.tfloat_value_spans(temp_converted, vsize, vorigin, count) + result = _lib.tfloat_value_time_boxes( + temp_converted, vsize, duration_converted, vorigin, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_split( - temp: "const Temporal *", vsize: float, vorigin: float -) -> "Tuple['Temporal **', 'double *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - value_bins = _ffi.new("double **") - count = _ffi.new("int *") - result = _lib.tfloat_value_split(temp_converted, vsize, vorigin, value_bins, count) - _check_error() - return result if result != _ffi.NULL else None, value_bins[0], count[0] - - def tfloat_value_time_split( temp: "const Temporal *", vsize: float, @@ -12639,43 +10168,6 @@ def tfloat_value_time_split( ) -def tfloatbox_get_time_tile( - t: int, duration: "const Interval *", torigin: int -) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tfloatbox_get_time_tile( - t_converted, duration_converted, torigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatbox_get_value_tile(value: float, vsize: float, vorigin: float) -> "TBox *": - result = _lib.tfloatbox_get_value_tile(value, vsize, vorigin) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatbox_get_value_time_tile( - value: float, - t: int, - vsize: float, - duration: "const Interval *", - vorigin: float, - torigin: int, -) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tfloatbox_get_value_time_tile( - value, t_converted, vsize, duration_converted, vorigin, torigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - def tfloatbox_time_tiles( box: "const TBox *", duration: "const Interval *", torigin: int ) -> "Tuple['TBox *', 'int']": @@ -12720,25 +10212,36 @@ def tfloatbox_value_time_tiles( return result if result != _ffi.NULL else None, count[0] -def timestamptz_get_bin( - timestamp: int, duration: "const Interval *", torigin: int -) -> "TimestampTz": - timestamp_converted = _ffi.cast("TimestampTz", timestamp) +def tint_time_boxes( + temp: "const Temporal *", duration: "const Interval *", torigin: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.timestamptz_get_bin( - timestamp_converted, duration_converted, torigin_converted + count = _ffi.new("int *") + result = _lib.tint_time_boxes( + temp_converted, duration_converted, torigin_converted, count ) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tint_value_spans( +def tint_value_bins( temp: "const Temporal *", vsize: int, vorigin: int ) -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) count = _ffi.new("int *") - result = _lib.tint_value_spans(temp_converted, vsize, vorigin, count) + result = _lib.tint_value_bins(temp_converted, vsize, vorigin, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tint_value_boxes( + temp: "const Temporal *", vsize: int, vorigin: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") + result = _lib.tint_value_boxes(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -12754,6 +10257,24 @@ def tint_value_split( return result if result != _ffi.NULL else None, value_bins[0], count[0] +def tint_value_time_boxes( + temp: "const Temporal *", + vsize: int, + duration: "const Interval *", + vorigin: int, + torigin: int, +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tint_value_time_boxes( + temp_converted, vsize, duration_converted, vorigin, torigin_converted, count + ) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + def tint_value_time_split( temp: "const Temporal *", size: int, @@ -12786,43 +10307,6 @@ def tint_value_time_split( ) -def tintbox_get_time_tile( - t: int, duration: "const Interval *", torigin: int -) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tintbox_get_time_tile( - t_converted, duration_converted, torigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tintbox_get_value_tile(value: int, vsize: int, vorigin: int) -> "TBox *": - result = _lib.tintbox_get_value_tile(value, vsize, vorigin) - _check_error() - return result if result != _ffi.NULL else None - - -def tintbox_get_value_time_tile( - value: int, - t: int, - vsize: int, - duration: "const Interval *", - vorigin: int, - torigin: int, -) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tintbox_get_value_time_tile( - value, t_converted, vsize, duration_converted, vorigin, torigin_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - def tintbox_time_tiles( box: "const TBox *", duration: "const Interval *", torigin: int ) -> "Tuple['TBox *', 'int']": @@ -12873,99 +10357,6 @@ def tintbox_value_time_tiles( return result if result != _ffi.NULL else None, count[0] -def tpoint_space_split( - temp: "const Temporal *", - xsize: float, - ysize: float, - zsize: float, - sorigin: "const GSERIALIZED *", - bitmatrix: bool, - border_inc: bool, -) -> "Tuple['Temporal **', 'GSERIALIZED ***', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - space_bins = _ffi.new("GSERIALIZED ***") - count = _ffi.new("int *") - result = _lib.tpoint_space_split( - temp_converted, - xsize, - ysize, - zsize, - sorigin_converted, - bitmatrix, - border_inc, - space_bins, - count, - ) - _check_error() - return result if result != _ffi.NULL else None, space_bins[0], count[0] - - -def tpoint_space_time_split( - temp: "const Temporal *", - xsize: float, - ysize: float, - zsize: float, - duration: "const Interval *", - sorigin: "const GSERIALIZED *", - torigin: int, - bitmatrix: bool, - border_inc: bool, -) -> "Tuple['Temporal **', 'GSERIALIZED ***', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - space_bins = _ffi.new("GSERIALIZED ***") - time_bins = _ffi.new("TimestampTz **") - count = _ffi.new("int *") - result = _lib.tpoint_space_time_split( - temp_converted, - xsize, - ysize, - zsize, - duration_converted, - sorigin_converted, - torigin_converted, - bitmatrix, - border_inc, - space_bins, - time_bins, - count, - ) - _check_error() - return ( - result if result != _ffi.NULL else None, - space_bins[0], - time_bins[0], - count[0], - ) - - -def tpoint_time_split( - temp: "const Temporal *", - duration: "const Interval *", - torigin: int, - border_inc: bool, - time_bins: "TimestampTz **", -) -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - time_bins_converted = [_ffi.cast("TimestampTz *", x) for x in time_bins] - count = _ffi.new("int *") - result = _lib.tpoint_time_split( - temp_converted, - duration_converted, - torigin_converted, - border_inc, - time_bins_converted, - count, - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - def temptype_subtype(subtype: "tempSubtype") -> "bool": subtype_converted = _ffi.cast("tempSubtype", subtype) result = _lib.temptype_subtype(subtype_converted) @@ -13090,13 +10481,6 @@ def meos_basetype(type: "meosType") -> "bool": return result if result != _ffi.NULL else None -def alpha_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.alpha_basetype(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tnumber_basetype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_basetype(type_converted) @@ -13111,16 +10495,16 @@ def alphanum_basetype(type: "meosType") -> "bool": return result if result != _ffi.NULL else None -def geo_basetype(type: "meosType") -> "bool": +def alphanum_temptype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.geo_basetype(type_converted) + result = _lib.alphanum_temptype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatial_basetype(type: "meosType") -> "bool": +def geo_basetype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.spatial_basetype(type_converted) + result = _lib.geo_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None @@ -13167,13 +10551,6 @@ def timeset_type(type: "meosType") -> "bool": return result if result != _ffi.NULL else None -def ensure_timeset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_timeset_type(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - def set_spantype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) result = _lib.set_spantype(type_converted) @@ -13244,9 +10621,23 @@ def span_type(type: "meosType") -> "bool": return result if result != _ffi.NULL else None -def span_bbox_type(type: "meosType") -> "bool": +def type_span_bbox(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.type_span_bbox(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def span_tbox_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.span_tbox_type(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ensure_span_tbox_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.span_bbox_type(type_converted) + result = _lib.ensure_span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None @@ -13286,202 +10677,273 @@ def timespan_type(type: "meosType") -> "bool": return result if result != _ffi.NULL else None -def ensure_timespan_type(type: "meosType") -> "bool": +def spanset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.spanset_type(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def timespanset_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_timespan_type(type_converted) + result = _lib.timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_type(type: "meosType") -> "bool": +def ensure_timespanset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.ensure_timespanset_type(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.temporal_type(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.temporal_basetype(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temptype_continuous(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.temptype_continuous(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def basetype_byvalue(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.basetype_byvalue(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def basetype_varlength(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.basetype_varlength(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def basetype_length(type: "meosType") -> "int16": + type_converted = _ffi.cast("meosType", type) + result = _lib.basetype_length(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def talphanum_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.talphanum_type(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def talpha_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) + result = _lib.talpha_type(type_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumber_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.spanset_type(type_converted) + result = _lib.tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspanset_type(type: "meosType") -> "bool": +def ensure_tnumber_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.numspanset_type(type_converted) + result = _lib.ensure_tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespanset_type(type: "meosType") -> "bool": +def ensure_tnumber_basetype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.timespanset_type(type_converted) + result = _lib.ensure_tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_timespanset_type(type: "meosType") -> "bool": +def tnumber_spantype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_timespanset_type(type_converted) + result = _lib.tnumber_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_type(type: "meosType") -> "bool": +def spatial_basetype(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.temporal_type(type_converted) + result = _lib.spatial_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_basetype(type: "meosType") -> "bool": +def tspatial_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.temporal_basetype(type_converted) + result = _lib.tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temptype_continuous(type: "meosType") -> "bool": +def ensure_tspatial_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.temptype_continuous(type_converted) + result = _lib.ensure_tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_byvalue(type: "meosType") -> "bool": +def tpoint_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.basetype_byvalue(type_converted) + result = _lib.tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_varlength(type: "meosType") -> "bool": +def ensure_tpoint_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.basetype_varlength(type_converted) + result = _lib.ensure_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_length(type: "meosType") -> "int16": +def tgeo_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.basetype_length(type_converted) + result = _lib.tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def talphanum_type(type: "meosType") -> "bool": +def ensure_tgeo_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.talphanum_type(type_converted) + result = _lib.ensure_tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def talpha_type(type: "meosType") -> "bool": +def tgeo_type_all(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.talpha_type(type_converted) + result = _lib.tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_type(type: "meosType") -> "bool": +def ensure_tgeo_type_all(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.tnumber_type(type_converted) + result = _lib.ensure_tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_type(type: "meosType") -> "bool": +def tgeometry_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_tnumber_type(type_converted) + result = _lib.tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_basetype(type: "meosType") -> "bool": +def ensure_tgeometry_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_tnumber_basetype(type_converted) + result = _lib.ensure_tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_settype(type: "meosType") -> "bool": +def tgeodetic_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.tnumber_settype(type_converted) + result = _lib.tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_spantype(type: "meosType") -> "bool": +def ensure_tgeodetic_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.tnumber_spantype(type_converted) + result = _lib.ensure_tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_spansettype(type: "meosType") -> "bool": +def ensure_tnumber_tpoint_type(type: "meosType") -> "bool": type_converted = _ffi.cast("meosType", type) - result = _lib.tnumber_spansettype(type_converted) + result = _lib.ensure_tnumber_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.tspatial_type(type_converted) +def SET_BBOX_PTR(s: "const Set *") -> "void *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.SET_BBOX_PTR(s_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tspatial_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_tspatial_type(type_converted) +def SET_OFFSETS_PTR(s: "const Set *") -> "size_t *": + s_converted = _ffi.cast("const Set *", s) + result = _lib.SET_OFFSETS_PTR(s_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.tspatial_basetype(type_converted) +def SET_VAL_N(s: "const Set *", index: int) -> "Datum": + s_converted = _ffi.cast("const Set *", s) + result = _lib.SET_VAL_N(s_converted, index) _check_error() return result if result != _ffi.NULL else None -def tgeo_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.tgeo_type(type_converted) +def SPANSET_SP_N(ss: "const SpanSet *", index: int) -> "const Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.SPANSET_SP_N(ss_converted, index) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_tgeo_type(type_converted) +def TSEQUENCE_OFFSETS_PTR(seq: "const TSequence *") -> "size_t *": + seq_converted = _ffi.cast("const TSequence *", seq) + result = _lib.TSEQUENCE_OFFSETS_PTR(seq_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_tgeo_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.ensure_tnumber_tgeo_type(type_converted) +def TSEQUENCE_INST_N(seq: "const TSequence *", index: int) -> "const TInstant *": + seq_converted = _ffi.cast("const TSequence *", seq) + result = _lib.TSEQUENCE_INST_N(seq_converted, index) _check_error() return result if result != _ffi.NULL else None -def gsl_get_generation_rng() -> "gsl_rng *": - result = _lib.gsl_get_generation_rng() +def TSEQUENCESET_OFFSETS_PTR(ss: "const TSequenceSet *") -> "size_t *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + result = _lib.TSEQUENCESET_OFFSETS_PTR(ss_converted) _check_error() return result if result != _ffi.NULL else None -def gsl_get_aggregation_rng() -> "gsl_rng *": - result = _lib.gsl_get_aggregation_rng() +def TSEQUENCESET_SEQ_N(ss: "const TSequenceSet *", index: int) -> "const TSequence *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + result = _lib.TSEQUENCESET_SEQ_N(ss_converted, index) _check_error() return result if result != _ffi.NULL else None -def proj_get_context() -> "PJ_CONTEXT *": - result = _lib.proj_get_context() +def gsl_get_generation_rng() -> "gsl_rng *": + result = _lib.gsl_get_generation_rng() _check_error() return result if result != _ffi.NULL else None -def datum_floor(d: "Datum") -> "Datum": - d_converted = _ffi.cast("Datum", d) - result = _lib.datum_floor(d_converted) +def gsl_get_aggregation_rng() -> "gsl_rng *": + result = _lib.gsl_get_aggregation_rng() _check_error() return result if result != _ffi.NULL else None @@ -13501,9 +10963,17 @@ def datum_degrees(d: "Datum", normalize: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def datum_radians(d: "Datum") -> "Datum": +def datum_float_round(value: "Datum", size: "Datum") -> "Datum": + value_converted = _ffi.cast("Datum", value) + size_converted = _ffi.cast("Datum", size) + result = _lib.datum_float_round(value_converted, size_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_floor(d: "Datum") -> "Datum": d_converted = _ffi.cast("Datum", d) - result = _lib.datum_radians(d_converted) + result = _lib.datum_floor(d_converted) _check_error() return result if result != _ffi.NULL else None @@ -13525,6 +10995,21 @@ def datum_hash_extended(d: "Datum", basetype: "meosType", seed: int) -> "uint64" return result if result != _ffi.NULL else None +def datum_radians(d: "Datum") -> "Datum": + d_converted = _ffi.cast("Datum", d) + result = _lib.datum_radians(d_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def floatspan_round_set(s: "const Span *", maxdd: int) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + out_result = _ffi.new("Span *") + _lib.floatspan_round_set(s_converted, maxdd, out_result) + _check_error() + return out_result if out_result != _ffi.NULL else None + + def set_in(string: str, basetype: "meosType") -> "Set *": string_converted = string.encode("utf-8") basetype_converted = _ffi.cast("meosType", basetype) @@ -13573,13 +11058,6 @@ def spanset_out(ss: "const SpanSet *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def set_cp(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_cp(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def set_make( values: "const Datum *", count: int, basetype: "meosType", order: bool ) -> "Set *": @@ -13616,13 +11094,6 @@ def set_make_free( return result if result != _ffi.NULL else None -def span_cp(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.span_cp(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - def span_make( lower: "Datum", upper: "Datum", @@ -13666,13 +11137,6 @@ def span_set( _check_error() -def spanset_cp(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_cp(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - def spanset_make_exp( spans: "Span *", count: int, maxcount: int, normalize: bool, order: bool ) -> "SpanSet *": @@ -13691,69 +11155,6 @@ def spanset_make_free( return result if result != _ffi.NULL else None -def dateset_tstzset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.dateset_tstzset(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def datespan_tstzspan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.datespan_tstzspan(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def datespanset_tstzspanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.datespanset_tstzspanset(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def floatset_intset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_intset(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def floatspan_intspan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.floatspan_intspan(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def floatspanset_intspanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.floatspanset_intspanset(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def intset_floatset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.intset_floatset(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def intspan_floatspan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.intspan_floatspan(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def intspanset_floatspanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.intspanset_floatspanset(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - def set_span(s: "const Set *") -> "Span *": s_converted = _ffi.cast("const Set *", s) result = _lib.set_span(s_converted) @@ -13768,34 +11169,6 @@ def set_spanset(s: "const Set *") -> "SpanSet *": return result if result != _ffi.NULL else None -def span_spanset(s: "const Span *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.span_spanset(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzset_dateset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.tstzset_dateset(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzspan_datespan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.tstzspan_datespan(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tstzspanset_datespanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tstzspanset_datespanset(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - def value_set_span(value: "Datum", basetype: "meosType", s: "Span *") -> None: value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) @@ -13804,26 +11177,26 @@ def value_set_span(value: "Datum", basetype: "meosType", s: "Span *") -> None: _check_error() -def value_to_set(d: "Datum", basetype: "meosType") -> "Set *": +def value_set(d: "Datum", basetype: "meosType") -> "Set *": d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_to_set(d_converted, basetype_converted) + result = _lib.value_set(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def value_to_span(d: "Datum", basetype: "meosType") -> "Span *": +def value_span(d: "Datum", basetype: "meosType") -> "Span *": d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_to_span(d_converted, basetype_converted) + result = _lib.value_span(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def value_to_spanset(d: "Datum", basetype: "meosType") -> "SpanSet *": +def value_spanset(d: "Datum", basetype: "meosType") -> "SpanSet *": d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_to_spanset(d_converted, basetype_converted) + result = _lib.value_spanset(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None @@ -13938,41 +11311,6 @@ def datespan_set_tstzspan(s1: "const Span *", s2: "Span *") -> None: _check_error() -def floatset_deg(s: "const Set *", normalize: bool) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_deg(s_converted, normalize) - _check_error() - return result if result != _ffi.NULL else None - - -def floatset_rad(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_rad(s_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def floatset_rnd(s: "const Set *", size: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.floatset_rnd(s_converted, size) - _check_error() - return result if result != _ffi.NULL else None - - -def floatspan_rnd(s: "const Span *", size: int) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - result = _lib.floatspan_rnd(s_converted, size) - _check_error() - return result if result != _ffi.NULL else None - - -def floatspanset_rnd(ss: "const SpanSet *", size: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.floatspanset_rnd(ss_converted, size) - _check_error() - return result if result != _ffi.NULL else None - - def floatspan_set_intspan(s1: "const Span *", s2: "Span *") -> None: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) @@ -14000,6 +11338,14 @@ def numset_shift_scale( return result if result != _ffi.NULL else None +def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) + result = _lib.numspan_expand(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + def numspan_shift_scale( s: "const Span *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool ) -> "Span *": @@ -14051,6 +11397,17 @@ def spanset_compact(ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None +def tbox_expand_value( + box: "const TBox *", value: "Datum", basetyp: "meosType" +) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + value_converted = _ffi.cast("Datum", value) + basetyp_converted = _ffi.cast("meosType", basetyp) + result = _lib.tbox_expand_value(box_converted, value_converted, basetyp_converted) + _check_error() + return result if result != _ffi.NULL else None + + def textcat_textset_text_int(s: "const Set *", txt: str, invert: bool) -> "Set *": s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) @@ -14061,57 +11418,9 @@ def textcat_textset_text_int(s: "const Set *", txt: str, invert: bool) -> "Set * def tstzspan_set_datespan(s1: "const Span *", s2: "Span *") -> None: s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("Span *", s2) - _lib.tstzspan_set_datespan(s1_converted, s2_converted) - _check_error() - - -def set_cmp_int(s1: "const Set *", s2: "const Set *") -> "int": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) - result = _lib.set_cmp_int(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def span_cmp_int(s1: "const Span *", s2: "const Span *") -> "int": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.span_cmp_int(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def span_eq_int(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.span_eq_int(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def spanset_cmp_int(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "int": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) - result = _lib.spanset_cmp_int(ss1_converted, ss2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def spanset_eq_int(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) - result = _lib.spanset_eq_int(ss1_converted, ss2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def adj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.adj_span_span(s1_converted, s2_converted) + s2_converted = _ffi.cast("Span *", s2) + _lib.tstzspan_set_datespan(s1_converted, s2_converted) _check_error() - return result if result != _ffi.NULL else None def adjacent_span_value(s: "const Span *", value: "Datum") -> "bool": @@ -14138,14 +11447,6 @@ def adjacent_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def cont_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.cont_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def contained_value_set(value: "Datum", s: "const Set *") -> "bool": value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) @@ -14202,14 +11503,6 @@ def ovadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def over_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.over_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def left_set_value(s: "const Set *", value: "Datum") -> "bool": s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) @@ -14258,14 +11551,6 @@ def left_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def lf_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.lf_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def lfnadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -14370,30 +11655,6 @@ def overright_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def ovlf_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.ovlf_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ovri_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.ovri_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def ri_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.ri_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def right_value_set(value: "Datum", s: "const Set *") -> "bool": value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) @@ -14575,9 +11836,9 @@ def super_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": return result if result != _ffi.NULL else None -def union_set_value(s: "const Set *", value: "const Datum") -> "Set *": +def union_set_value(s: "const Set *", value: "Datum") -> "Set *": s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("const Datum", value) + value_converted = _ffi.cast("Datum", value) result = _lib.union_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None @@ -14599,8 +11860,8 @@ def union_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_value_set(value: "const Datum", s: "const Set *") -> "Set *": - value_converted = _ffi.cast("const Datum", value) +def union_value_set(value: "Datum", s: "const Set *") -> "Set *": + value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.union_value_set(value_converted, s_converted) _check_error() @@ -14623,22 +11884,6 @@ def union_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def dist_set_set(s1: "const Set *", s2: "const Set *") -> "Datum": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) - result = _lib.dist_set_set(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def dist_span_span(s1: "const Span *", s2: "const Span *") -> "Datum": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.dist_span_span(s1_converted, s2_converted) - _check_error() - return result if result != _ffi.NULL else None - - def distance_set_set(s1: "const Set *", s2: "const Set *") -> "Datum": s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -14752,54 +11997,6 @@ def number_timestamptz_to_tbox(d: "Datum", basetype: "meosType", t: int) -> "TBo return result if result != _ffi.NULL else None -def stbox_cp(box: "const STBox *") -> "STBox *": - box_converted = _ffi.cast("const STBox *", box) - result = _lib.stbox_cp(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def stbox_set( - hasx: bool, - hasz: bool, - geodetic: bool, - srid: int, - xmin: float, - xmax: float, - ymin: float, - ymax: float, - zmin: float, - zmax: float, - s: "const Span *", - box: "STBox *", -) -> None: - srid_converted = _ffi.cast("int32", srid) - s_converted = _ffi.cast("const Span *", s) - box_converted = _ffi.cast("STBox *", box) - _lib.stbox_set( - hasx, - hasz, - geodetic, - srid_converted, - xmin, - xmax, - ymin, - ymax, - zmin, - zmax, - s_converted, - box_converted, - ) - _check_error() - - -def tbox_cp(box: "const TBox *") -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tbox_cp(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tbox_set(s: "const Span *", p: "const Span *", box: "TBox *") -> None: s_converted = _ffi.cast("const Span *", s) p_converted = _ffi.cast("const Span *", p) @@ -14808,49 +12005,12 @@ def tbox_set(s: "const Span *", p: "const Span *", box: "TBox *") -> None: _check_error() -def box3d_to_stbox(box: "const BOX3D *") -> "STBox *": - box_converted = _ffi.cast("const BOX3D *", box) - result = _lib.box3d_to_stbox(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def gbox_to_stbox(box: "const GBOX *") -> "STBox *": - box_converted = _ffi.cast("const GBOX *", box) - result = _lib.gbox_to_stbox(box_converted) - _check_error() - return result if result != _ffi.NULL else None - - def float_set_tbox(d: float, box: "TBox *") -> None: box_converted = _ffi.cast("TBox *", box) _lib.float_set_tbox(d, box_converted) _check_error() -def gbox_set_stbox(box: "const GBOX *", srid: int) -> "STBox *": - box_converted = _ffi.cast("const GBOX *", box) - out_result = _ffi.new("STBox *") - _lib.gbox_set_stbox(box_converted, srid, out_result) - _check_error() - return out_result if out_result != _ffi.NULL else None - - -def geo_set_stbox(gs: "const GSERIALIZED *", box: "STBox *") -> "bool": - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - box_converted = _ffi.cast("STBox *", box) - result = _lib.geo_set_stbox(gs_converted, box_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geoarr_set_stbox(values: "const Datum *", count: int, box: "STBox *") -> None: - values_converted = _ffi.cast("const Datum *", values) - box_converted = _ffi.cast("STBox *", box) - _lib.geoarr_set_stbox(values_converted, count, box_converted) - _check_error() - - def int_set_tbox(i: int, box: "TBox *") -> None: box_converted = _ffi.cast("TBox *", box) _lib.int_set_tbox(i, box_converted) @@ -14865,10 +12025,10 @@ def number_set_tbox(d: "Datum", basetype: "meosType", box: "TBox *") -> None: _check_error() -def number_to_tbox(value: "Datum", basetype: "meosType") -> "TBox *": +def number_tbox(value: "Datum", basetype: "meosType") -> "TBox *": value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.number_to_tbox(value_converted, basetype_converted) + result = _lib.number_tbox(value_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None @@ -14894,34 +12054,6 @@ def numspanset_set_tbox(ss: "const SpanSet *", box: "TBox *") -> None: _check_error() -def spatialset_set_stbox(set: "const Set *", box: "STBox *") -> None: - set_converted = _ffi.cast("const Set *", set) - box_converted = _ffi.cast("STBox *", box) - _lib.spatialset_set_stbox(set_converted, box_converted) - _check_error() - - -def stbox_set_box3d(box: "const STBox *", box3d: "BOX3D *") -> None: - box_converted = _ffi.cast("const STBox *", box) - box3d_converted = _ffi.cast("BOX3D *", box3d) - _lib.stbox_set_box3d(box_converted, box3d_converted) - _check_error() - - -def stbox_set_gbox(box: "const STBox *", gbox: "GBOX *") -> None: - box_converted = _ffi.cast("const STBox *", box) - gbox_converted = _ffi.cast("GBOX *", gbox) - _lib.stbox_set_gbox(box_converted, gbox_converted) - _check_error() - - -def timestamptz_set_stbox(t: int, box: "STBox *") -> None: - t_converted = _ffi.cast("TimestampTz", t) - box_converted = _ffi.cast("STBox *", box) - _lib.timestamptz_set_stbox(t_converted, box_converted) - _check_error() - - def timestamptz_set_tbox(t: int, box: "TBox *") -> None: t_converted = _ffi.cast("TimestampTz", t) box_converted = _ffi.cast("TBox *", box) @@ -14929,13 +12061,6 @@ def timestamptz_set_tbox(t: int, box: "TBox *") -> None: _check_error() -def tstzset_set_stbox(s: "const Set *", box: "STBox *") -> None: - s_converted = _ffi.cast("const Set *", s) - box_converted = _ffi.cast("STBox *", box) - _lib.tstzset_set_stbox(s_converted, box_converted) - _check_error() - - def tstzset_set_tbox(s: "const Set *", box: "TBox *") -> None: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("TBox *", box) @@ -14943,13 +12068,6 @@ def tstzset_set_tbox(s: "const Set *", box: "TBox *") -> None: _check_error() -def tstzspan_set_stbox(s: "const Span *", box: "STBox *") -> None: - s_converted = _ffi.cast("const Span *", s) - box_converted = _ffi.cast("STBox *", box) - _lib.tstzspan_set_stbox(s_converted, box_converted) - _check_error() - - def tstzspan_set_tbox(s: "const Span *", box: "TBox *") -> None: s_converted = _ffi.cast("const Span *", s) box_converted = _ffi.cast("TBox *", box) @@ -14957,13 +12075,6 @@ def tstzspan_set_tbox(s: "const Span *", box: "TBox *") -> None: _check_error() -def tstzspanset_set_stbox(ss: "const SpanSet *", box: "STBox *") -> None: - ss_converted = _ffi.cast("const SpanSet *", ss) - box_converted = _ffi.cast("STBox *", box) - _lib.tstzspanset_set_stbox(ss_converted, box_converted) - _check_error() - - def tstzspanset_set_tbox(ss: "const SpanSet *", box: "TBox *") -> None: ss_converted = _ffi.cast("const SpanSet *", ss) box_converted = _ffi.cast("TBox *", box) @@ -14984,13 +12095,6 @@ def tbox_shift_scale_value( return result if result != _ffi.NULL else None -def stbox_expand(box1: "const STBox *", box2: "STBox *") -> None: - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("STBox *", box2) - _lib.stbox_expand(box1_converted, box2_converted) - _check_error() - - def tbox_expand(box1: "const TBox *", box2: "TBox *") -> None: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("TBox *", box2) @@ -14998,17 +12102,6 @@ def tbox_expand(box1: "const TBox *", box2: "TBox *") -> None: _check_error() -def inter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *": - box1_converted = _ffi.cast("const STBox *", box1) - box2_converted = _ffi.cast("const STBox *", box2) - out_result = _ffi.new("STBox *") - result = _lib.inter_stbox_stbox(box1_converted, box2_converted, out_result) - _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None - - def inter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -15020,23 +12113,6 @@ def inter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": return None -def geoarr_as_text( - geoarr: "const Datum *", count: int, maxdd: int, extended: bool -) -> "char **": - geoarr_converted = _ffi.cast("const Datum *", geoarr) - result = _lib.geoarr_as_text(geoarr_converted, count, maxdd, extended) - _check_error() - return result if result != _ffi.NULL else None - - -def tboolinst_as_mfjson(inst: "const TInstant *", with_bbox: bool) -> str: - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tboolinst_as_mfjson(inst_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tboolinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.tboolinst_from_mfjson(mfjson_converted) @@ -15051,14 +12127,6 @@ def tboolinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tboolseq_as_mfjson(seq: "const TSequence *", with_bbox: bool) -> str: - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tboolseq_as_mfjson(seq_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tboolseq_from_mfjson(mfjson: "json_object *") -> "TSequence *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.tboolseq_from_mfjson(mfjson_converted) @@ -15074,14 +12142,6 @@ def tboolseq_in(string: str, interp: "interpType") -> "TSequence *": return result if result != _ffi.NULL else None -def tboolseqset_as_mfjson(ss: "const TSequenceSet *", with_bbox: bool) -> str: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tboolseqset_as_mfjson(ss_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tboolseqset_from_mfjson(mfjson: "json_object *") -> "TSequenceSet *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.tboolseqset_from_mfjson(mfjson_converted) @@ -15112,197 +12172,70 @@ def temporal_out(temp: "const Temporal *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def temparr_out(temparr: "const Temporal **", count: int, maxdd: int) -> "char **": - temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] - result = _lib.temparr_out(temparr_converted, count, maxdd) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatinst_as_mfjson( - inst: "const TInstant *", with_bbox: bool, precision: int -) -> str: - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tfloatinst_as_mfjson(inst_converted, with_bbox, precision) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def tfloatinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tfloatinst_from_mfjson(mfjson_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatinst_in(string: str) -> "TInstant *": - string_converted = string.encode("utf-8") - result = _lib.tfloatinst_in(string_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatseq_as_mfjson( - seq: "const TSequence *", with_bbox: bool, precision: int -) -> str: - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tfloatseq_as_mfjson(seq_converted, with_bbox, precision) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def tfloatseq_from_mfjson( - mfjson: "json_object *", interp: "interpType" -) -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_from_mfjson(mfjson_converted, interp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatseq_in(string: str, interp: "interpType") -> "TSequence *": - string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_in(string_converted, interp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatseqset_as_mfjson( - ss: "const TSequenceSet *", with_bbox: bool, precision: int -) -> str: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tfloatseqset_as_mfjson(ss_converted, with_bbox, precision) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def tfloatseqset_from_mfjson( - mfjson: "json_object *", interp: "interpType" -) -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseqset_from_mfjson(mfjson_converted, interp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tfloatseqset_in(string: str) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - result = _lib.tfloatseqset_in(string_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpointinst_from_mfjson(mfjson: "json_object *", srid: int) -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tgeogpointinst_from_mfjson(mfjson_converted, srid) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpointinst_in(string: str) -> "TInstant *": - string_converted = string.encode("utf-8") - result = _lib.tgeogpointinst_in(string_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpointseq_from_mfjson( - mfjson: "json_object *", srid: int, interp: "interpType" -) -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeogpointseq_from_mfjson(mfjson_converted, srid, interp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpointseq_in(string: str, interp: "interpType") -> "TSequence *": - string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeogpointseq_in(string_converted, interp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpointseqset_from_mfjson( - mfjson: "json_object *", srid: int, interp: "interpType" -) -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeogpointseqset_from_mfjson(mfjson_converted, srid, interp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeogpointseqset_in(string: str) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - result = _lib.tgeogpointseqset_in(string_converted) +def temparr_out(temparr: "const Temporal **", count: int, maxdd: int) -> "char **": + temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] + result = _lib.temparr_out(temparr_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def tgeompointinst_from_mfjson(mfjson: "json_object *", srid: int) -> "TInstant *": +def tfloatinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tgeompointinst_from_mfjson(mfjson_converted, srid) + result = _lib.tfloatinst_from_mfjson(mfjson_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointinst_in(string: str) -> "TInstant *": +def tfloatinst_in(string: str) -> "TInstant *": string_converted = string.encode("utf-8") - result = _lib.tgeompointinst_in(string_converted) + result = _lib.tfloatinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseq_from_mfjson( - mfjson: "json_object *", srid: int, interp: "interpType" +def tfloatseq_from_mfjson( + mfjson: "json_object *", interp: "interpType" ) -> "TSequence *": mfjson_converted = _ffi.cast("json_object *", mfjson) interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeompointseq_from_mfjson(mfjson_converted, srid, interp_converted) + result = _lib.tfloatseq_from_mfjson(mfjson_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseq_in(string: str, interp: "interpType") -> "TSequence *": +def tfloatseq_in(string: str, interp: "interpType") -> "TSequence *": string_converted = string.encode("utf-8") interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeompointseq_in(string_converted, interp_converted) + result = _lib.tfloatseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseqset_from_mfjson( - mfjson: "json_object *", srid: int, interp: "interpType" +def tfloatseqset_from_mfjson( + mfjson: "json_object *", interp: "interpType" ) -> "TSequenceSet *": mfjson_converted = _ffi.cast("json_object *", mfjson) interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeompointseqset_from_mfjson(mfjson_converted, srid, interp_converted) + result = _lib.tfloatseqset_from_mfjson(mfjson_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseqset_in(string: str) -> "TSequenceSet *": +def tfloatseqset_in(string: str) -> "TSequenceSet *": string_converted = string.encode("utf-8") - result = _lib.tgeompointseqset_in(string_converted) + result = _lib.tfloatseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None def tinstant_from_mfjson( - mfjson: "json_object *", isgeo: bool, srid: int, temptype: "meosType" + mfjson: "json_object *", spatial: bool, srid: "int32_t", temptype: "meosType" ) -> "TInstant *": mfjson_converted = _ffi.cast("json_object *", mfjson) + srid_converted = _ffi.cast("int32_t", srid) temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tinstant_from_mfjson( - mfjson_converted, isgeo, srid, temptype_converted + mfjson_converted, spatial, srid_converted, temptype_converted ) _check_error() return result if result != _ffi.NULL else None @@ -15324,14 +12257,6 @@ def tinstant_out(inst: "const TInstant *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def tintinst_as_mfjson(inst: "const TInstant *", with_bbox: bool) -> str: - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tintinst_as_mfjson(inst_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tintinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.tintinst_from_mfjson(mfjson_converted) @@ -15346,14 +12271,6 @@ def tintinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tintseq_as_mfjson(seq: "const TSequence *", with_bbox: bool) -> str: - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tintseq_as_mfjson(seq_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tintseq_from_mfjson(mfjson: "json_object *") -> "TSequence *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.tintseq_from_mfjson(mfjson_converted) @@ -15369,14 +12286,6 @@ def tintseq_in(string: str, interp: "interpType") -> "TSequence *": return result if result != _ffi.NULL else None -def tintseqset_as_mfjson(ss: "const TSequenceSet *", with_bbox: bool) -> str: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tintseqset_as_mfjson(ss_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tintseqset_from_mfjson(mfjson: "json_object *") -> "TSequenceSet *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.tintseqset_from_mfjson(mfjson_converted) @@ -15391,66 +12300,19 @@ def tintseqset_in(string: str) -> "TSequenceSet *": return result if result != _ffi.NULL else None -def tpointarr_as_text( - temparr: "const Temporal **", count: int, maxdd: int, extended: bool -) -> "char **": - temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] - result = _lib.tpointarr_as_text(temparr_converted, count, maxdd, extended) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointinst_as_mfjson( - inst: "const TInstant *", with_bbox: bool, precision: int, srs: str -) -> str: - inst_converted = _ffi.cast("const TInstant *", inst) - srs_converted = srs.encode("utf-8") - result = _lib.tpointinst_as_mfjson( - inst_converted, with_bbox, precision, srs_converted - ) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def tpointseq_as_mfjson( - seq: "const TSequence *", with_bbox: bool, precision: int, srs: str -) -> str: - seq_converted = _ffi.cast("const TSequence *", seq) - srs_converted = srs.encode("utf-8") - result = _lib.tpointseq_as_mfjson( - seq_converted, with_bbox, precision, srs_converted - ) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def tpointseqset_as_mfjson( - ss: "const TSequenceSet *", with_bbox: bool, precision: int, srs: str -) -> str: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - srs_converted = srs.encode("utf-8") - result = _lib.tpointseqset_as_mfjson( - ss_converted, with_bbox, precision, srs_converted - ) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def tsequence_from_mfjson( mfjson: "json_object *", - isgeo: bool, - srid: int, + spatial: bool, + srid: "int32_t", temptype: "meosType", interp: "interpType", ) -> "TSequence *": mfjson_converted = _ffi.cast("json_object *", mfjson) + srid_converted = _ffi.cast("int32_t", srid) temptype_converted = _ffi.cast("meosType", temptype) interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_from_mfjson( - mfjson_converted, isgeo, srid, temptype_converted, interp_converted + mfjson_converted, spatial, srid_converted, temptype_converted, interp_converted ) _check_error() return result if result != _ffi.NULL else None @@ -15477,16 +12339,17 @@ def tsequence_out(seq: "const TSequence *", maxdd: int) -> str: def tsequenceset_from_mfjson( mfjson: "json_object *", - isgeo: bool, - srid: int, + spatial: bool, + srid: "int32_t", temptype: "meosType", interp: "interpType", ) -> "TSequenceSet *": mfjson_converted = _ffi.cast("json_object *", mfjson) + srid_converted = _ffi.cast("int32_t", srid) temptype_converted = _ffi.cast("meosType", temptype) interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequenceset_from_mfjson( - mfjson_converted, isgeo, srid, temptype_converted, interp_converted + mfjson_converted, spatial, srid_converted, temptype_converted, interp_converted ) _check_error() return result if result != _ffi.NULL else None @@ -15513,14 +12376,6 @@ def tsequenceset_out(ss: "const TSequenceSet *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def ttextinst_as_mfjson(inst: "const TInstant *", with_bbox: bool) -> str: - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.ttextinst_as_mfjson(inst_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def ttextinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.ttextinst_from_mfjson(mfjson_converted) @@ -15535,14 +12390,6 @@ def ttextinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def ttextseq_as_mfjson(seq: "const TSequence *", with_bbox: bool) -> str: - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.ttextseq_as_mfjson(seq_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def ttextseq_from_mfjson(mfjson: "json_object *") -> "TSequence *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.ttextseq_from_mfjson(mfjson_converted) @@ -15558,14 +12405,6 @@ def ttextseq_in(string: str, interp: "interpType") -> "TSequence *": return result if result != _ffi.NULL else None -def ttextseqset_as_mfjson(ss: "const TSequenceSet *", with_bbox: bool) -> str: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.ttextseqset_as_mfjson(ss_converted, with_bbox) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - def ttextseqset_from_mfjson(mfjson: "json_object *") -> "TSequenceSet *": mfjson_converted = _ffi.cast("json_object *", mfjson) result = _lib.ttextseqset_from_mfjson(mfjson_converted) @@ -15588,13 +12427,6 @@ def temporal_from_mfjson(mfjson: str, temptype: "meosType") -> "Temporal *": return result if result != _ffi.NULL else None -def temporal_cp(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_cp(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - def temporal_from_base_temp( value: "Datum", temptype: "meosType", temp: "const Temporal *" ) -> "Temporal *": @@ -15633,57 +12465,34 @@ def tinstant_make_free(value: "Datum", temptype: "meosType", t: int) -> "TInstan return result if result != _ffi.NULL else None -def tpointseq_make_coords( - xcoords: "const double *", - ycoords: "const double *", - zcoords: "const double *", - times: int, - count: int, - srid: int, - geodetic: bool, - lower_inc: bool, - upper_inc: bool, - interp: "interpType", - normalize: bool, -) -> "TSequence *": - xcoords_converted = _ffi.cast("const double *", xcoords) - ycoords_converted = _ffi.cast("const double *", ycoords) - zcoords_converted = _ffi.cast("const double *", zcoords) - times_converted = _ffi.cast("const TimestampTz *", times) - srid_converted = _ffi.cast("int32", srid) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tpointseq_make_coords( - xcoords_converted, - ycoords_converted, - zcoords_converted, - times_converted, - count, - srid_converted, - geodetic, - lower_inc, - upper_inc, - interp_converted, - normalize, - ) +def tsequence_copy(seq: "const TSequence *") -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) + result = _lib.tsequence_copy(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_copy(seq: "const TSequence *") -> "TSequence *": +def tsequence_from_base_temp( + value: "Datum", temptype: "meosType", seq: "const TSequence *" +) -> "TSequence *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_copy(seq_converted) + result = _lib.tsequence_from_base_temp( + value_converted, temptype_converted, seq_converted + ) _check_error() return result if result != _ffi.NULL else None def tsequence_from_base_tstzset( - value: "Datum", temptype: "meosType", ss: "const Set *" + value: "Datum", temptype: "meosType", s: "const Set *" ) -> "TSequence *": value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) - ss_converted = _ffi.cast("const Set *", ss) + s_converted = _ffi.cast("const Set *", s) result = _lib.tsequence_from_base_tstzset( - value_converted, temptype_converted, ss_converted + value_converted, temptype_converted, s_converted ) _check_error() return result if result != _ffi.NULL else None @@ -15760,6 +12569,19 @@ def tseqsetarr_to_tseqset( return result if result != _ffi.NULL else None +def tsequenceset_from_base_temp( + value: "Datum", temptype: "meosType", ss: "const TSequenceSet *" +) -> "TSequenceSet *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + ss_converted = _ffi.cast("const TSequenceSet *", ss) + result = _lib.tsequenceset_from_base_temp( + value_converted, temptype_converted, ss_converted + ) + _check_error() + return result if result != _ffi.NULL else None + + def tsequenceset_from_base_tstzspanset( value: "Datum", temptype: "meosType", ss: "const SpanSet *", interp: "interpType" ) -> "TSequenceSet *": @@ -15813,13 +12635,6 @@ def tnumber_set_tbox(temp: "const Temporal *", box: "TBox *") -> None: _check_error() -def tnumber_span(temp: "const Temporal *") -> "Span *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnumber_span(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tnumberinst_set_tbox(inst: "const TInstant *", box: "TBox *") -> None: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("TBox *", box) @@ -15855,6 +12670,13 @@ def tsequenceset_set_tstzspan(ss: "const TSequenceSet *", s: "Span *") -> None: _check_error() +def temporal_end_inst(temp: "const Temporal *") -> "const TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_end_inst(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + def temporal_end_value(temp: "const Temporal *") -> "Datum": temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_value(temp_converted) @@ -15862,10 +12684,19 @@ def temporal_end_value(temp: "const Temporal *") -> "Datum": return result if result != _ffi.NULL else None -def temporal_insts(temp: "const Temporal *") -> "Tuple['const TInstant **', 'int']": +def temporal_inst_n(temp: "const Temporal *", n: int) -> "const TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_inst_n(temp_converted, n) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_instants_p( + temp: "const Temporal *", +) -> "Tuple['const TInstant **', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) count = _ffi.new("int *") - result = _lib.temporal_insts(temp_converted, count) + result = _lib.temporal_instants_p(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -15891,10 +12722,12 @@ def temporal_min_value(temp: "const Temporal *") -> "Datum": return result if result != _ffi.NULL else None -def temporal_seqs(temp: "const Temporal *") -> "Tuple['const TSequence **', 'int']": +def temporal_sequences_p( + temp: "const Temporal *", +) -> "Tuple['const TSequence **', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) count = _ffi.new("int *") - result = _lib.temporal_seqs(temp_converted, count) + result = _lib.temporal_sequences_p(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -15906,10 +12739,24 @@ def temporal_set_bbox(temp: "const Temporal *", box: "void *") -> None: _check_error() -def temporal_vals(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": +def temporal_start_inst(temp: "const Temporal *") -> "const TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_start_inst(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_start_value(temp: "const Temporal *") -> "Datum": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_start_value(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_values_p(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) count = _ffi.new("int *") - result = _lib.temporal_vals(temp_converted, count) + result = _lib.temporal_values_p(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -15969,9 +12816,9 @@ def tinstant_timestamps(inst: "const TInstant *") -> "Tuple['TimestampTz *', 'in return result if result != _ffi.NULL else None, count[0] -def tinstant_val(inst: "const TInstant *") -> "Datum": +def tinstant_value_p(inst: "const TInstant *") -> "Datum": inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_val(inst_converted) + result = _lib.tinstant_value_p(inst_converted) _check_error() return result if result != _ffi.NULL else None @@ -15994,10 +12841,10 @@ def tinstant_value_at_timestamptz(inst: "const TInstant *", t: int) -> "Datum *" return None -def tinstant_vals(inst: "const TInstant *") -> "Tuple['Datum *', 'int']": +def tinstant_values_p(inst: "const TInstant *") -> "Tuple['Datum *', 'int']": inst_converted = _ffi.cast("const TInstant *", inst) count = _ffi.new("int *") - result = _lib.tinstant_vals(inst_converted, count) + result = _lib.tinstant_values_p(inst_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -16051,9 +12898,9 @@ def tsequence_hash(seq: "const TSequence *") -> "uint32": return result if result != _ffi.NULL else None -def tsequence_insts(seq: "const TSequence *") -> "const TInstant **": +def tsequence_insts_p(seq: "const TSequence *") -> "const TInstant **": seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_insts(seq_converted) + result = _lib.tsequence_insts_p(seq_converted) _check_error() return result if result != _ffi.NULL else None @@ -16139,10 +12986,10 @@ def tsequence_value_at_timestamptz( return None -def tsequence_vals(seq: "const TSequence *") -> "Tuple['Datum *', 'int']": +def tsequence_values_p(seq: "const TSequence *") -> "Tuple['Datum *', 'int']": seq_converted = _ffi.cast("const TSequence *", seq) count = _ffi.new("int *") - result = _lib.tsequence_vals(seq_converted, count) + result = _lib.tsequence_values_p(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -16175,9 +13022,9 @@ def tsequenceset_inst_n(ss: "const TSequenceSet *", n: int) -> "const TInstant * return result if result != _ffi.NULL else None -def tsequenceset_insts(ss: "const TSequenceSet *") -> "const TInstant **": +def tsequenceset_insts_p(ss: "const TSequenceSet *") -> "const TInstant **": ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_insts(ss_converted) + result = _lib.tsequenceset_insts_p(ss_converted) _check_error() return result if result != _ffi.NULL else None @@ -16232,9 +13079,9 @@ def tsequenceset_segments(ss: "const TSequenceSet *") -> "Tuple['TSequence **', return result if result != _ffi.NULL else None, count[0] -def tsequenceset_seqs(ss: "const TSequenceSet *") -> "const TSequence **": +def tsequenceset_sequences_p(ss: "const TSequenceSet *") -> "const TSequence **": ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_seqs(ss_converted) + result = _lib.tsequenceset_sequences_p(ss_converted) _check_error() return result if result != _ffi.NULL else None @@ -16298,10 +13145,10 @@ def tsequenceset_value_n(ss: "const TSequenceSet *", n: int) -> "Datum *": return None -def tsequenceset_vals(ss: "const TSequenceSet *") -> "Tuple['Datum *', 'int']": +def tsequenceset_values_p(ss: "const TSequenceSet *") -> "Tuple['Datum *', 'int']": ss_converted = _ffi.cast("const TSequenceSet *", ss) count = _ffi.new("int *") - result = _lib.tsequenceset_vals(ss_converted, count) + result = _lib.tsequenceset_values_p(ss_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] @@ -16769,34 +13616,6 @@ def tsequenceset_merge_array( return result if result != _ffi.NULL else None -def tspatial_set_stbox(temp: "const Temporal *", box: "STBox *") -> None: - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("STBox *", box) - _lib.tspatial_set_stbox(temp_converted, box_converted) - _check_error() - - -def tpointinst_set_stbox(inst: "const TInstant *", box: "STBox *") -> None: - inst_converted = _ffi.cast("const TInstant *", inst) - box_converted = _ffi.cast("STBox *", box) - _lib.tpointinst_set_stbox(inst_converted, box_converted) - _check_error() - - -def tspatialseq_set_stbox(seq: "const TSequence *", box: "STBox *") -> None: - seq_converted = _ffi.cast("const TSequence *", seq) - box_converted = _ffi.cast("STBox *", box) - _lib.tspatialseq_set_stbox(seq_converted, box_converted) - _check_error() - - -def tspatialseqset_set_stbox(ss: "const TSequenceSet *", box: "STBox *") -> None: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - box_converted = _ffi.cast("STBox *", box) - _lib.tspatialseqset_set_stbox(ss_converted, box_converted) - _check_error() - - def tsequence_expand_bbox(seq: "TSequence *", inst: "const TInstant *") -> None: seq_converted = _ffi.cast("TSequence *", seq) inst_converted = _ffi.cast("const TInstant *", inst) @@ -17018,182 +13837,40 @@ def tnumber_restrict_spanset( def tnumberinst_restrict_span( inst: "const TInstant *", span: "const Span *", atfunc: bool ) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumberinst_restrict_spanset( - inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumberseqset_restrict_span( - ss: "const TSequenceSet *", span: "const Span *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumberseqset_restrict_spanset( - ss: "const TSequenceSet *", spanset: "const SpanSet *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - spanset_converted = _ffi.cast("const SpanSet *", spanset) - result = _lib.tnumberseqset_restrict_spanset( - ss_converted, spanset_converted, atfunc - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tnpoint_restrict_geom( - temp: "const Temporal *", - gs: "const GSERIALIZED *", - zspan: "const Span *", - atfunc: "const bool", -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - atfunc_converted = _ffi.cast("const bool", atfunc) - result = _lib.tnpoint_restrict_geom( - temp_converted, gs_converted, zspan_converted, atfunc_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tnpoint_restrict_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tnpoint_restrict_stbox( - temp_converted, box_converted, border_inc, atfunc - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_restrict_geom( - temp: "const Temporal *", - gs: "const GSERIALIZED *", - zspan: "const Span *", - atfunc: "const bool", -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - atfunc_converted = _ffi.cast("const bool", atfunc) - result = _lib.tpoint_restrict_geom( - temp_converted, gs_converted, zspan_converted, atfunc_converted - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_restrict_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tpoint_restrict_stbox( - temp_converted, box_converted, border_inc, atfunc - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointinst_restrict_geom( - inst: "const TInstant *", - gs: "const GSERIALIZED *", - zspan: "const Span *", - atfunc: bool, -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tpointinst_restrict_geom( - inst_converted, gs_converted, zspan_converted, atfunc - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointinst_restrict_stbox( - inst: "const TInstant *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tpointinst_restrict_stbox( - inst_converted, box_converted, border_inc, atfunc - ) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_restrict_geom( - seq: "const TSequence *", - gs: "const GSERIALIZED *", - zspan: "const Span *", - atfunc: bool, -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tpointseq_restrict_geom( - seq_converted, gs_converted, zspan_converted, atfunc - ) + inst_converted = _ffi.cast("const TInstant *", inst) + span_converted = _ffi.cast("const Span *", span) + result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tpointseq_restrict_stbox( - seq: "const TSequence *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tpointseq_restrict_stbox( - seq_converted, box_converted, border_inc, atfunc - ) +def tnumberinst_restrict_spanset( + inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_restrict_geom( - ss: "const TSequenceSet *", - gs: "const GSERIALIZED *", - zspan: "const Span *", - atfunc: bool, +def tnumberseqset_restrict_span( + ss: "const TSequenceSet *", span: "const Span *", atfunc: bool ) -> "TSequenceSet *": ss_converted = _ffi.cast("const TSequenceSet *", ss) - gs_converted = _ffi.cast("const GSERIALIZED *", gs) - zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tpointseqset_restrict_geom( - ss_converted, gs_converted, zspan_converted, atfunc - ) + span_converted = _ffi.cast("const Span *", span) + result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_restrict_stbox( - ss: "const TSequenceSet *", box: "const STBox *", border_inc: bool, atfunc: bool +def tnumberseqset_restrict_spanset( + ss: "const TSequenceSet *", spanset: "const SpanSet *", atfunc: bool ) -> "TSequenceSet *": ss_converted = _ffi.cast("const TSequenceSet *", ss) - box_converted = _ffi.cast("const STBox *", box) - result = _lib.tpointseqset_restrict_stbox( - ss_converted, box_converted, border_inc, atfunc + spanset_converted = _ffi.cast("const SpanSet *", spanset) + result = _lib.tnumberseqset_restrict_spanset( + ss_converted, spanset_converted, atfunc ) _check_error() return result if result != _ffi.NULL else None @@ -17599,15 +14276,15 @@ def tnumberseqset_delta_value(ss: "const TSequenceSet *") -> "TSequenceSet *": return result if result != _ffi.NULL else None -def distance_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Temporal *": +def tdistance_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) - result = _lib.distance_tnumber_number(temp_converted, value_converted) + result = _lib.tdistance_tnumber_number(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "Datum": +def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "double": box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tbox_tbox(box1_converted, box2_converted) @@ -17615,7 +14292,7 @@ def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "Datum": return result if result != _ffi.NULL else None -def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Datum": +def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.nad_tnumber_number(temp_converted, value_converted) @@ -17623,7 +14300,7 @@ def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "Datum": +def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tnumber_tbox(temp_converted, box_converted) @@ -17633,7 +14310,7 @@ def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "Datum": def nad_tnumber_tnumber( temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Datum": +) -> "double": temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tnumber_tnumber(temp1_converted, temp2_converted) @@ -17641,242 +14318,6 @@ def nad_tnumber_tnumber( return result if result != _ffi.NULL else None -def tpointinst_srid(inst: "const TInstant *") -> "int": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tpointinst_srid(inst_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_trajectory(seq: "const TSequence *") -> "GSERIALIZED *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_trajectory(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_azimuth(seq: "const TSequence *") -> "TSequenceSet *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_azimuth(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_cumulative_length( - seq: "const TSequence *", prevlength: float -) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_cumulative_length(seq_converted, prevlength) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_is_simple(seq: "const TSequence *") -> "bool": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_is_simple(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_length(seq: "const TSequence *") -> "double": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_length(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_speed(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_speed(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_srid(seq: "const TSequence *") -> "int": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_srid(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_stboxes(seq: "const TSequence *") -> "Tuple['STBox *', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tpointseq_stboxes(seq_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpointseq_split_n_stboxes( - seq: "const TSequence *", max_count: int -) -> "Tuple['STBox *', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tpointseq_split_n_stboxes(seq_converted, max_count, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpointseqset_azimuth(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_azimuth(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_cumulative_length(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_cumulative_length(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_is_simple(ss: "const TSequenceSet *") -> "bool": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_is_simple(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_length(ss: "const TSequenceSet *") -> "double": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_length(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_speed(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_speed(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_srid(ss: "const TSequenceSet *") -> "int": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_srid(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_stboxes(ss: "const TSequenceSet *") -> "Tuple['STBox *', 'int']": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tpointseqset_stboxes(ss_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpointseqset_split_n_stboxes( - ss: "const TSequenceSet *", max_count: int -) -> "Tuple['STBox *', 'int']": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tpointseqset_split_n_stboxes(ss_converted, max_count, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpointseqset_trajectory(ss: "const TSequenceSet *") -> "GSERIALIZED *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_trajectory(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpoint_get_coord(temp: "const Temporal *", coord: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_get_coord(temp_converted, coord) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeompointinst_tgeogpointinst(inst: "const TInstant *", oper: bool) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tgeompointinst_tgeogpointinst(inst_converted, oper) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeompointseq_tgeogpointseq(seq: "const TSequence *", oper: bool) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tgeompointseq_tgeogpointseq(seq_converted, oper) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeompointseqset_tgeogpointseqset( - ss: "const TSequenceSet *", oper: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tgeompointseqset_tgeogpointseqset(ss_converted, oper) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeompoint_tgeogpoint(temp: "const Temporal *", oper: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgeompoint_tgeogpoint(temp_converted, oper) - _check_error() - return result if result != _ffi.NULL else None - - -def tgeompoint_tnpoint(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgeompoint_tnpoint(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnpoint_tgeompoint(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tnpoint_tgeompoint(temp_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointinst_set_srid(inst: "const TInstant *", srid: int) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - srid_converted = _ffi.cast("int32", srid) - result = _lib.tpointinst_set_srid(inst_converted, srid_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseq_make_simple(seq: "const TSequence *") -> "Tuple['TSequence **', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tpointseq_make_simple(seq_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpointseq_set_srid(seq: "const TSequence *", srid: int) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - srid_converted = _ffi.cast("int32", srid) - result = _lib.tpointseq_set_srid(seq_converted, srid_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_make_simple( - ss: "const TSequenceSet *", -) -> "Tuple['TSequence **', 'int']": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tpointseqset_make_simple(ss_converted, count) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tpointseqset_set_srid(ss: "const TSequenceSet *", srid: int) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - srid_converted = _ffi.cast("int32", srid) - result = _lib.tpointseqset_set_srid(ss_converted, srid_converted) - _check_error() - return result if result != _ffi.NULL else None - - def tnumberseq_integral(seq: "const TSequence *") -> "double": seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_integral(seq_converted) @@ -17905,20 +14346,6 @@ def tnumberseqset_twavg(ss: "const TSequenceSet *") -> "double": return result if result != _ffi.NULL else None -def tpointseq_twcentroid(seq: "const TSequence *") -> "GSERIALIZED *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tpointseq_twcentroid(seq_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tpointseqset_twcentroid(ss: "const TSequenceSet *") -> "GSERIALIZED *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tpointseqset_twcentroid(ss_converted) - _check_error() - return result if result != _ffi.NULL else None - - def temporal_compact(temp: "const Temporal *") -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_compact(temp_converted) @@ -17949,14 +14376,16 @@ def skiplist_free(list: "SkipList *") -> None: def temporal_app_tinst_transfn( state: "Temporal *", inst: "const TInstant *", + interp: "interpType", maxdist: float, maxt: "const Interval *", ) -> "Temporal *": state_converted = _ffi.cast("Temporal *", state) inst_converted = _ffi.cast("const TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) maxt_converted = _ffi.cast("const Interval *", maxt) result = _lib.temporal_app_tinst_transfn( - state_converted, inst_converted, maxdist, maxt_converted + state_converted, inst_converted, interp_converted, maxdist, maxt_converted ) _check_error() return result if result != _ffi.NULL else None @@ -17972,104 +14401,44 @@ def temporal_app_tseq_transfn( return result if result != _ffi.NULL else None -def numspanset_spans( - ss: "const SpanSet *", vsize: "Datum", vorigin: "Datum" -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - vsize_converted = _ffi.cast("Datum", vsize) - vorigin_converted = _ffi.cast("Datum", vorigin) - count = _ffi.new("int *") - result = _lib.numspanset_spans( - ss_converted, vsize_converted, vorigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def spanset_time_spans( - ss: "const SpanSet *", duration: "const Interval *", torigin: "Datum" -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("Datum", torigin) - count = _ffi.new("int *") - result = _lib.spanset_time_spans( - ss_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def spanset_value_spans( - ss: "const SpanSet *", vsize: "Datum", vorigin: "Datum" +def span_bins( + s: "const Span *", size: "Datum", origin: "Datum" ) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - vsize_converted = _ffi.cast("Datum", vsize) - vorigin_converted = _ffi.cast("Datum", vorigin) + s_converted = _ffi.cast("const Span *", s) + size_converted = _ffi.cast("Datum", size) + origin_converted = _ffi.cast("Datum", origin) count = _ffi.new("int *") - result = _lib.spanset_value_spans( - ss_converted, vsize_converted, vorigin_converted, count - ) + result = _lib.span_bins(s_converted, size_converted, origin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def timespanset_spans( - ss: "const SpanSet *", duration: "const Interval *", torigin: "Datum" +def spanset_bins( + ss: "const SpanSet *", size: "Datum", origin: "Datum" ) -> "Tuple['Span *', 'int']": ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("Datum", torigin) + size_converted = _ffi.cast("Datum", size) + origin_converted = _ffi.cast("Datum", origin) count = _ffi.new("int *") - result = _lib.timespanset_spans( - ss_converted, duration_converted, torigin_converted, count - ) + result = _lib.spanset_bins(ss_converted, size_converted, origin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_value_spans( +def tnumber_value_bins( temp: "const Temporal *", size: "Datum", origin: "Datum" ) -> "Tuple['Span *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) count = _ffi.new("int *") - result = _lib.tnumber_value_spans( + result = _lib.tnumber_value_bins( temp_converted, size_converted, origin_converted, count ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_value_boxes( - temp: "const Temporal *", vsize: "Datum", vorigin: "Datum" -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - vsize_converted = _ffi.cast("Datum", vsize) - vorigin_converted = _ffi.cast("Datum", vorigin) - count = _ffi.new("int *") - result = _lib.tnumber_value_boxes( - temp_converted, vsize_converted, vorigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - -def tnumber_time_boxes( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tnumber_time_boxes( - temp_converted, duration_converted, torigin_converted, count - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] - - def tnumber_value_time_boxes( temp: "const Temporal *", vsize: "Datum", From b5269af1e37b23aac38b12fb3c11f17093dac558 Mon Sep 17 00:00:00 2001 From: diviloper Date: Sun, 27 Jul 2025 20:38:51 +0200 Subject: [PATCH 02/36] Add new header files --- builder/build_header.py | 5 +- builder/build_pymeos.py | 5 +- builder/build_pymeos_functions.py | 16 +- builder/meos.h | 1113 +- builder/meos_configs.py | 8 + pymeos_cffi/__init__.py | 4065 +++---- pymeos_cffi/functions.py | 15722 +++++++++++++++++----------- 7 files changed, 12961 insertions(+), 7973 deletions(-) create mode 100644 builder/meos_configs.py diff --git a/builder/build_header.py b/builder/build_header.py index d327d8d..019c9cb 100644 --- a/builder/build_header.py +++ b/builder/build_header.py @@ -5,6 +5,8 @@ import sys from typing import Set, Tuple, Match +from builder.meos_configs import header_files + def get_defined_functions(library_path): result = subprocess.check_output(["nm", "-g", library_path]) @@ -63,7 +65,6 @@ def remove_if_repeated(m: Match): def build_header_file(include_dir, so_path=None, destination_path="builder/meos.h"): - files = ["meos.h", "meos_catalog.h", "meos_internal.h"] global_content = """ typedef struct { @@ -89,7 +90,7 @@ def build_header_file(include_dir, so_path=None, destination_path="builder/meos. """ functions = set() - for file_name in files: + for file_name in header_files: file_path = os.path.join(include_dir, file_name) with open(file_path, "r") as f: content = f.read() diff --git a/builder/build_pymeos.py b/builder/build_pymeos.py index 7620f26..e2aa667 100644 --- a/builder/build_pymeos.py +++ b/builder/build_pymeos.py @@ -2,6 +2,8 @@ from cffi import FFI +from builder.meos_configs import header_files + ffibuilder = FFI() with open(os.path.join(os.path.dirname(__file__), "meos.h"), "r") as f: @@ -20,9 +22,10 @@ def get_include_dirs(): return [path for path in paths if os.path.exists(path)] + ffibuilder.set_source( "_meos_cffi", - '#include "meos.h"\n#include "meos_catalog.h"\n#include "meos_internal.h"', + "\n".join(f'#include "{h}"' for h in header_files), libraries=["meos"], library_dirs=get_library_dirs(), include_dirs=get_include_dirs(), diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index c6701c7..7d37d8e 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -227,9 +227,19 @@ def check_modifiers(functions: List[str]) -> None: ) +def remove_c_comments(code: str) -> str: + code = re.sub(r"/\*.*?\*/", "", code, flags=re.DOTALL) + code = re.sub(r"//.*?$", "", code, flags=re.MULTILINE) + return code + + def build_pymeos_functions(header_path="builder/meos.h"): with open(header_path) as f: content = f.read() + + # Remove C comments from the header file + content = remove_c_comments(content) + # Regex lines: # 1st line: Match beginning of function with optional "extern", "static" and # "inline" @@ -240,14 +250,12 @@ def build_pymeos_functions(header_path="builder/meos.h"): # spaces and asterisks between parenthesis and end with a semicolon. # (Parameter decomposition will be performed later) f_regex = ( - r"(?:extern )?(?:static )?(?:inline )?" + r"(?(?:const )?\w+(?: \*+)?)" r"\s*(?P\w+)" r"\((?P[\w\s,\*]*)\);" ) - matches = re.finditer( - f_regex, "".join(content.splitlines()), flags=re.RegexFlag.MULTILINE - ) + matches = re.finditer(f_regex, "".join(content.splitlines())) file_path = os.path.dirname(__file__) template_path = os.path.join(file_path, "templates/functions.py") diff --git a/builder/meos.h b/builder/meos.h index d4a0119..9053ff0 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -1742,9 +1742,9 @@ extern bool ensure_spatialset_type(meosType type); extern bool span_basetype(meosType type); extern bool span_canon_basetype(meosType type); extern bool span_type(meosType type); -/* extern bool type_span_bbox(meosType type); (undefined) */ -/* extern bool span_tbox_type(meosType type); (undefined) */ -/* extern bool ensure_span_tbox_type(meosType type); (undefined) */ +extern bool type_span_bbox(meosType type); +extern bool span_tbox_type(meosType type); +extern bool ensure_span_tbox_type(meosType type); extern bool numspan_basetype(meosType type); extern bool numspan_type(meosType type); extern bool ensure_numspan_type(meosType type); @@ -1784,6 +1784,832 @@ extern bool ensure_tnumber_tpoint_type(meosType type); +//-------------------- meos_geo.h -------------------- + + +//#include +//#include + +typedef uint16_t lwflags_t; + +typedef struct { + double afac, bfac, cfac, dfac, efac, ffac, gfac, hfac, ifac, xoff, yoff, zoff; +} AFFINE; + +typedef struct +{ + double xmin, ymin, zmin; + double xmax, ymax, zmax; + int32_t srid; +} +BOX3D; + +typedef struct +{ + lwflags_t flags; + double xmin; + double xmax; + double ymin; + double ymax; + double zmin; + double zmax; + double mmin; + double mmax; +} GBOX; + +typedef struct +{ + double a; + double b; + double f; + double e; + double e_sq; + double radius; + char name[20]; +} +SPHEROID; + +typedef struct +{ + double x, y; +} +POINT2D; + +typedef struct +{ + double x, y, z; +} +POINT3DZ; + +typedef struct +{ + double x, y, z; +} +POINT3D; + +typedef struct +{ + double x, y, m; +} +POINT3DM; + +typedef struct +{ + double x, y, z, m; +} +POINT4D; + +typedef struct +{ + uint32_t npoints; + uint32_t maxpoints; + + + lwflags_t flags; + + + uint8_t *serialized_pointlist; +} +POINTARRAY; + +typedef struct +{ + uint32_t size; + uint8_t srid[3]; + uint8_t gflags; + uint8_t data[1]; +} GSERIALIZED; + +typedef struct +{ + GBOX *bbox; + void *data; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; +} +LWGEOM; + +typedef struct +{ + GBOX *bbox; + POINTARRAY *point; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; +} +LWPOINT; + +typedef struct +{ + GBOX *bbox; + POINTARRAY *points; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; +} +LWLINE; + +typedef struct +{ + GBOX *bbox; + POINTARRAY *points; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; +} +LWTRIANGLE; + +typedef struct +{ + GBOX *bbox; + POINTARRAY *points; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; +} +LWCIRCSTRING; + +typedef struct +{ + GBOX *bbox; + POINTARRAY **rings; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t nrings; + uint32_t maxrings; +} +LWPOLY; + +typedef struct +{ + GBOX *bbox; + LWPOINT **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWMPOINT; + +typedef struct +{ + GBOX *bbox; + LWLINE **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWMLINE; + +typedef struct +{ + GBOX *bbox; + LWPOLY **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWMPOLY; + +typedef struct +{ + GBOX *bbox; + LWGEOM **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWCOLLECTION; + +typedef struct +{ + GBOX *bbox; + LWGEOM **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWCOMPOUND; + +typedef struct +{ + GBOX *bbox; + LWGEOM **rings; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t nrings; + uint32_t maxrings; +} +LWCURVEPOLY; + +typedef struct +{ + GBOX *bbox; + LWGEOM **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWMCURVE; + +typedef struct +{ + GBOX *bbox; + LWGEOM **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWMSURFACE; + +typedef struct +{ + GBOX *bbox; + LWPOLY **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWPSURFACE; + +typedef struct +{ + GBOX *bbox; + LWTRIANGLE **geoms; + int32_t srid; + lwflags_t flags; + uint8_t type; + char pad[1]; + uint32_t ngeoms; + uint32_t maxgeoms; +} +LWTIN; + +/* extern int32 geo_get_srid(const GSERIALIZED *g); (undefined) */ + +struct PJconsts; +typedef struct PJconsts PJ; + +typedef struct LWPROJ +{ + PJ* pj; + + + bool pipeline_is_forward; + + + uint8_t source_is_latlong; + + double source_semi_major_metre; + double source_semi_minor_metre; +} LWPROJ; + + + +//#include + +typedef enum +{ + INTERSECTS = 0, + CONTAINS = 1, + TOUCHES = 2, + COVERS = 3, +} spatialRel; + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + + //#else + + +extern uint8_t *geo_as_ewkb(const GSERIALIZED *gs, const char *endian, size_t *size); +extern char *geo_as_ewkt(const GSERIALIZED *gs, int precision); +extern char *geo_as_geojson(const GSERIALIZED *gs, int option, int precision, const char *srs); +extern char *geo_as_hexewkb(const GSERIALIZED *gs, const char *endian); +extern char *geo_as_text(const GSERIALIZED *gs, int precision); +extern GSERIALIZED *geo_from_ewkb(const uint8_t *wkb, size_t wkb_size, int32 srid); +extern GSERIALIZED *geo_from_geojson(const char *geojson); +extern GSERIALIZED *geo_from_text(const char *wkt, int32_t srid); +extern char *geo_out(const GSERIALIZED *gs); +extern GSERIALIZED *geog_from_binary(const char *wkb_bytea); +extern GSERIALIZED *geog_from_hexewkb(const char *wkt); +extern GSERIALIZED *geog_in(const char *str, int32 typmod); +extern GSERIALIZED *geom_from_hexewkb(const char *wkt); +extern GSERIALIZED *geom_in(const char *str, int32 typmod); + +extern GSERIALIZED *geo_copy(const GSERIALIZED *g); +extern GSERIALIZED *geogpoint_make2d(int32_t srid, double x, double y); +extern GSERIALIZED *geogpoint_make3dz(int32_t srid, double x, double y, double z); +extern GSERIALIZED *geompoint_make2d(int32_t srid, double x, double y); +extern GSERIALIZED *geompoint_make3dz(int32_t srid, double x, double y, double z); + +extern GSERIALIZED *geom_to_geog(const GSERIALIZED *geom); +extern GSERIALIZED *geog_to_geom(const GSERIALIZED *geog); + +extern bool geo_is_empty(const GSERIALIZED *g); +/* extern bool geo_is_unitary(const GSERIALIZED *gs); (undefined) */ +extern const char *geo_typename(int type); +extern double geog_area(const GSERIALIZED *g, bool use_spheroid); +extern GSERIALIZED *geog_centroid(const GSERIALIZED *g, bool use_spheroid); +extern double geog_length(const GSERIALIZED *g, bool use_spheroid); +extern double geog_perimeter(const GSERIALIZED *g, bool use_spheroid); +extern bool geom_azimuth(const GSERIALIZED *gs1, const GSERIALIZED *gs2, double *result); +extern double geom_length(const GSERIALIZED *gs); +extern double geom_perimeter(const GSERIALIZED *gs); +extern int line_numpoints(const GSERIALIZED *gs); +extern GSERIALIZED *line_point_n(const GSERIALIZED *geom, int n); + +extern GSERIALIZED *geo_reverse(const GSERIALIZED *gs); +extern GSERIALIZED *geo_round(const GSERIALIZED *gs, int maxdd); + +extern GSERIALIZED *geo_set_srid(const GSERIALIZED *gs, int32_t srid); +extern int32_t geo_srid(const GSERIALIZED *gs); +extern GSERIALIZED *geo_transform(GSERIALIZED *geom, int32_t srid_to); +extern GSERIALIZED *geo_transform_pipeline(const GSERIALIZED *gs, char *pipeline, int32_t srid_to, bool is_forward); + +extern GSERIALIZED *geo_collect_garray(GSERIALIZED **gsarr, int count); +extern GSERIALIZED *geo_makeline_garray(GSERIALIZED **gsarr, int count); +extern int geo_npoints(const GSERIALIZED *gs); +extern int geo_ngeos(const GSERIALIZED *gs); +extern GSERIALIZED *geo_geoN(const GSERIALIZED *geom, int n); +/* extern GSERIALIZED **geo_pointarr(const GSERIALIZED *gs, int *count); (undefined) */ +/* extern GSERIALIZED *geo_points(const GSERIALIZED *gs); (undefined) */ +extern GSERIALIZED *geom_array_union(GSERIALIZED **gsarr, int count); +extern GSERIALIZED *geom_boundary(const GSERIALIZED *gs); +extern GSERIALIZED *geom_buffer(const GSERIALIZED *gs, double size, char *params); +extern GSERIALIZED *geom_centroid(const GSERIALIZED *gs); +extern GSERIALIZED *geom_convex_hull(const GSERIALIZED *gs); +extern GSERIALIZED *geom_difference2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern GSERIALIZED *geom_intersection2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +/* extern GSERIALIZED *geom_intersection2d_coll(const GSERIALIZED *gs1, const GSERIALIZED *gs2); (undefined) */ +/* extern GSERIALIZED *geom_min_bounding_radius(const GSERIALIZED *geom, double *radius); (undefined) */ +extern GSERIALIZED *geom_shortestline2d(const GSERIALIZED *gs1, const GSERIALIZED *s2); +extern GSERIALIZED *geom_shortestline3d(const GSERIALIZED *gs1, const GSERIALIZED *s2); +extern GSERIALIZED *geom_unary_union(GSERIALIZED *gs, double prec); +extern GSERIALIZED *line_interpolate_point(GSERIALIZED *gs, double distance_fraction, bool repeat); +extern double line_locate_point(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern GSERIALIZED *line_substring(const GSERIALIZED *gs, double from, double to); + +extern bool geog_dwithin(const GSERIALIZED *g1, const GSERIALIZED *g2, double tolerance, bool use_spheroid); +extern bool geog_intersects(const GSERIALIZED *gs1, const GSERIALIZED *gs2, bool use_spheroid); +extern bool geom_contains(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern bool geom_covers(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern bool geom_disjoint2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern bool geom_dwithin2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2, double tolerance); +extern bool geom_dwithin3d(const GSERIALIZED *gs1, const GSERIALIZED *gs2, double tolerance); +extern bool geom_intersects2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern bool geom_intersects3d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern bool geom_relate_pattern(const GSERIALIZED *gs1, const GSERIALIZED *gs2, char *patt); +extern bool geom_touches(const GSERIALIZED *gs1, const GSERIALIZED *gs2); + +/* extern STBox *geo_expand_space(const GSERIALIZED *gs, double d); (undefined) */ +extern STBox *geo_stboxes(const GSERIALIZED *gs, int *count); +extern STBox *geo_split_each_n_stboxes(const GSERIALIZED *gs, int elem_count, int *count); +extern STBox *geo_split_n_stboxes(const GSERIALIZED *gs, int box_count, int *count); + +extern double geog_distance(const GSERIALIZED *g1, const GSERIALIZED *g2); +extern double geom_distance2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern double geom_distance3d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); + +extern int geo_equals(const GSERIALIZED *gs1, const GSERIALIZED *gs2); +extern bool geo_same(const GSERIALIZED *gs1, const GSERIALIZED *gs2); + +extern Set *geogset_in(const char *str); +extern Set *geomset_in(const char *str); +extern char *spatialset_as_text(const Set *set, int maxdd); +extern char *spatialset_as_ewkt(const Set *set, int maxdd); + +extern Set *geoset_make(const GSERIALIZED **values, int count); + +extern Set *geo_to_set(const GSERIALIZED *gs); + +extern GSERIALIZED *geoset_end_value(const Set *s); +extern GSERIALIZED *geoset_start_value(const Set *s); +extern bool geoset_value_n(const Set *s, int n, GSERIALIZED **result); +extern GSERIALIZED **geoset_values(const Set *s); + +extern bool contained_geo_set(const GSERIALIZED *gs, const Set *s); +extern bool contains_set_geo(const Set *s, GSERIALIZED *gs); +extern Set *geo_union_transfn(Set *state, const GSERIALIZED *gs); +extern Set *intersection_geo_set(const GSERIALIZED *gs, const Set *s); +extern Set *intersection_set_geo(const Set *s, const GSERIALIZED *gs); +extern Set *minus_geo_set(const GSERIALIZED *gs, const Set *s); +extern Set *minus_set_geo(const Set *s, const GSERIALIZED *gs); +extern Set *union_geo_set(const GSERIALIZED *gs, const Set *s); +extern Set *union_set_geo(const Set *s, const GSERIALIZED *gs); + +extern Set *spatialset_set_srid(const Set *s, int32_t srid); +extern int32_t spatialset_srid(const Set *s); +extern Set *spatialset_transform(const Set *s, int32_t srid); +extern Set *spatialset_transform_pipeline(const Set *s, const char *pipelinestr, int32_t srid, bool is_forward); + +extern char *stbox_as_hexwkb(const STBox *box, uint8_t variant, size_t *size); +extern uint8_t *stbox_as_wkb(const STBox *box, uint8_t variant, size_t *size_out); +extern STBox *stbox_from_hexwkb(const char *hexwkb); +extern STBox *stbox_from_wkb(const uint8_t *wkb, size_t size); +extern STBox *stbox_in(const char *str); +extern char *stbox_out(const STBox *box, int maxdd); + +extern STBox *geo_timestamptz_to_stbox(const GSERIALIZED *gs, TimestampTz t); +extern STBox *geo_tstzspan_to_stbox(const GSERIALIZED *gs, const Span *s); +extern STBox *stbox_copy(const STBox *box); +extern STBox *stbox_make(bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *s); + +extern STBox *geo_to_stbox(const GSERIALIZED *gs); +extern STBox *spatialset_to_stbox(const Set *s); +extern BOX3D *stbox_to_box3d(const STBox *box); +extern GBOX *stbox_to_gbox(const STBox *box); +extern GSERIALIZED *stbox_to_geo(const STBox *box); +extern Span *stbox_to_tstzspan(const STBox *box); +extern STBox *timestamptz_to_stbox(TimestampTz t); +extern STBox *tstzset_to_stbox(const Set *s); +extern STBox *tstzspan_to_stbox(const Span *s); +extern STBox *tstzspanset_to_stbox(const SpanSet *ss); + +extern double stbox_area(const STBox *box, bool spheroid); +extern bool stbox_hast(const STBox *box); +extern bool stbox_hasx(const STBox *box); +extern bool stbox_hasz(const STBox *box); +extern bool stbox_isgeodetic(const STBox *box); +extern double stbox_perimeter(const STBox *box, bool spheroid); +extern bool stbox_tmax(const STBox *box, TimestampTz *result); +extern bool stbox_tmax_inc(const STBox *box, bool *result); +extern bool stbox_tmin(const STBox *box, TimestampTz *result); +extern bool stbox_tmin_inc(const STBox *box, bool *result); +extern double stbox_volume(const STBox *box); +extern bool stbox_xmax(const STBox *box, double *result); +extern bool stbox_xmin(const STBox *box, double *result); +extern bool stbox_ymax(const STBox *box, double *result); +extern bool stbox_ymin(const STBox *box, double *result); +extern bool stbox_zmax(const STBox *box, double *result); +extern bool stbox_zmin(const STBox *box, double *result); + +extern STBox *stbox_expand_space(const STBox *box, double d); +extern STBox *stbox_expand_time(const STBox *box, const Interval *interv); +extern STBox *stbox_get_space(const STBox *box); +extern STBox *stbox_quad_split(const STBox *box, int *count); +extern STBox *stbox_round(const STBox *box, int maxdd); +extern STBox *stbox_shift_scale_time(const STBox *box, const Interval *shift, const Interval *duration); +extern STBox *stboxarr_round(const STBox *boxarr, int count, int maxdd); + +extern STBox *stbox_set_srid(const STBox *box, int32_t srid); +extern int32_t stbox_srid(const STBox *box); +extern STBox *stbox_transform(const STBox *box, int32_t srid); +extern STBox *stbox_transform_pipeline(const STBox *box, const char *pipelinestr, int32_t srid, bool is_forward); + +extern bool adjacent_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool contained_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool contains_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overlaps_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool same_stbox_stbox(const STBox *box1, const STBox *box2); + +extern bool above_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool after_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool back_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool before_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool below_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool front_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool left_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overabove_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overafter_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overback_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overbefore_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overbelow_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overfront_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overleft_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool overright_stbox_stbox(const STBox *box1, const STBox *box2); +extern bool right_stbox_stbox(const STBox *box1, const STBox *box2); + +extern STBox *union_stbox_stbox(const STBox *box1, const STBox *box2, bool strict); +extern STBox *intersection_stbox_stbox(const STBox *box1, const STBox *box2); + +extern int stbox_cmp(const STBox *box1, const STBox *box2); +extern bool stbox_eq(const STBox *box1, const STBox *box2); +extern bool stbox_ge(const STBox *box1, const STBox *box2); +extern bool stbox_gt(const STBox *box1, const STBox *box2); +extern bool stbox_le(const STBox *box1, const STBox *box2); +extern bool stbox_lt(const STBox *box1, const STBox *box2); +extern bool stbox_ne(const STBox *box1, const STBox *box2); + +extern RTree *rtree_create_stbox(); +extern void rtree_free(RTree *rtree); +extern void rtree_insert(RTree *rtree, STBox *box, int64 id); +extern int *rtree_search(const RTree *rtree,const STBox *query, int *count); + +extern char *tgeo_out(const Temporal *temp, int maxdd); +extern Temporal *tgeogpoint_from_mfjson(const char *str); +extern Temporal *tgeogpoint_in(const char *str); +extern Temporal *tgeography_from_mfjson(const char *mfjson); +extern Temporal *tgeography_in(const char *str); +extern Temporal *tgeometry_from_mfjson(const char *str); +extern Temporal *tgeometry_in(const char *str); +extern Temporal *tgeompoint_from_mfjson(const char *str); +extern Temporal *tgeompoint_in(const char *str); +extern char *tspatial_as_ewkt(const Temporal *temp, int maxdd); +extern char *tspatial_as_text(const Temporal *temp, int maxdd); + +extern Temporal *tgeo_from_base_temp(const GSERIALIZED *gs, const Temporal *temp); +extern TInstant *tgeoinst_make(const GSERIALIZED *gs, TimestampTz t); +extern TSequence *tgeoseq_from_base_tstzset(const GSERIALIZED *gs, const Set *s); +extern TSequence *tgeoseq_from_base_tstzspan(const GSERIALIZED *gs, const Span *s, interpType interp); +extern TSequenceSet *tgeoseqset_from_base_tstzspanset(const GSERIALIZED *gs, const SpanSet *ss, interpType interp); +extern Temporal *tpoint_from_base_temp(const GSERIALIZED *gs, const Temporal *temp); +extern TInstant *tpointinst_make(const GSERIALIZED *gs, TimestampTz t); +extern TSequence *tpointseq_from_base_tstzset(const GSERIALIZED *gs, const Set *s); +extern TSequence *tpointseq_from_base_tstzspan(const GSERIALIZED *gs, const Span *s, interpType interp); +extern TSequence *tpointseq_make_coords(const double *xcoords, const double *ycoords, const double *zcoords, const TimestampTz *times, int count, int32 srid, bool geodetic, bool lower_inc, bool upper_inc, interpType interp, bool normalize); +extern TSequenceSet *tpointseqset_from_base_tstzspanset(const GSERIALIZED *gs, const SpanSet *ss, interpType interp); + +extern STBox *box3d_to_stbox(const BOX3D *box); +extern STBox *gbox_to_stbox(const GBOX *box); +extern Temporal *geomeas_to_tpoint(const GSERIALIZED *gs); +extern Temporal *tgeogpoint_to_tgeography(const Temporal *temp); +extern Temporal *tgeography_to_tgeogpoint(const Temporal *temp); +extern Temporal *tgeography_to_tgeometry(const Temporal *temp); +extern Temporal *tgeometry_to_tgeography(const Temporal *temp); +extern Temporal *tgeometry_to_tgeompoint(const Temporal *temp); +extern Temporal *tgeompoint_to_tgeometry(const Temporal *temp); +extern bool tpoint_as_mvtgeom(const Temporal *temp, const STBox *bounds, int32_t extent, int32_t buffer, bool clip_geom, GSERIALIZED **gsarr, int64 **timesarr, int *count); +extern bool tpoint_tfloat_to_geomeas(const Temporal *tpoint, const Temporal *measure, bool segmentize, GSERIALIZED **result); +extern STBox *tspatial_to_stbox(const Temporal *temp); + +extern bool bearing_point_point(const GSERIALIZED *gs1, const GSERIALIZED *gs2, double *result); +extern Temporal *bearing_tpoint_point(const Temporal *temp, const GSERIALIZED *gs, bool invert); +extern Temporal *bearing_tpoint_tpoint(const Temporal *temp1, const Temporal *temp2); +extern Temporal *tgeo_centroid(const Temporal *temp); +extern GSERIALIZED *tgeo_convex_hull(const Temporal *temp); +extern GSERIALIZED *tgeo_end_value(const Temporal *temp); +extern GSERIALIZED *tgeo_start_value(const Temporal *temp); +extern GSERIALIZED *tgeo_traversed_area(const Temporal *temp); +extern bool tgeo_value_at_timestamptz(const Temporal *temp, TimestampTz t, bool strict, GSERIALIZED **value); +extern bool tgeo_value_n(const Temporal *temp, int n, GSERIALIZED **result); +extern GSERIALIZED **tgeo_values(const Temporal *temp, int *count); +extern Temporal *tpoint_angular_difference(const Temporal *temp); +extern Temporal *tpoint_azimuth(const Temporal *temp); +extern Temporal *tpoint_cumulative_length(const Temporal *temp); +extern bool tpoint_direction(const Temporal *temp, double *result); +extern Temporal *tpoint_get_x(const Temporal *temp); +extern Temporal *tpoint_get_y(const Temporal *temp); +extern Temporal *tpoint_get_z(const Temporal *temp); +extern bool tpoint_is_simple(const Temporal *temp); +extern double tpoint_length(const Temporal *temp); +/* extern Temporal *tpoint_speed(const Temporal *temp); (undefined) */ +extern GSERIALIZED *tpoint_trajectory(const Temporal *temp); +extern GSERIALIZED *tpoint_twcentroid(const Temporal *temp); + +extern Temporal *tgeo_affine(const Temporal *temp, const AFFINE *a); +extern Temporal *tgeo_scale(const Temporal *temp, const GSERIALIZED *scale, const GSERIALIZED *sorigin); +extern Temporal **tpoint_make_simple(const Temporal *temp, int *count); + +int32_t tspatial_srid(const Temporal *temp); +extern Temporal *tspatial_set_srid(const Temporal *temp, int32_t srid); +extern Temporal *tspatial_transform(const Temporal *temp, int32_t srid); +extern Temporal *tspatial_transform_pipeline(const Temporal *temp, const char *pipelinestr, int32_t srid, bool is_forward); + +extern Temporal *tgeo_at_geom(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tgeo_at_stbox(const Temporal *temp, const STBox *box, bool border_inc); +extern Temporal *tgeo_at_value(const Temporal *temp, GSERIALIZED *gs); +extern Temporal *tgeo_minus_geom(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tgeo_minus_stbox(const Temporal *temp, const STBox *box, bool border_inc); +extern Temporal *tgeo_minus_value(const Temporal *temp, GSERIALIZED *gs); +extern Temporal *tpoint_at_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan); +extern Temporal *tpoint_at_value(const Temporal *temp, GSERIALIZED *gs); +extern Temporal *tpoint_minus_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan); +extern Temporal *tpoint_minus_value(const Temporal *temp, GSERIALIZED *gs); + +extern int always_eq_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int always_eq_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int always_eq_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int always_ne_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int always_ne_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int always_ne_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int ever_eq_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int ever_eq_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int ever_eq_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int ever_ne_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int ever_ne_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int ever_ne_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); + +extern Temporal *teq_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern Temporal *teq_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tne_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern Temporal *tne_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); + +/* extern STBox *tspatial_expand_space(const Temporal *temp, double d); (undefined) */ +extern STBox *tgeo_stboxes(const Temporal *temp, int *count); +extern STBox *tgeo_space_boxes(const Temporal *temp, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool bitmatrix, bool border_inc, int *count); +extern STBox *tgeo_space_time_boxes(const Temporal *temp, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool bitmatrix, bool border_inc, int *count); +extern STBox *tgeo_split_each_n_stboxes(const Temporal *temp, int elem_count, int *count); +extern STBox *tgeo_split_n_stboxes(const Temporal *temp, int box_count, int *count); + +extern bool adjacent_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool adjacent_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool adjacent_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool contained_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool contained_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool contained_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool contains_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool contains_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool contains_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overlaps_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overlaps_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overlaps_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool same_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool same_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool same_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); + +extern bool above_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool above_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool above_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool after_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool after_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool after_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool back_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool back_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool back_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool before_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool before_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool before_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool below_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool below_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool below_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool front_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool front_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool front_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool left_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool left_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool left_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overabove_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overabove_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overabove_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overafter_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overafter_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overafter_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overback_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overback_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overback_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overbefore_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overbefore_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overbefore_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overbelow_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overbelow_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overbelow_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overfront_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overfront_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overfront_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overleft_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overleft_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overleft_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool overright_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool overright_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool overright_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); +extern bool right_stbox_tspatial(const STBox *box, const Temporal *temp); +extern bool right_tspatial_stbox(const Temporal *temp, const STBox *box); +extern bool right_tspatial_tspatial(const Temporal *temp1, const Temporal *temp2); + +extern int acontains_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int acontains_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int acontains_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int adisjoint_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int adisjoint_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int adwithin_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, double dist); +extern int adwithin_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, double dist); +extern int aintersects_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int aintersects_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int atouches_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int atouches_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int atouches_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int econtains_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int econtains_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int econtains_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int ecovers_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); +extern int ecovers_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int ecovers_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int edisjoint_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int edisjoint_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int edwithin_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, double dist); +extern int edwithin_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, double dist); +extern int eintersects_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int eintersects_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int etouches_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern int etouches_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern int etouches_tpoint_geo(const Temporal *temp, const GSERIALIZED *gs); + +extern Temporal *tcontains_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue); +extern Temporal *tcontains_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); +extern Temporal *tcontains_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); +extern Temporal *tcovers_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue); +extern Temporal *tcovers_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); +extern Temporal *tcovers_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); +extern Temporal *tdisjoint_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue); +extern Temporal *tdisjoint_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); +extern Temporal *tdisjoint_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); +extern Temporal *tdwithin_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp, double dist, bool restr, bool atvalue); +extern Temporal *tdwithin_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, double dist, bool restr, bool atvalue); +extern Temporal *tdwithin_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, double dist, bool restr, bool atvalue); +extern Temporal *tintersects_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue); +extern Temporal *tintersects_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); +extern Temporal *tintersects_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); +extern Temporal *ttouches_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue); +extern Temporal *ttouches_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue); +extern Temporal *ttouches_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2, bool restr, bool atvalue); + +extern Temporal *tdistance_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tdistance_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern double nad_stbox_geo(const STBox *box, const GSERIALIZED *gs); +extern double nad_stbox_stbox(const STBox *box1, const STBox *box2); +extern double nad_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern double nad_tgeo_stbox(const Temporal *temp, const STBox *box); +extern double nad_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern TInstant *nai_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern TInstant *nai_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); +extern GSERIALIZED *shortestline_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); +extern GSERIALIZED *shortestline_tgeo_tgeo(const Temporal *temp1, const Temporal *temp2); + +extern Temporal *tpoint_tcentroid_finalfn(SkipList *state); +extern SkipList *tpoint_tcentroid_transfn(SkipList *state, Temporal *temp); +extern STBox *tspatial_extent_transfn(STBox *box, const Temporal *temp); + +extern STBox *stbox_get_space_tile(const GSERIALIZED *point, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin); +extern STBox *stbox_get_space_time_tile(const GSERIALIZED *point, TimestampTz t, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin); +extern STBox *stbox_get_time_tile(TimestampTz t, const Interval *duration, TimestampTz torigin); +extern STBox *stbox_space_tiles(const STBox *bounds, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool border_inc, int *count); +extern STBox *stbox_space_time_tiles(const STBox *bounds, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool border_inc, int *count); +extern STBox *stbox_time_tiles(const STBox *bounds, const Interval *duration, TimestampTz torigin, bool border_inc, int *count); +extern Temporal **tgeo_space_split(const Temporal *temp, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool bitmatrix, bool border_inc, GSERIALIZED ***space_bins, int *count); +extern Temporal **tgeo_space_time_split(const Temporal *temp, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool bitmatrix, bool border_inc, GSERIALIZED ***space_bins, TimestampTz **time_bins, int *count); + +extern int *geo_cluster_kmeans(const GSERIALIZED **geoms, uint32_t ngeoms, uint32_t k); +extern uint32_t *geo_cluster_dbscan(const GSERIALIZED **geoms, uint32_t ngeoms, double tolerance, int minpoints); +extern GSERIALIZED **geo_cluster_intersecting(const GSERIALIZED **geoms, uint32_t ngeoms, int *count); +extern GSERIALIZED **geo_cluster_within(const GSERIALIZED **geoms, uint32_t ngeoms, double tolerance, int *count); + //-------------------- meos_internal.h -------------------- @@ -2331,6 +3157,287 @@ extern TBox *tbox_get_value_time_tile(Datum value, TimestampTz t, Datum vsize, c extern Temporal **tnumber_value_time_split(const Temporal *temp, Datum size, const Interval *duration, Datum vorigin, TimestampTz torigin, Datum **value_bins, TimestampTz **time_bins, int *count); +//-------------------- meos_internal_geo.h -------------------- + + +//#include + +//#include + +//#include + +//#include +//#include +//#include + +extern PJ_CONTEXT *proj_get_context(void); + +extern Datum datum_geo_round(Datum value, Datum size); +extern GSERIALIZED *point_round(const GSERIALIZED *gs, int maxdd); + +extern void stbox_set(bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *s, STBox *box); + +/* extern STBox *box3d_to_stbox(const BOX3D *box); (repeated) */ +extern void gbox_set_stbox(const GBOX *box, int32_t srid, STBox *result); +extern bool geo_set_stbox(const GSERIALIZED *gs, STBox *box); +extern void geoarr_set_stbox(const Datum *values, int count, STBox *box); +extern bool spatial_set_stbox(Datum d, meosType basetype, STBox *box); +extern void spatialset_set_stbox(const Set *set, STBox *box); +extern void stbox_set_box3d(const STBox *box, BOX3D *box3d); +extern void stbox_set_gbox(const STBox *box, GBOX *gbox); +extern void tstzset_set_stbox(const Set *s, STBox *box); +extern void tstzspan_set_stbox(const Span *s, STBox *box); +extern void tstzspanset_set_stbox(const SpanSet *s, STBox *box); + +extern void stbox_expand(const STBox *box1, STBox *box2); + +extern bool inter_stbox_stbox(const STBox *box1, const STBox *box2, STBox *result); +extern GSERIALIZED *stbox_geo(const STBox *box); + +/* extern TInstant *tgeogpointinst_from_mfjson(json_object *mfjson, int32_t srid); (undefined type json_object) */ +extern TInstant *tgeogpointinst_in(const char *str); +/* extern TSequence *tgeogpointseq_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequence *tgeogpointseq_in(const char *str, interpType interp); +/* extern TSequenceSet *tgeogpointseqset_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequenceSet *tgeogpointseqset_in(const char *str); +/* extern TInstant *tgeompointinst_from_mfjson(json_object *mfjson, int32_t srid); (undefined type json_object) */ +extern TInstant *tgeompointinst_in(const char *str); +/* extern TSequence *tgeompointseq_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequence *tgeompointseq_in(const char *str, interpType interp); +/* extern TSequenceSet *tgeompointseqset_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequenceSet *tgeompointseqset_in(const char *str); +/* extern TInstant *tgeographyinst_from_mfjson(json_object *mfjson, int32_t srid); (undefined type json_object) */ +extern TInstant *tgeographyinst_in(const char *str); +/* extern TSequence *tgeographyseq_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequence *tgeographyseq_in(const char *str, interpType interp); +/* extern TSequenceSet *tgeographyseqset_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequenceSet *tgeographyseqset_in(const char *str); +/* extern TInstant *tgeometryinst_from_mfjson(json_object *mfjson, int32_t srid); (undefined type json_object) */ +extern TInstant *tgeometryinst_in(const char *str); +/* extern TSequence *tgeometryseq_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequence *tgeometryseq_in(const char *str, interpType interp); +/* extern TSequenceSet *tgeometryseqset_from_mfjson(json_object *mfjson, int32_t srid, interpType interp); (undefined type json_object) */ +extern TSequenceSet *tgeometryseqset_in(const char *str); + +extern void tspatial_set_stbox(const Temporal *temp, STBox *box); +extern void tgeoinst_set_stbox(const TInstant *inst, STBox *box); +extern void tspatialseq_set_stbox(const TSequence *seq, STBox *box); +extern void tspatialseqset_set_stbox(const TSequenceSet *ss, STBox *box); + +extern Temporal *tgeo_restrict_geom(const Temporal *temp, const GSERIALIZED *gs, const Span *zspan, bool atfunc); +extern Temporal *tgeo_restrict_stbox(const Temporal *temp, const STBox *box, bool border_inc, bool atfunc); +extern TInstant *tgeoinst_restrict_geom(const TInstant *inst, const GSERIALIZED *gs, const Span *zspan, bool atfunc); +extern TInstant *tgeoinst_restrict_stbox(const TInstant *inst, const STBox *box, bool border_inc, bool atfunc); +extern Temporal *tgeoseq_restrict_geom(const TSequence *seq, const GSERIALIZED *gs, const Span *zspan, bool atfunc); +extern Temporal *tgeoseq_restrict_stbox(const TSequence *seq, const STBox *box, bool border_inc, bool atfunc); +extern TSequenceSet *tgeoseqset_restrict_geom(const TSequenceSet *ss, const GSERIALIZED *gs, const Span *zspan, bool atfunc); +extern TSequenceSet *tgeoseqset_restrict_stbox(const TSequenceSet *ss, const STBox *box, bool border_inc, bool atfunc); + +extern int32_t spatial_srid(Datum d, meosType basetype); +extern bool spatial_set_srid(Datum d, meosType basetype, int32_t srid); +extern int tspatialinst_srid(const TInstant *inst); +extern TSequenceSet *tpointseq_azimuth(const TSequence *seq); +extern TSequence *tpointseq_cumulative_length(const TSequence *seq, double prevlength); +extern bool tpointseq_is_simple(const TSequence *seq); +extern double tpointseq_length(const TSequence *seq); +extern GSERIALIZED *tpointseq_linear_trajectory(const TSequence *seq, bool unary_union); +/* extern TSequence *tpointseq_speed(const TSequence *seq); (undefined) */ +extern STBox *tgeoseq_stboxes(const TSequence *seq, int *count); +extern STBox *tgeoseq_split_n_stboxes(const TSequence *seq, int max_count, int *count); +extern TSequenceSet *tpointseqset_azimuth(const TSequenceSet *ss); +extern TSequenceSet *tpointseqset_cumulative_length(const TSequenceSet *ss); +extern bool tpointseqset_is_simple(const TSequenceSet *ss); +extern double tpointseqset_length(const TSequenceSet *ss); +/* extern TSequenceSet *tpointseqset_speed(const TSequenceSet *ss); (undefined) */ +extern STBox *tgeoseqset_stboxes(const TSequenceSet *ss, int *count); +extern STBox *tgeoseqset_split_n_stboxes(const TSequenceSet *ss, int max_count, int *count); +extern Temporal *tpoint_get_coord(const Temporal *temp, int coord); + +extern TInstant *tgeominst_tgeoginst(const TInstant *inst, bool oper); +extern TSequence *tgeomseq_tgeogseq(const TSequence *seq, bool oper); +extern TSequenceSet *tgeomseqset_tgeogseqset(const TSequenceSet *ss, bool oper); +extern Temporal *tgeom_tgeog(const Temporal *temp, bool oper); +extern Temporal *tgeo_tpoint(const Temporal *temp, bool oper); +extern void tspatialinst_set_srid(TInstant *inst, int32_t srid); +extern TSequence **tpointseq_make_simple(const TSequence *seq, int *count); +extern void tspatialseq_set_srid(TSequence *seq, int32_t srid); +extern TSequence **tpointseqset_make_simple(const TSequenceSet *ss, int *count); +extern void tspatialseqset_set_srid(TSequenceSet *ss, int32_t srid); + +extern GSERIALIZED *tpointseq_twcentroid(const TSequence *seq); +extern GSERIALIZED *tpointseqset_twcentroid(const TSequenceSet *ss); + + +//-------------------- meos_npoint.h -------------------- + + +//#include +//#include + +//#include +//#include +//#include + +typedef struct +{ + int64 rid; + double pos; +} Npoint; + +typedef struct +{ + int64 rid; + double pos1; + double pos2; +} Nsegment; + + //#else + + + //#else + + +extern char *npoint_as_ewkt(const Npoint *np, int maxdd); +extern char *npoint_as_hexwkb(const Npoint *np, uint8_t variant, size_t *size_out); +extern char *npoint_as_text(const Npoint *np, int maxdd); +extern uint8_t *npoint_as_wkb(const Npoint *np, uint8_t variant, size_t *size_out); +extern Npoint *npoint_from_hexwkb(const char *hexwkb); +extern Npoint *npoint_from_wkb(const uint8_t *wkb, size_t size); +extern Npoint *npoint_in(const char *str); +extern char *npoint_out(const Npoint *np, int maxdd); +extern Nsegment *nsegment_in(const char *str); +extern char *nsegment_out(const Nsegment *ns, int maxdd); + +extern Npoint *npoint_make(int64 rid, double pos); +extern Nsegment *nsegment_make(int64 rid, double pos1, double pos2); + +extern Npoint *geompoint_to_npoint(const GSERIALIZED *gs); +extern Nsegment *geom_to_nsegment(const GSERIALIZED *gs); +extern GSERIALIZED *npoint_to_geompoint(const Npoint *np); +extern Nsegment *npoint_to_nsegment(const Npoint *np); +extern STBox *npoint_to_stbox(const Npoint *np); +extern GSERIALIZED *nsegment_to_geom(const Nsegment *ns); +extern STBox *nsegment_to_stbox(const Nsegment *np); + +extern uint32 npoint_hash(const Npoint *np); +extern uint64 npoint_hash_extended(const Npoint *np, uint64 seed); +extern double npoint_position(const Npoint *np); +extern int64 npoint_route(const Npoint *np); +extern double nsegment_end_position(const Nsegment *ns); +extern int64 nsegment_route(const Nsegment *ns); +extern double nsegment_start_position(const Nsegment *ns); + +extern bool route_exists(int64 rid); +extern GSERIALIZED *route_geom(int64 rid); +extern double route_length(int64 rid); + +extern Npoint *npoint_round(const Npoint *np, int maxdd); +extern Nsegment *nsegment_round(const Nsegment *ns, int maxdd); + +extern int32_t get_srid_ways(void); +extern int32_t npoint_srid(const Npoint *np); +extern int32_t nsegment_srid(const Nsegment *ns); + +extern STBox *npoint_timestamptz_to_stbox(const Npoint *np, TimestampTz t); +extern STBox *npoint_tstzspan_to_stbox(const Npoint *np, const Span *s); + +extern int npoint_cmp(const Npoint *np1, const Npoint *np2); +extern bool npoint_eq(const Npoint *np1, const Npoint *np2); +extern bool npoint_ge(const Npoint *np1, const Npoint *np2); +extern bool npoint_gt(const Npoint *np1, const Npoint *np2); +extern bool npoint_le(const Npoint *np1, const Npoint *np2); +extern bool npoint_lt(const Npoint *np1, const Npoint *np2); +extern bool npoint_ne(const Npoint *np1, const Npoint *np2); +extern bool npoint_same(const Npoint *np1, const Npoint *np2); +extern int nsegment_cmp(const Nsegment *ns1, const Nsegment *ns2); +extern bool nsegment_eq(const Nsegment *ns1, const Nsegment *ns2); +extern bool nsegment_ge(const Nsegment *ns1, const Nsegment *ns2); +extern bool nsegment_gt(const Nsegment *ns1, const Nsegment *ns2); +extern bool nsegment_le(const Nsegment *ns1, const Nsegment *ns2); +extern bool nsegment_lt(const Nsegment *ns1, const Nsegment *ns2); +extern bool nsegment_ne(const Nsegment *ns1, const Nsegment *ns2); + +extern Set *npointset_in(const char *str); +extern char *npointset_out(const Set *s, int maxdd); + +extern Set *npointset_make(const Npoint **values, int count); + +extern Set *npoint_to_set(const Npoint *np); + +extern Npoint *npointset_end_value(const Set *s); +extern Set *npointset_routes(const Set *s); +extern Npoint *npointset_start_value(const Set *s); +extern bool npointset_value_n(const Set *s, int n, Npoint **result); +extern Npoint **npointset_values(const Set *s); + +extern bool contained_npoint_set(const Npoint *np, const Set *s); +extern bool contains_set_npoint(const Set *s, Npoint *np); +extern Set *intersection_npoint_set(const Npoint *np, const Set *s); +extern Set *intersection_set_npoint(const Set *s, const Npoint *np); +extern Set *minus_npoint_set(const Npoint *np, const Set *s); +extern Set *minus_set_npoint(const Set *s, const Npoint *np); +extern Set *npoint_union_transfn(Set *state, const Npoint *np); +extern Set *union_npoint_set(const Npoint *np, const Set *s); +extern Set *union_set_npoint(const Set *s, const Npoint *np); + +extern Temporal *tnpoint_in(const char *str); +extern char *tnpoint_out(const Temporal *temp, int maxdd); + +extern TInstant *tnpointinst_make(const Npoint *np, TimestampTz t); + +extern Temporal *tgeompoint_to_tnpoint(const Temporal *temp); +extern Temporal *tnpoint_to_tgeompoint(const Temporal *temp); + +extern Temporal *tnpoint_cumulative_length(const Temporal *temp); +extern double tnpoint_length(const Temporal *temp); +extern Nsegment **tnpoint_positions(const Temporal *temp, int *count); +extern int64 tnpoint_route(const Temporal *temp); +extern Set *tnpoint_routes(const Temporal *temp); +extern Temporal *tnpoint_speed(const Temporal *temp); +extern GSERIALIZED *tnpoint_trajectory(const Temporal *temp); +extern GSERIALIZED *tnpoint_twcentroid(const Temporal *temp); + +extern Temporal *tnpoint_at_geom(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tnpoint_at_npoint(const Temporal *temp, const Npoint *np); +extern Temporal *tnpoint_at_npointset(const Temporal *temp, const Set *s); +extern Temporal *tnpoint_at_stbox(const Temporal *temp, const STBox *box, bool border_inc); +extern Temporal *tnpoint_minus_geom(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tnpoint_minus_npoint(const Temporal *temp, const Npoint *np); +extern Temporal *tnpoint_minus_npointset(const Temporal *temp, const Set *s); +extern Temporal *tnpoint_minus_stbox(const Temporal *temp, const STBox *box, bool border_inc); + +extern Temporal *tdistance_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern Temporal *tdistance_tnpoint_point(const Temporal *temp, const GSERIALIZED *gs); +extern Temporal *tdistance_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); +extern double nad_tnpoint_geo(const Temporal *temp, const GSERIALIZED *gs); +extern double nad_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern double nad_tnpoint_stbox(const Temporal *temp, const STBox *box); +extern double nad_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); +extern TInstant *nai_tnpoint_geo(const Temporal *temp, const GSERIALIZED *gs); +extern TInstant *nai_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern TInstant *nai_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); +extern GSERIALIZED *shortestline_tnpoint_geo(const Temporal *temp, const GSERIALIZED *gs); +extern GSERIALIZED *shortestline_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern GSERIALIZED *shortestline_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); + +extern SkipList *tnpoint_tcentroid_transfn(SkipList *state, Temporal *temp); + +extern int always_eq_npoint_tnpoint(const Npoint *np, const Temporal *temp); +extern int always_eq_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern int always_eq_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); +extern int always_ne_npoint_tnpoint(const Npoint *np, const Temporal *temp); +extern int always_ne_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern int always_ne_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); +extern int ever_eq_npoint_tnpoint(const Npoint *np, const Temporal *temp); +extern int ever_eq_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern int ever_eq_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); +extern int ever_ne_npoint_tnpoint(const Npoint *np, const Temporal *temp); +extern int ever_ne_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern int ever_ne_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2); + +extern Temporal *teq_tnpoint_npoint(const Temporal *temp, const Npoint *np); +extern Temporal *tne_tnpoint_npoint(const Temporal *temp, const Npoint *np); + extern "Python" void py_error_handler(int, int, char*); \ No newline at end of file diff --git a/builder/meos_configs.py b/builder/meos_configs.py new file mode 100644 index 0000000..daf25ce --- /dev/null +++ b/builder/meos_configs.py @@ -0,0 +1,8 @@ +header_files = [ + "meos.h", + "meos_catalog.h", + "meos_geo.h", + "meos_internal.h", + "meos_internal_geo.h", + "meos_npoint.h", +] diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index c63e531..99e59c3 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -34,1762 +34,2311 @@ "InterpolationType", "SpatialRelation", # Functions - "py_error_handler", - "create_pointer", - "get_address", - "datetime_to_timestamptz", - "timestamptz_to_datetime", - "date_to_date_adt", - "date_adt_to_date", - "timedelta_to_interval", - "interval_to_timedelta", - "geo_to_gserialized", - "geometry_to_gserialized", - "geography_to_gserialized", - "gserialized_to_shapely_point", - "gserialized_to_shapely_geometry", - "as_tinstant", - "as_tsequence", - "as_tsequenceset", - "date_in", - "date_out", - "interval_cmp", - "interval_in", - "interval_out", - "time_in", - "time_out", - "timestamp_in", - "timestamp_out", - "timestamptz_in", - "timestamptz_out", - "meos_errno", - "meos_errno_set", - "meos_errno_restore", - "meos_errno_reset", - "meos_finalize_projsrs", - "meos_finalize_ways", - "meos_set_datestyle", - "meos_set_intervalstyle", - "meos_get_datestyle", - "meos_get_intervalstyle", - "meos_initialize", - "meos_finalize", - "add_date_int", - "add_interval_interval", - "add_timestamptz_interval", - "sub_timestamptz_interval", - "bool_in", - "bool_out", - "cstring2text", - "date_to_timestamp", - "date_to_timestamptz", - "float_exp", - "float_ln", - "float_log10", - "float_round", - "interval_make", - "minus_date_date", - "minus_date_int", - "minus_timestamptz_interval", - "minus_timestamptz_timestamptz", - "mul_interval_double", - "pg_date_in", - "pg_date_out", - "pg_interval_cmp", - "pg_interval_in", - "pg_interval_out", - "pg_time_in", - "pg_time_out", - "pg_timestamp_in", - "pg_timestamp_out", - "pg_timestamptz_in", - "pg_timestamptz_out", - "text2cstring", - "text_cmp", - "text_copy", - "text_initcap", - "text_lower", - "text_out", - "text_upper", - "textcat_text_text", - "timestamptz_shift", - "timestamp_to_date", - "timestamptz_to_date", - "bigintset_in", - "bigintset_out", - "bigintspan_in", - "bigintspan_out", - "bigintspanset_in", - "bigintspanset_out", - "dateset_in", - "dateset_out", - "datespan_in", - "datespan_out", - "datespanset_in", - "datespanset_out", - "floatset_in", - "floatset_out", - "floatspan_in", - "floatspan_out", - "floatspanset_in", - "floatspanset_out", - "intset_in", - "intset_out", - "intspan_in", - "intspan_out", - "intspanset_in", - "intspanset_out", - "set_as_hexwkb", - "set_as_wkb", - "set_from_hexwkb", - "set_from_wkb", - "span_as_hexwkb", - "span_as_wkb", - "span_from_hexwkb", - "span_from_wkb", - "spanset_as_hexwkb", - "spanset_as_wkb", - "spanset_from_hexwkb", - "spanset_from_wkb", - "textset_in", - "textset_out", - "tstzset_in", - "tstzset_out", - "tstzspan_in", - "tstzspan_out", - "tstzspanset_in", - "tstzspanset_out", - "bigintset_make", - "bigintspan_make", - "dateset_make", - "datespan_make", - "floatset_make", - "floatspan_make", - "intset_make", - "intspan_make", - "set_copy", - "span_copy", - "spanset_copy", - "spanset_make", - "textset_make", - "tstzset_make", - "tstzspan_make", - "bigint_to_set", - "bigint_to_span", - "bigint_to_spanset", - "date_to_set", - "date_to_span", - "date_to_spanset", - "dateset_to_tstzset", - "datespan_to_tstzspan", - "datespanset_to_tstzspanset", - "float_to_set", - "float_to_span", - "float_to_spanset", - "floatset_to_intset", - "floatspan_to_intspan", - "floatspanset_to_intspanset", - "int_to_set", - "int_to_span", - "int_to_spanset", - "intset_to_floatset", - "intspan_to_floatspan", - "intspanset_to_floatspanset", - "set_to_span", - "set_to_spanset", - "span_to_spanset", - "text_to_set", - "timestamptz_to_set", - "timestamptz_to_span", - "timestamptz_to_spanset", - "tstzset_to_dateset", - "tstzspan_to_datespan", - "tstzspanset_to_datespanset", - "bigintset_end_value", - "bigintset_start_value", - "bigintset_value_n", - "bigintset_values", - "bigintspan_lower", - "bigintspan_upper", - "bigintspan_width", - "bigintspanset_lower", - "bigintspanset_upper", - "bigintspanset_width", - "dateset_end_value", - "dateset_start_value", - "dateset_value_n", - "dateset_values", - "datespan_duration", - "datespan_lower", - "datespan_upper", - "datespanset_date_n", - "datespanset_dates", - "datespanset_duration", - "datespanset_end_date", - "datespanset_num_dates", - "datespanset_start_date", - "floatset_end_value", - "floatset_start_value", - "floatset_value_n", - "floatset_values", - "floatspan_lower", - "floatspan_upper", - "floatspan_width", - "floatspanset_lower", - "floatspanset_upper", - "floatspanset_width", - "intset_end_value", - "intset_start_value", - "intset_value_n", - "intset_values", - "intspan_lower", - "intspan_upper", - "intspan_width", - "intspanset_lower", - "intspanset_upper", - "intspanset_width", - "set_hash", - "set_hash_extended", - "set_num_values", - "span_hash", - "span_hash_extended", - "span_lower_inc", - "span_upper_inc", - "spanset_end_span", - "spanset_hash", - "spanset_hash_extended", - "spanset_lower_inc", - "spanset_num_spans", - "spanset_span", - "spanset_span_n", - "spanset_spanarr", - "spanset_start_span", - "spanset_upper_inc", - "textset_end_value", - "textset_start_value", - "textset_value_n", - "textset_values", - "tstzset_end_value", - "tstzset_start_value", - "tstzset_value_n", - "tstzset_values", - "tstzspan_duration", - "tstzspan_lower", - "tstzspan_upper", - "tstzspanset_duration", - "tstzspanset_end_timestamptz", - "tstzspanset_lower", - "tstzspanset_num_timestamps", - "tstzspanset_start_timestamptz", - "tstzspanset_timestamps", - "tstzspanset_timestamptz_n", - "tstzspanset_upper", - "bigintset_shift_scale", - "bigintspan_shift_scale", - "bigintspanset_shift_scale", - "dateset_shift_scale", - "datespan_shift_scale", - "datespanset_shift_scale", - "floatset_ceil", - "floatset_degrees", - "floatset_floor", - "floatset_radians", - "floatset_shift_scale", - "floatspan_ceil", - "floatspan_degrees", - "floatspan_floor", - "floatspan_radians", - "floatspan_round", - "floatspan_shift_scale", - "floatspanset_ceil", - "floatspanset_floor", - "floatspanset_degrees", - "floatspanset_radians", - "floatspanset_round", - "floatspanset_shift_scale", - "intset_shift_scale", - "intspan_shift_scale", - "intspanset_shift_scale", - "numspan_expand", - "tstzspan_expand", - "set_round", - "textcat_text_textset", - "textcat_textset_text", - "textset_initcap", - "textset_lower", - "textset_upper", - "timestamptz_tprecision", - "tstzset_shift_scale", - "tstzset_tprecision", - "tstzspan_shift_scale", - "tstzspan_tprecision", - "tstzspanset_shift_scale", - "tstzspanset_tprecision", - "set_cmp", - "set_eq", - "set_ge", - "set_gt", - "set_le", - "set_lt", - "set_ne", - "span_cmp", - "span_eq", - "span_ge", - "span_gt", - "span_le", - "span_lt", - "span_ne", - "spanset_cmp", - "spanset_eq", - "spanset_ge", - "spanset_gt", - "spanset_le", - "spanset_lt", - "spanset_ne", - "set_spans", - "set_split_each_n_spans", - "set_split_n_spans", - "spanset_spans", - "spanset_split_each_n_spans", - "spanset_split_n_spans", - "adjacent_span_bigint", - "adjacent_span_date", - "adjacent_span_float", - "adjacent_span_int", - "adjacent_span_span", - "adjacent_span_spanset", - "adjacent_span_timestamptz", - "adjacent_spanset_bigint", - "adjacent_spanset_date", - "adjacent_spanset_float", - "adjacent_spanset_int", - "adjacent_spanset_timestamptz", - "adjacent_spanset_span", - "adjacent_spanset_spanset", - "contained_bigint_set", - "contained_bigint_span", - "contained_bigint_spanset", - "contained_date_set", - "contained_date_span", - "contained_date_spanset", - "contained_float_set", - "contained_float_span", - "contained_float_spanset", - "contained_int_set", - "contained_int_span", - "contained_int_spanset", - "contained_set_set", - "contained_span_span", - "contained_span_spanset", - "contained_spanset_span", - "contained_spanset_spanset", - "contained_text_set", - "contained_timestamptz_set", - "contained_timestamptz_span", - "contained_timestamptz_spanset", - "contains_set_bigint", - "contains_set_date", - "contains_set_float", - "contains_set_int", - "contains_set_set", - "contains_set_text", - "contains_set_timestamptz", - "contains_span_bigint", - "contains_span_date", - "contains_span_float", - "contains_span_int", - "contains_span_span", - "contains_span_spanset", - "contains_span_timestamptz", - "contains_spanset_bigint", - "contains_spanset_date", - "contains_spanset_float", - "contains_spanset_int", - "contains_spanset_span", - "contains_spanset_spanset", - "contains_spanset_timestamptz", - "overlaps_set_set", - "overlaps_span_span", - "overlaps_span_spanset", - "overlaps_spanset_span", - "overlaps_spanset_spanset", - "after_date_set", - "after_date_span", - "after_date_spanset", - "after_set_date", - "after_set_timestamptz", - "after_span_date", - "after_span_timestamptz", - "after_spanset_date", - "after_spanset_timestamptz", - "after_timestamptz_set", - "after_timestamptz_span", - "after_timestamptz_spanset", - "before_date_set", - "before_date_span", - "before_date_spanset", - "before_set_date", - "before_set_timestamptz", - "before_span_date", - "before_span_timestamptz", - "before_spanset_date", - "before_spanset_timestamptz", - "before_timestamptz_set", - "before_timestamptz_span", - "before_timestamptz_spanset", - "left_bigint_set", - "left_bigint_span", - "left_bigint_spanset", - "left_float_set", - "left_float_span", - "left_float_spanset", - "left_int_set", - "left_int_span", - "left_int_spanset", - "left_set_bigint", - "left_set_float", - "left_set_int", - "left_set_set", - "left_set_text", - "left_span_bigint", - "left_span_float", - "left_span_int", - "left_span_span", - "left_span_spanset", - "left_spanset_bigint", - "left_spanset_float", - "left_spanset_int", - "left_spanset_span", - "left_spanset_spanset", - "left_text_set", - "overafter_date_set", - "overafter_date_span", - "overafter_date_spanset", - "overafter_set_date", - "overafter_set_timestamptz", - "overafter_span_date", - "overafter_span_timestamptz", - "overafter_spanset_date", - "overafter_spanset_timestamptz", - "overafter_timestamptz_set", - "overafter_timestamptz_span", - "overafter_timestamptz_spanset", - "overbefore_date_set", - "overbefore_date_span", - "overbefore_date_spanset", - "overbefore_set_date", - "overbefore_set_timestamptz", - "overbefore_span_date", - "overbefore_span_timestamptz", - "overbefore_spanset_date", - "overbefore_spanset_timestamptz", - "overbefore_timestamptz_set", - "overbefore_timestamptz_span", - "overbefore_timestamptz_spanset", - "overleft_bigint_set", - "overleft_bigint_span", - "overleft_bigint_spanset", - "overleft_float_set", - "overleft_float_span", - "overleft_float_spanset", - "overleft_int_set", - "overleft_int_span", - "overleft_int_spanset", - "overleft_set_bigint", - "overleft_set_float", - "overleft_set_int", - "overleft_set_set", - "overleft_set_text", - "overleft_span_bigint", - "overleft_span_float", - "overleft_span_int", - "overleft_span_span", - "overleft_span_spanset", - "overleft_spanset_bigint", - "overleft_spanset_float", - "overleft_spanset_int", - "overleft_spanset_span", - "overleft_spanset_spanset", - "overleft_text_set", - "overright_bigint_set", - "overright_bigint_span", - "overright_bigint_spanset", - "overright_float_set", - "overright_float_span", - "overright_float_spanset", - "overright_int_set", - "overright_int_span", - "overright_int_spanset", - "overright_set_bigint", - "overright_set_float", - "overright_set_int", - "overright_set_set", - "overright_set_text", - "overright_span_bigint", - "overright_span_float", - "overright_span_int", - "overright_span_span", - "overright_span_spanset", - "overright_spanset_bigint", - "overright_spanset_float", - "overright_spanset_int", - "overright_spanset_span", - "overright_spanset_spanset", - "overright_text_set", - "right_bigint_set", - "right_bigint_span", - "right_bigint_spanset", - "right_float_set", - "right_float_span", - "right_float_spanset", - "right_int_set", - "right_int_span", - "right_int_spanset", - "right_set_bigint", - "right_set_float", - "right_set_int", - "right_set_set", - "right_set_text", - "right_span_bigint", - "right_span_float", - "right_span_int", - "right_span_span", - "right_span_spanset", - "right_spanset_bigint", - "right_spanset_float", - "right_spanset_int", - "right_spanset_span", - "right_spanset_spanset", - "right_text_set", - "intersection_bigint_set", - "intersection_date_set", - "intersection_float_set", - "intersection_int_set", - "intersection_set_bigint", - "intersection_set_date", - "intersection_set_float", - "intersection_set_int", - "intersection_set_set", - "intersection_set_text", - "intersection_set_timestamptz", - "intersection_span_bigint", - "intersection_span_date", - "intersection_span_float", - "intersection_span_int", - "intersection_span_span", - "intersection_span_spanset", - "intersection_span_timestamptz", - "intersection_spanset_bigint", - "intersection_spanset_date", - "intersection_spanset_float", - "intersection_spanset_int", - "intersection_spanset_span", - "intersection_spanset_spanset", - "intersection_spanset_timestamptz", - "intersection_text_set", - "intersection_timestamptz_set", - "minus_bigint_set", - "minus_bigint_span", - "minus_bigint_spanset", - "minus_date_set", - "minus_date_span", - "minus_date_spanset", - "minus_float_set", - "minus_float_span", - "minus_float_spanset", - "minus_int_set", - "minus_int_span", - "minus_int_spanset", - "minus_set_bigint", - "minus_set_date", - "minus_set_float", - "minus_set_int", - "minus_set_set", - "minus_set_text", - "minus_set_timestamptz", - "minus_span_bigint", - "minus_span_date", - "minus_span_float", - "minus_span_int", - "minus_span_span", - "minus_span_spanset", - "minus_span_timestamptz", - "minus_spanset_bigint", - "minus_spanset_date", - "minus_spanset_float", - "minus_spanset_int", - "minus_spanset_span", - "minus_spanset_spanset", - "minus_spanset_timestamptz", - "minus_text_set", - "minus_timestamptz_set", - "minus_timestamptz_span", - "minus_timestamptz_spanset", - "union_bigint_set", - "union_bigint_span", - "union_bigint_spanset", - "union_date_set", - "union_date_span", - "union_date_spanset", - "union_float_set", - "union_float_span", - "union_float_spanset", - "union_int_set", - "union_int_span", - "union_int_spanset", - "union_set_bigint", - "union_set_date", - "union_set_float", - "union_set_int", - "union_set_set", - "union_set_text", - "union_set_timestamptz", - "union_span_bigint", - "union_span_date", - "union_span_float", - "union_span_int", - "union_span_span", - "union_span_spanset", - "union_span_timestamptz", - "union_spanset_bigint", - "union_spanset_date", - "union_spanset_float", - "union_spanset_int", - "union_spanset_span", - "union_spanset_spanset", - "union_spanset_timestamptz", - "union_text_set", - "union_timestamptz_set", - "union_timestamptz_span", - "union_timestamptz_spanset", - "distance_bigintset_bigintset", - "distance_bigintspan_bigintspan", - "distance_bigintspanset_bigintspan", - "distance_bigintspanset_bigintspanset", - "distance_dateset_dateset", - "distance_datespan_datespan", - "distance_datespanset_datespan", - "distance_datespanset_datespanset", - "distance_floatset_floatset", - "distance_floatspan_floatspan", - "distance_floatspanset_floatspan", - "distance_floatspanset_floatspanset", - "distance_intset_intset", - "distance_intspan_intspan", - "distance_intspanset_intspan", - "distance_intspanset_intspanset", - "distance_set_bigint", - "distance_set_date", - "distance_set_float", - "distance_set_int", - "distance_set_timestamptz", - "distance_span_bigint", - "distance_span_date", - "distance_span_float", - "distance_span_int", - "distance_span_timestamptz", - "distance_spanset_bigint", - "distance_spanset_date", - "distance_spanset_float", - "distance_spanset_int", - "distance_spanset_timestamptz", - "distance_tstzset_tstzset", - "distance_tstzspan_tstzspan", - "distance_tstzspanset_tstzspan", - "distance_tstzspanset_tstzspanset", - "bigint_extent_transfn", - "bigint_union_transfn", - "date_extent_transfn", - "date_union_transfn", - "float_extent_transfn", - "float_union_transfn", - "int_extent_transfn", - "int_union_transfn", - "set_extent_transfn", - "set_union_finalfn", - "set_union_transfn", - "span_extent_transfn", - "span_union_transfn", - "spanset_extent_transfn", - "spanset_union_finalfn", - "spanset_union_transfn", - "text_union_transfn", - "timestamptz_extent_transfn", - "timestamptz_union_transfn", - "bigint_get_bin", - "bigintspan_bins", - "bigintspanset_bins", - "date_get_bin", - "datespan_bins", - "datespanset_bins", - "float_get_bin", - "floatspan_bins", - "floatspanset_bins", - "int_get_bin", - "intspan_bins", - "intspanset_bins", - "timestamptz_get_bin", - "tstzspan_bins", - "tstzspanset_bins", - "tbox_as_hexwkb", - "tbox_as_wkb", - "tbox_from_hexwkb", - "tbox_from_wkb", - "tbox_in", - "tbox_out", - "float_timestamptz_to_tbox", - "float_tstzspan_to_tbox", - "int_timestamptz_to_tbox", - "int_tstzspan_to_tbox", - "numspan_tstzspan_to_tbox", - "numspan_timestamptz_to_tbox", - "tbox_copy", - "tbox_make", - "float_to_tbox", - "int_to_tbox", - "set_to_tbox", - "span_to_tbox", - "spanset_to_tbox", - "tbox_to_intspan", - "tbox_to_floatspan", - "tbox_to_tstzspan", - "timestamptz_to_tbox", - "tbox_hast", - "tbox_hasx", - "tbox_tmax", - "tbox_tmax_inc", - "tbox_tmin", - "tbox_tmin_inc", - "tbox_xmax", - "tbox_xmax_inc", - "tbox_xmin", - "tbox_xmin_inc", - "tboxfloat_xmax", - "tboxfloat_xmin", - "tboxint_xmax", - "tboxint_xmin", - "tbox_expand_float", - "tbox_expand_int", - "tbox_expand_time", - "tbox_round", - "tbox_shift_scale_float", - "tbox_shift_scale_int", - "tbox_shift_scale_time", - "union_tbox_tbox", - "intersection_tbox_tbox", - "adjacent_tbox_tbox", - "contained_tbox_tbox", - "contains_tbox_tbox", - "overlaps_tbox_tbox", - "same_tbox_tbox", - "after_tbox_tbox", - "before_tbox_tbox", - "left_tbox_tbox", - "overafter_tbox_tbox", - "overbefore_tbox_tbox", - "overleft_tbox_tbox", - "overright_tbox_tbox", - "right_tbox_tbox", - "tbox_cmp", - "tbox_eq", - "tbox_ge", - "tbox_gt", - "tbox_le", - "tbox_lt", - "tbox_ne", - "tbool_from_mfjson", - "tbool_in", - "tbool_out", - "temporal_as_hexwkb", - "temporal_as_mfjson", - "temporal_as_wkb", - "temporal_from_hexwkb", - "temporal_from_wkb", - "tfloat_from_mfjson", - "tfloat_in", - "tfloat_out", - "tint_from_mfjson", - "tint_in", - "tint_out", - "ttext_from_mfjson", - "ttext_in", - "ttext_out", - "tbool_from_base_temp", - "tboolinst_make", - "tboolseq_from_base_tstzset", - "tboolseq_from_base_tstzspan", - "tboolseqset_from_base_tstzspanset", - "temporal_copy", - "tfloat_from_base_temp", - "tfloatinst_make", - "tfloatseq_from_base_tstzset", - "tfloatseq_from_base_tstzspan", - "tfloatseqset_from_base_tstzspanset", - "tint_from_base_temp", - "tintinst_make", - "tintseq_from_base_tstzset", - "tintseq_from_base_tstzspan", - "tintseqset_from_base_tstzspanset", - "tsequence_make", - "tsequenceset_make", - "tsequenceset_make_gaps", - "ttext_from_base_temp", - "ttextinst_make", - "ttextseq_from_base_tstzset", - "ttextseq_from_base_tstzspan", - "ttextseqset_from_base_tstzspanset", - "tbool_to_tint", - "temporal_to_tstzspan", - "tfloat_to_tint", - "tint_to_tfloat", - "tnumber_to_span", - "tbool_end_value", - "tbool_start_value", - "tbool_value_at_timestamptz", - "tbool_value_n", - "tbool_values", - "temporal_duration", - "temporal_end_instant", - "temporal_end_sequence", - "temporal_end_timestamptz", - "temporal_hash", - "temporal_instant_n", - "temporal_instants", - "temporal_interp", - "temporal_lower_inc", - "temporal_max_instant", - "temporal_min_instant", - "temporal_num_instants", - "temporal_num_sequences", - "temporal_num_timestamps", - "temporal_segments", - "temporal_sequence_n", - "temporal_sequences", - "temporal_start_instant", - "temporal_start_sequence", - "temporal_start_timestamptz", - "temporal_stops", - "temporal_subtype", - "temporal_time", - "temporal_timestamps", - "temporal_timestamptz_n", - "temporal_upper_inc", - "tfloat_end_value", - "tfloat_max_value", - "tfloat_min_value", - "tfloat_start_value", - "tfloat_value_at_timestamptz", - "tfloat_value_n", - "tfloat_values", - "tint_end_value", - "tint_max_value", - "tint_min_value", - "tint_start_value", - "tint_value_at_timestamptz", - "tint_value_n", - "tint_values", - "tnumber_integral", - "tnumber_twavg", - "tnumber_valuespans", - "ttext_end_value", - "ttext_max_value", - "ttext_min_value", - "ttext_start_value", - "ttext_value_at_timestamptz", - "ttext_value_n", - "ttext_values", - "float_degrees", - "temparr_round", - "temporal_round", - "temporal_scale_time", - "temporal_set_interp", - "temporal_shift_scale_time", - "temporal_shift_time", - "temporal_to_tinstant", - "temporal_to_tsequence", - "temporal_to_tsequenceset", - "tfloat_ceil", - "tfloat_degrees", - "tfloat_floor", - "tfloat_radians", - "tfloat_scale_value", - "tfloat_shift_scale_value", - "tfloat_shift_value", - "tint_scale_value", - "tint_shift_scale_value", - "tint_shift_value", - "temporal_append_tinstant", - "temporal_append_tsequence", - "temporal_delete_timestamptz", - "temporal_delete_tstzset", - "temporal_delete_tstzspan", - "temporal_delete_tstzspanset", - "temporal_insert", - "temporal_merge", - "temporal_merge_array", - "temporal_update", - "tbool_at_value", - "tbool_minus_value", - "temporal_at_max", - "temporal_at_min", - "temporal_at_timestamptz", - "temporal_at_tstzset", - "temporal_at_tstzspan", - "temporal_at_tstzspanset", - "temporal_at_values", - "temporal_minus_max", - "temporal_minus_min", - "temporal_minus_timestamptz", - "temporal_minus_tstzset", - "temporal_minus_tstzspan", - "temporal_minus_tstzspanset", - "temporal_minus_values", - "tfloat_at_value", - "tfloat_minus_value", - "tint_at_value", - "tint_minus_value", - "tnumber_at_span", - "tnumber_at_spanset", - "tnumber_at_tbox", - "tnumber_minus_span", - "tnumber_minus_spanset", - "tnumber_minus_tbox", - "ttext_at_value", - "ttext_minus_value", - "temporal_cmp", - "temporal_eq", - "temporal_ge", - "temporal_gt", - "temporal_le", - "temporal_lt", - "temporal_ne", - "always_eq_bool_tbool", - "always_eq_float_tfloat", - "always_eq_int_tint", - "always_eq_tbool_bool", - "always_eq_temporal_temporal", - "always_eq_text_ttext", - "always_eq_tfloat_float", - "always_eq_tint_int", - "always_eq_ttext_text", - "always_ge_float_tfloat", - "always_ge_int_tint", - "always_ge_temporal_temporal", - "always_ge_text_ttext", - "always_ge_tfloat_float", - "always_ge_tint_int", - "always_ge_ttext_text", - "always_gt_float_tfloat", - "always_gt_int_tint", - "always_gt_temporal_temporal", - "always_gt_text_ttext", - "always_gt_tfloat_float", - "always_gt_tint_int", - "always_gt_ttext_text", - "always_le_float_tfloat", - "always_le_int_tint", - "always_le_temporal_temporal", - "always_le_text_ttext", - "always_le_tfloat_float", - "always_le_tint_int", - "always_le_ttext_text", - "always_lt_float_tfloat", - "always_lt_int_tint", - "always_lt_temporal_temporal", - "always_lt_text_ttext", - "always_lt_tfloat_float", - "always_lt_tint_int", - "always_lt_ttext_text", - "always_ne_bool_tbool", - "always_ne_float_tfloat", - "always_ne_int_tint", - "always_ne_tbool_bool", - "always_ne_temporal_temporal", - "always_ne_text_ttext", - "always_ne_tfloat_float", - "always_ne_tint_int", - "always_ne_ttext_text", - "ever_eq_bool_tbool", - "ever_eq_float_tfloat", - "ever_eq_int_tint", - "ever_eq_tbool_bool", - "ever_eq_temporal_temporal", - "ever_eq_text_ttext", - "ever_eq_tfloat_float", - "ever_eq_tint_int", - "ever_eq_ttext_text", - "ever_ge_float_tfloat", - "ever_ge_int_tint", - "ever_ge_temporal_temporal", - "ever_ge_text_ttext", - "ever_ge_tfloat_float", - "ever_ge_tint_int", - "ever_ge_ttext_text", - "ever_gt_float_tfloat", - "ever_gt_int_tint", - "ever_gt_temporal_temporal", - "ever_gt_text_ttext", - "ever_gt_tfloat_float", - "ever_gt_tint_int", - "ever_gt_ttext_text", - "ever_le_float_tfloat", - "ever_le_int_tint", - "ever_le_temporal_temporal", - "ever_le_text_ttext", - "ever_le_tfloat_float", - "ever_le_tint_int", - "ever_le_ttext_text", - "ever_lt_float_tfloat", - "ever_lt_int_tint", - "ever_lt_temporal_temporal", - "ever_lt_text_ttext", - "ever_lt_tfloat_float", - "ever_lt_tint_int", - "ever_lt_ttext_text", - "ever_ne_bool_tbool", - "ever_ne_float_tfloat", - "ever_ne_int_tint", - "ever_ne_tbool_bool", - "ever_ne_temporal_temporal", - "ever_ne_text_ttext", - "ever_ne_tfloat_float", - "ever_ne_tint_int", - "ever_ne_ttext_text", - "teq_bool_tbool", - "teq_float_tfloat", - "teq_int_tint", - "teq_tbool_bool", - "teq_temporal_temporal", - "teq_text_ttext", - "teq_tfloat_float", - "teq_tint_int", - "teq_ttext_text", - "tge_float_tfloat", - "tge_int_tint", - "tge_temporal_temporal", - "tge_text_ttext", - "tge_tfloat_float", - "tge_tint_int", - "tge_ttext_text", - "tgt_float_tfloat", - "tgt_int_tint", - "tgt_temporal_temporal", - "tgt_text_ttext", - "tgt_tfloat_float", - "tgt_tint_int", - "tgt_ttext_text", - "tle_float_tfloat", - "tle_int_tint", - "tle_temporal_temporal", - "tle_text_ttext", - "tle_tfloat_float", - "tle_tint_int", - "tle_ttext_text", - "tlt_float_tfloat", - "tlt_int_tint", - "tlt_temporal_temporal", - "tlt_text_ttext", - "tlt_tfloat_float", - "tlt_tint_int", - "tlt_ttext_text", - "tne_bool_tbool", - "tne_float_tfloat", - "tne_int_tint", - "tne_tbool_bool", - "tne_temporal_temporal", - "tne_text_ttext", - "tne_tfloat_float", - "tne_tint_int", - "tne_ttext_text", - "temporal_spans", - "temporal_split_each_n_spans", - "temporal_split_n_spans", - "tnumber_split_each_n_tboxes", - "tnumber_split_n_tboxes", - "tnumber_tboxes", - "adjacent_numspan_tnumber", - "adjacent_tbox_tnumber", - "adjacent_temporal_temporal", - "adjacent_temporal_tstzspan", - "adjacent_tnumber_numspan", - "adjacent_tnumber_tbox", - "adjacent_tnumber_tnumber", - "adjacent_tstzspan_temporal", - "contained_numspan_tnumber", - "contained_tbox_tnumber", - "contained_temporal_temporal", - "contained_temporal_tstzspan", - "contained_tnumber_numspan", - "contained_tnumber_tbox", - "contained_tnumber_tnumber", - "contained_tstzspan_temporal", - "contains_numspan_tnumber", - "contains_tbox_tnumber", - "contains_temporal_tstzspan", - "contains_temporal_temporal", - "contains_tnumber_numspan", - "contains_tnumber_tbox", - "contains_tnumber_tnumber", - "contains_tstzspan_temporal", - "overlaps_numspan_tnumber", - "overlaps_tbox_tnumber", - "overlaps_temporal_temporal", - "overlaps_temporal_tstzspan", - "overlaps_tnumber_numspan", - "overlaps_tnumber_tbox", - "overlaps_tnumber_tnumber", - "overlaps_tstzspan_temporal", - "same_numspan_tnumber", - "same_tbox_tnumber", - "same_temporal_temporal", - "same_temporal_tstzspan", - "same_tnumber_numspan", - "same_tnumber_tbox", - "same_tnumber_tnumber", - "same_tstzspan_temporal", - "after_tbox_tnumber", - "after_temporal_tstzspan", - "after_temporal_temporal", - "after_tnumber_tbox", - "after_tnumber_tnumber", - "after_tstzspan_temporal", - "before_tbox_tnumber", - "before_temporal_tstzspan", - "before_temporal_temporal", - "before_tnumber_tbox", - "before_tnumber_tnumber", - "before_tstzspan_temporal", - "left_tbox_tnumber", - "left_numspan_tnumber", - "left_tnumber_numspan", - "left_tnumber_tbox", - "left_tnumber_tnumber", - "overafter_tbox_tnumber", - "overafter_temporal_tstzspan", - "overafter_temporal_temporal", - "overafter_tnumber_tbox", - "overafter_tnumber_tnumber", - "overafter_tstzspan_temporal", - "overbefore_tbox_tnumber", - "overbefore_temporal_tstzspan", - "overbefore_temporal_temporal", - "overbefore_tnumber_tbox", - "overbefore_tnumber_tnumber", - "overbefore_tstzspan_temporal", - "overleft_numspan_tnumber", - "overleft_tbox_tnumber", - "overleft_tnumber_numspan", - "overleft_tnumber_tbox", - "overleft_tnumber_tnumber", - "overright_numspan_tnumber", - "overright_tbox_tnumber", - "overright_tnumber_numspan", - "overright_tnumber_tbox", - "overright_tnumber_tnumber", - "right_numspan_tnumber", - "right_tbox_tnumber", - "right_tnumber_numspan", - "right_tnumber_tbox", - "right_tnumber_tnumber", - "tand_bool_tbool", - "tand_tbool_bool", - "tand_tbool_tbool", - "tbool_when_true", - "tnot_tbool", - "tor_bool_tbool", - "tor_tbool_bool", - "tor_tbool_tbool", - "add_float_tfloat", - "add_int_tint", - "add_tfloat_float", - "add_tint_int", - "add_tnumber_tnumber", - "div_float_tfloat", - "div_int_tint", - "div_tfloat_float", - "div_tint_int", - "div_tnumber_tnumber", - "mult_float_tfloat", - "mult_int_tint", - "mult_tfloat_float", - "mult_tint_int", - "mult_tnumber_tnumber", - "sub_float_tfloat", - "sub_int_tint", - "sub_tfloat_float", - "sub_tint_int", - "sub_tnumber_tnumber", - "temporal_derivative", - "tfloat_exp", - "tfloat_ln", - "tfloat_log10", - "tnumber_abs", - "float_angular_difference", - "tnumber_angular_difference", - "tnumber_delta_value", - "textcat_text_ttext", - "textcat_ttext_text", - "textcat_ttext_ttext", - "ttext_initcap", - "ttext_upper", - "ttext_lower", - "tdistance_tfloat_float", - "tdistance_tint_int", - "tdistance_tnumber_tnumber", - "nad_tboxfloat_tboxfloat", - "nad_tboxint_tboxint", - "nad_tfloat_float", - "nad_tfloat_tfloat", - "nad_tfloat_tbox", - "nad_tint_int", - "nad_tint_tbox", - "nad_tint_tint", - "tbool_tand_transfn", - "tbool_tor_transfn", - "temporal_extent_transfn", - "temporal_tagg_finalfn", - "temporal_tcount_transfn", - "tfloat_tmax_transfn", - "tfloat_tmin_transfn", - "tfloat_tsum_transfn", - "tfloat_wmax_transfn", - "tfloat_wmin_transfn", - "tfloat_wsum_transfn", - "timestamptz_tcount_transfn", - "tint_tmax_transfn", - "tint_tmin_transfn", - "tint_tsum_transfn", - "tint_wmax_transfn", - "tint_wmin_transfn", - "tint_wsum_transfn", - "tnumber_extent_transfn", - "tnumber_tavg_finalfn", - "tnumber_tavg_transfn", - "tnumber_wavg_transfn", - "tstzset_tcount_transfn", - "tstzspan_tcount_transfn", - "tstzspanset_tcount_transfn", - "ttext_tmax_transfn", - "ttext_tmin_transfn", - "temporal_simplify_dp", - "temporal_simplify_max_dist", - "temporal_simplify_min_dist", - "temporal_simplify_min_tdelta", - "temporal_tprecision", - "temporal_tsample", - "temporal_dyntimewarp_distance", - "temporal_dyntimewarp_path", - "temporal_frechet_distance", - "temporal_frechet_path", - "temporal_hausdorff_distance", - "temporal_time_bins", - "temporal_time_split", - "tfloat_time_boxes", - "tfloat_value_bins", - "tfloat_value_boxes", - "tfloat_value_split", - "tfloat_value_time_boxes", - "tfloat_value_time_split", - "tfloatbox_time_tiles", - "tfloatbox_value_tiles", - "tfloatbox_value_time_tiles", - "tint_time_boxes", - "tint_value_bins", - "tint_value_boxes", - "tint_value_split", - "tint_value_time_boxes", - "tint_value_time_split", - "tintbox_time_tiles", - "tintbox_value_tiles", - "tintbox_value_time_tiles", - "temptype_subtype", - "temptype_subtype_all", - "tempsubtype_name", - "tempsubtype_from_string", - "meosoper_name", - "meosoper_from_string", - "interptype_name", - "interptype_from_string", - "meostype_name", - "temptype_basetype", - "settype_basetype", - "spantype_basetype", - "spantype_spansettype", - "spansettype_spantype", - "basetype_spantype", - "basetype_settype", - "meos_basetype", - "tnumber_basetype", - "alphanum_basetype", - "alphanum_temptype", - "geo_basetype", - "time_type", - "set_basetype", - "set_type", - "numset_type", - "ensure_numset_type", - "timeset_type", - "set_spantype", - "ensure_set_spantype", - "alphanumset_type", - "geoset_type", - "ensure_geoset_type", - "spatialset_type", - "ensure_spatialset_type", - "span_basetype", - "span_canon_basetype", - "span_type", - "type_span_bbox", - "span_tbox_type", - "ensure_span_tbox_type", - "numspan_basetype", - "numspan_type", - "ensure_numspan_type", - "timespan_basetype", - "timespan_type", - "spanset_type", - "timespanset_type", - "ensure_timespanset_type", - "temporal_type", - "temporal_basetype", - "temptype_continuous", - "basetype_byvalue", - "basetype_varlength", - "basetype_length", - "talphanum_type", - "talpha_type", - "tnumber_type", - "ensure_tnumber_type", - "ensure_tnumber_basetype", - "tnumber_spantype", - "spatial_basetype", - "tspatial_type", - "ensure_tspatial_type", - "tpoint_type", - "ensure_tpoint_type", - "tgeo_type", - "ensure_tgeo_type", - "tgeo_type_all", - "ensure_tgeo_type_all", - "tgeometry_type", - "ensure_tgeometry_type", - "tgeodetic_type", - "ensure_tgeodetic_type", - "ensure_tnumber_tpoint_type", - "SET_BBOX_PTR", - "SET_OFFSETS_PTR", - "SET_VAL_N", - "SPANSET_SP_N", - "TSEQUENCE_OFFSETS_PTR", - "TSEQUENCE_INST_N", - "TSEQUENCESET_OFFSETS_PTR", - "TSEQUENCESET_SEQ_N", - "gsl_get_generation_rng", - "gsl_get_aggregation_rng", - "datum_ceil", - "datum_degrees", - "datum_float_round", - "datum_floor", - "datum_hash", - "datum_hash_extended", - "datum_radians", - "floatspan_round_set", - "set_in", - "set_out", - "span_in", - "span_out", - "spanset_in", - "spanset_out", - "set_make", - "set_make_exp", - "set_make_free", - "span_make", - "span_set", - "spanset_make_exp", - "spanset_make_free", - "set_span", - "set_spanset", - "value_set_span", - "value_set", - "value_span", - "value_spanset", - "numspan_width", - "numspanset_width", - "set_end_value", - "set_mem_size", - "set_set_subspan", - "set_set_span", - "set_start_value", - "set_value_n", - "set_vals", - "set_values", - "spanset_lower", - "spanset_mem_size", - "spanset_sps", - "spanset_upper", - "datespan_set_tstzspan", - "floatspan_set_intspan", - "intspan_set_floatspan", - "numset_shift_scale", - "numspan_expand", - "numspan_shift_scale", - "numspanset_shift_scale", - "set_compact", - "span_expand", - "spanset_compact", - "tbox_expand_value", - "textcat_textset_text_int", - "tstzspan_set_datespan", - "adjacent_span_value", - "adjacent_spanset_value", - "adjacent_value_spanset", - "contained_value_set", - "contained_value_span", - "contained_value_spanset", - "contains_set_value", - "contains_span_value", - "contains_spanset_value", - "ovadj_span_span", - "left_set_value", - "left_span_value", - "left_spanset_value", - "left_value_set", - "left_value_span", - "left_value_spanset", - "lfnadj_span_span", - "overleft_set_value", - "overleft_span_value", - "overleft_spanset_value", - "overleft_value_set", - "overleft_value_span", - "overleft_value_spanset", - "overright_set_value", - "overright_span_value", - "overright_spanset_value", - "overright_value_set", - "overright_value_span", - "overright_value_spanset", - "right_value_set", - "right_set_value", - "right_value_span", - "right_value_spanset", - "right_span_value", - "right_spanset_value", - "bbox_union_span_span", - "inter_span_span", - "intersection_set_value", - "intersection_span_value", - "intersection_spanset_value", - "intersection_value_set", - "intersection_value_span", - "intersection_value_spanset", - "mi_span_span", - "minus_set_value", - "minus_span_value", - "minus_spanset_value", - "minus_value_set", - "minus_value_span", - "minus_value_spanset", - "super_union_span_span", - "union_set_value", - "union_span_value", - "union_spanset_value", - "union_value_set", - "union_value_span", - "union_value_spanset", - "distance_set_set", - "distance_set_value", - "distance_span_span", - "distance_span_value", - "distance_spanset_span", - "distance_spanset_spanset", - "distance_spanset_value", - "distance_value_value", - "spanbase_extent_transfn", - "value_union_transfn", - "number_tstzspan_to_tbox", - "number_timestamptz_to_tbox", - "tbox_set", - "float_set_tbox", - "int_set_tbox", - "number_set_tbox", - "number_tbox", - "numset_set_tbox", - "numspan_set_tbox", - "numspanset_set_tbox", - "timestamptz_set_tbox", - "tstzset_set_tbox", - "tstzspan_set_tbox", - "tstzspanset_set_tbox", - "tbox_shift_scale_value", - "tbox_expand", - "inter_tbox_tbox", - "tboolinst_from_mfjson", - "tboolinst_in", - "tboolseq_from_mfjson", - "tboolseq_in", - "tboolseqset_from_mfjson", - "tboolseqset_in", - "temporal_in", - "temporal_out", - "temparr_out", - "tfloatinst_from_mfjson", - "tfloatinst_in", - "tfloatseq_from_mfjson", - "tfloatseq_in", - "tfloatseqset_from_mfjson", - "tfloatseqset_in", - "tinstant_from_mfjson", - "tinstant_in", - "tinstant_out", - "tintinst_from_mfjson", - "tintinst_in", - "tintseq_from_mfjson", - "tintseq_in", - "tintseqset_from_mfjson", - "tintseqset_in", - "tsequence_from_mfjson", - "tsequence_in", - "tsequence_out", - "tsequenceset_from_mfjson", - "tsequenceset_in", - "tsequenceset_out", - "ttextinst_from_mfjson", - "ttextinst_in", - "ttextseq_from_mfjson", - "ttextseq_in", - "ttextseqset_from_mfjson", - "ttextseqset_in", - "temporal_from_mfjson", - "temporal_from_base_temp", - "tinstant_copy", - "tinstant_make", - "tinstant_make_free", - "tsequence_copy", - "tsequence_from_base_temp", - "tsequence_from_base_tstzset", - "tsequence_from_base_tstzspan", - "tsequence_make_exp", - "tsequence_make_free", - "tsequenceset_copy", - "tseqsetarr_to_tseqset", - "tsequenceset_from_base_temp", - "tsequenceset_from_base_tstzspanset", - "tsequenceset_make_exp", - "tsequenceset_make_free", - "temporal_set_tstzspan", - "tinstant_set_tstzspan", - "tnumber_set_tbox", - "tnumberinst_set_tbox", - "tnumberseq_set_tbox", - "tnumberseqset_set_tbox", - "tsequence_set_tstzspan", - "tsequenceset_set_tstzspan", - "temporal_end_inst", - "temporal_end_value", - "temporal_inst_n", - "temporal_instants_p", - "temporal_max_value", - "temporal_mem_size", - "temporal_min_value", - "temporal_sequences_p", - "temporal_set_bbox", - "temporal_start_inst", - "temporal_start_value", - "temporal_values_p", - "temporal_value_n", - "temporal_values", - "tinstant_hash", - "tinstant_insts", - "tinstant_set_bbox", - "tinstant_time", - "tinstant_timestamps", - "tinstant_value_p", - "tinstant_value", - "tinstant_value_at_timestamptz", - "tinstant_values_p", - "tnumber_set_span", - "tnumberinst_valuespans", - "tnumberseq_valuespans", - "tnumberseqset_valuespans", - "tsequence_duration", - "tsequence_end_timestamptz", - "tsequence_hash", - "tsequence_insts_p", - "tsequence_max_inst", - "tsequence_max_val", - "tsequence_min_inst", - "tsequence_min_val", - "tsequence_segments", - "tsequence_seqs", - "tsequence_start_timestamptz", - "tsequence_time", - "tsequence_timestamps", - "tsequence_value_at_timestamptz", - "tsequence_values_p", - "tsequenceset_duration", - "tsequenceset_end_timestamptz", - "tsequenceset_hash", - "tsequenceset_inst_n", - "tsequenceset_insts_p", - "tsequenceset_max_inst", - "tsequenceset_max_val", - "tsequenceset_min_inst", - "tsequenceset_min_val", - "tsequenceset_num_instants", - "tsequenceset_num_timestamps", - "tsequenceset_segments", - "tsequenceset_sequences_p", - "tsequenceset_start_timestamptz", - "tsequenceset_time", - "tsequenceset_timestamptz_n", - "tsequenceset_timestamps", - "tsequenceset_value_at_timestamptz", - "tsequenceset_value_n", - "tsequenceset_values_p", - "temporal_restart", - "temporal_tsequence", - "temporal_tsequenceset", - "tinstant_shift_time", - "tinstant_to_tsequence", - "tinstant_to_tsequence_free", - "tinstant_to_tsequenceset", - "tnumber_shift_scale_value", - "tnumberinst_shift_value", - "tnumberseq_shift_scale_value", - "tnumberseqset_shift_scale_value", - "tsequence_restart", - "tsequence_set_interp", - "tsequence_shift_scale_time", - "tsequence_subseq", - "tsequence_to_tinstant", - "tsequence_to_tsequenceset", - "tsequence_to_tsequenceset_free", - "tsequence_to_tsequenceset_interp", - "tsequenceset_restart", - "tsequenceset_set_interp", - "tsequenceset_shift_scale_time", - "tsequenceset_to_discrete", - "tsequenceset_to_linear", - "tsequenceset_to_step", - "tsequenceset_to_tinstant", - "tsequenceset_to_tsequence", - "tinstant_merge", - "tinstant_merge_array", - "tsequence_append_tinstant", - "tsequence_append_tsequence", - "tsequence_delete_timestamptz", - "tsequence_delete_tstzset", - "tsequence_delete_tstzspan", - "tsequence_delete_tstzspanset", - "tsequence_insert", - "tsequence_merge", - "tsequence_merge_array", - "tsequenceset_append_tinstant", - "tsequenceset_append_tsequence", - "tsequenceset_delete_timestamptz", - "tsequenceset_delete_tstzset", - "tsequenceset_delete_tstzspan", - "tsequenceset_delete_tstzspanset", - "tsequenceset_insert", - "tsequenceset_merge", - "tsequenceset_merge_array", - "tsequence_expand_bbox", - "tsequence_set_bbox", - "tsequenceset_expand_bbox", - "tsequenceset_set_bbox", - "tdiscseq_restrict_minmax", - "tcontseq_restrict_minmax", - "temporal_bbox_restrict_set", - "temporal_restrict_minmax", - "temporal_restrict_timestamptz", - "temporal_restrict_tstzset", - "temporal_restrict_tstzspan", - "temporal_restrict_tstzspanset", - "temporal_restrict_value", - "temporal_restrict_values", - "temporal_value_at_timestamptz", - "tinstant_restrict_tstzspan", - "tinstant_restrict_tstzspanset", - "tinstant_restrict_timestamptz", - "tinstant_restrict_tstzset", - "tinstant_restrict_value", - "tinstant_restrict_values", - "tnumber_restrict_span", - "tnumber_restrict_spanset", - "tnumberinst_restrict_span", - "tnumberinst_restrict_spanset", - "tnumberseqset_restrict_span", - "tnumberseqset_restrict_spanset", - "tsequence_at_timestamptz", - "tsequence_restrict_tstzspan", - "tsequence_restrict_tstzspanset", - "tsequenceset_restrict_minmax", - "tsequenceset_restrict_tstzspan", - "tsequenceset_restrict_tstzspanset", - "tsequenceset_restrict_timestamptz", - "tsequenceset_restrict_tstzset", - "tsequenceset_restrict_value", - "tsequenceset_restrict_values", - "tinstant_cmp", - "tinstant_eq", - "tsequence_cmp", - "tsequence_eq", - "tsequenceset_cmp", - "tsequenceset_eq", - "always_eq_base_temporal", - "always_eq_temporal_base", - "always_ne_base_temporal", - "always_ne_temporal_base", - "always_ge_base_temporal", - "always_ge_temporal_base", - "always_gt_base_temporal", - "always_gt_temporal_base", - "always_le_base_temporal", - "always_le_temporal_base", - "always_lt_base_temporal", - "always_lt_temporal_base", - "ever_eq_base_temporal", - "ever_eq_temporal_base", - "ever_ne_base_temporal", - "ever_ne_temporal_base", - "ever_ge_base_temporal", - "ever_ge_temporal_base", - "ever_gt_base_temporal", - "ever_gt_temporal_base", - "ever_le_base_temporal", - "ever_le_temporal_base", - "ever_lt_base_temporal", - "ever_lt_temporal_base", - "tfloatseq_derivative", - "tfloatseqset_derivative", - "tnumberinst_abs", - "tnumberseq_abs", - "tnumberseq_angular_difference", - "tnumberseq_delta_value", - "tnumberseqset_abs", - "tnumberseqset_angular_difference", - "tnumberseqset_delta_value", - "tdistance_tnumber_number", - "nad_tbox_tbox", - "nad_tnumber_number", - "nad_tnumber_tbox", - "nad_tnumber_tnumber", - "tnumberseq_integral", - "tnumberseq_twavg", - "tnumberseqset_integral", - "tnumberseqset_twavg", - "temporal_compact", - "tsequence_compact", - "tsequenceset_compact", - "skiplist_free", - "temporal_app_tinst_transfn", - "temporal_app_tseq_transfn", - "span_bins", - "spanset_bins", - "tnumber_value_bins", - "tnumber_value_time_boxes", - "tnumber_value_split", - "tbox_get_value_time_tile", - "tnumber_value_time_split", + 'py_error_handler', + 'create_pointer', + 'get_address', + 'datetime_to_timestamptz', + 'timestamptz_to_datetime', + 'date_to_date_adt', + 'date_adt_to_date', + 'timedelta_to_interval', + 'interval_to_timedelta', + 'geo_to_gserialized', + 'geometry_to_gserialized', + 'geography_to_gserialized', + 'gserialized_to_shapely_point', + 'gserialized_to_shapely_geometry', + 'as_tinstant', + 'as_tsequence', + 'as_tsequenceset', + 'time_in', + 'time_out', + 'meos_errno', + 'meos_errno_set', + 'meos_errno_restore', + 'meos_errno_reset', + 'meos_finalize_projsrs', + 'meos_finalize_ways', + 'meos_set_datestyle', + 'meos_set_intervalstyle', + 'meos_get_datestyle', + 'meos_get_intervalstyle', + 'meos_initialize', + 'meos_finalize', + 'add_date_int', + 'add_interval_interval', + 'add_timestamptz_interval', + 'bool_in', + 'bool_out', + 'cstring2text', + 'date_to_timestamp', + 'date_to_timestamptz', + 'float_exp', + 'float_ln', + 'float_log10', + 'float_round', + 'interval_make', + 'minus_date_date', + 'minus_date_int', + 'minus_timestamptz_interval', + 'minus_timestamptz_timestamptz', + 'mul_interval_double', + 'pg_date_in', + 'pg_date_out', + 'pg_interval_cmp', + 'pg_interval_in', + 'pg_interval_out', + 'pg_timestamp_in', + 'pg_timestamp_out', + 'pg_timestamptz_in', + 'pg_timestamptz_out', + 'text2cstring', + 'text_cmp', + 'text_copy', + 'text_initcap', + 'text_lower', + 'text_out', + 'text_upper', + 'textcat_text_text', + 'timestamptz_shift', + 'timestamp_to_date', + 'timestamptz_to_date', + 'bigintset_in', + 'bigintset_out', + 'bigintspan_in', + 'bigintspan_out', + 'bigintspanset_in', + 'bigintspanset_out', + 'dateset_in', + 'dateset_out', + 'datespan_in', + 'datespan_out', + 'datespanset_in', + 'datespanset_out', + 'floatset_in', + 'floatset_out', + 'floatspan_in', + 'floatspan_out', + 'floatspanset_in', + 'floatspanset_out', + 'intset_in', + 'intset_out', + 'intspan_in', + 'intspan_out', + 'intspanset_in', + 'intspanset_out', + 'set_as_hexwkb', + 'set_as_wkb', + 'set_from_hexwkb', + 'set_from_wkb', + 'span_as_hexwkb', + 'span_as_wkb', + 'span_from_hexwkb', + 'span_from_wkb', + 'spanset_as_hexwkb', + 'spanset_as_wkb', + 'spanset_from_hexwkb', + 'spanset_from_wkb', + 'textset_in', + 'textset_out', + 'tstzset_in', + 'tstzset_out', + 'tstzspan_in', + 'tstzspan_out', + 'tstzspanset_in', + 'tstzspanset_out', + 'bigintset_make', + 'bigintspan_make', + 'dateset_make', + 'datespan_make', + 'floatset_make', + 'floatspan_make', + 'intset_make', + 'intspan_make', + 'set_copy', + 'span_copy', + 'spanset_copy', + 'spanset_make', + 'textset_make', + 'tstzset_make', + 'tstzspan_make', + 'bigint_to_set', + 'bigint_to_span', + 'bigint_to_spanset', + 'date_to_set', + 'date_to_span', + 'date_to_spanset', + 'dateset_to_tstzset', + 'datespan_to_tstzspan', + 'datespanset_to_tstzspanset', + 'float_to_set', + 'float_to_span', + 'float_to_spanset', + 'floatset_to_intset', + 'floatspan_to_intspan', + 'floatspanset_to_intspanset', + 'int_to_set', + 'int_to_span', + 'int_to_spanset', + 'intset_to_floatset', + 'intspan_to_floatspan', + 'intspanset_to_floatspanset', + 'set_to_span', + 'set_to_spanset', + 'span_to_spanset', + 'text_to_set', + 'timestamptz_to_set', + 'timestamptz_to_span', + 'timestamptz_to_spanset', + 'tstzset_to_dateset', + 'tstzspan_to_datespan', + 'tstzspanset_to_datespanset', + 'bigintset_end_value', + 'bigintset_start_value', + 'bigintset_value_n', + 'bigintset_values', + 'bigintspan_lower', + 'bigintspan_upper', + 'bigintspan_width', + 'bigintspanset_lower', + 'bigintspanset_upper', + 'bigintspanset_width', + 'dateset_end_value', + 'dateset_start_value', + 'dateset_value_n', + 'dateset_values', + 'datespan_duration', + 'datespan_lower', + 'datespan_upper', + 'datespanset_date_n', + 'datespanset_dates', + 'datespanset_duration', + 'datespanset_end_date', + 'datespanset_num_dates', + 'datespanset_start_date', + 'floatset_end_value', + 'floatset_start_value', + 'floatset_value_n', + 'floatset_values', + 'floatspan_lower', + 'floatspan_upper', + 'floatspan_width', + 'floatspanset_lower', + 'floatspanset_upper', + 'floatspanset_width', + 'intset_end_value', + 'intset_start_value', + 'intset_value_n', + 'intset_values', + 'intspan_lower', + 'intspan_upper', + 'intspan_width', + 'intspanset_lower', + 'intspanset_upper', + 'intspanset_width', + 'set_hash', + 'set_hash_extended', + 'set_num_values', + 'span_hash', + 'span_hash_extended', + 'span_lower_inc', + 'span_upper_inc', + 'spanset_end_span', + 'spanset_hash', + 'spanset_hash_extended', + 'spanset_lower_inc', + 'spanset_num_spans', + 'spanset_span', + 'spanset_span_n', + 'spanset_spanarr', + 'spanset_start_span', + 'spanset_upper_inc', + 'textset_end_value', + 'textset_start_value', + 'textset_value_n', + 'textset_values', + 'tstzset_end_value', + 'tstzset_start_value', + 'tstzset_value_n', + 'tstzset_values', + 'tstzspan_duration', + 'tstzspan_lower', + 'tstzspan_upper', + 'tstzspanset_duration', + 'tstzspanset_end_timestamptz', + 'tstzspanset_lower', + 'tstzspanset_num_timestamps', + 'tstzspanset_start_timestamptz', + 'tstzspanset_timestamps', + 'tstzspanset_timestamptz_n', + 'tstzspanset_upper', + 'bigintset_shift_scale', + 'bigintspan_shift_scale', + 'bigintspanset_shift_scale', + 'dateset_shift_scale', + 'datespan_shift_scale', + 'datespanset_shift_scale', + 'floatset_ceil', + 'floatset_degrees', + 'floatset_floor', + 'floatset_radians', + 'floatset_shift_scale', + 'floatspan_ceil', + 'floatspan_degrees', + 'floatspan_floor', + 'floatspan_radians', + 'floatspan_round', + 'floatspan_shift_scale', + 'floatspanset_ceil', + 'floatspanset_floor', + 'floatspanset_degrees', + 'floatspanset_radians', + 'floatspanset_round', + 'floatspanset_shift_scale', + 'intset_shift_scale', + 'intspan_shift_scale', + 'intspanset_shift_scale', + 'numspan_expand', + 'tstzspan_expand', + 'set_round', + 'textcat_text_textset', + 'textcat_textset_text', + 'textset_initcap', + 'textset_lower', + 'textset_upper', + 'timestamptz_tprecision', + 'tstzset_shift_scale', + 'tstzset_tprecision', + 'tstzspan_shift_scale', + 'tstzspan_tprecision', + 'tstzspanset_shift_scale', + 'tstzspanset_tprecision', + 'set_cmp', + 'set_eq', + 'set_ge', + 'set_gt', + 'set_le', + 'set_lt', + 'set_ne', + 'span_cmp', + 'span_eq', + 'span_ge', + 'span_gt', + 'span_le', + 'span_lt', + 'span_ne', + 'spanset_cmp', + 'spanset_eq', + 'spanset_ge', + 'spanset_gt', + 'spanset_le', + 'spanset_lt', + 'spanset_ne', + 'set_spans', + 'set_split_each_n_spans', + 'set_split_n_spans', + 'spanset_spans', + 'spanset_split_each_n_spans', + 'spanset_split_n_spans', + 'adjacent_span_bigint', + 'adjacent_span_date', + 'adjacent_span_float', + 'adjacent_span_int', + 'adjacent_span_span', + 'adjacent_span_spanset', + 'adjacent_span_timestamptz', + 'adjacent_spanset_bigint', + 'adjacent_spanset_date', + 'adjacent_spanset_float', + 'adjacent_spanset_int', + 'adjacent_spanset_timestamptz', + 'adjacent_spanset_span', + 'adjacent_spanset_spanset', + 'contained_bigint_set', + 'contained_bigint_span', + 'contained_bigint_spanset', + 'contained_date_set', + 'contained_date_span', + 'contained_date_spanset', + 'contained_float_set', + 'contained_float_span', + 'contained_float_spanset', + 'contained_int_set', + 'contained_int_span', + 'contained_int_spanset', + 'contained_set_set', + 'contained_span_span', + 'contained_span_spanset', + 'contained_spanset_span', + 'contained_spanset_spanset', + 'contained_text_set', + 'contained_timestamptz_set', + 'contained_timestamptz_span', + 'contained_timestamptz_spanset', + 'contains_set_bigint', + 'contains_set_date', + 'contains_set_float', + 'contains_set_int', + 'contains_set_set', + 'contains_set_text', + 'contains_set_timestamptz', + 'contains_span_bigint', + 'contains_span_date', + 'contains_span_float', + 'contains_span_int', + 'contains_span_span', + 'contains_span_spanset', + 'contains_span_timestamptz', + 'contains_spanset_bigint', + 'contains_spanset_date', + 'contains_spanset_float', + 'contains_spanset_int', + 'contains_spanset_span', + 'contains_spanset_spanset', + 'contains_spanset_timestamptz', + 'overlaps_set_set', + 'overlaps_span_span', + 'overlaps_span_spanset', + 'overlaps_spanset_span', + 'overlaps_spanset_spanset', + 'after_date_set', + 'after_date_span', + 'after_date_spanset', + 'after_set_date', + 'after_set_timestamptz', + 'after_span_date', + 'after_span_timestamptz', + 'after_spanset_date', + 'after_spanset_timestamptz', + 'after_timestamptz_set', + 'after_timestamptz_span', + 'after_timestamptz_spanset', + 'before_date_set', + 'before_date_span', + 'before_date_spanset', + 'before_set_date', + 'before_set_timestamptz', + 'before_span_date', + 'before_span_timestamptz', + 'before_spanset_date', + 'before_spanset_timestamptz', + 'before_timestamptz_set', + 'before_timestamptz_span', + 'before_timestamptz_spanset', + 'left_bigint_set', + 'left_bigint_span', + 'left_bigint_spanset', + 'left_float_set', + 'left_float_span', + 'left_float_spanset', + 'left_int_set', + 'left_int_span', + 'left_int_spanset', + 'left_set_bigint', + 'left_set_float', + 'left_set_int', + 'left_set_set', + 'left_set_text', + 'left_span_bigint', + 'left_span_float', + 'left_span_int', + 'left_span_span', + 'left_span_spanset', + 'left_spanset_bigint', + 'left_spanset_float', + 'left_spanset_int', + 'left_spanset_span', + 'left_spanset_spanset', + 'left_text_set', + 'overafter_date_set', + 'overafter_date_span', + 'overafter_date_spanset', + 'overafter_set_date', + 'overafter_set_timestamptz', + 'overafter_span_date', + 'overafter_span_timestamptz', + 'overafter_spanset_date', + 'overafter_spanset_timestamptz', + 'overafter_timestamptz_set', + 'overafter_timestamptz_span', + 'overafter_timestamptz_spanset', + 'overbefore_date_set', + 'overbefore_date_span', + 'overbefore_date_spanset', + 'overbefore_set_date', + 'overbefore_set_timestamptz', + 'overbefore_span_date', + 'overbefore_span_timestamptz', + 'overbefore_spanset_date', + 'overbefore_spanset_timestamptz', + 'overbefore_timestamptz_set', + 'overbefore_timestamptz_span', + 'overbefore_timestamptz_spanset', + 'overleft_bigint_set', + 'overleft_bigint_span', + 'overleft_bigint_spanset', + 'overleft_float_set', + 'overleft_float_span', + 'overleft_float_spanset', + 'overleft_int_set', + 'overleft_int_span', + 'overleft_int_spanset', + 'overleft_set_bigint', + 'overleft_set_float', + 'overleft_set_int', + 'overleft_set_set', + 'overleft_set_text', + 'overleft_span_bigint', + 'overleft_span_float', + 'overleft_span_int', + 'overleft_span_span', + 'overleft_span_spanset', + 'overleft_spanset_bigint', + 'overleft_spanset_float', + 'overleft_spanset_int', + 'overleft_spanset_span', + 'overleft_spanset_spanset', + 'overleft_text_set', + 'overright_bigint_set', + 'overright_bigint_span', + 'overright_bigint_spanset', + 'overright_float_set', + 'overright_float_span', + 'overright_float_spanset', + 'overright_int_set', + 'overright_int_span', + 'overright_int_spanset', + 'overright_set_bigint', + 'overright_set_float', + 'overright_set_int', + 'overright_set_set', + 'overright_set_text', + 'overright_span_bigint', + 'overright_span_float', + 'overright_span_int', + 'overright_span_span', + 'overright_span_spanset', + 'overright_spanset_bigint', + 'overright_spanset_float', + 'overright_spanset_int', + 'overright_spanset_span', + 'overright_spanset_spanset', + 'overright_text_set', + 'right_bigint_set', + 'right_bigint_span', + 'right_bigint_spanset', + 'right_float_set', + 'right_float_span', + 'right_float_spanset', + 'right_int_set', + 'right_int_span', + 'right_int_spanset', + 'right_set_bigint', + 'right_set_float', + 'right_set_int', + 'right_set_set', + 'right_set_text', + 'right_span_bigint', + 'right_span_float', + 'right_span_int', + 'right_span_span', + 'right_span_spanset', + 'right_spanset_bigint', + 'right_spanset_float', + 'right_spanset_int', + 'right_spanset_span', + 'right_spanset_spanset', + 'right_text_set', + 'intersection_bigint_set', + 'intersection_date_set', + 'intersection_float_set', + 'intersection_int_set', + 'intersection_set_bigint', + 'intersection_set_date', + 'intersection_set_float', + 'intersection_set_int', + 'intersection_set_set', + 'intersection_set_text', + 'intersection_set_timestamptz', + 'intersection_span_bigint', + 'intersection_span_date', + 'intersection_span_float', + 'intersection_span_int', + 'intersection_span_span', + 'intersection_span_spanset', + 'intersection_span_timestamptz', + 'intersection_spanset_bigint', + 'intersection_spanset_date', + 'intersection_spanset_float', + 'intersection_spanset_int', + 'intersection_spanset_span', + 'intersection_spanset_spanset', + 'intersection_spanset_timestamptz', + 'intersection_text_set', + 'intersection_timestamptz_set', + 'minus_bigint_set', + 'minus_bigint_span', + 'minus_bigint_spanset', + 'minus_date_set', + 'minus_date_span', + 'minus_date_spanset', + 'minus_float_set', + 'minus_float_span', + 'minus_float_spanset', + 'minus_int_set', + 'minus_int_span', + 'minus_int_spanset', + 'minus_set_bigint', + 'minus_set_date', + 'minus_set_float', + 'minus_set_int', + 'minus_set_set', + 'minus_set_text', + 'minus_set_timestamptz', + 'minus_span_bigint', + 'minus_span_date', + 'minus_span_float', + 'minus_span_int', + 'minus_span_span', + 'minus_span_spanset', + 'minus_span_timestamptz', + 'minus_spanset_bigint', + 'minus_spanset_date', + 'minus_spanset_float', + 'minus_spanset_int', + 'minus_spanset_span', + 'minus_spanset_spanset', + 'minus_spanset_timestamptz', + 'minus_text_set', + 'minus_timestamptz_set', + 'minus_timestamptz_span', + 'minus_timestamptz_spanset', + 'union_bigint_set', + 'union_bigint_span', + 'union_bigint_spanset', + 'union_date_set', + 'union_date_span', + 'union_date_spanset', + 'union_float_set', + 'union_float_span', + 'union_float_spanset', + 'union_int_set', + 'union_int_span', + 'union_int_spanset', + 'union_set_bigint', + 'union_set_date', + 'union_set_float', + 'union_set_int', + 'union_set_set', + 'union_set_text', + 'union_set_timestamptz', + 'union_span_bigint', + 'union_span_date', + 'union_span_float', + 'union_span_int', + 'union_span_span', + 'union_span_spanset', + 'union_span_timestamptz', + 'union_spanset_bigint', + 'union_spanset_date', + 'union_spanset_float', + 'union_spanset_int', + 'union_spanset_span', + 'union_spanset_spanset', + 'union_spanset_timestamptz', + 'union_text_set', + 'union_timestamptz_set', + 'union_timestamptz_span', + 'union_timestamptz_spanset', + 'distance_bigintset_bigintset', + 'distance_bigintspan_bigintspan', + 'distance_bigintspanset_bigintspan', + 'distance_bigintspanset_bigintspanset', + 'distance_dateset_dateset', + 'distance_datespan_datespan', + 'distance_datespanset_datespan', + 'distance_datespanset_datespanset', + 'distance_floatset_floatset', + 'distance_floatspan_floatspan', + 'distance_floatspanset_floatspan', + 'distance_floatspanset_floatspanset', + 'distance_intset_intset', + 'distance_intspan_intspan', + 'distance_intspanset_intspan', + 'distance_intspanset_intspanset', + 'distance_set_bigint', + 'distance_set_date', + 'distance_set_float', + 'distance_set_int', + 'distance_set_timestamptz', + 'distance_span_bigint', + 'distance_span_date', + 'distance_span_float', + 'distance_span_int', + 'distance_span_timestamptz', + 'distance_spanset_bigint', + 'distance_spanset_date', + 'distance_spanset_float', + 'distance_spanset_int', + 'distance_spanset_timestamptz', + 'distance_tstzset_tstzset', + 'distance_tstzspan_tstzspan', + 'distance_tstzspanset_tstzspan', + 'distance_tstzspanset_tstzspanset', + 'bigint_extent_transfn', + 'bigint_union_transfn', + 'date_extent_transfn', + 'date_union_transfn', + 'float_extent_transfn', + 'float_union_transfn', + 'int_extent_transfn', + 'int_union_transfn', + 'set_extent_transfn', + 'set_union_finalfn', + 'set_union_transfn', + 'span_extent_transfn', + 'span_union_transfn', + 'spanset_extent_transfn', + 'spanset_union_finalfn', + 'spanset_union_transfn', + 'text_union_transfn', + 'timestamptz_extent_transfn', + 'timestamptz_union_transfn', + 'bigint_get_bin', + 'bigintspan_bins', + 'bigintspanset_bins', + 'date_get_bin', + 'datespan_bins', + 'datespanset_bins', + 'float_get_bin', + 'floatspan_bins', + 'floatspanset_bins', + 'int_get_bin', + 'intspan_bins', + 'intspanset_bins', + 'timestamptz_get_bin', + 'tstzspan_bins', + 'tstzspanset_bins', + 'tbox_as_hexwkb', + 'tbox_as_wkb', + 'tbox_from_hexwkb', + 'tbox_from_wkb', + 'tbox_in', + 'tbox_out', + 'float_timestamptz_to_tbox', + 'float_tstzspan_to_tbox', + 'int_timestamptz_to_tbox', + 'int_tstzspan_to_tbox', + 'numspan_tstzspan_to_tbox', + 'numspan_timestamptz_to_tbox', + 'tbox_copy', + 'tbox_make', + 'float_to_tbox', + 'int_to_tbox', + 'set_to_tbox', + 'span_to_tbox', + 'spanset_to_tbox', + 'tbox_to_intspan', + 'tbox_to_floatspan', + 'tbox_to_tstzspan', + 'timestamptz_to_tbox', + 'tbox_hast', + 'tbox_hasx', + 'tbox_tmax', + 'tbox_tmax_inc', + 'tbox_tmin', + 'tbox_tmin_inc', + 'tbox_xmax', + 'tbox_xmax_inc', + 'tbox_xmin', + 'tbox_xmin_inc', + 'tboxfloat_xmax', + 'tboxfloat_xmin', + 'tboxint_xmax', + 'tboxint_xmin', + 'tbox_expand_float', + 'tbox_expand_int', + 'tbox_expand_time', + 'tbox_round', + 'tbox_shift_scale_float', + 'tbox_shift_scale_int', + 'tbox_shift_scale_time', + 'union_tbox_tbox', + 'intersection_tbox_tbox', + 'adjacent_tbox_tbox', + 'contained_tbox_tbox', + 'contains_tbox_tbox', + 'overlaps_tbox_tbox', + 'same_tbox_tbox', + 'after_tbox_tbox', + 'before_tbox_tbox', + 'left_tbox_tbox', + 'overafter_tbox_tbox', + 'overbefore_tbox_tbox', + 'overleft_tbox_tbox', + 'overright_tbox_tbox', + 'right_tbox_tbox', + 'tbox_cmp', + 'tbox_eq', + 'tbox_ge', + 'tbox_gt', + 'tbox_le', + 'tbox_lt', + 'tbox_ne', + 'tbool_from_mfjson', + 'tbool_in', + 'tbool_out', + 'temporal_as_hexwkb', + 'temporal_as_mfjson', + 'temporal_as_wkb', + 'temporal_from_hexwkb', + 'temporal_from_wkb', + 'tfloat_from_mfjson', + 'tfloat_in', + 'tfloat_out', + 'tint_from_mfjson', + 'tint_in', + 'tint_out', + 'ttext_from_mfjson', + 'ttext_in', + 'ttext_out', + 'tbool_from_base_temp', + 'tboolinst_make', + 'tboolseq_from_base_tstzset', + 'tboolseq_from_base_tstzspan', + 'tboolseqset_from_base_tstzspanset', + 'temporal_copy', + 'tfloat_from_base_temp', + 'tfloatinst_make', + 'tfloatseq_from_base_tstzset', + 'tfloatseq_from_base_tstzspan', + 'tfloatseqset_from_base_tstzspanset', + 'tint_from_base_temp', + 'tintinst_make', + 'tintseq_from_base_tstzset', + 'tintseq_from_base_tstzspan', + 'tintseqset_from_base_tstzspanset', + 'tsequence_make', + 'tsequenceset_make', + 'tsequenceset_make_gaps', + 'ttext_from_base_temp', + 'ttextinst_make', + 'ttextseq_from_base_tstzset', + 'ttextseq_from_base_tstzspan', + 'ttextseqset_from_base_tstzspanset', + 'tbool_to_tint', + 'temporal_to_tstzspan', + 'tfloat_to_tint', + 'tint_to_tfloat', + 'tnumber_to_span', + 'tbool_end_value', + 'tbool_start_value', + 'tbool_value_at_timestamptz', + 'tbool_value_n', + 'tbool_values', + 'temporal_duration', + 'temporal_end_instant', + 'temporal_end_sequence', + 'temporal_end_timestamptz', + 'temporal_hash', + 'temporal_instant_n', + 'temporal_instants', + 'temporal_interp', + 'temporal_lower_inc', + 'temporal_max_instant', + 'temporal_min_instant', + 'temporal_num_instants', + 'temporal_num_sequences', + 'temporal_num_timestamps', + 'temporal_segments', + 'temporal_sequence_n', + 'temporal_sequences', + 'temporal_start_instant', + 'temporal_start_sequence', + 'temporal_start_timestamptz', + 'temporal_stops', + 'temporal_subtype', + 'temporal_time', + 'temporal_timestamps', + 'temporal_timestamptz_n', + 'temporal_upper_inc', + 'tfloat_end_value', + 'tfloat_max_value', + 'tfloat_min_value', + 'tfloat_start_value', + 'tfloat_value_at_timestamptz', + 'tfloat_value_n', + 'tfloat_values', + 'tint_end_value', + 'tint_max_value', + 'tint_min_value', + 'tint_start_value', + 'tint_value_at_timestamptz', + 'tint_value_n', + 'tint_values', + 'tnumber_integral', + 'tnumber_twavg', + 'tnumber_valuespans', + 'ttext_end_value', + 'ttext_max_value', + 'ttext_min_value', + 'ttext_start_value', + 'ttext_value_at_timestamptz', + 'ttext_value_n', + 'ttext_values', + 'float_degrees', + 'temparr_round', + 'temporal_round', + 'temporal_scale_time', + 'temporal_set_interp', + 'temporal_shift_scale_time', + 'temporal_shift_time', + 'temporal_to_tinstant', + 'temporal_to_tsequence', + 'temporal_to_tsequenceset', + 'tfloat_ceil', + 'tfloat_degrees', + 'tfloat_floor', + 'tfloat_radians', + 'tfloat_scale_value', + 'tfloat_shift_scale_value', + 'tfloat_shift_value', + 'tint_scale_value', + 'tint_shift_scale_value', + 'tint_shift_value', + 'temporal_append_tinstant', + 'temporal_append_tsequence', + 'temporal_delete_timestamptz', + 'temporal_delete_tstzset', + 'temporal_delete_tstzspan', + 'temporal_delete_tstzspanset', + 'temporal_insert', + 'temporal_merge', + 'temporal_merge_array', + 'temporal_update', + 'tbool_at_value', + 'tbool_minus_value', + 'temporal_at_max', + 'temporal_at_min', + 'temporal_at_timestamptz', + 'temporal_at_tstzset', + 'temporal_at_tstzspan', + 'temporal_at_tstzspanset', + 'temporal_at_values', + 'temporal_minus_max', + 'temporal_minus_min', + 'temporal_minus_timestamptz', + 'temporal_minus_tstzset', + 'temporal_minus_tstzspan', + 'temporal_minus_tstzspanset', + 'temporal_minus_values', + 'tfloat_at_value', + 'tfloat_minus_value', + 'tint_at_value', + 'tint_minus_value', + 'tnumber_at_span', + 'tnumber_at_spanset', + 'tnumber_at_tbox', + 'tnumber_minus_span', + 'tnumber_minus_spanset', + 'tnumber_minus_tbox', + 'ttext_at_value', + 'ttext_minus_value', + 'temporal_cmp', + 'temporal_eq', + 'temporal_ge', + 'temporal_gt', + 'temporal_le', + 'temporal_lt', + 'temporal_ne', + 'always_eq_bool_tbool', + 'always_eq_float_tfloat', + 'always_eq_int_tint', + 'always_eq_tbool_bool', + 'always_eq_temporal_temporal', + 'always_eq_text_ttext', + 'always_eq_tfloat_float', + 'always_eq_tint_int', + 'always_eq_ttext_text', + 'always_ge_float_tfloat', + 'always_ge_int_tint', + 'always_ge_temporal_temporal', + 'always_ge_text_ttext', + 'always_ge_tfloat_float', + 'always_ge_tint_int', + 'always_ge_ttext_text', + 'always_gt_float_tfloat', + 'always_gt_int_tint', + 'always_gt_temporal_temporal', + 'always_gt_text_ttext', + 'always_gt_tfloat_float', + 'always_gt_tint_int', + 'always_gt_ttext_text', + 'always_le_float_tfloat', + 'always_le_int_tint', + 'always_le_temporal_temporal', + 'always_le_text_ttext', + 'always_le_tfloat_float', + 'always_le_tint_int', + 'always_le_ttext_text', + 'always_lt_float_tfloat', + 'always_lt_int_tint', + 'always_lt_temporal_temporal', + 'always_lt_text_ttext', + 'always_lt_tfloat_float', + 'always_lt_tint_int', + 'always_lt_ttext_text', + 'always_ne_bool_tbool', + 'always_ne_float_tfloat', + 'always_ne_int_tint', + 'always_ne_tbool_bool', + 'always_ne_temporal_temporal', + 'always_ne_text_ttext', + 'always_ne_tfloat_float', + 'always_ne_tint_int', + 'always_ne_ttext_text', + 'ever_eq_bool_tbool', + 'ever_eq_float_tfloat', + 'ever_eq_int_tint', + 'ever_eq_tbool_bool', + 'ever_eq_temporal_temporal', + 'ever_eq_text_ttext', + 'ever_eq_tfloat_float', + 'ever_eq_tint_int', + 'ever_eq_ttext_text', + 'ever_ge_float_tfloat', + 'ever_ge_int_tint', + 'ever_ge_temporal_temporal', + 'ever_ge_text_ttext', + 'ever_ge_tfloat_float', + 'ever_ge_tint_int', + 'ever_ge_ttext_text', + 'ever_gt_float_tfloat', + 'ever_gt_int_tint', + 'ever_gt_temporal_temporal', + 'ever_gt_text_ttext', + 'ever_gt_tfloat_float', + 'ever_gt_tint_int', + 'ever_gt_ttext_text', + 'ever_le_float_tfloat', + 'ever_le_int_tint', + 'ever_le_temporal_temporal', + 'ever_le_text_ttext', + 'ever_le_tfloat_float', + 'ever_le_tint_int', + 'ever_le_ttext_text', + 'ever_lt_float_tfloat', + 'ever_lt_int_tint', + 'ever_lt_temporal_temporal', + 'ever_lt_text_ttext', + 'ever_lt_tfloat_float', + 'ever_lt_tint_int', + 'ever_lt_ttext_text', + 'ever_ne_bool_tbool', + 'ever_ne_float_tfloat', + 'ever_ne_int_tint', + 'ever_ne_tbool_bool', + 'ever_ne_temporal_temporal', + 'ever_ne_text_ttext', + 'ever_ne_tfloat_float', + 'ever_ne_tint_int', + 'ever_ne_ttext_text', + 'teq_bool_tbool', + 'teq_float_tfloat', + 'teq_int_tint', + 'teq_tbool_bool', + 'teq_temporal_temporal', + 'teq_text_ttext', + 'teq_tfloat_float', + 'teq_tint_int', + 'teq_ttext_text', + 'tge_float_tfloat', + 'tge_int_tint', + 'tge_temporal_temporal', + 'tge_text_ttext', + 'tge_tfloat_float', + 'tge_tint_int', + 'tge_ttext_text', + 'tgt_float_tfloat', + 'tgt_int_tint', + 'tgt_temporal_temporal', + 'tgt_text_ttext', + 'tgt_tfloat_float', + 'tgt_tint_int', + 'tgt_ttext_text', + 'tle_float_tfloat', + 'tle_int_tint', + 'tle_temporal_temporal', + 'tle_text_ttext', + 'tle_tfloat_float', + 'tle_tint_int', + 'tle_ttext_text', + 'tlt_float_tfloat', + 'tlt_int_tint', + 'tlt_temporal_temporal', + 'tlt_text_ttext', + 'tlt_tfloat_float', + 'tlt_tint_int', + 'tlt_ttext_text', + 'tne_bool_tbool', + 'tne_float_tfloat', + 'tne_int_tint', + 'tne_tbool_bool', + 'tne_temporal_temporal', + 'tne_text_ttext', + 'tne_tfloat_float', + 'tne_tint_int', + 'tne_ttext_text', + 'temporal_spans', + 'temporal_split_each_n_spans', + 'temporal_split_n_spans', + 'tnumber_split_each_n_tboxes', + 'tnumber_split_n_tboxes', + 'tnumber_tboxes', + 'adjacent_numspan_tnumber', + 'adjacent_tbox_tnumber', + 'adjacent_temporal_temporal', + 'adjacent_temporal_tstzspan', + 'adjacent_tnumber_numspan', + 'adjacent_tnumber_tbox', + 'adjacent_tnumber_tnumber', + 'adjacent_tstzspan_temporal', + 'contained_numspan_tnumber', + 'contained_tbox_tnumber', + 'contained_temporal_temporal', + 'contained_temporal_tstzspan', + 'contained_tnumber_numspan', + 'contained_tnumber_tbox', + 'contained_tnumber_tnumber', + 'contained_tstzspan_temporal', + 'contains_numspan_tnumber', + 'contains_tbox_tnumber', + 'contains_temporal_tstzspan', + 'contains_temporal_temporal', + 'contains_tnumber_numspan', + 'contains_tnumber_tbox', + 'contains_tnumber_tnumber', + 'contains_tstzspan_temporal', + 'overlaps_numspan_tnumber', + 'overlaps_tbox_tnumber', + 'overlaps_temporal_temporal', + 'overlaps_temporal_tstzspan', + 'overlaps_tnumber_numspan', + 'overlaps_tnumber_tbox', + 'overlaps_tnumber_tnumber', + 'overlaps_tstzspan_temporal', + 'same_numspan_tnumber', + 'same_tbox_tnumber', + 'same_temporal_temporal', + 'same_temporal_tstzspan', + 'same_tnumber_numspan', + 'same_tnumber_tbox', + 'same_tnumber_tnumber', + 'same_tstzspan_temporal', + 'after_tbox_tnumber', + 'after_temporal_tstzspan', + 'after_temporal_temporal', + 'after_tnumber_tbox', + 'after_tnumber_tnumber', + 'after_tstzspan_temporal', + 'before_tbox_tnumber', + 'before_temporal_tstzspan', + 'before_temporal_temporal', + 'before_tnumber_tbox', + 'before_tnumber_tnumber', + 'before_tstzspan_temporal', + 'left_tbox_tnumber', + 'left_numspan_tnumber', + 'left_tnumber_numspan', + 'left_tnumber_tbox', + 'left_tnumber_tnumber', + 'overafter_tbox_tnumber', + 'overafter_temporal_tstzspan', + 'overafter_temporal_temporal', + 'overafter_tnumber_tbox', + 'overafter_tnumber_tnumber', + 'overafter_tstzspan_temporal', + 'overbefore_tbox_tnumber', + 'overbefore_temporal_tstzspan', + 'overbefore_temporal_temporal', + 'overbefore_tnumber_tbox', + 'overbefore_tnumber_tnumber', + 'overbefore_tstzspan_temporal', + 'overleft_numspan_tnumber', + 'overleft_tbox_tnumber', + 'overleft_tnumber_numspan', + 'overleft_tnumber_tbox', + 'overleft_tnumber_tnumber', + 'overright_numspan_tnumber', + 'overright_tbox_tnumber', + 'overright_tnumber_numspan', + 'overright_tnumber_tbox', + 'overright_tnumber_tnumber', + 'right_numspan_tnumber', + 'right_tbox_tnumber', + 'right_tnumber_numspan', + 'right_tnumber_tbox', + 'right_tnumber_tnumber', + 'tand_bool_tbool', + 'tand_tbool_bool', + 'tand_tbool_tbool', + 'tbool_when_true', + 'tnot_tbool', + 'tor_bool_tbool', + 'tor_tbool_bool', + 'tor_tbool_tbool', + 'add_float_tfloat', + 'add_int_tint', + 'add_tfloat_float', + 'add_tint_int', + 'add_tnumber_tnumber', + 'div_float_tfloat', + 'div_int_tint', + 'div_tfloat_float', + 'div_tint_int', + 'div_tnumber_tnumber', + 'mult_float_tfloat', + 'mult_int_tint', + 'mult_tfloat_float', + 'mult_tint_int', + 'mult_tnumber_tnumber', + 'sub_float_tfloat', + 'sub_int_tint', + 'sub_tfloat_float', + 'sub_tint_int', + 'sub_tnumber_tnumber', + 'temporal_derivative', + 'tfloat_exp', + 'tfloat_ln', + 'tfloat_log10', + 'tnumber_abs', + 'float_angular_difference', + 'tnumber_angular_difference', + 'tnumber_delta_value', + 'textcat_text_ttext', + 'textcat_ttext_text', + 'textcat_ttext_ttext', + 'ttext_initcap', + 'ttext_upper', + 'ttext_lower', + 'tdistance_tfloat_float', + 'tdistance_tint_int', + 'tdistance_tnumber_tnumber', + 'nad_tboxfloat_tboxfloat', + 'nad_tboxint_tboxint', + 'nad_tfloat_float', + 'nad_tfloat_tfloat', + 'nad_tfloat_tbox', + 'nad_tint_int', + 'nad_tint_tbox', + 'nad_tint_tint', + 'tbool_tand_transfn', + 'tbool_tor_transfn', + 'temporal_extent_transfn', + 'temporal_tagg_finalfn', + 'temporal_tcount_transfn', + 'tfloat_tmax_transfn', + 'tfloat_tmin_transfn', + 'tfloat_tsum_transfn', + 'tfloat_wmax_transfn', + 'tfloat_wmin_transfn', + 'tfloat_wsum_transfn', + 'timestamptz_tcount_transfn', + 'tint_tmax_transfn', + 'tint_tmin_transfn', + 'tint_tsum_transfn', + 'tint_wmax_transfn', + 'tint_wmin_transfn', + 'tint_wsum_transfn', + 'tnumber_extent_transfn', + 'tnumber_tavg_finalfn', + 'tnumber_tavg_transfn', + 'tnumber_wavg_transfn', + 'tstzset_tcount_transfn', + 'tstzspan_tcount_transfn', + 'tstzspanset_tcount_transfn', + 'ttext_tmax_transfn', + 'ttext_tmin_transfn', + 'temporal_simplify_dp', + 'temporal_simplify_max_dist', + 'temporal_simplify_min_dist', + 'temporal_simplify_min_tdelta', + 'temporal_tprecision', + 'temporal_tsample', + 'temporal_dyntimewarp_distance', + 'temporal_dyntimewarp_path', + 'temporal_frechet_distance', + 'temporal_frechet_path', + 'temporal_hausdorff_distance', + 'temporal_time_bins', + 'temporal_time_split', + 'tfloat_time_boxes', + 'tfloat_value_bins', + 'tfloat_value_boxes', + 'tfloat_value_split', + 'tfloat_value_time_boxes', + 'tfloat_value_time_split', + 'tfloatbox_time_tiles', + 'tfloatbox_value_tiles', + 'tfloatbox_value_time_tiles', + 'tint_time_boxes', + 'tint_value_bins', + 'tint_value_boxes', + 'tint_value_split', + 'tint_value_time_boxes', + 'tint_value_time_split', + 'tintbox_time_tiles', + 'tintbox_value_tiles', + 'tintbox_value_time_tiles', + 'tempsubtype_name', + 'tempsubtype_from_string', + 'meosoper_name', + 'meosoper_from_string', + 'interptype_name', + 'interptype_from_string', + 'meostype_name', + 'temptype_basetype', + 'settype_basetype', + 'spantype_basetype', + 'spantype_spansettype', + 'spansettype_spantype', + 'basetype_spantype', + 'basetype_settype', + 'tnumber_basetype', + 'geo_basetype', + 'time_type', + 'set_type', + 'numset_type', + 'ensure_numset_type', + 'timeset_type', + 'set_spantype', + 'ensure_set_spantype', + 'alphanumset_type', + 'geoset_type', + 'ensure_geoset_type', + 'spatialset_type', + 'ensure_spatialset_type', + 'span_basetype', + 'span_canon_basetype', + 'span_type', + 'type_span_bbox', + 'span_tbox_type', + 'ensure_span_tbox_type', + 'numspan_basetype', + 'numspan_type', + 'ensure_numspan_type', + 'timespan_basetype', + 'timespan_type', + 'spanset_type', + 'timespanset_type', + 'ensure_timespanset_type', + 'temporal_type', + 'temptype_continuous', + 'basetype_byvalue', + 'basetype_varlength', + 'basetype_length', + 'talpha_type', + 'tnumber_type', + 'ensure_tnumber_type', + 'ensure_tnumber_basetype', + 'tnumber_spantype', + 'spatial_basetype', + 'tspatial_type', + 'ensure_tspatial_type', + 'tpoint_type', + 'ensure_tpoint_type', + 'tgeo_type', + 'ensure_tgeo_type', + 'tgeo_type_all', + 'ensure_tgeo_type_all', + 'tgeometry_type', + 'ensure_tgeometry_type', + 'tgeodetic_type', + 'ensure_tgeodetic_type', + 'ensure_tnumber_tpoint_type', + 'geo_as_ewkb', + 'geo_as_ewkt', + 'geo_as_geojson', + 'geo_as_hexewkb', + 'geo_as_text', + 'geo_from_ewkb', + 'geo_from_geojson', + 'geo_from_text', + 'geo_out', + 'geog_from_binary', + 'geog_from_hexewkb', + 'geog_in', + 'geom_from_hexewkb', + 'geom_in', + 'geo_copy', + 'geogpoint_make2d', + 'geogpoint_make3dz', + 'geompoint_make2d', + 'geompoint_make3dz', + 'geom_to_geog', + 'geog_to_geom', + 'geo_is_empty', + 'geo_typename', + 'geog_area', + 'geog_centroid', + 'geog_length', + 'geog_perimeter', + 'geom_azimuth', + 'geom_length', + 'geom_perimeter', + 'line_numpoints', + 'line_point_n', + 'geo_reverse', + 'geo_round', + 'geo_set_srid', + 'geo_srid', + 'geo_transform', + 'geo_transform_pipeline', + 'geo_collect_garray', + 'geo_makeline_garray', + 'geo_npoints', + 'geo_ngeos', + 'geo_geoN', + 'geom_array_union', + 'geom_boundary', + 'geom_buffer', + 'geom_centroid', + 'geom_convex_hull', + 'geom_difference2d', + 'geom_intersection2d', + 'geom_shortestline2d', + 'geom_shortestline3d', + 'geom_unary_union', + 'line_interpolate_point', + 'line_locate_point', + 'line_substring', + 'geog_dwithin', + 'geog_intersects', + 'geom_contains', + 'geom_covers', + 'geom_disjoint2d', + 'geom_dwithin2d', + 'geom_dwithin3d', + 'geom_intersects2d', + 'geom_intersects3d', + 'geom_relate_pattern', + 'geom_touches', + 'geo_stboxes', + 'geo_split_each_n_stboxes', + 'geo_split_n_stboxes', + 'geog_distance', + 'geom_distance2d', + 'geom_distance3d', + 'geo_equals', + 'geo_same', + 'geogset_in', + 'geomset_in', + 'spatialset_as_text', + 'spatialset_as_ewkt', + 'geoset_make', + 'geo_to_set', + 'geoset_end_value', + 'geoset_start_value', + 'geoset_value_n', + 'geoset_values', + 'contained_geo_set', + 'contains_set_geo', + 'geo_union_transfn', + 'intersection_geo_set', + 'intersection_set_geo', + 'minus_geo_set', + 'minus_set_geo', + 'union_geo_set', + 'union_set_geo', + 'spatialset_set_srid', + 'spatialset_srid', + 'spatialset_transform', + 'spatialset_transform_pipeline', + 'stbox_as_hexwkb', + 'stbox_as_wkb', + 'stbox_from_hexwkb', + 'stbox_from_wkb', + 'stbox_in', + 'stbox_out', + 'geo_timestamptz_to_stbox', + 'geo_tstzspan_to_stbox', + 'stbox_copy', + 'stbox_make', + 'geo_to_stbox', + 'spatialset_to_stbox', + 'stbox_to_box3d', + 'stbox_to_gbox', + 'stbox_to_geo', + 'stbox_to_tstzspan', + 'timestamptz_to_stbox', + 'tstzset_to_stbox', + 'tstzspan_to_stbox', + 'tstzspanset_to_stbox', + 'stbox_area', + 'stbox_hast', + 'stbox_hasx', + 'stbox_hasz', + 'stbox_isgeodetic', + 'stbox_perimeter', + 'stbox_tmax', + 'stbox_tmax_inc', + 'stbox_tmin', + 'stbox_tmin_inc', + 'stbox_volume', + 'stbox_xmax', + 'stbox_xmin', + 'stbox_ymax', + 'stbox_ymin', + 'stbox_zmax', + 'stbox_zmin', + 'stbox_expand_space', + 'stbox_expand_time', + 'stbox_get_space', + 'stbox_quad_split', + 'stbox_round', + 'stbox_shift_scale_time', + 'stboxarr_round', + 'stbox_set_srid', + 'stbox_srid', + 'stbox_transform', + 'stbox_transform_pipeline', + 'adjacent_stbox_stbox', + 'contained_stbox_stbox', + 'contains_stbox_stbox', + 'overlaps_stbox_stbox', + 'same_stbox_stbox', + 'above_stbox_stbox', + 'after_stbox_stbox', + 'back_stbox_stbox', + 'before_stbox_stbox', + 'below_stbox_stbox', + 'front_stbox_stbox', + 'left_stbox_stbox', + 'overabove_stbox_stbox', + 'overafter_stbox_stbox', + 'overback_stbox_stbox', + 'overbefore_stbox_stbox', + 'overbelow_stbox_stbox', + 'overfront_stbox_stbox', + 'overleft_stbox_stbox', + 'overright_stbox_stbox', + 'right_stbox_stbox', + 'union_stbox_stbox', + 'intersection_stbox_stbox', + 'stbox_cmp', + 'stbox_eq', + 'stbox_ge', + 'stbox_gt', + 'stbox_le', + 'stbox_lt', + 'stbox_ne', + 'rtree_create_stbox', + 'rtree_free', + 'rtree_insert', + 'rtree_search', + 'tgeo_out', + 'tgeogpoint_from_mfjson', + 'tgeogpoint_in', + 'tgeography_from_mfjson', + 'tgeography_in', + 'tgeometry_from_mfjson', + 'tgeometry_in', + 'tgeompoint_from_mfjson', + 'tgeompoint_in', + 'tspatial_as_ewkt', + 'tspatial_as_text', + 'tgeo_from_base_temp', + 'tgeoinst_make', + 'tgeoseq_from_base_tstzset', + 'tgeoseq_from_base_tstzspan', + 'tgeoseqset_from_base_tstzspanset', + 'tpoint_from_base_temp', + 'tpointinst_make', + 'tpointseq_from_base_tstzset', + 'tpointseq_from_base_tstzspan', + 'tpointseq_make_coords', + 'tpointseqset_from_base_tstzspanset', + 'box3d_to_stbox', + 'gbox_to_stbox', + 'geomeas_to_tpoint', + 'tgeogpoint_to_tgeography', + 'tgeography_to_tgeogpoint', + 'tgeography_to_tgeometry', + 'tgeometry_to_tgeography', + 'tgeometry_to_tgeompoint', + 'tgeompoint_to_tgeometry', + 'tpoint_as_mvtgeom', + 'tpoint_tfloat_to_geomeas', + 'tspatial_to_stbox', + 'bearing_point_point', + 'bearing_tpoint_point', + 'bearing_tpoint_tpoint', + 'tgeo_centroid', + 'tgeo_convex_hull', + 'tgeo_end_value', + 'tgeo_start_value', + 'tgeo_traversed_area', + 'tgeo_value_at_timestamptz', + 'tgeo_value_n', + 'tgeo_values', + 'tpoint_angular_difference', + 'tpoint_azimuth', + 'tpoint_cumulative_length', + 'tpoint_direction', + 'tpoint_get_x', + 'tpoint_get_y', + 'tpoint_get_z', + 'tpoint_is_simple', + 'tpoint_length', + 'tpoint_trajectory', + 'tpoint_twcentroid', + 'tgeo_affine', + 'tgeo_scale', + 'tpoint_make_simple', + 'tspatial_srid', + 'tspatial_set_srid', + 'tspatial_transform', + 'tspatial_transform_pipeline', + 'tgeo_at_geom', + 'tgeo_at_stbox', + 'tgeo_at_value', + 'tgeo_minus_geom', + 'tgeo_minus_stbox', + 'tgeo_minus_value', + 'tpoint_at_geom', + 'tpoint_at_value', + 'tpoint_minus_geom', + 'tpoint_minus_value', + 'always_eq_geo_tgeo', + 'always_eq_tgeo_geo', + 'always_eq_tgeo_tgeo', + 'always_ne_geo_tgeo', + 'always_ne_tgeo_geo', + 'always_ne_tgeo_tgeo', + 'ever_eq_geo_tgeo', + 'ever_eq_tgeo_geo', + 'ever_eq_tgeo_tgeo', + 'ever_ne_geo_tgeo', + 'ever_ne_tgeo_geo', + 'ever_ne_tgeo_tgeo', + 'teq_geo_tgeo', + 'teq_tgeo_geo', + 'tne_geo_tgeo', + 'tne_tgeo_geo', + 'tgeo_stboxes', + 'tgeo_space_boxes', + 'tgeo_space_time_boxes', + 'tgeo_split_each_n_stboxes', + 'tgeo_split_n_stboxes', + 'adjacent_stbox_tspatial', + 'adjacent_tspatial_stbox', + 'adjacent_tspatial_tspatial', + 'contained_stbox_tspatial', + 'contained_tspatial_stbox', + 'contained_tspatial_tspatial', + 'contains_stbox_tspatial', + 'contains_tspatial_stbox', + 'contains_tspatial_tspatial', + 'overlaps_stbox_tspatial', + 'overlaps_tspatial_stbox', + 'overlaps_tspatial_tspatial', + 'same_stbox_tspatial', + 'same_tspatial_stbox', + 'same_tspatial_tspatial', + 'above_stbox_tspatial', + 'above_tspatial_stbox', + 'above_tspatial_tspatial', + 'after_stbox_tspatial', + 'after_tspatial_stbox', + 'after_tspatial_tspatial', + 'back_stbox_tspatial', + 'back_tspatial_stbox', + 'back_tspatial_tspatial', + 'before_stbox_tspatial', + 'before_tspatial_stbox', + 'before_tspatial_tspatial', + 'below_stbox_tspatial', + 'below_tspatial_stbox', + 'below_tspatial_tspatial', + 'front_stbox_tspatial', + 'front_tspatial_stbox', + 'front_tspatial_tspatial', + 'left_stbox_tspatial', + 'left_tspatial_stbox', + 'left_tspatial_tspatial', + 'overabove_stbox_tspatial', + 'overabove_tspatial_stbox', + 'overabove_tspatial_tspatial', + 'overafter_stbox_tspatial', + 'overafter_tspatial_stbox', + 'overafter_tspatial_tspatial', + 'overback_stbox_tspatial', + 'overback_tspatial_stbox', + 'overback_tspatial_tspatial', + 'overbefore_stbox_tspatial', + 'overbefore_tspatial_stbox', + 'overbefore_tspatial_tspatial', + 'overbelow_stbox_tspatial', + 'overbelow_tspatial_stbox', + 'overbelow_tspatial_tspatial', + 'overfront_stbox_tspatial', + 'overfront_tspatial_stbox', + 'overfront_tspatial_tspatial', + 'overleft_stbox_tspatial', + 'overleft_tspatial_stbox', + 'overleft_tspatial_tspatial', + 'overright_stbox_tspatial', + 'overright_tspatial_stbox', + 'overright_tspatial_tspatial', + 'right_stbox_tspatial', + 'right_tspatial_stbox', + 'right_tspatial_tspatial', + 'acontains_geo_tgeo', + 'acontains_tgeo_geo', + 'acontains_tgeo_tgeo', + 'adisjoint_tgeo_geo', + 'adisjoint_tgeo_tgeo', + 'adwithin_tgeo_geo', + 'adwithin_tgeo_tgeo', + 'aintersects_tgeo_geo', + 'aintersects_tgeo_tgeo', + 'atouches_tgeo_geo', + 'atouches_tgeo_tgeo', + 'atouches_tpoint_geo', + 'econtains_geo_tgeo', + 'econtains_tgeo_geo', + 'econtains_tgeo_tgeo', + 'ecovers_geo_tgeo', + 'ecovers_tgeo_geo', + 'ecovers_tgeo_tgeo', + 'edisjoint_tgeo_geo', + 'edisjoint_tgeo_tgeo', + 'edwithin_tgeo_geo', + 'edwithin_tgeo_tgeo', + 'eintersects_tgeo_geo', + 'eintersects_tgeo_tgeo', + 'etouches_tgeo_geo', + 'etouches_tgeo_tgeo', + 'etouches_tpoint_geo', + 'tcontains_geo_tgeo', + 'tcontains_tgeo_geo', + 'tcontains_tgeo_tgeo', + 'tcovers_geo_tgeo', + 'tcovers_tgeo_geo', + 'tcovers_tgeo_tgeo', + 'tdisjoint_geo_tgeo', + 'tdisjoint_tgeo_geo', + 'tdisjoint_tgeo_tgeo', + 'tdwithin_geo_tgeo', + 'tdwithin_tgeo_geo', + 'tdwithin_tgeo_tgeo', + 'tintersects_geo_tgeo', + 'tintersects_tgeo_geo', + 'tintersects_tgeo_tgeo', + 'ttouches_geo_tgeo', + 'ttouches_tgeo_geo', + 'ttouches_tgeo_tgeo', + 'tdistance_tgeo_geo', + 'tdistance_tgeo_tgeo', + 'nad_stbox_geo', + 'nad_stbox_stbox', + 'nad_tgeo_geo', + 'nad_tgeo_stbox', + 'nad_tgeo_tgeo', + 'nai_tgeo_geo', + 'nai_tgeo_tgeo', + 'shortestline_tgeo_geo', + 'shortestline_tgeo_tgeo', + 'tpoint_tcentroid_finalfn', + 'tpoint_tcentroid_transfn', + 'tspatial_extent_transfn', + 'stbox_get_space_tile', + 'stbox_get_space_time_tile', + 'stbox_get_time_tile', + 'stbox_space_tiles', + 'stbox_space_time_tiles', + 'stbox_time_tiles', + 'tgeo_space_split', + 'tgeo_space_time_split', + 'geo_cluster_kmeans', + 'geo_cluster_dbscan', + 'geo_cluster_intersecting', + 'geo_cluster_within', + 'gsl_get_generation_rng', + 'gsl_get_aggregation_rng', + 'datum_ceil', + 'datum_degrees', + 'datum_float_round', + 'datum_floor', + 'datum_hash', + 'datum_hash_extended', + 'datum_radians', + 'floatspan_round_set', + 'set_in', + 'set_out', + 'span_in', + 'span_out', + 'spanset_in', + 'spanset_out', + 'set_make', + 'set_make_exp', + 'set_make_free', + 'span_make', + 'span_set', + 'spanset_make_exp', + 'spanset_make_free', + 'set_span', + 'set_spanset', + 'value_set_span', + 'value_set', + 'value_span', + 'value_spanset', + 'numspan_width', + 'numspanset_width', + 'set_end_value', + 'set_mem_size', + 'set_set_subspan', + 'set_set_span', + 'set_start_value', + 'set_value_n', + 'set_vals', + 'set_values', + 'spanset_lower', + 'spanset_mem_size', + 'spanset_sps', + 'spanset_upper', + 'datespan_set_tstzspan', + 'floatspan_set_intspan', + 'intspan_set_floatspan', + 'numset_shift_scale', + 'numspan_shift_scale', + 'numspanset_shift_scale', + 'set_compact', + 'span_expand', + 'spanset_compact', + 'tbox_expand_value', + 'textcat_textset_text_int', + 'tstzspan_set_datespan', + 'adjacent_span_value', + 'adjacent_spanset_value', + 'adjacent_value_spanset', + 'contained_value_set', + 'contained_value_span', + 'contained_value_spanset', + 'contains_set_value', + 'contains_span_value', + 'contains_spanset_value', + 'ovadj_span_span', + 'left_set_value', + 'left_span_value', + 'left_spanset_value', + 'left_value_set', + 'left_value_span', + 'left_value_spanset', + 'lfnadj_span_span', + 'overleft_set_value', + 'overleft_span_value', + 'overleft_spanset_value', + 'overleft_value_set', + 'overleft_value_span', + 'overleft_value_spanset', + 'overright_set_value', + 'overright_span_value', + 'overright_spanset_value', + 'overright_value_set', + 'overright_value_span', + 'overright_value_spanset', + 'right_value_set', + 'right_set_value', + 'right_value_span', + 'right_value_spanset', + 'right_span_value', + 'right_spanset_value', + 'bbox_union_span_span', + 'inter_span_span', + 'intersection_set_value', + 'intersection_span_value', + 'intersection_spanset_value', + 'intersection_value_set', + 'intersection_value_span', + 'intersection_value_spanset', + 'mi_span_span', + 'minus_set_value', + 'minus_span_value', + 'minus_spanset_value', + 'minus_value_set', + 'minus_value_span', + 'minus_value_spanset', + 'super_union_span_span', + 'union_set_value', + 'union_span_value', + 'union_spanset_value', + 'union_value_set', + 'union_value_span', + 'union_value_spanset', + 'distance_set_set', + 'distance_set_value', + 'distance_span_span', + 'distance_span_value', + 'distance_spanset_span', + 'distance_spanset_spanset', + 'distance_spanset_value', + 'distance_value_value', + 'spanbase_extent_transfn', + 'value_union_transfn', + 'number_tstzspan_to_tbox', + 'number_timestamptz_to_tbox', + 'tbox_set', + 'float_set_tbox', + 'int_set_tbox', + 'number_set_tbox', + 'number_tbox', + 'numset_set_tbox', + 'numspan_set_tbox', + 'timestamptz_set_tbox', + 'tstzset_set_tbox', + 'tstzspan_set_tbox', + 'tbox_shift_scale_value', + 'tbox_expand', + 'inter_tbox_tbox', + 'tboolinst_in', + 'tboolseq_in', + 'tboolseqset_in', + 'temporal_in', + 'temporal_out', + 'temparr_out', + 'tfloatinst_in', + 'tfloatseq_in', + 'tfloatseqset_in', + 'tinstant_in', + 'tinstant_out', + 'tintinst_in', + 'tintseq_in', + 'tintseqset_in', + 'tsequence_in', + 'tsequence_out', + 'tsequenceset_in', + 'tsequenceset_out', + 'ttextinst_in', + 'ttextseq_in', + 'ttextseqset_in', + 'temporal_from_mfjson', + 'temporal_from_base_temp', + 'tinstant_copy', + 'tinstant_make', + 'tinstant_make_free', + 'tsequence_copy', + 'tsequence_from_base_temp', + 'tsequence_from_base_tstzset', + 'tsequence_from_base_tstzspan', + 'tsequence_make_exp', + 'tsequence_make_free', + 'tsequenceset_copy', + 'tseqsetarr_to_tseqset', + 'tsequenceset_from_base_temp', + 'tsequenceset_from_base_tstzspanset', + 'tsequenceset_make_exp', + 'tsequenceset_make_free', + 'temporal_set_tstzspan', + 'tinstant_set_tstzspan', + 'tnumber_set_tbox', + 'tnumberinst_set_tbox', + 'tnumberseq_set_tbox', + 'tnumberseqset_set_tbox', + 'tsequence_set_tstzspan', + 'tsequenceset_set_tstzspan', + 'temporal_end_inst', + 'temporal_end_value', + 'temporal_inst_n', + 'temporal_instants_p', + 'temporal_max_value', + 'temporal_mem_size', + 'temporal_min_value', + 'temporal_sequences_p', + 'temporal_set_bbox', + 'temporal_start_inst', + 'temporal_start_value', + 'temporal_values_p', + 'temporal_value_n', + 'temporal_values', + 'tinstant_hash', + 'tinstant_insts', + 'tinstant_set_bbox', + 'tinstant_time', + 'tinstant_timestamps', + 'tinstant_value_p', + 'tinstant_value', + 'tinstant_value_at_timestamptz', + 'tinstant_values_p', + 'tnumber_set_span', + 'tnumberinst_valuespans', + 'tnumberseq_valuespans', + 'tnumberseqset_valuespans', + 'tsequence_duration', + 'tsequence_end_timestamptz', + 'tsequence_hash', + 'tsequence_insts_p', + 'tsequence_max_inst', + 'tsequence_max_val', + 'tsequence_min_inst', + 'tsequence_min_val', + 'tsequence_segments', + 'tsequence_seqs', + 'tsequence_start_timestamptz', + 'tsequence_time', + 'tsequence_timestamps', + 'tsequence_value_at_timestamptz', + 'tsequence_values_p', + 'tsequenceset_duration', + 'tsequenceset_end_timestamptz', + 'tsequenceset_hash', + 'tsequenceset_inst_n', + 'tsequenceset_insts_p', + 'tsequenceset_max_inst', + 'tsequenceset_max_val', + 'tsequenceset_min_inst', + 'tsequenceset_min_val', + 'tsequenceset_num_instants', + 'tsequenceset_num_timestamps', + 'tsequenceset_segments', + 'tsequenceset_sequences_p', + 'tsequenceset_start_timestamptz', + 'tsequenceset_time', + 'tsequenceset_timestamptz_n', + 'tsequenceset_timestamps', + 'tsequenceset_value_at_timestamptz', + 'tsequenceset_value_n', + 'tsequenceset_values_p', + 'temporal_restart', + 'temporal_tsequence', + 'temporal_tsequenceset', + 'tinstant_shift_time', + 'tinstant_to_tsequence', + 'tinstant_to_tsequence_free', + 'tinstant_to_tsequenceset', + 'tnumber_shift_scale_value', + 'tnumberinst_shift_value', + 'tnumberseq_shift_scale_value', + 'tnumberseqset_shift_scale_value', + 'tsequence_restart', + 'tsequence_set_interp', + 'tsequence_shift_scale_time', + 'tsequence_subseq', + 'tsequence_to_tinstant', + 'tsequence_to_tsequenceset', + 'tsequence_to_tsequenceset_free', + 'tsequence_to_tsequenceset_interp', + 'tsequenceset_restart', + 'tsequenceset_set_interp', + 'tsequenceset_shift_scale_time', + 'tsequenceset_to_discrete', + 'tsequenceset_to_linear', + 'tsequenceset_to_step', + 'tsequenceset_to_tinstant', + 'tsequenceset_to_tsequence', + 'tinstant_merge', + 'tinstant_merge_array', + 'tsequence_append_tinstant', + 'tsequence_append_tsequence', + 'tsequence_delete_timestamptz', + 'tsequence_delete_tstzset', + 'tsequence_delete_tstzspan', + 'tsequence_delete_tstzspanset', + 'tsequence_insert', + 'tsequence_merge', + 'tsequence_merge_array', + 'tsequenceset_append_tinstant', + 'tsequenceset_append_tsequence', + 'tsequenceset_delete_timestamptz', + 'tsequenceset_delete_tstzset', + 'tsequenceset_delete_tstzspan', + 'tsequenceset_delete_tstzspanset', + 'tsequenceset_insert', + 'tsequenceset_merge', + 'tsequenceset_merge_array', + 'tsequence_expand_bbox', + 'tsequence_set_bbox', + 'tsequenceset_expand_bbox', + 'tsequenceset_set_bbox', + 'tdiscseq_restrict_minmax', + 'tcontseq_restrict_minmax', + 'temporal_bbox_restrict_set', + 'temporal_restrict_minmax', + 'temporal_restrict_timestamptz', + 'temporal_restrict_tstzset', + 'temporal_restrict_tstzspan', + 'temporal_restrict_tstzspanset', + 'temporal_restrict_value', + 'temporal_restrict_values', + 'temporal_value_at_timestamptz', + 'tinstant_restrict_tstzspan', + 'tinstant_restrict_tstzspanset', + 'tinstant_restrict_timestamptz', + 'tinstant_restrict_tstzset', + 'tinstant_restrict_value', + 'tinstant_restrict_values', + 'tnumber_restrict_span', + 'tnumber_restrict_spanset', + 'tnumberinst_restrict_span', + 'tnumberinst_restrict_spanset', + 'tnumberseqset_restrict_span', + 'tnumberseqset_restrict_spanset', + 'tsequence_at_timestamptz', + 'tsequence_restrict_tstzspan', + 'tsequence_restrict_tstzspanset', + 'tsequenceset_restrict_minmax', + 'tsequenceset_restrict_tstzspan', + 'tsequenceset_restrict_tstzspanset', + 'tsequenceset_restrict_timestamptz', + 'tsequenceset_restrict_tstzset', + 'tsequenceset_restrict_value', + 'tsequenceset_restrict_values', + 'tinstant_cmp', + 'tinstant_eq', + 'tsequence_cmp', + 'tsequence_eq', + 'tsequenceset_cmp', + 'tsequenceset_eq', + 'always_eq_base_temporal', + 'always_eq_temporal_base', + 'always_ne_base_temporal', + 'always_ne_temporal_base', + 'always_ge_base_temporal', + 'always_ge_temporal_base', + 'always_gt_base_temporal', + 'always_gt_temporal_base', + 'always_le_base_temporal', + 'always_le_temporal_base', + 'always_lt_base_temporal', + 'always_lt_temporal_base', + 'ever_eq_base_temporal', + 'ever_eq_temporal_base', + 'ever_ne_base_temporal', + 'ever_ne_temporal_base', + 'ever_ge_base_temporal', + 'ever_ge_temporal_base', + 'ever_gt_base_temporal', + 'ever_gt_temporal_base', + 'ever_le_base_temporal', + 'ever_le_temporal_base', + 'ever_lt_base_temporal', + 'ever_lt_temporal_base', + 'tnumberinst_abs', + 'tnumberseq_abs', + 'tnumberseq_angular_difference', + 'tnumberseq_delta_value', + 'tnumberseqset_abs', + 'tnumberseqset_angular_difference', + 'tnumberseqset_delta_value', + 'tdistance_tnumber_number', + 'nad_tbox_tbox', + 'nad_tnumber_number', + 'nad_tnumber_tbox', + 'nad_tnumber_tnumber', + 'tnumberseq_integral', + 'tnumberseq_twavg', + 'tnumberseqset_integral', + 'tnumberseqset_twavg', + 'temporal_compact', + 'tsequence_compact', + 'tsequenceset_compact', + 'skiplist_free', + 'temporal_app_tinst_transfn', + 'temporal_app_tseq_transfn', + 'span_bins', + 'spanset_bins', + 'tnumber_value_bins', + 'tnumber_value_time_boxes', + 'tnumber_value_split', + 'tbox_get_value_time_tile', + 'tnumber_value_time_split', + 'proj_get_context', + 'datum_geo_round', + 'point_round', + 'stbox_set', + 'gbox_set_stbox', + 'geo_set_stbox', + 'geoarr_set_stbox', + 'spatial_set_stbox', + 'spatialset_set_stbox', + 'stbox_set_box3d', + 'stbox_set_gbox', + 'tstzset_set_stbox', + 'tstzspan_set_stbox', + 'tstzspanset_set_stbox', + 'stbox_expand', + 'inter_stbox_stbox', + 'stbox_geo', + 'tgeogpointinst_in', + 'tgeogpointseq_in', + 'tgeogpointseqset_in', + 'tgeompointinst_in', + 'tgeompointseq_in', + 'tgeompointseqset_in', + 'tgeographyinst_in', + 'tgeographyseq_in', + 'tgeographyseqset_in', + 'tgeometryinst_in', + 'tgeometryseq_in', + 'tgeometryseqset_in', + 'tspatial_set_stbox', + 'tgeoinst_set_stbox', + 'tspatialseq_set_stbox', + 'tspatialseqset_set_stbox', + 'tgeo_restrict_geom', + 'tgeo_restrict_stbox', + 'tgeoinst_restrict_geom', + 'tgeoinst_restrict_stbox', + 'tgeoseq_restrict_geom', + 'tgeoseq_restrict_stbox', + 'tgeoseqset_restrict_geom', + 'tgeoseqset_restrict_stbox', + 'spatial_srid', + 'spatial_set_srid', + 'tspatialinst_srid', + 'tpointseq_azimuth', + 'tpointseq_cumulative_length', + 'tpointseq_is_simple', + 'tpointseq_length', + 'tpointseq_linear_trajectory', + 'tgeoseq_stboxes', + 'tgeoseq_split_n_stboxes', + 'tpointseqset_azimuth', + 'tpointseqset_cumulative_length', + 'tpointseqset_is_simple', + 'tpointseqset_length', + 'tgeoseqset_stboxes', + 'tgeoseqset_split_n_stboxes', + 'tpoint_get_coord', + 'tgeominst_tgeoginst', + 'tgeomseq_tgeogseq', + 'tgeomseqset_tgeogseqset', + 'tgeom_tgeog', + 'tgeo_tpoint', + 'tspatialinst_set_srid', + 'tpointseq_make_simple', + 'tspatialseq_set_srid', + 'tpointseqset_make_simple', + 'tspatialseqset_set_srid', + 'tpointseq_twcentroid', + 'tpointseqset_twcentroid', + 'npoint_as_ewkt', + 'npoint_as_hexwkb', + 'npoint_as_text', + 'npoint_as_wkb', + 'npoint_from_hexwkb', + 'npoint_from_wkb', + 'npoint_in', + 'npoint_out', + 'nsegment_in', + 'nsegment_out', + 'npoint_make', + 'nsegment_make', + 'geompoint_to_npoint', + 'geom_to_nsegment', + 'npoint_to_geompoint', + 'npoint_to_nsegment', + 'npoint_to_stbox', + 'nsegment_to_geom', + 'nsegment_to_stbox', + 'npoint_hash', + 'npoint_hash_extended', + 'npoint_position', + 'npoint_route', + 'nsegment_end_position', + 'nsegment_route', + 'nsegment_start_position', + 'route_exists', + 'route_geom', + 'route_length', + 'npoint_round', + 'nsegment_round', + 'get_srid_ways', + 'npoint_srid', + 'nsegment_srid', + 'npoint_timestamptz_to_stbox', + 'npoint_tstzspan_to_stbox', + 'npoint_cmp', + 'npoint_eq', + 'npoint_ge', + 'npoint_gt', + 'npoint_le', + 'npoint_lt', + 'npoint_ne', + 'npoint_same', + 'nsegment_cmp', + 'nsegment_eq', + 'nsegment_ge', + 'nsegment_gt', + 'nsegment_le', + 'nsegment_lt', + 'nsegment_ne', + 'npointset_in', + 'npointset_out', + 'npointset_make', + 'npoint_to_set', + 'npointset_end_value', + 'npointset_routes', + 'npointset_start_value', + 'npointset_value_n', + 'npointset_values', + 'contained_npoint_set', + 'contains_set_npoint', + 'intersection_npoint_set', + 'intersection_set_npoint', + 'minus_npoint_set', + 'minus_set_npoint', + 'npoint_union_transfn', + 'union_npoint_set', + 'union_set_npoint', + 'tnpoint_in', + 'tnpoint_out', + 'tnpointinst_make', + 'tgeompoint_to_tnpoint', + 'tnpoint_to_tgeompoint', + 'tnpoint_cumulative_length', + 'tnpoint_length', + 'tnpoint_positions', + 'tnpoint_route', + 'tnpoint_routes', + 'tnpoint_speed', + 'tnpoint_trajectory', + 'tnpoint_twcentroid', + 'tnpoint_at_geom', + 'tnpoint_at_npoint', + 'tnpoint_at_npointset', + 'tnpoint_at_stbox', + 'tnpoint_minus_geom', + 'tnpoint_minus_npoint', + 'tnpoint_minus_npointset', + 'tnpoint_minus_stbox', + 'tdistance_tnpoint_npoint', + 'tdistance_tnpoint_point', + 'tdistance_tnpoint_tnpoint', + 'nad_tnpoint_geo', + 'nad_tnpoint_npoint', + 'nad_tnpoint_stbox', + 'nad_tnpoint_tnpoint', + 'nai_tnpoint_geo', + 'nai_tnpoint_npoint', + 'nai_tnpoint_tnpoint', + 'shortestline_tnpoint_geo', + 'shortestline_tnpoint_npoint', + 'shortestline_tnpoint_tnpoint', + 'tnpoint_tcentroid_transfn', + 'always_eq_npoint_tnpoint', + 'always_eq_tnpoint_npoint', + 'always_eq_tnpoint_tnpoint', + 'always_ne_npoint_tnpoint', + 'always_ne_tnpoint_npoint', + 'always_ne_tnpoint_tnpoint', + 'ever_eq_npoint_tnpoint', + 'ever_eq_tnpoint_npoint', + 'ever_eq_tnpoint_tnpoint', + 'ever_ne_npoint_tnpoint', + 'ever_ne_tnpoint_npoint', + 'ever_ne_tnpoint_tnpoint', + 'teq_tnpoint_npoint', + 'tne_tnpoint_npoint', + ] diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 961434b..6351f3b 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -143,112 +143,41 @@ def as_tsequenceset(temporal: "Temporal *") -> "TSequenceSet *": # ----------------------------------------------------------------------------- # ----------------------End of manually-defined functions---------------------- # ----------------------------------------------------------------------------- -def date_in(string: str) -> "DateADT": - string_converted = string.encode("utf-8") - result = _lib.date_in(string_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def date_out(d: "DateADT") -> str: - d_converted = _ffi.cast("DateADT", d) - result = _lib.date_out(d_converted) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": - interv1_converted = _ffi.cast("const Interval *", interv1) - interv2_converted = _ffi.cast("const Interval *", interv2) - result = _lib.interval_cmp(interv1_converted, interv2_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def interval_in(string: str, typmod: int) -> "Interval *": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) - result = _lib.interval_in(string_converted, typmod_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def interval_out(interv: "const Interval *") -> str: - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.interval_out(interv_converted) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def time_in(string: str, typmod: int) -> "TimeADT": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) +def time_in(string: str, typmod: int) -> 'TimeADT': + string_converted = string.encode('utf-8') + typmod_converted = _ffi.cast('int32', typmod) result = _lib.time_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def time_out(t: "TimeADT") -> str: - t_converted = _ffi.cast("TimeADT", t) +def time_out(t: 'TimeADT') -> str: + t_converted = _ffi.cast('TimeADT', t) result = _lib.time_out(t_converted) _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def timestamp_in(string: str, typmod: int) -> "Timestamp": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) - result = _lib.timestamp_in(string_converted, typmod_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def timestamp_out(t: int) -> str: - t_converted = _ffi.cast("Timestamp", t) - result = _lib.timestamp_out(t_converted) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def timestamptz_in(string: str, typmod: int) -> "TimestampTz": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) - result = _lib.timestamptz_in(string_converted, typmod_converted) - _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def timestamptz_out(t: int) -> str: - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.timestamptz_out(t_converted) - _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def meos_errno() -> "int": +def meos_errno() -> 'int': result = _lib.meos_errno() _check_error() return result if result != _ffi.NULL else None -def meos_errno_set(err: int) -> "int": +def meos_errno_set(err: int) -> 'int': result = _lib.meos_errno_set(err) _check_error() return result if result != _ffi.NULL else None -def meos_errno_restore(err: int) -> "int": +def meos_errno_restore(err: int) -> 'int': result = _lib.meos_errno_restore(err) _check_error() return result if result != _ffi.NULL else None -def meos_errno_reset() -> "int": +def meos_errno_reset() -> 'int': result = _lib.meos_errno_reset() _check_error() return result if result != _ffi.NULL else None @@ -264,16 +193,16 @@ def meos_finalize_ways() -> None: _check_error() -def meos_set_datestyle(newval: str, extra: "void *") -> "bool": - newval_converted = newval.encode("utf-8") - extra_converted = _ffi.cast("void *", extra) +def meos_set_datestyle(newval: str, extra: 'void *') -> 'bool': + newval_converted = newval.encode('utf-8') + extra_converted = _ffi.cast('void *', extra) result = _lib.meos_set_datestyle(newval_converted, extra_converted) _check_error() return result if result != _ffi.NULL else None -def meos_set_intervalstyle(newval: str, extra: "Optional[int]") -> "bool": - newval_converted = newval.encode("utf-8") +def meos_set_intervalstyle(newval: str, extra: 'Optional[int]') -> 'bool': + newval_converted = newval.encode('utf-8') extra_converted = extra if extra is not None else _ffi.NULL result = _lib.meos_set_intervalstyle(newval_converted, extra_converted) _check_error() @@ -283,14 +212,14 @@ def meos_set_intervalstyle(newval: str, extra: "Optional[int]") -> "bool": def meos_get_datestyle() -> str: result = _lib.meos_get_datestyle() _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None def meos_get_intervalstyle() -> str: result = _lib.meos_get_intervalstyle() _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None @@ -301,9 +230,9 @@ def meos_initialize(tz_str: "Optional[str]") -> None: # Assume we are in a wheel and the PROJ data is in the package os.environ["PROJ_DATA"] = proj_dir os.environ["PROJ_LIB"] = proj_dir - + _lib.meos_initialize() - tz_str_converted = tz_str.encode("utf-8") if tz_str is not None else _ffi.NULL + tz_str_converted = tz_str.encode('utf-8') if tz_str is not None else _ffi.NULL _lib.meos_initialize_timezone(tz_str_converted) _lib.meos_initialize_error_handler(_lib.py_error_handler) @@ -313,42 +242,32 @@ def meos_finalize() -> None: _check_error() -def add_date_int(d: "DateADT", days: int) -> "DateADT": - d_converted = _ffi.cast("DateADT", d) - days_converted = _ffi.cast("int32", days) +def add_date_int(d: 'DateADT', days: int) -> 'DateADT': + d_converted = _ffi.cast('DateADT', d) + days_converted = _ffi.cast('int32', days) result = _lib.add_date_int(d_converted, days_converted) _check_error() return result if result != _ffi.NULL else None -def add_interval_interval( - interv1: "const Interval *", interv2: "const Interval *" -) -> "Interval *": - interv1_converted = _ffi.cast("const Interval *", interv1) - interv2_converted = _ffi.cast("const Interval *", interv2) +def add_interval_interval(interv1: 'const Interval *', interv2: 'const Interval *') -> 'Interval *': + interv1_converted = _ffi.cast('const Interval *', interv1) + interv2_converted = _ffi.cast('const Interval *', interv2) result = _lib.add_interval_interval(interv1_converted, interv2_converted) _check_error() return result if result != _ffi.NULL else None -def add_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - interv_converted = _ffi.cast("const Interval *", interv) +def add_timestamptz_interval(t: int, interv: 'const Interval *') -> 'TimestampTz': + t_converted = _ffi.cast('TimestampTz', t) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.add_timestamptz_interval(t_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def sub_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.sub_timestamptz_interval(t_converted, interv_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def bool_in(string: str) -> "bool": - string_converted = string.encode("utf-8") +def bool_in(string: str) -> 'bool': + string_converted = string.encode('utf-8') result = _lib.bool_in(string_converted) _check_error() return result if result != _ffi.NULL else None @@ -357,209 +276,183 @@ def bool_in(string: str) -> "bool": def bool_out(b: bool) -> str: result = _lib.bool_out(b) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def cstring2text(cstring: str) -> "text *": - cstring_converted = cstring.encode("utf-8") +def cstring2text(cstring: str) -> 'text *': + cstring_converted = cstring.encode('utf-8') result = _lib.cstring2text(cstring_converted) return result -def date_to_timestamp(dateVal: "DateADT") -> "Timestamp": - dateVal_converted = _ffi.cast("DateADT", dateVal) +def date_to_timestamp(dateVal: 'DateADT') -> 'Timestamp': + dateVal_converted = _ffi.cast('DateADT', dateVal) result = _lib.date_to_timestamp(dateVal_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_timestamptz(d: "DateADT") -> "TimestampTz": - d_converted = _ffi.cast("DateADT", d) +def date_to_timestamptz(d: 'DateADT') -> 'TimestampTz': + d_converted = _ffi.cast('DateADT', d) result = _lib.date_to_timestamptz(d_converted) _check_error() return result if result != _ffi.NULL else None -def float_exp(d: float) -> "double": +def float_exp(d: float) -> 'double': result = _lib.float_exp(d) _check_error() return result if result != _ffi.NULL else None -def float_ln(d: float) -> "double": +def float_ln(d: float) -> 'double': result = _lib.float_ln(d) _check_error() return result if result != _ffi.NULL else None -def float_log10(d: float) -> "double": +def float_log10(d: float) -> 'double': result = _lib.float_log10(d) _check_error() return result if result != _ffi.NULL else None -def float_round(d: float, maxdd: int) -> "double": +def float_round(d: float, maxdd: int) -> 'double': result = _lib.float_round(d, maxdd) _check_error() return result if result != _ffi.NULL else None -def interval_make( - years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float -) -> "Interval *": - years_converted = _ffi.cast("int32", years) - months_converted = _ffi.cast("int32", months) - weeks_converted = _ffi.cast("int32", weeks) - days_converted = _ffi.cast("int32", days) - hours_converted = _ffi.cast("int32", hours) - mins_converted = _ffi.cast("int32", mins) - result = _lib.interval_make( - years_converted, - months_converted, - weeks_converted, - days_converted, - hours_converted, - mins_converted, - secs, - ) +def interval_make(years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float) -> 'Interval *': + years_converted = _ffi.cast('int32', years) + months_converted = _ffi.cast('int32', months) + weeks_converted = _ffi.cast('int32', weeks) + days_converted = _ffi.cast('int32', days) + hours_converted = _ffi.cast('int32', hours) + mins_converted = _ffi.cast('int32', mins) + result = _lib.interval_make(years_converted, months_converted, weeks_converted, days_converted, hours_converted, mins_converted, secs) _check_error() return result if result != _ffi.NULL else None -def minus_date_date(d1: "DateADT", d2: "DateADT") -> "Interval *": - d1_converted = _ffi.cast("DateADT", d1) - d2_converted = _ffi.cast("DateADT", d2) +def minus_date_date(d1: 'DateADT', d2: 'DateADT') -> 'Interval *': + d1_converted = _ffi.cast('DateADT', d1) + d2_converted = _ffi.cast('DateADT', d2) result = _lib.minus_date_date(d1_converted, d2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_int(d: "DateADT", days: int) -> "DateADT": - d_converted = _ffi.cast("DateADT", d) - days_converted = _ffi.cast("int32", days) +def minus_date_int(d: 'DateADT', days: int) -> 'DateADT': + d_converted = _ffi.cast('DateADT', d) + days_converted = _ffi.cast('int32', days) result = _lib.minus_date_int(d_converted, days_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - interv_converted = _ffi.cast("const Interval *", interv) +def minus_timestamptz_interval(t: int, interv: 'const Interval *') -> 'TimestampTz': + t_converted = _ffi.cast('TimestampTz', t) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.minus_timestamptz_interval(t_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_timestamptz(t1: int, t2: int) -> "Interval *": - t1_converted = _ffi.cast("TimestampTz", t1) - t2_converted = _ffi.cast("TimestampTz", t2) +def minus_timestamptz_timestamptz(t1: int, t2: int) -> 'Interval *': + t1_converted = _ffi.cast('TimestampTz', t1) + t2_converted = _ffi.cast('TimestampTz', t2) result = _lib.minus_timestamptz_timestamptz(t1_converted, t2_converted) _check_error() return result if result != _ffi.NULL else None -def mul_interval_double(interv: "const Interval *", factor: float) -> "Interval *": - interv_converted = _ffi.cast("const Interval *", interv) +def mul_interval_double(interv: 'const Interval *', factor: float) -> 'Interval *': + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.mul_interval_double(interv_converted, factor) _check_error() return result if result != _ffi.NULL else None -def pg_date_in(string: str) -> "DateADT": - string_converted = string.encode("utf-8") +def pg_date_in(string: str) -> 'DateADT': + string_converted = string.encode('utf-8') result = _lib.pg_date_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def pg_date_out(d: "DateADT") -> str: - d_converted = _ffi.cast("DateADT", d) +def pg_date_out(d: 'DateADT') -> str: + d_converted = _ffi.cast('DateADT', d) result = _lib.pg_date_out(d_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def pg_interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": - interv1_converted = _ffi.cast("const Interval *", interv1) - interv2_converted = _ffi.cast("const Interval *", interv2) +def pg_interval_cmp(interv1: 'const Interval *', interv2: 'const Interval *') -> 'int': + interv1_converted = _ffi.cast('const Interval *', interv1) + interv2_converted = _ffi.cast('const Interval *', interv2) result = _lib.pg_interval_cmp(interv1_converted, interv2_converted) _check_error() return result if result != _ffi.NULL else None -def pg_interval_in(string: str, typmod: int) -> "Interval *": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) +def pg_interval_in(string: str, typmod: int) -> 'Interval *': + string_converted = string.encode('utf-8') + typmod_converted = _ffi.cast('int32', typmod) result = _lib.pg_interval_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def pg_interval_out(interv: "const Interval *") -> str: - interv_converted = _ffi.cast("const Interval *", interv) +def pg_interval_out(interv: 'const Interval *') -> str: + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.pg_interval_out(interv_converted) _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None - - -def pg_time_in(string: str, typmod: int) -> "TimeADT": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) - result = _lib.pg_time_in(string_converted, typmod_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def pg_time_out(t: "TimeADT") -> str: - t_converted = _ffi.cast("TimeADT", t) - result = _lib.pg_time_out(t_converted) - _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def pg_timestamp_in(string: str, typmod: int) -> "Timestamp": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) +def pg_timestamp_in(string: str, typmod: int) -> 'Timestamp': + string_converted = string.encode('utf-8') + typmod_converted = _ffi.cast('int32', typmod) result = _lib.pg_timestamp_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None def pg_timestamp_out(t: int) -> str: - t_converted = _ffi.cast("Timestamp", t) + t_converted = _ffi.cast('Timestamp', t) result = _lib.pg_timestamp_out(t_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def pg_timestamptz_in(string: str, typmod: int) -> "TimestampTz": - string_converted = string.encode("utf-8") - typmod_converted = _ffi.cast("int32", typmod) +def pg_timestamptz_in(string: str, typmod: int) -> 'TimestampTz': + string_converted = string.encode('utf-8') + typmod_converted = _ffi.cast('int32', typmod) result = _lib.pg_timestamptz_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None def pg_timestamptz_out(t: int) -> str: - t_converted = _ffi.cast("TimestampTz", t) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.pg_timestamptz_out(t_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def text2cstring(textptr: "text *") -> str: +def text2cstring(textptr: 'text *') -> str: result = _lib.text2cstring(textptr) - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result -def text_cmp(txt1: str, txt2: str) -> "int": +def text_cmp(txt1: str, txt2: str) -> 'int': txt1_converted = cstring2text(txt1) txt2_converted = cstring2text(txt2) result = _lib.text_cmp(txt1_converted, txt2_converted) @@ -595,7 +488,7 @@ def text_out(txt: str) -> str: txt_converted = cstring2text(txt) result = _lib.text_out(txt_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None @@ -616,713 +509,699 @@ def textcat_text_text(txt1: str, txt2: str) -> str: return result if result != _ffi.NULL else None -def timestamptz_shift(t: int, interv: "const Interval *") -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - interv_converted = _ffi.cast("const Interval *", interv) +def timestamptz_shift(t: int, interv: 'const Interval *') -> 'TimestampTz': + t_converted = _ffi.cast('TimestampTz', t) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.timestamptz_shift(t_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def timestamp_to_date(t: int) -> "DateADT": - t_converted = _ffi.cast("Timestamp", t) +def timestamp_to_date(t: int) -> 'DateADT': + t_converted = _ffi.cast('Timestamp', t) result = _lib.timestamp_to_date(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_date(t: int) -> "DateADT": - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_to_date(t: int) -> 'DateADT': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_to_date(t_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") +def bigintset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') result = _lib.bigintset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_out(set: "const Set *") -> str: - set_converted = _ffi.cast("const Set *", set) +def bigintset_out(set: 'const Set *') -> str: + set_converted = _ffi.cast('const Set *', set) result = _lib.bigintset_out(set_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def bigintspan_in(string: str) -> "Span *": - string_converted = string.encode("utf-8") +def bigintspan_in(string: str) -> 'Span *': + string_converted = string.encode('utf-8') result = _lib.bigintspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_out(s: "const Span *") -> str: - s_converted = _ffi.cast("const Span *", s) +def bigintspan_out(s: 'const Span *') -> str: + s_converted = _ffi.cast('const Span *', s) result = _lib.bigintspan_out(s_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def bigintspanset_in(string: str) -> "SpanSet *": - string_converted = string.encode("utf-8") +def bigintspanset_in(string: str) -> 'SpanSet *': + string_converted = string.encode('utf-8') result = _lib.bigintspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_out(ss: "const SpanSet *") -> str: - ss_converted = _ffi.cast("const SpanSet *", ss) +def bigintspanset_out(ss: 'const SpanSet *') -> str: + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.bigintspanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def dateset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") +def dateset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') result = _lib.dateset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_out(s: "const Set *") -> str: - s_converted = _ffi.cast("const Set *", s) +def dateset_out(s: 'const Set *') -> str: + s_converted = _ffi.cast('const Set *', s) result = _lib.dateset_out(s_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def datespan_in(string: str) -> "Span *": - string_converted = string.encode("utf-8") +def datespan_in(string: str) -> 'Span *': + string_converted = string.encode('utf-8') result = _lib.datespan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_out(s: "const Span *") -> str: - s_converted = _ffi.cast("const Span *", s) +def datespan_out(s: 'const Span *') -> str: + s_converted = _ffi.cast('const Span *', s) result = _lib.datespan_out(s_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def datespanset_in(string: str) -> "SpanSet *": - string_converted = string.encode("utf-8") +def datespanset_in(string: str) -> 'SpanSet *': + string_converted = string.encode('utf-8') result = _lib.datespanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_out(ss: "const SpanSet *") -> str: - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_out(ss: 'const SpanSet *') -> str: + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def floatset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") +def floatset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') result = _lib.floatset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_out(set: "const Set *", maxdd: int) -> str: - set_converted = _ffi.cast("const Set *", set) +def floatset_out(set: 'const Set *', maxdd: int) -> str: + set_converted = _ffi.cast('const Set *', set) result = _lib.floatset_out(set_converted, maxdd) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def floatspan_in(string: str) -> "Span *": - string_converted = string.encode("utf-8") +def floatspan_in(string: str) -> 'Span *': + string_converted = string.encode('utf-8') result = _lib.floatspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_out(s: "const Span *", maxdd: int) -> str: - s_converted = _ffi.cast("const Span *", s) +def floatspan_out(s: 'const Span *', maxdd: int) -> str: + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_out(s_converted, maxdd) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def floatspanset_in(string: str) -> "SpanSet *": - string_converted = string.encode("utf-8") +def floatspanset_in(string: str) -> 'SpanSet *': + string_converted = string.encode('utf-8') result = _lib.floatspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_out(ss: "const SpanSet *", maxdd: int) -> str: - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_out(ss: 'const SpanSet *', maxdd: int) -> str: + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_out(ss_converted, maxdd) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def intset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") +def intset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') result = _lib.intset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intset_out(set: "const Set *") -> str: - set_converted = _ffi.cast("const Set *", set) +def intset_out(set: 'const Set *') -> str: + set_converted = _ffi.cast('const Set *', set) result = _lib.intset_out(set_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def intspan_in(string: str) -> "Span *": - string_converted = string.encode("utf-8") +def intspan_in(string: str) -> 'Span *': + string_converted = string.encode('utf-8') result = _lib.intspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_out(s: "const Span *") -> str: - s_converted = _ffi.cast("const Span *", s) +def intspan_out(s: 'const Span *') -> str: + s_converted = _ffi.cast('const Span *', s) result = _lib.intspan_out(s_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def intspanset_in(string: str) -> "SpanSet *": - string_converted = string.encode("utf-8") +def intspanset_in(string: str) -> 'SpanSet *': + string_converted = string.encode('utf-8') result = _lib.intspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_out(ss: "const SpanSet *") -> str: - ss_converted = _ffi.cast("const SpanSet *", ss) +def intspanset_out(ss: 'const SpanSet *') -> str: + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intspanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def set_as_hexwkb(s: "const Set *", variant: int) -> "Tuple[str, 'size_t *']": - s_converted = _ffi.cast("const Set *", s) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def set_as_hexwkb(s: 'const Set *', variant: int) -> "Tuple[str, 'size_t *']": + s_converted = _ffi.cast('const Set *', s) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.set_as_hexwkb(s_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None, size_out[0] -def set_as_wkb(s: "const Set *", variant: int) -> bytes: - s_converted = _ffi.cast("const Set *", s) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def set_as_wkb(s: 'const Set *', variant: int) -> bytes: + s_converted = _ffi.cast('const Set *', s) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.set_as_wkb(s_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def set_from_hexwkb(hexwkb: str) -> "Set *": - hexwkb_converted = hexwkb.encode("utf-8") +def set_from_hexwkb(hexwkb: str) -> 'Set *': + hexwkb_converted = hexwkb.encode('utf-8') result = _lib.set_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def set_from_wkb(wkb: bytes) -> "Set *": - wkb_converted = _ffi.new("uint8_t []", wkb) +def set_from_wkb(wkb: bytes) -> 'Set *': + wkb_converted = _ffi.new('uint8_t []', wkb) result = _lib.set_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def span_as_hexwkb(s: "const Span *", variant: int) -> "Tuple[str, 'size_t *']": - s_converted = _ffi.cast("const Span *", s) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def span_as_hexwkb(s: 'const Span *', variant: int) -> "Tuple[str, 'size_t *']": + s_converted = _ffi.cast('const Span *', s) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.span_as_hexwkb(s_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None, size_out[0] -def span_as_wkb(s: "const Span *", variant: int) -> bytes: - s_converted = _ffi.cast("const Span *", s) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def span_as_wkb(s: 'const Span *', variant: int) -> bytes: + s_converted = _ffi.cast('const Span *', s) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.span_as_wkb(s_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def span_from_hexwkb(hexwkb: str) -> "Span *": - hexwkb_converted = hexwkb.encode("utf-8") +def span_from_hexwkb(hexwkb: str) -> 'Span *': + hexwkb_converted = hexwkb.encode('utf-8') result = _lib.span_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def span_from_wkb(wkb: bytes) -> "Span *": - wkb_converted = _ffi.new("uint8_t []", wkb) +def span_from_wkb(wkb: bytes) -> 'Span *': + wkb_converted = _ffi.new('uint8_t []', wkb) result = _lib.span_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def spanset_as_hexwkb(ss: "const SpanSet *", variant: int) -> "Tuple[str, 'size_t *']": - ss_converted = _ffi.cast("const SpanSet *", ss) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def spanset_as_hexwkb(ss: 'const SpanSet *', variant: int) -> "Tuple[str, 'size_t *']": + ss_converted = _ffi.cast('const SpanSet *', ss) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.spanset_as_hexwkb(ss_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None, size_out[0] -def spanset_as_wkb(ss: "const SpanSet *", variant: int) -> bytes: - ss_converted = _ffi.cast("const SpanSet *", ss) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def spanset_as_wkb(ss: 'const SpanSet *', variant: int) -> bytes: + ss_converted = _ffi.cast('const SpanSet *', ss) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.spanset_as_wkb(ss_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def spanset_from_hexwkb(hexwkb: str) -> "SpanSet *": - hexwkb_converted = hexwkb.encode("utf-8") +def spanset_from_hexwkb(hexwkb: str) -> 'SpanSet *': + hexwkb_converted = hexwkb.encode('utf-8') result = _lib.spanset_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_from_wkb(wkb: bytes) -> "SpanSet *": - wkb_converted = _ffi.new("uint8_t []", wkb) +def spanset_from_wkb(wkb: bytes) -> 'SpanSet *': + wkb_converted = _ffi.new('uint8_t []', wkb) result = _lib.spanset_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def textset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") +def textset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') result = _lib.textset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def textset_out(set: "const Set *") -> str: - set_converted = _ffi.cast("const Set *", set) +def textset_out(set: 'const Set *') -> str: + set_converted = _ffi.cast('const Set *', set) result = _lib.textset_out(set_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tstzset_in(string: str) -> "Set *": - string_converted = string.encode("utf-8") +def tstzset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') result = _lib.tstzset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_out(set: "const Set *") -> str: - set_converted = _ffi.cast("const Set *", set) +def tstzset_out(set: 'const Set *') -> str: + set_converted = _ffi.cast('const Set *', set) result = _lib.tstzset_out(set_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tstzspan_in(string: str) -> "Span *": - string_converted = string.encode("utf-8") +def tstzspan_in(string: str) -> 'Span *': + string_converted = string.encode('utf-8') result = _lib.tstzspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_out(s: "const Span *") -> str: - s_converted = _ffi.cast("const Span *", s) +def tstzspan_out(s: 'const Span *') -> str: + s_converted = _ffi.cast('const Span *', s) result = _lib.tstzspan_out(s_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tstzspanset_in(string: str) -> "SpanSet *": - string_converted = string.encode("utf-8") +def tstzspanset_in(string: str) -> 'SpanSet *': + string_converted = string.encode('utf-8') result = _lib.tstzspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_out(ss: "const SpanSet *") -> str: - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_out(ss: 'const SpanSet *') -> str: + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def bigintset_make(values: "List[const int64]") -> "Set *": - values_converted = _ffi.new("const int64 []", values) +def bigintset_make(values: 'List[const int64]') -> 'Set *': + values_converted = _ffi.new('const int64 []', values) result = _lib.bigintset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def bigintspan_make( - lower: int, upper: int, lower_inc: bool, upper_inc: bool -) -> "Span *": - lower_converted = _ffi.cast("int64", lower) - upper_converted = _ffi.cast("int64", upper) - result = _lib.bigintspan_make( - lower_converted, upper_converted, lower_inc, upper_inc - ) +def bigintspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> 'Span *': + lower_converted = _ffi.cast('int64', lower) + upper_converted = _ffi.cast('int64', upper) + result = _lib.bigintspan_make(lower_converted, upper_converted, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def dateset_make(values: "List[const DateADT]") -> "Set *": - values_converted = _ffi.new("const DateADT []", values) +def dateset_make(values: 'List[const DateADT]') -> 'Set *': + values_converted = _ffi.new('const DateADT []', values) result = _lib.dateset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def datespan_make( - lower: "DateADT", upper: "DateADT", lower_inc: bool, upper_inc: bool -) -> "Span *": - lower_converted = _ffi.cast("DateADT", lower) - upper_converted = _ffi.cast("DateADT", upper) +def datespan_make(lower: 'DateADT', upper: 'DateADT', lower_inc: bool, upper_inc: bool) -> 'Span *': + lower_converted = _ffi.cast('DateADT', lower) + upper_converted = _ffi.cast('DateADT', upper) result = _lib.datespan_make(lower_converted, upper_converted, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def floatset_make(values: "List[const double]") -> "Set *": - values_converted = _ffi.new("const double []", values) +def floatset_make(values: 'List[const double]') -> 'Set *': + values_converted = _ffi.new('const double []', values) result = _lib.floatset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def floatspan_make( - lower: float, upper: float, lower_inc: bool, upper_inc: bool -) -> "Span *": +def floatspan_make(lower: float, upper: float, lower_inc: bool, upper_inc: bool) -> 'Span *': result = _lib.floatspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def intset_make(values: "List[const int]") -> "Set *": - values_converted = _ffi.new("const int []", values) +def intset_make(values: 'List[const int]') -> 'Set *': + values_converted = _ffi.new('const int []', values) result = _lib.intset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> "Span *": +def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> 'Span *': result = _lib.intspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def set_copy(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def set_copy(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_copy(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def span_copy(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.span_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_copy(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_copy(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_copy(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_make(spans: "List[Span *]") -> "SpanSet *": - spans_converted = _ffi.new("Span []", spans) +def spanset_make(spans: 'List[Span *]') -> 'SpanSet *': + spans_converted = _ffi.new('Span []', spans) result = _lib.spanset_make(spans_converted, len(spans)) _check_error() return result if result != _ffi.NULL else None -def textset_make(values: List[str]) -> "Set *": +def textset_make(values: List[str]) -> 'Set *': values_converted = [cstring2text(x) for x in values] result = _lib.textset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzset_make(values: List[int]) -> "Set *": - values_converted = [_ffi.cast("const TimestampTz", x) for x in values] +def tstzset_make(values: List[int]) -> 'Set *': + values_converted = [_ffi.cast('const TimestampTz', x) for x in values] result = _lib.tstzset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> "Span *": - lower_converted = _ffi.cast("TimestampTz", lower) - upper_converted = _ffi.cast("TimestampTz", upper) +def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> 'Span *': + lower_converted = _ffi.cast('TimestampTz', lower) + upper_converted = _ffi.cast('TimestampTz', upper) result = _lib.tstzspan_make(lower_converted, upper_converted, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def bigint_to_set(i: int) -> "Set *": - i_converted = _ffi.cast("int64", i) +def bigint_to_set(i: int) -> 'Set *': + i_converted = _ffi.cast('int64', i) result = _lib.bigint_to_set(i_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_to_span(i: int) -> "Span *": +def bigint_to_span(i: int) -> 'Span *': result = _lib.bigint_to_span(i) _check_error() return result if result != _ffi.NULL else None -def bigint_to_spanset(i: int) -> "SpanSet *": +def bigint_to_spanset(i: int) -> 'SpanSet *': result = _lib.bigint_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def date_to_set(d: "DateADT") -> "Set *": - d_converted = _ffi.cast("DateADT", d) +def date_to_set(d: 'DateADT') -> 'Set *': + d_converted = _ffi.cast('DateADT', d) result = _lib.date_to_set(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_span(d: "DateADT") -> "Span *": - d_converted = _ffi.cast("DateADT", d) +def date_to_span(d: 'DateADT') -> 'Span *': + d_converted = _ffi.cast('DateADT', d) result = _lib.date_to_span(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_spanset(d: "DateADT") -> "SpanSet *": - d_converted = _ffi.cast("DateADT", d) +def date_to_spanset(d: 'DateADT') -> 'SpanSet *': + d_converted = _ffi.cast('DateADT', d) result = _lib.date_to_spanset(d_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_to_tstzset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def dateset_to_tstzset(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.dateset_to_tstzset(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_to_tstzspan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def datespan_to_tstzspan(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.datespan_to_tstzspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_to_tstzspanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_to_tstzspanset(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_to_tstzspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def float_to_set(d: float) -> "Set *": +def float_to_set(d: float) -> 'Set *': result = _lib.float_to_set(d) _check_error() return result if result != _ffi.NULL else None -def float_to_span(d: float) -> "Span *": +def float_to_span(d: float) -> 'Span *': result = _lib.float_to_span(d) _check_error() return result if result != _ffi.NULL else None -def float_to_spanset(d: float) -> "SpanSet *": +def float_to_spanset(d: float) -> 'SpanSet *': result = _lib.float_to_spanset(d) _check_error() return result if result != _ffi.NULL else None -def floatset_to_intset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def floatset_to_intset(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_to_intset(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_to_intspan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_to_intspan(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_to_intspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_to_intspanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_to_intspanset(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_to_intspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def int_to_set(i: int) -> "Set *": +def int_to_set(i: int) -> 'Set *': result = _lib.int_to_set(i) _check_error() return result if result != _ffi.NULL else None -def int_to_span(i: int) -> "Span *": +def int_to_span(i: int) -> 'Span *': result = _lib.int_to_span(i) _check_error() return result if result != _ffi.NULL else None -def int_to_spanset(i: int) -> "SpanSet *": +def int_to_spanset(i: int) -> 'SpanSet *': result = _lib.int_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def intset_to_floatset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intset_to_floatset(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intset_to_floatset(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_to_floatspan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def intspan_to_floatspan(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.intspan_to_floatspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_to_floatspanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intspanset_to_floatspanset(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intspanset_to_floatspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_span(s: "const Set *") -> "Span *": - s_converted = _ffi.cast("const Set *", s) +def set_to_span(s: 'const Set *') -> 'Span *': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_to_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_spanset(s: "const Set *") -> "SpanSet *": - s_converted = _ffi.cast("const Set *", s) +def set_to_spanset(s: 'const Set *') -> 'SpanSet *': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_spanset(s: "const Span *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def span_to_spanset(s: 'const Span *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.span_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def text_to_set(txt: str) -> "Set *": +def text_to_set(txt: str) -> 'Set *': txt_converted = cstring2text(txt) result = _lib.text_to_set(txt_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_set(t: int) -> "Set *": - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_to_set(t: int) -> 'Set *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_to_set(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_span(t: int) -> "Span *": - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_to_span(t: int) -> 'Span *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_to_span(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_spanset(t: int) -> "SpanSet *": - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_to_spanset(t: int) -> 'SpanSet *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_to_spanset(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_dateset(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def tstzset_to_dateset(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.tstzset_to_dateset(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_datespan(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def tstzspan_to_datespan(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.tstzspan_to_datespan(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_datespanset(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_to_datespanset(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_to_datespanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_end_value(s: "const Set *") -> "int64": - s_converted = _ffi.cast("const Set *", s) +def bigintset_end_value(s: 'const Set *') -> 'int64': + s_converted = _ffi.cast('const Set *', s) result = _lib.bigintset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_start_value(s: "const Set *") -> "int64": - s_converted = _ffi.cast("const Set *", s) +def bigintset_start_value(s: 'const Set *') -> 'int64': + s_converted = _ffi.cast('const Set *', s) result = _lib.bigintset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_value_n(s: "const Set *", n: int) -> "int64": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("int64 *") +def bigintset_value_n(s: 'const Set *', n: int) -> 'int64': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('int64 *') result = _lib.bigintset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1330,72 +1209,72 @@ def bigintset_value_n(s: "const Set *", n: int) -> "int64": return None -def bigintset_values(s: "const Set *") -> "int64 *": - s_converted = _ffi.cast("const Set *", s) +def bigintset_values(s: 'const Set *') -> 'int64 *': + s_converted = _ffi.cast('const Set *', s) result = _lib.bigintset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_lower(s: "const Span *") -> "int64": - s_converted = _ffi.cast("const Span *", s) +def bigintspan_lower(s: 'const Span *') -> 'int64': + s_converted = _ffi.cast('const Span *', s) result = _lib.bigintspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_upper(s: "const Span *") -> "int64": - s_converted = _ffi.cast("const Span *", s) +def bigintspan_upper(s: 'const Span *') -> 'int64': + s_converted = _ffi.cast('const Span *', s) result = _lib.bigintspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_width(s: "const Span *") -> "int64": - s_converted = _ffi.cast("const Span *", s) +def bigintspan_width(s: 'const Span *') -> 'int64': + s_converted = _ffi.cast('const Span *', s) result = _lib.bigintspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_lower(ss: "const SpanSet *") -> "int64": - ss_converted = _ffi.cast("const SpanSet *", ss) +def bigintspanset_lower(ss: 'const SpanSet *') -> 'int64': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.bigintspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_upper(ss: "const SpanSet *") -> "int64": - ss_converted = _ffi.cast("const SpanSet *", ss) +def bigintspanset_upper(ss: 'const SpanSet *') -> 'int64': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.bigintspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_width(ss: "const SpanSet *", boundspan: bool) -> "int64": - ss_converted = _ffi.cast("const SpanSet *", ss) +def bigintspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'int64': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.bigintspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def dateset_end_value(s: "const Set *") -> "DateADT": - s_converted = _ffi.cast("const Set *", s) +def dateset_end_value(s: 'const Set *') -> 'DateADT': + s_converted = _ffi.cast('const Set *', s) result = _lib.dateset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_start_value(s: "const Set *") -> "DateADT": - s_converted = _ffi.cast("const Set *", s) +def dateset_start_value(s: 'const Set *') -> 'DateADT': + s_converted = _ffi.cast('const Set *', s) result = _lib.dateset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_value_n(s: "const Set *", n: int) -> "DateADT *": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("DateADT *") +def dateset_value_n(s: 'const Set *', n: int) -> 'DateADT *': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('DateADT *') result = _lib.dateset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1403,37 +1282,37 @@ def dateset_value_n(s: "const Set *", n: int) -> "DateADT *": return None -def dateset_values(s: "const Set *") -> "DateADT *": - s_converted = _ffi.cast("const Set *", s) +def dateset_values(s: 'const Set *') -> 'DateADT *': + s_converted = _ffi.cast('const Set *', s) result = _lib.dateset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_duration(s: "const Span *") -> "Interval *": - s_converted = _ffi.cast("const Span *", s) +def datespan_duration(s: 'const Span *') -> 'Interval *': + s_converted = _ffi.cast('const Span *', s) result = _lib.datespan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_lower(s: "const Span *") -> "DateADT": - s_converted = _ffi.cast("const Span *", s) +def datespan_lower(s: 'const Span *') -> 'DateADT': + s_converted = _ffi.cast('const Span *', s) result = _lib.datespan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_upper(s: "const Span *") -> "DateADT": - s_converted = _ffi.cast("const Span *", s) +def datespan_upper(s: 'const Span *') -> 'DateADT': + s_converted = _ffi.cast('const Span *', s) result = _lib.datespan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_date_n(ss: "const SpanSet *", n: int) -> "DateADT *": - ss_converted = _ffi.cast("const SpanSet *", ss) - out_result = _ffi.new("DateADT *") +def datespanset_date_n(ss: 'const SpanSet *', n: int) -> 'DateADT *': + ss_converted = _ffi.cast('const SpanSet *', ss) + out_result = _ffi.new('DateADT *') result = _lib.datespanset_date_n(ss_converted, n, out_result) _check_error() if result: @@ -1441,58 +1320,58 @@ def datespanset_date_n(ss: "const SpanSet *", n: int) -> "DateADT *": return None -def datespanset_dates(ss: "const SpanSet *") -> "Set *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_dates(ss: 'const SpanSet *') -> 'Set *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_duration(ss: "const SpanSet *", boundspan: bool) -> "Interval *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_duration(ss: 'const SpanSet *', boundspan: bool) -> 'Interval *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def datespanset_end_date(ss: "const SpanSet *") -> "DateADT": - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_end_date(ss: 'const SpanSet *') -> 'DateADT': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_end_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_num_dates(ss: "const SpanSet *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_num_dates(ss: 'const SpanSet *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_num_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_start_date(ss: "const SpanSet *") -> "DateADT": - ss_converted = _ffi.cast("const SpanSet *", ss) +def datespanset_start_date(ss: 'const SpanSet *') -> 'DateADT': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.datespanset_start_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_end_value(s: "const Set *") -> "double": - s_converted = _ffi.cast("const Set *", s) +def floatset_end_value(s: 'const Set *') -> 'double': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_start_value(s: "const Set *") -> "double": - s_converted = _ffi.cast("const Set *", s) +def floatset_start_value(s: 'const Set *') -> 'double': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_value_n(s: "const Set *", n: int) -> "double": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("double *") +def floatset_value_n(s: 'const Set *', n: int) -> 'double': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('double *') result = _lib.floatset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1500,72 +1379,72 @@ def floatset_value_n(s: "const Set *", n: int) -> "double": return None -def floatset_values(s: "const Set *") -> "double *": - s_converted = _ffi.cast("const Set *", s) +def floatset_values(s: 'const Set *') -> 'double *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_lower(s: "const Span *") -> "double": - s_converted = _ffi.cast("const Span *", s) +def floatspan_lower(s: 'const Span *') -> 'double': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_upper(s: "const Span *") -> "double": - s_converted = _ffi.cast("const Span *", s) +def floatspan_upper(s: 'const Span *') -> 'double': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_width(s: "const Span *") -> "double": - s_converted = _ffi.cast("const Span *", s) +def floatspan_width(s: 'const Span *') -> 'double': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_lower(ss: "const SpanSet *") -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_lower(ss: 'const SpanSet *') -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_upper(ss: "const SpanSet *") -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_upper(ss: 'const SpanSet *') -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_width(ss: "const SpanSet *", boundspan: bool) -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def intset_end_value(s: "const Set *") -> "int": - s_converted = _ffi.cast("const Set *", s) +def intset_end_value(s: 'const Set *') -> 'int': + s_converted = _ffi.cast('const Set *', s) result = _lib.intset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_start_value(s: "const Set *") -> "int": - s_converted = _ffi.cast("const Set *", s) +def intset_start_value(s: 'const Set *') -> 'int': + s_converted = _ffi.cast('const Set *', s) result = _lib.intset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_value_n(s: "const Set *", n: int) -> "int": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("int *") +def intset_value_n(s: 'const Set *', n: int) -> 'int': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('int *') result = _lib.intset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1573,196 +1452,196 @@ def intset_value_n(s: "const Set *", n: int) -> "int": return None -def intset_values(s: "const Set *") -> "int *": - s_converted = _ffi.cast("const Set *", s) +def intset_values(s: 'const Set *') -> 'int *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_lower(s: "const Span *") -> "int": - s_converted = _ffi.cast("const Span *", s) +def intspan_lower(s: 'const Span *') -> 'int': + s_converted = _ffi.cast('const Span *', s) result = _lib.intspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_upper(s: "const Span *") -> "int": - s_converted = _ffi.cast("const Span *", s) +def intspan_upper(s: 'const Span *') -> 'int': + s_converted = _ffi.cast('const Span *', s) result = _lib.intspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_width(s: "const Span *") -> "int": - s_converted = _ffi.cast("const Span *", s) +def intspan_width(s: 'const Span *') -> 'int': + s_converted = _ffi.cast('const Span *', s) result = _lib.intspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_lower(ss: "const SpanSet *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intspanset_lower(ss: 'const SpanSet *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_upper(ss: "const SpanSet *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intspanset_upper(ss: 'const SpanSet *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_width(ss: "const SpanSet *", boundspan: bool) -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_hash(s: "const Set *") -> "uint32": - s_converted = _ffi.cast("const Set *", s) +def set_hash(s: 'const Set *') -> 'uint32': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_hash_extended(s: "const Set *", seed: int) -> "uint64": - s_converted = _ffi.cast("const Set *", s) - seed_converted = _ffi.cast("uint64", seed) +def set_hash_extended(s: 'const Set *', seed: int) -> 'uint64': + s_converted = _ffi.cast('const Set *', s) + seed_converted = _ffi.cast('uint64', seed) result = _lib.set_hash_extended(s_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def set_num_values(s: "const Set *") -> "int": - s_converted = _ffi.cast("const Set *", s) +def set_num_values(s: 'const Set *') -> 'int': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_num_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash(s: "const Span *") -> "uint32": - s_converted = _ffi.cast("const Span *", s) +def span_hash(s: 'const Span *') -> 'uint32': + s_converted = _ffi.cast('const Span *', s) result = _lib.span_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash_extended(s: "const Span *", seed: int) -> "uint64": - s_converted = _ffi.cast("const Span *", s) - seed_converted = _ffi.cast("uint64", seed) +def span_hash_extended(s: 'const Span *', seed: int) -> 'uint64': + s_converted = _ffi.cast('const Span *', s) + seed_converted = _ffi.cast('uint64', seed) result = _lib.span_hash_extended(s_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def span_lower_inc(s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def span_lower_inc(s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.span_lower_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_upper_inc(s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def span_upper_inc(s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.span_upper_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_end_span(ss: "const SpanSet *") -> "Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_end_span(ss: 'const SpanSet *') -> 'Span *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_end_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash(ss: "const SpanSet *") -> "uint32": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_hash(ss: 'const SpanSet *') -> 'uint32': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash_extended(ss: "const SpanSet *", seed: int) -> "uint64": - ss_converted = _ffi.cast("const SpanSet *", ss) - seed_converted = _ffi.cast("uint64", seed) +def spanset_hash_extended(ss: 'const SpanSet *', seed: int) -> 'uint64': + ss_converted = _ffi.cast('const SpanSet *', ss) + seed_converted = _ffi.cast('uint64', seed) result = _lib.spanset_hash_extended(ss_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lower_inc(ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_lower_inc(ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_lower_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_num_spans(ss: "const SpanSet *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_num_spans(ss: 'const SpanSet *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_num_spans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span(ss: "const SpanSet *") -> "Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_span(ss: 'const SpanSet *') -> 'Span *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span_n(ss: "const SpanSet *", i: int) -> "Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_span_n(ss: 'const SpanSet *', i: int) -> 'Span *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_span_n(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def spanset_spanarr(ss: "const SpanSet *") -> "Span **": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_spanarr(ss: 'const SpanSet *') -> 'Span **': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_spanarr(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_start_span(ss: "const SpanSet *") -> "Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_start_span(ss: 'const SpanSet *') -> 'Span *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_start_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper_inc(ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_upper_inc(ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_upper_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def textset_end_value(s: "const Set *") -> str: - s_converted = _ffi.cast("const Set *", s) +def textset_end_value(s: 'const Set *') -> str: + s_converted = _ffi.cast('const Set *', s) result = _lib.textset_end_value(s_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def textset_start_value(s: "const Set *") -> str: - s_converted = _ffi.cast("const Set *", s) +def textset_start_value(s: 'const Set *') -> str: + s_converted = _ffi.cast('const Set *', s) result = _lib.textset_start_value(s_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def textset_value_n(s: "const Set *", n: int) -> "text **": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("text **") +def textset_value_n(s: 'const Set *', n: int) -> 'text **': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('text **') result = _lib.textset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1770,30 +1649,30 @@ def textset_value_n(s: "const Set *", n: int) -> "text **": return None -def textset_values(s: "const Set *") -> "text **": - s_converted = _ffi.cast("const Set *", s) +def textset_values(s: 'const Set *') -> 'text **': + s_converted = _ffi.cast('const Set *', s) result = _lib.textset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_end_value(s: "const Set *") -> "TimestampTz": - s_converted = _ffi.cast("const Set *", s) +def tstzset_end_value(s: 'const Set *') -> 'TimestampTz': + s_converted = _ffi.cast('const Set *', s) result = _lib.tstzset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_start_value(s: "const Set *") -> "TimestampTz": - s_converted = _ffi.cast("const Set *", s) +def tstzset_start_value(s: 'const Set *') -> 'TimestampTz': + s_converted = _ffi.cast('const Set *', s) result = _lib.tstzset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_value_n(s: "const Set *", n: int) -> int: - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("TimestampTz *") +def tstzset_value_n(s: 'const Set *', n: int) -> int: + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('TimestampTz *') result = _lib.tstzset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1801,79 +1680,79 @@ def tstzset_value_n(s: "const Set *", n: int) -> int: return None -def tstzset_values(s: "const Set *") -> "TimestampTz *": - s_converted = _ffi.cast("const Set *", s) +def tstzset_values(s: 'const Set *') -> 'TimestampTz *': + s_converted = _ffi.cast('const Set *', s) result = _lib.tstzset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_duration(s: "const Span *") -> "Interval *": - s_converted = _ffi.cast("const Span *", s) +def tstzspan_duration(s: 'const Span *') -> 'Interval *': + s_converted = _ffi.cast('const Span *', s) result = _lib.tstzspan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_lower(s: "const Span *") -> "TimestampTz": - s_converted = _ffi.cast("const Span *", s) +def tstzspan_lower(s: 'const Span *') -> 'TimestampTz': + s_converted = _ffi.cast('const Span *', s) result = _lib.tstzspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_upper(s: "const Span *") -> "TimestampTz": - s_converted = _ffi.cast("const Span *", s) +def tstzspan_upper(s: 'const Span *') -> 'TimestampTz': + s_converted = _ffi.cast('const Span *', s) result = _lib.tstzspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_duration(ss: "const SpanSet *", boundspan: bool) -> "Interval *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_duration(ss: 'const SpanSet *', boundspan: bool) -> 'Interval *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_end_timestamptz(ss: "const SpanSet *") -> "TimestampTz": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_end_timestamptz(ss: 'const SpanSet *') -> 'TimestampTz': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_lower(ss: "const SpanSet *") -> "TimestampTz": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_lower(ss: 'const SpanSet *') -> 'TimestampTz': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_num_timestamps(ss: "const SpanSet *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_num_timestamps(ss: 'const SpanSet *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_num_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_start_timestamptz(ss: "const SpanSet *") -> "TimestampTz": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_start_timestamptz(ss: 'const SpanSet *') -> 'TimestampTz': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamps(ss: "const SpanSet *") -> "Set *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_timestamps(ss: 'const SpanSet *') -> 'Set *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: - ss_converted = _ffi.cast("const SpanSet *", ss) - out_result = _ffi.new("TimestampTz *") +def tstzspanset_timestamptz_n(ss: 'const SpanSet *', n: int) -> int: + ss_converted = _ffi.cast('const SpanSet *', ss) + out_result = _ffi.new('TimestampTz *') result = _lib.tstzspanset_timestamptz_n(ss_converted, n, out_result) _check_error() if result: @@ -1881,3799 +1760,3659 @@ def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: return None -def tstzspanset_upper(ss: "const SpanSet *") -> "TimestampTz": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_upper(ss: 'const SpanSet *') -> 'TimestampTz': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_shift_scale( - s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - shift_converted = _ffi.cast("int64", shift) - width_converted = _ffi.cast("int64", width) - result = _lib.bigintset_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) +def bigintset_shift_scale(s: 'const Set *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + shift_converted = _ffi.cast('int64', shift) + width_converted = _ffi.cast('int64', width) + result = _lib.bigintset_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def bigintspan_shift_scale( - s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - shift_converted = _ffi.cast("int64", shift) - width_converted = _ffi.cast("int64", width) - result = _lib.bigintspan_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) +def bigintspan_shift_scale(s: 'const Span *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + shift_converted = _ffi.cast('int64', shift) + width_converted = _ffi.cast('int64', width) + result = _lib.bigintspan_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_shift_scale( - ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - shift_converted = _ffi.cast("int64", shift) - width_converted = _ffi.cast("int64", width) - result = _lib.bigintspanset_shift_scale( - ss_converted, shift_converted, width_converted, hasshift, haswidth - ) +def bigintspanset_shift_scale(ss: 'const SpanSet *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + shift_converted = _ffi.cast('int64', shift) + width_converted = _ffi.cast('int64', width) + result = _lib.bigintspanset_shift_scale(ss_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def dateset_shift_scale( - s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def dateset_shift_scale(s: 'const Set *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.dateset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def datespan_shift_scale( - s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def datespan_shift_scale(s: 'const Span *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.datespan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def datespanset_shift_scale( - ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.datespanset_shift_scale( - ss_converted, shift, width, hasshift, haswidth - ) +def datespanset_shift_scale(ss: 'const SpanSet *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.datespanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatset_ceil(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def floatset_ceil(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_degrees(s: "const Set *", normalize: bool) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def floatset_degrees(s: 'const Set *', normalize: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatset_floor(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def floatset_floor(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_radians(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def floatset_radians(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_radians(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_shift_scale( - s: "const Set *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def floatset_shift_scale(s: 'const Set *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.floatset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspan_ceil(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_ceil(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_degrees(s: "const Span *", normalize: bool) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_degrees(s: 'const Span *', normalize: bool) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspan_floor(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_floor(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_radians(s: "const Span *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_radians(s: 'const Span *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_radians(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round(s: "const Span *", maxdd: int) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_round(s: 'const Span *', maxdd: int) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def floatspan_shift_scale( - s: "const Span *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def floatspan_shift_scale(s: 'const Span *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.floatspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspanset_ceil(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_ceil(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_ceil(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_floor(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_floor(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_floor(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_degrees(ss: "const SpanSet *", normalize: bool) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_degrees(ss: 'const SpanSet *', normalize: bool) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_degrees(ss_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspanset_radians(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_radians(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_radians(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_round(ss: "const SpanSet *", maxdd: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def floatspanset_round(ss: 'const SpanSet *', maxdd: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.floatspanset_round(ss_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def floatspanset_shift_scale( - ss: "const SpanSet *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.floatspanset_shift_scale( - ss_converted, shift, width, hasshift, haswidth - ) +def floatspanset_shift_scale(ss: 'const SpanSet *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.floatspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def intset_shift_scale( - s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intset_shift_scale(s: 'const Set *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def intspan_shift_scale( - s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def intspan_shift_scale(s: 'const Span *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.intspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def intspanset_shift_scale( - ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intspanset_shift_scale(ss: 'const SpanSet *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) +def numspan_expand(s: 'const Span *', value: 'Datum') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) result = _lib.numspan_expand(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_expand(s: "const Span *", interv: "const Interval *") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - interv_converted = _ffi.cast("const Interval *", interv) +def tstzspan_expand(s: 'const Span *', interv: 'const Interval *') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tstzspan_expand(s_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def set_round(s: "const Set *", maxdd: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def set_round(s: 'const Set *', maxdd: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def textcat_text_textset(txt: str, s: "const Set *") -> "Set *": +def textcat_text_textset(txt: str, s: 'const Set *') -> 'Set *': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.textcat_text_textset(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_textset_text(s: "const Set *", txt: str) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def textcat_textset_text(s: 'const Set *', txt: str) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def textset_initcap(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def textset_initcap(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.textset_initcap(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_lower(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def textset_lower(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.textset_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_upper(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def textset_upper(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.textset_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_tprecision( - t: int, duration: "const Interval *", torigin: int -) -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.timestamptz_tprecision( - t_converted, duration_converted, torigin_converted - ) +def timestamptz_tprecision(t: int, duration: 'const Interval *', torigin: int) -> 'TimestampTz': + t_converted = _ffi.cast('TimestampTz', t) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + result = _lib.timestamptz_tprecision(t_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_shift_scale( - s: "const Set *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) +def tstzset_shift_scale(s: 'const Set *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL result = _lib.tstzset_shift_scale(s_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_tprecision( - s: "const Set *", duration: "const Interval *", torigin: int -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) +def tstzset_tprecision(s: 'const Set *', duration: 'const Interval *', torigin: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) result = _lib.tstzset_tprecision(s_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_shift_scale( - s: "const Span *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) +def tstzspan_shift_scale(s: 'const Span *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL result = _lib.tstzspan_shift_scale(s_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_tprecision( - s: "const Span *", duration: "const Interval *", torigin: int -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tstzspan_tprecision( - s_converted, duration_converted, torigin_converted - ) +def tstzspan_tprecision(s: 'const Span *', duration: 'const Interval *', torigin: int) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + result = _lib.tstzspan_tprecision(s_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_shift_scale( - ss: "const SpanSet *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.tstzspanset_shift_scale( - ss_converted, shift_converted, duration_converted - ) +def tstzspanset_shift_scale(ss: 'const SpanSet *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL + result = _lib.tstzspanset_shift_scale(ss_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_tprecision( - ss: "const SpanSet *", duration: "const Interval *", torigin: int -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tstzspanset_tprecision( - ss_converted, duration_converted, torigin_converted - ) +def tstzspanset_tprecision(ss: 'const SpanSet *', duration: 'const Interval *', torigin: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + result = _lib.tstzspanset_tprecision(ss_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def set_cmp(s1: "const Set *", s2: "const Set *") -> "int": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_cmp(s1: 'const Set *', s2: 'const Set *') -> 'int': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_cmp(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_eq(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_eq(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_eq(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_ge(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_ge(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_ge(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_gt(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_gt(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_gt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_le(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_le(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_le(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_lt(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_lt(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_lt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_ne(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def set_ne(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.set_ne(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_cmp(s1: "const Span *", s2: "const Span *") -> "int": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_cmp(s1: 'const Span *', s2: 'const Span *') -> 'int': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_cmp(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_eq(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_eq(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_eq(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_ge(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_ge(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_ge(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_gt(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_gt(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_gt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_le(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_le(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_le(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_lt(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_lt(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_lt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_ne(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def span_ne(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.span_ne(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_cmp(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "int": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_cmp(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_cmp(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_eq(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_eq(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_eq(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_ge(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_ge(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_ge(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_gt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_gt(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_gt(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_le(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_le(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_le(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_lt(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_lt(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_ne(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def spanset_ne(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.spanset_ne(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def set_spans(s: "const Set *") -> "Span *": - s_converted = _ffi.cast("const Set *", s) +def set_spans(s: 'const Set *') -> 'Span *': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_spans(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_split_each_n_spans( - s: "const Set *", elems_per_span: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Set *", s) - count = _ffi.new("int *") +def set_split_each_n_spans(s: 'const Set *', elems_per_span: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Set *', s) + count = _ffi.new('int *') result = _lib.set_split_each_n_spans(s_converted, elems_per_span, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def set_split_n_spans(s: "const Set *", span_count: int) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Set *", s) - count = _ffi.new("int *") +def set_split_n_spans(s: 'const Set *', span_count: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Set *', s) + count = _ffi.new('int *') result = _lib.set_split_n_spans(s_converted, span_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def spanset_spans(ss: "const SpanSet *") -> "Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_spans(ss: 'const SpanSet *') -> 'Span *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_spans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_split_each_n_spans( - ss: "const SpanSet *", elems_per_span: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") +def spanset_split_each_n_spans(ss: 'const SpanSet *', elems_per_span: int) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + count = _ffi.new('int *') result = _lib.spanset_split_each_n_spans(ss_converted, elems_per_span, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def spanset_split_n_spans( - ss: "const SpanSet *", span_count: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") +def spanset_split_n_spans(ss: 'const SpanSet *', span_count: int) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + count = _ffi.new('int *') result = _lib.spanset_split_n_spans(ss_converted, span_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def adjacent_span_bigint(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def adjacent_span_bigint(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.adjacent_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_date(s: "const Span *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def adjacent_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.adjacent_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_float(s: "const Span *", d: float) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def adjacent_span_float(s: 'const Span *', d: float) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.adjacent_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_int(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def adjacent_span_int(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.adjacent_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def adjacent_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.adjacent_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def adjacent_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.adjacent_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_timestamptz(s: "const Span *", t: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def adjacent_span_timestamptz(s: 'const Span *', t: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.adjacent_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def adjacent_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.adjacent_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def adjacent_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.adjacent_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_float(ss: "const SpanSet *", d: float) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def adjacent_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.adjacent_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_int(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def adjacent_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.adjacent_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def adjacent_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.adjacent_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def adjacent_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.adjacent_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def adjacent_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.adjacent_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_bigint_set(i: int, s: "const Set *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def contained_bigint_set(i: int, s: 'const Set *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.contained_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_bigint_span(i: int, s: "const Span *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Span *", s) +def contained_bigint_span(i: int, s: 'const Span *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("const SpanSet *", ss) +def contained_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contained_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_date_set(d: "DateADT", s: "const Set *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def contained_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.contained_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_date_span(d: "DateADT", s: "const Span *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Span *", s) +def contained_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("const SpanSet *", ss) +def contained_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contained_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_set(d: float, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def contained_float_set(d: float, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.contained_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_span(d: float, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def contained_float_span(d: float, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_spanset(d: float, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def contained_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contained_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_set(i: int, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def contained_int_set(i: int, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.contained_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_span(i: int, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def contained_int_span(i: int, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_spanset(i: int, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def contained_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contained_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def contained_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.contained_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def contained_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.contained_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def contained_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contained_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def contained_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def contained_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.contained_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_text_set(txt: str, s: "const Set *") -> "bool": +def contained_text_set(txt: str, s: 'const Set *') -> 'bool': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.contained_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_timestamptz_set(t: int, s: "const Set *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def contained_timestamptz_set(t: int, s: 'const Set *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.contained_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_timestamptz_span(t: int, s: "const Span *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def contained_timestamptz_span(t: int, s: 'const Span *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("const SpanSet *", ss) +def contained_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contained_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_bigint(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def contains_set_bigint(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.contains_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_date(s: "const Set *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def contains_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.contains_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_float(s: "const Set *", d: float) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def contains_set_float(s: 'const Set *', d: float) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.contains_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_set_int(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def contains_set_int(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.contains_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def contains_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.contains_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_text(s: "const Set *", t: str) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def contains_set_text(s: 'const Set *', t: str) -> 'bool': + s_converted = _ffi.cast('const Set *', s) t_converted = cstring2text(t) result = _lib.contains_set_text(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_timestamptz(s: "const Set *", t: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def contains_set_timestamptz(s: 'const Set *', t: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.contains_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_bigint(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def contains_span_bigint(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.contains_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_date(s: "const Span *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def contains_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.contains_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_float(s: "const Span *", d: float) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def contains_span_float(s: 'const Span *', d: float) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.contains_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_span_int(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def contains_span_int(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.contains_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def contains_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.contains_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def contains_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contains_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_timestamptz(s: "const Span *", t: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def contains_span_timestamptz(s: 'const Span *', t: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.contains_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def contains_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.contains_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def contains_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.contains_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_float(ss: "const SpanSet *", d: float) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def contains_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contains_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_int(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def contains_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.contains_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def contains_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.contains_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def contains_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.contains_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def contains_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.contains_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def overlaps_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.overlaps_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def overlaps_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.overlaps_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overlaps_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overlaps_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def overlaps_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.overlaps_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def overlaps_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.overlaps_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def after_date_set(d: "DateADT", s: "const Set *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def after_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.after_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_date_span(d: "DateADT", s: "const Span *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Span *", s) +def after_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Span *', s) result = _lib.after_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("const SpanSet *", ss) +def after_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.after_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def after_set_date(s: "const Set *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def after_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.after_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def after_set_timestamptz(s: "const Set *", t: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def after_set_timestamptz(s: 'const Set *', t: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.after_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def after_span_date(s: "const Span *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def after_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.after_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def after_span_timestamptz(s: "const Span *", t: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def after_span_timestamptz(s: 'const Span *', t: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.after_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def after_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def after_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.after_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def after_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def after_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.after_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def after_timestamptz_set(t: int, s: "const Set *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def after_timestamptz_set(t: int, s: 'const Set *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.after_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_timestamptz_span(t: int, s: "const Span *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def after_timestamptz_span(t: int, s: 'const Span *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.after_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("const SpanSet *", ss) +def after_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.after_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def before_date_set(d: "DateADT", s: "const Set *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def before_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.before_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_date_span(d: "DateADT", s: "const Span *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Span *", s) +def before_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Span *', s) result = _lib.before_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("const SpanSet *", ss) +def before_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.before_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def before_set_date(s: "const Set *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def before_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.before_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def before_set_timestamptz(s: "const Set *", t: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def before_set_timestamptz(s: 'const Set *', t: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.before_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def before_span_date(s: "const Span *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def before_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.before_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def before_span_timestamptz(s: "const Span *", t: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def before_span_timestamptz(s: 'const Span *', t: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.before_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def before_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def before_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.before_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def before_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def before_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.before_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def before_timestamptz_set(t: int, s: "const Set *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def before_timestamptz_set(t: int, s: 'const Set *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.before_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_timestamptz_span(t: int, s: "const Span *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def before_timestamptz_span(t: int, s: 'const Span *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.before_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("const SpanSet *", ss) +def before_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.before_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_bigint_set(i: int, s: "const Set *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def left_bigint_set(i: int, s: 'const Set *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.left_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_bigint_span(i: int, s: "const Span *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Span *", s) +def left_bigint_span(i: int, s: 'const Span *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Span *', s) result = _lib.left_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("const SpanSet *", ss) +def left_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.left_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_set(d: float, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def left_float_set(d: float, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.left_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_span(d: float, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def left_float_span(d: float, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.left_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_spanset(d: float, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def left_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.left_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_set(i: int, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def left_int_set(i: int, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.left_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_span(i: int, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def left_int_span(i: int, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.left_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_spanset(i: int, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def left_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.left_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_bigint(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def left_set_bigint(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.left_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_float(s: "const Set *", d: float) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def left_set_float(s: 'const Set *', d: float) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.left_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_set_int(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def left_set_int(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.left_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def left_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.left_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_text(s: "const Set *", txt: str) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def left_set_text(s: 'const Set *', txt: str) -> 'bool': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.left_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_bigint(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def left_span_bigint(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.left_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_float(s: "const Span *", d: float) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def left_span_float(s: 'const Span *', d: float) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.left_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_span_int(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def left_span_int(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.left_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def left_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.left_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def left_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.left_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def left_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.left_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_float(ss: "const SpanSet *", d: float) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def left_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.left_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_spanset_int(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def left_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.left_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def left_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.left_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def left_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.left_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def left_text_set(txt: str, s: "const Set *") -> "bool": +def left_text_set(txt: str, s: 'const Set *') -> 'bool': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.left_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_date_set(d: "DateADT", s: "const Set *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def overafter_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.overafter_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_date_span(d: "DateADT", s: "const Span *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Span *", s) +def overafter_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Span *', s) result = _lib.overafter_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overafter_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overafter_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_set_date(s: "const Set *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def overafter_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.overafter_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_set_timestamptz(s: "const Set *", t: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def overafter_set_timestamptz(s: 'const Set *', t: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.overafter_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_span_date(s: "const Span *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def overafter_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.overafter_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_span_timestamptz(s: "const Span *", t: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def overafter_span_timestamptz(s: 'const Span *', t: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.overafter_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def overafter_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.overafter_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def overafter_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.overafter_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_timestamptz_set(t: int, s: "const Set *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def overafter_timestamptz_set(t: int, s: 'const Set *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.overafter_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_timestamptz_span(t: int, s: "const Span *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def overafter_timestamptz_span(t: int, s: 'const Span *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.overafter_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overafter_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overafter_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_date_set(d: "DateADT", s: "const Set *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def overbefore_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.overbefore_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_date_span(d: "DateADT", s: "const Span *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Span *", s) +def overbefore_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Span *', s) result = _lib.overbefore_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overbefore_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overbefore_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_set_date(s: "const Set *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def overbefore_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.overbefore_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_set_timestamptz(s: "const Set *", t: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def overbefore_set_timestamptz(s: 'const Set *', t: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.overbefore_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_span_date(s: "const Span *", d: "DateADT") -> "bool": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def overbefore_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.overbefore_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_span_timestamptz(s: "const Span *", t: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def overbefore_span_timestamptz(s: 'const Span *', t: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.overbefore_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def overbefore_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.overbefore_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def overbefore_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.overbefore_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_timestamptz_set(t: int, s: "const Set *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def overbefore_timestamptz_set(t: int, s: 'const Set *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.overbefore_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_timestamptz_span(t: int, s: "const Span *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def overbefore_timestamptz_span(t: int, s: 'const Span *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.overbefore_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overbefore_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overbefore_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_bigint_set(i: int, s: "const Set *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def overleft_bigint_set(i: int, s: 'const Set *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.overleft_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_bigint_span(i: int, s: "const Span *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Span *", s) +def overleft_bigint_span(i: int, s: 'const Span *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overleft_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overleft_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_set(d: float, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overleft_float_set(d: float, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overleft_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_span(d: float, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overleft_float_span(d: float, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_spanset(d: float, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overleft_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overleft_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_set(i: int, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overleft_int_set(i: int, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overleft_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_span(i: int, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overleft_int_span(i: int, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_spanset(i: int, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overleft_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overleft_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_bigint(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def overleft_set_bigint(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.overleft_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_float(s: "const Set *", d: float) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overleft_set_float(s: 'const Set *', d: float) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overleft_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_set_int(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overleft_set_int(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overleft_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def overleft_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.overleft_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_text(s: "const Set *", txt: str) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overleft_set_text(s: 'const Set *', txt: str) -> 'bool': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.overleft_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_bigint(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def overleft_span_bigint(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.overleft_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_float(s: "const Span *", d: float) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overleft_span_float(s: 'const Span *', d: float) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_span_int(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overleft_span_int(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def overleft_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.overleft_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overleft_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overleft_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def overleft_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.overleft_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_float(ss: "const SpanSet *", d: float) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overleft_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overleft_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_int(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overleft_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overleft_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def overleft_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def overleft_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.overleft_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_text_set(txt: str, s: "const Set *") -> "bool": +def overleft_text_set(txt: str, s: 'const Set *') -> 'bool': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.overleft_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_bigint_set(i: int, s: "const Set *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def overright_bigint_set(i: int, s: 'const Set *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.overright_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_bigint_span(i: int, s: "const Span *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Span *", s) +def overright_bigint_span(i: int, s: 'const Span *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overright_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overright_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_set(d: float, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overright_float_set(d: float, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overright_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_span(d: float, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overright_float_span(d: float, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_spanset(d: float, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overright_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overright_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_set(i: int, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overright_int_set(i: int, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overright_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_span(i: int, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overright_int_span(i: int, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_spanset(i: int, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overright_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overright_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_bigint(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def overright_set_bigint(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.overright_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_float(s: "const Set *", d: float) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overright_set_float(s: 'const Set *', d: float) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overright_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_set_int(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overright_set_int(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.overright_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def overright_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.overright_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_text(s: "const Set *", txt: str) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def overright_set_text(s: 'const Set *', txt: str) -> 'bool': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.overright_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_bigint(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def overright_span_bigint(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.overright_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_float(s: "const Span *", d: float) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overright_span_float(s: 'const Span *', d: float) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_span_int(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def overright_span_int(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def overright_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.overright_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def overright_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overright_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def overright_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.overright_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_float(ss: "const SpanSet *", d: float) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overright_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overright_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_int(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def overright_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.overright_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def overright_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def overright_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.overright_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_text_set(txt: str, s: "const Set *") -> "bool": +def overright_text_set(txt: str, s: 'const Set *') -> 'bool': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.overright_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_bigint_set(i: int, s: "const Set *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def right_bigint_set(i: int, s: 'const Set *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.right_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_bigint_span(i: int, s: "const Span *") -> "bool": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Span *", s) +def right_bigint_span(i: int, s: 'const Span *') -> 'bool': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Span *', s) result = _lib.right_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("const SpanSet *", ss) +def right_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.right_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_set(d: float, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def right_float_set(d: float, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.right_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_span(d: float, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def right_float_span(d: float, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.right_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_spanset(d: float, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def right_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.right_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_set(i: int, s: "const Set *") -> "bool": - s_converted = _ffi.cast("const Set *", s) +def right_int_set(i: int, s: 'const Set *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.right_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_span(i: int, s: "const Span *") -> "bool": - s_converted = _ffi.cast("const Span *", s) +def right_int_span(i: int, s: 'const Span *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.right_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_spanset(i: int, ss: "const SpanSet *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def right_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.right_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_bigint(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def right_set_bigint(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.right_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_float(s: "const Set *", d: float) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def right_set_float(s: 'const Set *', d: float) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.right_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_set_int(s: "const Set *", i: int) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def right_set_int(s: 'const Set *', i: int) -> 'bool': + s_converted = _ffi.cast('const Set *', s) result = _lib.right_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_set_set(s1: "const Set *", s2: "const Set *") -> "bool": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def right_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.right_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_text(s: "const Set *", txt: str) -> "bool": - s_converted = _ffi.cast("const Set *", s) +def right_set_text(s: 'const Set *', txt: str) -> 'bool': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.right_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_bigint(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def right_span_bigint(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.right_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_float(s: "const Span *", d: float) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def right_span_float(s: 'const Span *', d: float) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.right_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_span_int(s: "const Span *", i: int) -> "bool": - s_converted = _ffi.cast("const Span *", s) +def right_span_int(s: 'const Span *', i: int) -> 'bool': + s_converted = _ffi.cast('const Span *', s) result = _lib.right_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def right_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.right_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def right_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.right_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def right_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.right_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_float(ss: "const SpanSet *", d: float) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def right_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.right_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_spanset_int(ss: "const SpanSet *", i: int) -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) +def right_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.right_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def right_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.right_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def right_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.right_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def right_text_set(txt: str, s: "const Set *") -> "bool": +def right_text_set(txt: str, s: 'const Set *') -> 'bool': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.right_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_bigint_set(i: int, s: "const Set *") -> "Set *": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def intersection_bigint_set(i: int, s: 'const Set *') -> 'Set *': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_date_set(d: "DateADT", s: "const Set *") -> "Set *": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def intersection_date_set(d: 'DateADT', s: 'const Set *') -> 'Set *': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_float_set(d: float, s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intersection_float_set(d: float, s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_int_set(i: int, s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intersection_int_set(i: int, s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_bigint(s: "const Set *", i: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def intersection_set_bigint(s: 'const Set *', i: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.intersection_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_date(s: "const Set *", d: "DateADT") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def intersection_set_date(s: 'const Set *', d: 'DateADT') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.intersection_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_float(s: "const Set *", d: float) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intersection_set_float(s: 'const Set *', d: float) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_set_int(s: "const Set *", i: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intersection_set_int(s: 'const Set *', i: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def intersection_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Set *': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.intersection_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_text(s: "const Set *", txt: str) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def intersection_set_text(s: 'const Set *', txt: str) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.intersection_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_timestamptz(s: "const Set *", t: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def intersection_set_timestamptz(s: 'const Set *', t: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.intersection_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_bigint(s: "const Span *", i: int) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def intersection_span_bigint(s: 'const Span *', i: int) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.intersection_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_date(s: "const Span *", d: "DateADT") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def intersection_span_date(s: 'const Span *', d: 'DateADT') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.intersection_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_float(s: "const Span *", d: float) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def intersection_span_float(s: 'const Span *', d: float) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.intersection_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_span_int(s: "const Span *", i: int) -> "Span *": - s_converted = _ffi.cast("const Span *", s) +def intersection_span_int(s: 'const Span *', i: int) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) result = _lib.intersection_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def intersection_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.intersection_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def intersection_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intersection_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_timestamptz(s: "const Span *", t: int) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def intersection_span_timestamptz(s: 'const Span *', t: int) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.intersection_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def intersection_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.intersection_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def intersection_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.intersection_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intersection_spanset_float(ss: 'const SpanSet *', d: float) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intersection_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def intersection_spanset_int(ss: 'const SpanSet *', i: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.intersection_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def intersection_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.intersection_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_spanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "SpanSet *": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def intersection_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'SpanSet *': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.intersection_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def intersection_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.intersection_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_text_set(txt: str, s: "const Set *") -> "Set *": +def intersection_text_set(txt: str, s: 'const Set *') -> 'Set *': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_timestamptz_set(t: int, s: "const Set *") -> "Set *": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def intersection_timestamptz_set(t: int, s: 'const Set *') -> 'Set *': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.intersection_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_bigint_set(i: int, s: "const Set *") -> "Set *": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def minus_bigint_set(i: int, s: 'const Set *') -> 'Set *': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_bigint_span(i: int, s: "const Span *") -> "SpanSet *": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Span *", s) +def minus_bigint_span(i: int, s: 'const Span *') -> 'SpanSet *': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_bigint_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'SpanSet *': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_set(d: "DateADT", s: "const Set *") -> "Set *": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def minus_date_set(d: 'DateADT', s: 'const Set *') -> 'Set *': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_span(d: "DateADT", s: "const Span *") -> "SpanSet *": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Span *", s) +def minus_date_span(d: 'DateADT', s: 'const Span *') -> 'SpanSet *': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "SpanSet *": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'SpanSet *': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_set(d: float, s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def minus_float_set(d: float, s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_span(d: float, s: "const Span *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def minus_float_span(d: float, s: 'const Span *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_spanset(d: float, ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_float_spanset(d: float, ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_set(i: int, s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def minus_int_set(i: int, s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_span(i: int, s: "const Span *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def minus_int_span(i: int, s: 'const Span *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_int_spanset(i: int, ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_bigint(s: "const Set *", i: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def minus_set_bigint(s: 'const Set *', i: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.minus_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_date(s: "const Set *", d: "DateADT") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def minus_set_date(s: 'const Set *', d: 'DateADT') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.minus_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_float(s: "const Set *", d: float) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def minus_set_float(s: 'const Set *', d: float) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_set_int(s: "const Set *", i: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def minus_set_int(s: 'const Set *', i: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def minus_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Set *': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.minus_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_text(s: "const Set *", txt: str) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def minus_set_text(s: 'const Set *', txt: str) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.minus_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_timestamptz(s: "const Set *", t: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def minus_set_timestamptz(s: 'const Set *', t: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.minus_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_bigint(s: "const Span *", i: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def minus_span_bigint(s: 'const Span *', i: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.minus_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def minus_span_date(s: 'const Span *', d: 'DateADT') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.minus_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_float(s: "const Span *", d: float) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def minus_span_float(s: 'const Span *', d: float) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_span_int(s: "const Span *", i: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def minus_span_int(s: 'const Span *', i: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def minus_span_span(s1: 'const Span *', s2: 'const Span *') -> 'SpanSet *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.minus_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def minus_span_timestamptz(s: 'const Span *', t: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.minus_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def minus_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.minus_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def minus_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.minus_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_spanset_float(ss: 'const SpanSet *', d: float) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_spanset_int(ss: 'const SpanSet *', i: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def minus_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_spanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "SpanSet *": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def minus_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'SpanSet *': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.minus_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def minus_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.minus_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def minus_text_set(txt: str, s: "const Set *") -> "Set *": +def minus_text_set(txt: str, s: 'const Set *') -> 'Set *': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_set(t: int, s: "const Set *") -> "Set *": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def minus_timestamptz_set(t: int, s: 'const Set *') -> 'Set *': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.minus_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def minus_timestamptz_span(t: int, s: 'const Span *') -> 'SpanSet *': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.minus_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "SpanSet *": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("const SpanSet *", ss) +def minus_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'SpanSet *': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.minus_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_bigint_set(i: int, s: "const Set *") -> "Set *": - i_converted = _ffi.cast("int64", i) - s_converted = _ffi.cast("const Set *", s) +def union_bigint_set(i: int, s: 'const Set *') -> 'Set *': + i_converted = _ffi.cast('int64', i) + s_converted = _ffi.cast('const Set *', s) result = _lib.union_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_bigint_span(s: "const Span *", i: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def union_bigint_span(s: 'const Span *', i: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.union_bigint_span(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_bigint_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": - i_converted = _ffi.cast("int64", i) - ss_converted = _ffi.cast("SpanSet *", ss) +def union_bigint_spanset(i: int, ss: 'SpanSet *') -> 'SpanSet *': + i_converted = _ffi.cast('int64', i) + ss_converted = _ffi.cast('SpanSet *', ss) result = _lib.union_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_date_set(d: "DateADT", s: "const Set *") -> "Set *": - d_converted = _ffi.cast("DateADT", d) - s_converted = _ffi.cast("const Set *", s) +def union_date_set(d: 'DateADT', s: 'const Set *') -> 'Set *': + d_converted = _ffi.cast('DateADT', d) + s_converted = _ffi.cast('const Set *', s) result = _lib.union_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_date_span(s: "const Span *", d: "DateADT") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def union_date_span(s: 'const Span *', d: 'DateADT') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.union_date_span(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_date_spanset(d: "DateADT", ss: "SpanSet *") -> "SpanSet *": - d_converted = _ffi.cast("DateADT", d) - ss_converted = _ffi.cast("SpanSet *", ss) +def union_date_spanset(d: 'DateADT', ss: 'SpanSet *') -> 'SpanSet *': + d_converted = _ffi.cast('DateADT', d) + ss_converted = _ffi.cast('SpanSet *', ss) result = _lib.union_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_float_set(d: float, s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def union_float_set(d: float, s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.union_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_float_span(s: "const Span *", d: float) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def union_float_span(s: 'const Span *', d: float) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.union_float_span(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_float_spanset(d: float, ss: "SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("SpanSet *", ss) +def union_float_spanset(d: float, ss: 'SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('SpanSet *', ss) result = _lib.union_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_set(i: int, s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def union_int_set(i: int, s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.union_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_span(i: int, s: "const Span *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def union_int_span(i: int, s: 'const Span *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.union_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("SpanSet *", ss) +def union_int_spanset(i: int, ss: 'SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('SpanSet *', ss) result = _lib.union_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_bigint(s: "const Set *", i: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def union_set_bigint(s: 'const Set *', i: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.union_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_date(s: "const Set *", d: "DateADT") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def union_set_date(s: 'const Set *', d: 'DateADT') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.union_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_float(s: "const Set *", d: float) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def union_set_float(s: 'const Set *', d: float) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.union_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_set_int(s: "const Set *", i: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def union_set_int(s: 'const Set *', i: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) result = _lib.union_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def union_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Set *': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.union_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_text(s: "const Set *", txt: str) -> "Set *": - s_converted = _ffi.cast("const Set *", s) +def union_set_text(s: 'const Set *', txt: str) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) txt_converted = cstring2text(txt) result = _lib.union_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_timestamptz(s: "const Set *", t: int) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def union_set_timestamptz(s: 'const Set *', t: int) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.union_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_bigint(s: "const Span *", i: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def union_span_bigint(s: 'const Span *', i: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.union_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def union_span_date(s: 'const Span *', d: 'DateADT') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.union_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_float(s: "const Span *", d: float) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def union_span_float(s: 'const Span *', d: float) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.union_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_span_int(s: "const Span *", i: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) +def union_span_int(s: 'const Span *', i: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) result = _lib.union_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def union_span_span(s1: 'const Span *', s2: 'const Span *') -> 'SpanSet *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.union_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - ss_converted = _ffi.cast("const SpanSet *", ss) +def union_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.union_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def union_span_timestamptz(s: 'const Span *', t: int) -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.union_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def union_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.union_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def union_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.union_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def union_spanset_float(ss: 'const SpanSet *', d: float) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.union_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def union_spanset_int(ss: 'const SpanSet *', i: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.union_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def union_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.union_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_spanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "SpanSet *": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def union_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'SpanSet *': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.union_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def union_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.union_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def union_text_set(txt: str, s: "const Set *") -> "Set *": +def union_text_set(txt: str, s: 'const Set *') -> 'Set *': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.union_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_timestamptz_set(t: int, s: "const Set *") -> "Set *": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Set *", s) +def union_timestamptz_set(t: int, s: 'const Set *') -> 'Set *': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Set *', s) result = _lib.union_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": - t_converted = _ffi.cast("TimestampTz", t) - s_converted = _ffi.cast("const Span *", s) +def union_timestamptz_span(t: int, s: 'const Span *') -> 'SpanSet *': + t_converted = _ffi.cast('TimestampTz', t) + s_converted = _ffi.cast('const Span *', s) result = _lib.union_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_timestamptz_spanset(t: int, ss: "SpanSet *") -> "SpanSet *": - t_converted = _ffi.cast("TimestampTz", t) - ss_converted = _ffi.cast("SpanSet *", ss) +def union_timestamptz_spanset(t: int, ss: 'SpanSet *') -> 'SpanSet *': + t_converted = _ffi.cast('TimestampTz', t) + ss_converted = _ffi.cast('SpanSet *', ss) result = _lib.union_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintset_bigintset(s1: "const Set *", s2: "const Set *") -> "int64": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def distance_bigintset_bigintset(s1: 'const Set *', s2: 'const Set *') -> 'int64': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.distance_bigintset_bigintset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintspan_bigintspan(s1: "const Span *", s2: "const Span *") -> "int64": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def distance_bigintspan_bigintspan(s1: 'const Span *', s2: 'const Span *') -> 'int64': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.distance_bigintspan_bigintspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintspanset_bigintspan( - ss: "const SpanSet *", s: "const Span *" -) -> "int64": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def distance_bigintspanset_bigintspan(ss: 'const SpanSet *', s: 'const Span *') -> 'int64': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_bigintspanset_bigintspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintspanset_bigintspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "int64": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def distance_bigintspanset_bigintspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int64': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.distance_bigintspanset_bigintspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_dateset_dateset(s1: "const Set *", s2: "const Set *") -> "int": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def distance_dateset_dateset(s1: 'const Set *', s2: 'const Set *') -> 'int': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.distance_dateset_dateset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_datespan_datespan(s1: "const Span *", s2: "const Span *") -> "int": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def distance_datespan_datespan(s1: 'const Span *', s2: 'const Span *') -> 'int': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.distance_datespan_datespan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_datespanset_datespan(ss: "const SpanSet *", s: "const Span *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def distance_datespanset_datespan(ss: 'const SpanSet *', s: 'const Span *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_datespanset_datespan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_datespanset_datespanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "int": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def distance_datespanset_datespanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.distance_datespanset_datespanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatset_floatset(s1: "const Set *", s2: "const Set *") -> "double": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def distance_floatset_floatset(s1: 'const Set *', s2: 'const Set *') -> 'double': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.distance_floatset_floatset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatspan_floatspan(s1: "const Span *", s2: "const Span *") -> "double": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def distance_floatspan_floatspan(s1: 'const Span *', s2: 'const Span *') -> 'double': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.distance_floatspan_floatspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatspanset_floatspan( - ss: "const SpanSet *", s: "const Span *" -) -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def distance_floatspanset_floatspan(ss: 'const SpanSet *', s: 'const Span *') -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_floatspanset_floatspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatspanset_floatspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "double": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def distance_floatspanset_floatspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'double': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.distance_floatspanset_floatspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intset_intset(s1: "const Set *", s2: "const Set *") -> "int": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def distance_intset_intset(s1: 'const Set *', s2: 'const Set *') -> 'int': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.distance_intset_intset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intspan_intspan(s1: "const Span *", s2: "const Span *") -> "int": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def distance_intspan_intspan(s1: 'const Span *', s2: 'const Span *') -> 'int': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.distance_intspan_intspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intspanset_intspan(ss: "const SpanSet *", s: "const Span *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def distance_intspanset_intspan(ss: 'const SpanSet *', s: 'const Span *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_intspanset_intspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intspanset_intspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "int": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def distance_intspanset_intspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.distance_intspanset_intspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_bigint(s: "const Set *", i: int) -> "int64": - s_converted = _ffi.cast("const Set *", s) - i_converted = _ffi.cast("int64", i) +def distance_set_bigint(s: 'const Set *', i: int) -> 'int64': + s_converted = _ffi.cast('const Set *', s) + i_converted = _ffi.cast('int64', i) result = _lib.distance_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_date(s: "const Set *", d: "DateADT") -> "int": - s_converted = _ffi.cast("const Set *", s) - d_converted = _ffi.cast("DateADT", d) +def distance_set_date(s: 'const Set *', d: 'DateADT') -> 'int': + s_converted = _ffi.cast('const Set *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.distance_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_float(s: "const Set *", d: float) -> "double": - s_converted = _ffi.cast("const Set *", s) +def distance_set_float(s: 'const Set *', d: float) -> 'double': + s_converted = _ffi.cast('const Set *', s) result = _lib.distance_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_set_int(s: "const Set *", i: int) -> "int": - s_converted = _ffi.cast("const Set *", s) +def distance_set_int(s: 'const Set *', i: int) -> 'int': + s_converted = _ffi.cast('const Set *', s) result = _lib.distance_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_set_timestamptz(s: "const Set *", t: int) -> "double": - s_converted = _ffi.cast("const Set *", s) - t_converted = _ffi.cast("TimestampTz", t) +def distance_set_timestamptz(s: 'const Set *', t: int) -> 'double': + s_converted = _ffi.cast('const Set *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.distance_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_bigint(s: "const Span *", i: int) -> "int64": - s_converted = _ffi.cast("const Span *", s) - i_converted = _ffi.cast("int64", i) +def distance_span_bigint(s: 'const Span *', i: int) -> 'int64': + s_converted = _ffi.cast('const Span *', s) + i_converted = _ffi.cast('int64', i) result = _lib.distance_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_date(s: "const Span *", d: "DateADT") -> "int": - s_converted = _ffi.cast("const Span *", s) - d_converted = _ffi.cast("DateADT", d) +def distance_span_date(s: 'const Span *', d: 'DateADT') -> 'int': + s_converted = _ffi.cast('const Span *', s) + d_converted = _ffi.cast('DateADT', d) result = _lib.distance_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_float(s: "const Span *", d: float) -> "double": - s_converted = _ffi.cast("const Span *", s) +def distance_span_float(s: 'const Span *', d: float) -> 'double': + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_span_int(s: "const Span *", i: int) -> "int": - s_converted = _ffi.cast("const Span *", s) +def distance_span_int(s: 'const Span *', i: int) -> 'int': + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_span_timestamptz(s: "const Span *", t: int) -> "double": - s_converted = _ffi.cast("const Span *", s) - t_converted = _ffi.cast("TimestampTz", t) +def distance_span_timestamptz(s: 'const Span *', t: int) -> 'double': + s_converted = _ffi.cast('const Span *', s) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.distance_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_bigint(ss: "const SpanSet *", i: int) -> "int64": - ss_converted = _ffi.cast("const SpanSet *", ss) - i_converted = _ffi.cast("int64", i) +def distance_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'int64': + ss_converted = _ffi.cast('const SpanSet *', ss) + i_converted = _ffi.cast('int64', i) result = _lib.distance_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) - d_converted = _ffi.cast("DateADT", d) +def distance_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) + d_converted = _ffi.cast('DateADT', d) result = _lib.distance_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_float(ss: "const SpanSet *", d: float) -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) +def distance_spanset_float(ss: 'const SpanSet *', d: float) -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.distance_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_int(ss: "const SpanSet *", i: int) -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) +def distance_spanset_int(ss: 'const SpanSet *', i: int) -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.distance_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) +def distance_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.distance_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzset_tstzset(s1: "const Set *", s2: "const Set *") -> "double": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) +def distance_tstzset_tstzset(s1: 'const Set *', s2: 'const Set *') -> 'double': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) result = _lib.distance_tstzset_tstzset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzspan_tstzspan(s1: "const Span *", s2: "const Span *") -> "double": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) +def distance_tstzspan_tstzspan(s1: 'const Span *', s2: 'const Span *') -> 'double': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) result = _lib.distance_tstzspan_tstzspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzspanset_tstzspan(ss: "const SpanSet *", s: "const Span *") -> "double": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) +def distance_tstzspanset_tstzspan(ss: 'const SpanSet *', s: 'const Span *') -> 'double': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) result = _lib.distance_tstzspanset_tstzspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzspanset_tstzspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "double": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) +def distance_tstzspanset_tstzspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'double': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) result = _lib.distance_tstzspanset_tstzspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_extent_transfn(state: "Span *", i: int) -> "Span *": - state_converted = _ffi.cast("Span *", state) - i_converted = _ffi.cast("int64", i) +def bigint_extent_transfn(state: 'Span *', i: int) -> 'Span *': + state_converted = _ffi.cast('Span *', state) + i_converted = _ffi.cast('int64', i) result = _lib.bigint_extent_transfn(state_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_union_transfn(state: "Set *", i: int) -> "Set *": - state_converted = _ffi.cast("Set *", state) - i_converted = _ffi.cast("int64", i) +def bigint_union_transfn(state: 'Set *', i: int) -> 'Set *': + state_converted = _ffi.cast('Set *', state) + i_converted = _ffi.cast('int64', i) result = _lib.bigint_union_transfn(state_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def date_extent_transfn(state: "Span *", d: "DateADT") -> "Span *": - state_converted = _ffi.cast("Span *", state) - d_converted = _ffi.cast("DateADT", d) +def date_extent_transfn(state: 'Span *', d: 'DateADT') -> 'Span *': + state_converted = _ffi.cast('Span *', state) + d_converted = _ffi.cast('DateADT', d) result = _lib.date_extent_transfn(state_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def date_union_transfn(state: "Set *", d: "DateADT") -> "Set *": - state_converted = _ffi.cast("Set *", state) - d_converted = _ffi.cast("DateADT", d) +def date_union_transfn(state: 'Set *', d: 'DateADT') -> 'Set *': + state_converted = _ffi.cast('Set *', state) + d_converted = _ffi.cast('DateADT', d) result = _lib.date_union_transfn(state_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def float_extent_transfn(state: "Span *", d: float) -> "Span *": - state_converted = _ffi.cast("Span *", state) +def float_extent_transfn(state: 'Span *', d: float) -> 'Span *': + state_converted = _ffi.cast('Span *', state) result = _lib.float_extent_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def float_union_transfn(state: "Set *", d: float) -> "Set *": - state_converted = _ffi.cast("Set *", state) +def float_union_transfn(state: 'Set *', d: float) -> 'Set *': + state_converted = _ffi.cast('Set *', state) result = _lib.float_union_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def int_extent_transfn(state: "Span *", i: int) -> "Span *": - state_converted = _ffi.cast("Span *", state) +def int_extent_transfn(state: 'Span *', i: int) -> 'Span *': + state_converted = _ffi.cast('Span *', state) result = _lib.int_extent_transfn(state_converted, i) _check_error() return result if result != _ffi.NULL else None -def int_union_transfn(state: "Set *", i: int) -> "Set *": - state_converted = _ffi.cast("Set *", state) - i_converted = _ffi.cast("int32", i) +def int_union_transfn(state: 'Set *', i: int) -> 'Set *': + state_converted = _ffi.cast('Set *', state) + i_converted = _ffi.cast('int32', i) result = _lib.int_union_transfn(state_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def set_extent_transfn(state: "Span *", s: "const Set *") -> "Span *": - state_converted = _ffi.cast("Span *", state) - s_converted = _ffi.cast("const Set *", s) +def set_extent_transfn(state: 'Span *', s: 'const Set *') -> 'Span *': + state_converted = _ffi.cast('Span *', state) + s_converted = _ffi.cast('const Set *', s) result = _lib.set_extent_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def set_union_finalfn(state: "Set *") -> "Set *": - state_converted = _ffi.cast("Set *", state) +def set_union_finalfn(state: 'Set *') -> 'Set *': + state_converted = _ffi.cast('Set *', state) result = _lib.set_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def set_union_transfn(state: "Set *", s: "Set *") -> "Set *": - state_converted = _ffi.cast("Set *", state) - s_converted = _ffi.cast("Set *", s) +def set_union_transfn(state: 'Set *', s: 'Set *') -> 'Set *': + state_converted = _ffi.cast('Set *', state) + s_converted = _ffi.cast('Set *', s) result = _lib.set_union_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def span_extent_transfn(state: "Span *", s: "const Span *") -> "Span *": - state_converted = _ffi.cast("Span *", state) - s_converted = _ffi.cast("const Span *", s) +def span_extent_transfn(state: 'Span *', s: 'const Span *') -> 'Span *': + state_converted = _ffi.cast('Span *', state) + s_converted = _ffi.cast('const Span *', s) result = _lib.span_extent_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def span_union_transfn(state: "SpanSet *", s: "const Span *") -> "SpanSet *": - state_converted = _ffi.cast("SpanSet *", state) - s_converted = _ffi.cast("const Span *", s) +def span_union_transfn(state: 'SpanSet *', s: 'const Span *') -> 'SpanSet *': + state_converted = _ffi.cast('SpanSet *', state) + s_converted = _ffi.cast('const Span *', s) result = _lib.span_union_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_extent_transfn(state: "Span *", ss: "const SpanSet *") -> "Span *": - state_converted = _ffi.cast("Span *", state) - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_extent_transfn(state: 'Span *', ss: 'const SpanSet *') -> 'Span *': + state_converted = _ffi.cast('Span *', state) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_extent_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_union_finalfn(state: "SpanSet *") -> "SpanSet *": - state_converted = _ffi.cast("SpanSet *", state) +def spanset_union_finalfn(state: 'SpanSet *') -> 'SpanSet *': + state_converted = _ffi.cast('SpanSet *', state) result = _lib.spanset_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_union_transfn(state: "SpanSet *", ss: "const SpanSet *") -> "SpanSet *": - state_converted = _ffi.cast("SpanSet *", state) - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_union_transfn(state: 'SpanSet *', ss: 'const SpanSet *') -> 'SpanSet *': + state_converted = _ffi.cast('SpanSet *', state) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_union_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def text_union_transfn(state: "Set *", txt: str) -> "Set *": - state_converted = _ffi.cast("Set *", state) +def text_union_transfn(state: 'Set *', txt: str) -> 'Set *': + state_converted = _ffi.cast('Set *', state) txt_converted = cstring2text(txt) result = _lib.text_union_transfn(state_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_extent_transfn(state: "Span *", t: int) -> "Span *": - state_converted = _ffi.cast("Span *", state) - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_extent_transfn(state: 'Span *', t: int) -> 'Span *': + state_converted = _ffi.cast('Span *', state) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_extent_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_union_transfn(state: "Set *", t: int) -> "Set *": - state_converted = _ffi.cast("Set *", state) - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_union_transfn(state: 'Set *', t: int) -> 'Set *': + state_converted = _ffi.cast('Set *', state) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_union_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_get_bin(value: int, vsize: int, vorigin: int) -> "int64": - value_converted = _ffi.cast("int64", value) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) +def bigint_get_bin(value: int, vsize: int, vorigin: int) -> 'int64': + value_converted = _ffi.cast('int64', value) + vsize_converted = _ffi.cast('int64', vsize) + vorigin_converted = _ffi.cast('int64', vorigin) result = _lib.bigint_get_bin(value_converted, vsize_converted, vorigin_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_bins( - s: "const Span *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspan_bins( - s_converted, vsize_converted, vorigin_converted, count - ) +def bigintspan_bins(s: 'const Span *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Span *', s) + vsize_converted = _ffi.cast('int64', vsize) + vorigin_converted = _ffi.cast('int64', vorigin) + count = _ffi.new('int *') + result = _lib.bigintspan_bins(s_converted, vsize_converted, vorigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def bigintspanset_bins( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - vsize_converted = _ffi.cast("int64", vsize) - vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspanset_bins( - ss_converted, vsize_converted, vorigin_converted, count - ) +def bigintspanset_bins(ss: 'const SpanSet *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + vsize_converted = _ffi.cast('int64', vsize) + vorigin_converted = _ffi.cast('int64', vorigin) + count = _ffi.new('int *') + result = _lib.bigintspanset_bins(ss_converted, vsize_converted, vorigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def date_get_bin( - d: "DateADT", duration: "const Interval *", torigin: "DateADT" -) -> "DateADT": - d_converted = _ffi.cast("DateADT", d) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) +def date_get_bin(d: 'DateADT', duration: 'const Interval *', torigin: 'DateADT') -> 'DateADT': + d_converted = _ffi.cast('DateADT', d) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('DateADT', torigin) result = _lib.date_get_bin(d_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_bins( - s: "const Span *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespan_bins( - s_converted, duration_converted, torigin_converted, count - ) +def datespan_bins(s: 'const Span *', duration: 'const Interval *', torigin: 'DateADT') -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Span *', s) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('DateADT', torigin) + count = _ffi.new('int *') + result = _lib.datespan_bins(s_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def datespanset_bins( - ss: "const SpanSet *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespanset_bins( - ss_converted, duration_converted, torigin_converted, count - ) +def datespanset_bins(ss: 'const SpanSet *', duration: 'const Interval *', torigin: 'DateADT') -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('DateADT', torigin) + count = _ffi.new('int *') + result = _lib.datespanset_bins(ss_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def float_get_bin(value: float, vsize: float, vorigin: float) -> "double": +def float_get_bin(value: float, vsize: float, vorigin: float) -> 'double': result = _lib.float_get_bin(value, vsize, vorigin) _check_error() return result if result != _ffi.NULL else None -def floatspan_bins( - s: "const Span *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - count = _ffi.new("int *") +def floatspan_bins(s: 'const Span *', vsize: float, vorigin: float) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Span *', s) + count = _ffi.new('int *') result = _lib.floatspan_bins(s_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def floatspanset_bins( - ss: "const SpanSet *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") +def floatspanset_bins(ss: 'const SpanSet *', vsize: float, vorigin: float) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + count = _ffi.new('int *') result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def int_get_bin(value: int, vsize: int, vorigin: int) -> "int": +def int_get_bin(value: int, vsize: int, vorigin: int) -> 'int': result = _lib.int_get_bin(value, vsize, vorigin) _check_error() return result if result != _ffi.NULL else None -def intspan_bins( - s: "const Span *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - count = _ffi.new("int *") +def intspan_bins(s: 'const Span *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Span *', s) + count = _ffi.new('int *') result = _lib.intspan_bins(s_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def intspanset_bins( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") +def intspanset_bins(ss: 'const SpanSet *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + count = _ffi.new('int *') result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def timestamptz_get_bin( - t: int, duration: "const Interval *", torigin: int -) -> "TimestampTz": - t_converted = _ffi.cast("TimestampTz", t) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.timestamptz_get_bin( - t_converted, duration_converted, torigin_converted - ) +def timestamptz_get_bin(t: int, duration: 'const Interval *', torigin: int) -> 'TimestampTz': + t_converted = _ffi.cast('TimestampTz', t) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + result = _lib.timestamptz_get_bin(t_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_bins( - s: "const Span *", duration: "const Interval *", origin: int -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - count = _ffi.new("int *") - result = _lib.tstzspan_bins( - s_converted, duration_converted, origin_converted, count - ) +def tstzspan_bins(s: 'const Span *', duration: 'const Interval *', origin: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Span *', s) + duration_converted = _ffi.cast('const Interval *', duration) + origin_converted = _ffi.cast('TimestampTz', origin) + count = _ffi.new('int *') + result = _lib.tstzspan_bins(s_converted, duration_converted, origin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tstzspanset_bins( - ss: "const SpanSet *", duration: "const Interval *", torigin: int -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tstzspanset_bins( - ss_converted, duration_converted, torigin_converted, count - ) +def tstzspanset_bins(ss: 'const SpanSet *', duration: 'const Interval *', torigin: int) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tstzspanset_bins(ss_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tbox_as_hexwkb(box: "const TBox *", variant: int) -> "Tuple[str, 'size_t *']": - box_converted = _ffi.cast("const TBox *", box) - variant_converted = _ffi.cast("uint8_t", variant) - size = _ffi.new("size_t *") +def tbox_as_hexwkb(box: 'const TBox *', variant: int) -> "Tuple[str, 'size_t *']": + box_converted = _ffi.cast('const TBox *', box) + variant_converted = _ffi.cast('uint8_t', variant) + size = _ffi.new('size_t *') result = _lib.tbox_as_hexwkb(box_converted, variant_converted, size) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None, size[0] -def tbox_as_wkb(box: "const TBox *", variant: int) -> bytes: - box_converted = _ffi.cast("const TBox *", box) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def tbox_as_wkb(box: 'const TBox *', variant: int) -> bytes: + box_converted = _ffi.cast('const TBox *', box) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.tbox_as_wkb(box_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def tbox_from_hexwkb(hexwkb: str) -> "TBox *": - hexwkb_converted = hexwkb.encode("utf-8") +def tbox_from_hexwkb(hexwkb: str) -> 'TBox *': + hexwkb_converted = hexwkb.encode('utf-8') result = _lib.tbox_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_from_wkb(wkb: bytes) -> "TBOX *": - wkb_converted = _ffi.new("uint8_t []", wkb) +def tbox_from_wkb(wkb: bytes) -> 'TBOX *': + wkb_converted = _ffi.new('uint8_t []', wkb) result = _lib.tbox_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def tbox_in(string: str) -> "TBox *": - string_converted = string.encode("utf-8") +def tbox_in(string: str) -> 'TBox *': + string_converted = string.encode('utf-8') result = _lib.tbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_out(box: "const TBox *", maxdd: int) -> str: - box_converted = _ffi.cast("const TBox *", box) +def tbox_out(box: 'const TBox *', maxdd: int) -> str: + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_out(box_converted, maxdd) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def float_timestamptz_to_tbox(d: float, t: int) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) +def float_timestamptz_to_tbox(d: float, t: int) -> 'TBox *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.float_timestamptz_to_tbox(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def float_tstzspan_to_tbox(d: float, s: "const Span *") -> "TBox *": - s_converted = _ffi.cast("const Span *", s) +def float_tstzspan_to_tbox(d: float, s: 'const Span *') -> 'TBox *': + s_converted = _ffi.cast('const Span *', s) result = _lib.float_tstzspan_to_tbox(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def int_timestamptz_to_tbox(i: int, t: int) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) +def int_timestamptz_to_tbox(i: int, t: int) -> 'TBox *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.int_timestamptz_to_tbox(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def int_tstzspan_to_tbox(i: int, s: "const Span *") -> "TBox *": - s_converted = _ffi.cast("const Span *", s) +def int_tstzspan_to_tbox(i: int, s: 'const Span *') -> 'TBox *': + s_converted = _ffi.cast('const Span *', s) result = _lib.int_tstzspan_to_tbox(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_tstzspan_to_tbox(span: "const Span *", s: "const Span *") -> "TBox *": - span_converted = _ffi.cast("const Span *", span) - s_converted = _ffi.cast("const Span *", s) +def numspan_tstzspan_to_tbox(span: 'const Span *', s: 'const Span *') -> 'TBox *': + span_converted = _ffi.cast('const Span *', span) + s_converted = _ffi.cast('const Span *', s) result = _lib.numspan_tstzspan_to_tbox(span_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_timestamptz_to_tbox(span: "const Span *", t: int) -> "TBox *": - span_converted = _ffi.cast("const Span *", span) - t_converted = _ffi.cast("TimestampTz", t) +def numspan_timestamptz_to_tbox(span: 'const Span *', t: int) -> 'TBox *': + span_converted = _ffi.cast('const Span *', span) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.numspan_timestamptz_to_tbox(span_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_copy(box: "const TBox *") -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_copy(box: 'const TBox *') -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_copy(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_make(s: "Optional['const Span *']", p: "Optional['const Span *']") -> "TBox *": - s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL - p_converted = _ffi.cast("const Span *", p) if p is not None else _ffi.NULL +def tbox_make(s: "Optional['const Span *']", p: "Optional['const Span *']") -> 'TBox *': + s_converted = _ffi.cast('const Span *', s) if s is not None else _ffi.NULL + p_converted = _ffi.cast('const Span *', p) if p is not None else _ffi.NULL result = _lib.tbox_make(s_converted, p_converted) _check_error() return result if result != _ffi.NULL else None -def float_to_tbox(d: float) -> "TBox *": +def float_to_tbox(d: float) -> 'TBox *': result = _lib.float_to_tbox(d) _check_error() return result if result != _ffi.NULL else None -def int_to_tbox(i: int) -> "TBox *": +def int_to_tbox(i: int) -> 'TBox *': result = _lib.int_to_tbox(i) _check_error() return result if result != _ffi.NULL else None -def set_to_tbox(s: "const Set *") -> "TBox *": - s_converted = _ffi.cast("const Set *", s) +def set_to_tbox(s: 'const Set *') -> 'TBox *': + s_converted = _ffi.cast('const Set *', s) result = _lib.set_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_tbox(s: "const Span *") -> "TBox *": - s_converted = _ffi.cast("const Span *", s) +def span_to_tbox(s: 'const Span *') -> 'TBox *': + s_converted = _ffi.cast('const Span *', s) result = _lib.span_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_to_tbox(ss: "const SpanSet *") -> "TBox *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def spanset_to_tbox(ss: 'const SpanSet *') -> 'TBox *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.spanset_to_tbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_intspan(box: "const TBox *") -> "Span *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_to_intspan(box: 'const TBox *') -> 'Span *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_to_intspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_floatspan(box: "const TBox *") -> "Span *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_to_floatspan(box: 'const TBox *') -> 'Span *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_to_floatspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_tstzspan(box: "const TBox *") -> "Span *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_to_tstzspan(box: 'const TBox *') -> 'Span *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_tbox(t: int) -> "TBox *": - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_to_tbox(t: int) -> 'TBox *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_to_tbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hast(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def tbox_hast(box: 'const TBox *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hasx(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) +def tbox_hasx(box: 'const TBox *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_tmax(box: "const TBox *") -> int: - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("TimestampTz *") +def tbox_tmax(box: 'const TBox *') -> int: + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('TimestampTz *') result = _lib.tbox_tmax(box_converted, out_result) _check_error() if result: @@ -5681,9 +5420,9 @@ def tbox_tmax(box: "const TBox *") -> int: return None -def tbox_tmax_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") +def tbox_tmax_inc(box: 'const TBox *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('bool *') result = _lib.tbox_tmax_inc(box_converted, out_result) _check_error() if result: @@ -5691,9 +5430,9 @@ def tbox_tmax_inc(box: "const TBox *") -> "bool": return None -def tbox_tmin(box: "const TBox *") -> int: - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("TimestampTz *") +def tbox_tmin(box: 'const TBox *') -> int: + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('TimestampTz *') result = _lib.tbox_tmin(box_converted, out_result) _check_error() if result: @@ -5701,9 +5440,9 @@ def tbox_tmin(box: "const TBox *") -> int: return None -def tbox_tmin_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") +def tbox_tmin_inc(box: 'const TBox *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('bool *') result = _lib.tbox_tmin_inc(box_converted, out_result) _check_error() if result: @@ -5711,9 +5450,9 @@ def tbox_tmin_inc(box: "const TBox *") -> "bool": return None -def tbox_xmax(box: "const TBox *") -> "double": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("double *") +def tbox_xmax(box: 'const TBox *') -> 'double': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('double *') result = _lib.tbox_xmax(box_converted, out_result) _check_error() if result: @@ -5721,9 +5460,9 @@ def tbox_xmax(box: "const TBox *") -> "double": return None -def tbox_xmax_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") +def tbox_xmax_inc(box: 'const TBox *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('bool *') result = _lib.tbox_xmax_inc(box_converted, out_result) _check_error() if result: @@ -5731,9 +5470,9 @@ def tbox_xmax_inc(box: "const TBox *") -> "bool": return None -def tbox_xmin(box: "const TBox *") -> "double": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("double *") +def tbox_xmin(box: 'const TBox *') -> 'double': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('double *') result = _lib.tbox_xmin(box_converted, out_result) _check_error() if result: @@ -5741,9 +5480,9 @@ def tbox_xmin(box: "const TBox *") -> "double": return None -def tbox_xmin_inc(box: "const TBox *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("bool *") +def tbox_xmin_inc(box: 'const TBox *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('bool *') result = _lib.tbox_xmin_inc(box_converted, out_result) _check_error() if result: @@ -5751,9 +5490,9 @@ def tbox_xmin_inc(box: "const TBox *") -> "bool": return None -def tboxfloat_xmax(box: "const TBox *") -> "double": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("double *") +def tboxfloat_xmax(box: 'const TBox *') -> 'double': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('double *') result = _lib.tboxfloat_xmax(box_converted, out_result) _check_error() if result: @@ -5761,9 +5500,9 @@ def tboxfloat_xmax(box: "const TBox *") -> "double": return None -def tboxfloat_xmin(box: "const TBox *") -> "double": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("double *") +def tboxfloat_xmin(box: 'const TBox *') -> 'double': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('double *') result = _lib.tboxfloat_xmin(box_converted, out_result) _check_error() if result: @@ -5771,9 +5510,9 @@ def tboxfloat_xmin(box: "const TBox *") -> "double": return None -def tboxint_xmax(box: "const TBox *") -> "int": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("int *") +def tboxint_xmax(box: 'const TBox *') -> 'int': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('int *') result = _lib.tboxint_xmax(box_converted, out_result) _check_error() if result: @@ -5781,9 +5520,9 @@ def tboxint_xmax(box: "const TBox *") -> "int": return None -def tboxint_xmin(box: "const TBox *") -> "int": - box_converted = _ffi.cast("const TBox *", box) - out_result = _ffi.new("int *") +def tboxint_xmin(box: 'const TBox *') -> 'int': + box_converted = _ffi.cast('const TBox *', box) + out_result = _ffi.new('int *') result = _lib.tboxint_xmin(box_converted, out_result) _check_error() if result: @@ -5791,667 +5530,605 @@ def tboxint_xmin(box: "const TBox *") -> "int": return None -def tbox_expand_float(box: "const TBox *", d: float) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_expand_float(box: 'const TBox *', d: float) -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_expand_float(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_int(box: "const TBox *", i: int) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_expand_int(box: 'const TBox *', i: int) -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_expand_int(box_converted, i) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_time(box: "const TBox *", interv: "const Interval *") -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - interv_converted = _ffi.cast("const Interval *", interv) +def tbox_expand_time(box: 'const TBox *', interv: 'const Interval *') -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tbox_expand_time(box_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_round(box: "const TBox *", maxdd: int) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_round(box: 'const TBox *', maxdd: int) -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_round(box_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def tbox_shift_scale_float( - box: "const TBox *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - result = _lib.tbox_shift_scale_float( - box_converted, shift, width, hasshift, haswidth - ) +def tbox_shift_scale_float(box: 'const TBox *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) + result = _lib.tbox_shift_scale_float(box_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def tbox_shift_scale_int( - box: "const TBox *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) +def tbox_shift_scale_int(box: 'const TBox *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) result = _lib.tbox_shift_scale_int(box_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def tbox_shift_scale_time( - box: "const TBox *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.tbox_shift_scale_time( - box_converted, shift_converted, duration_converted - ) +def tbox_shift_scale_time(box: 'const TBox *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) + shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL + result = _lib.tbox_shift_scale_time(box_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def union_tbox_tbox( - box1: "const TBox *", box2: "const TBox *", strict: bool -) -> "TBox *": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def union_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *', strict: bool) -> 'TBox *': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.union_tbox_tbox(box1_converted, box2_converted, strict) _check_error() return result if result != _ffi.NULL else None -def intersection_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def intersection_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'TBox *': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.intersection_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def adjacent_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.adjacent_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def contained_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.contained_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def contains_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.contains_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def overlaps_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.overlaps_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def same_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def same_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.same_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def after_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.after_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def before_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.before_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def left_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def left_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.left_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def overafter_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.overafter_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def overbefore_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.overbefore_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def overleft_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.overleft_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def overright_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.overright_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def right_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def right_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.right_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_cmp(box1: "const TBox *", box2: "const TBox *") -> "int": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_cmp(box1: 'const TBox *', box2: 'const TBox *') -> 'int': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_cmp(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_eq(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_eq(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_eq(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_ge(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_ge(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_ge(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_gt(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_gt(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_gt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_le(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_le(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_le(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_lt(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_lt(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_lt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_ne(box1: "const TBox *", box2: "const TBox *") -> "bool": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def tbox_ne(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.tbox_ne(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def tbool_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.tbool_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def tbool_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.tbool_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_out(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_out(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_out(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def temporal_as_hexwkb( - temp: "const Temporal *", variant: int -) -> "Tuple[str, 'size_t *']": - temp_converted = _ffi.cast("const Temporal *", temp) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def temporal_as_hexwkb(temp: 'const Temporal *', variant: int) -> "Tuple[str, 'size_t *']": + temp_converted = _ffi.cast('const Temporal *', temp) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.temporal_as_hexwkb(temp_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None, size_out[0] -def temporal_as_mfjson( - temp: "const Temporal *", - with_bbox: bool, - flags: int, - precision: int, - srs: "Optional[str]", -) -> str: - temp_converted = _ffi.cast("const Temporal *", temp) - srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL - result = _lib.temporal_as_mfjson( - temp_converted, with_bbox, flags, precision, srs_converted - ) +def temporal_as_mfjson(temp: 'const Temporal *', with_bbox: bool, flags: int, precision: int, srs: "Optional[str]") -> str: + temp_converted = _ffi.cast('const Temporal *', temp) + srs_converted = srs.encode('utf-8') if srs is not None else _ffi.NULL + result = _lib.temporal_as_mfjson(temp_converted, with_bbox, flags, precision, srs_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def temporal_as_wkb(temp: "const Temporal *", variant: int) -> bytes: - temp_converted = _ffi.cast("const Temporal *", temp) - variant_converted = _ffi.cast("uint8_t", variant) - size_out = _ffi.new("size_t *") +def temporal_as_wkb(temp: 'const Temporal *', variant: int) -> bytes: + temp_converted = _ffi.cast('const Temporal *', temp) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') result = _lib.temporal_as_wkb(temp_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def temporal_from_hexwkb(hexwkb: str) -> "Temporal *": - hexwkb_converted = hexwkb.encode("utf-8") +def temporal_from_hexwkb(hexwkb: str) -> 'Temporal *': + hexwkb_converted = hexwkb.encode('utf-8') result = _lib.temporal_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_wkb(wkb: bytes) -> "Temporal *": - wkb_converted = _ffi.new("uint8_t []", wkb) +def temporal_from_wkb(wkb: bytes) -> 'Temporal *': + wkb_converted = _ffi.new('uint8_t []', wkb) result = _lib.temporal_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def tfloat_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def tfloat_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.tfloat_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def tfloat_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.tfloat_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_out(temp: "const Temporal *", maxdd: int) -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_out(temp: 'const Temporal *', maxdd: int) -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_out(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tint_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def tint_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.tint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def tint_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.tint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_out(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_out(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_out(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def ttext_from_mfjson(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def ttext_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.ttext_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_in(string: str) -> "Temporal *": - string_converted = string.encode("utf-8") +def ttext_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') result = _lib.ttext_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_out(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_out(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_out(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tbool_from_base_temp(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_from_base_temp(b: bool, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_from_base_temp(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tboolinst_make(b: bool, t: int) -> "TInstant *": - t_converted = _ffi.cast("TimestampTz", t) +def tboolinst_make(b: bool, t: int) -> 'TInstant *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.tboolinst_make(b, t_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzset(b: bool, s: "const Set *") -> "TSequence *": - s_converted = _ffi.cast("const Set *", s) +def tboolseq_from_base_tstzset(b: bool, s: 'const Set *') -> 'TSequence *': + s_converted = _ffi.cast('const Set *', s) result = _lib.tboolseq_from_base_tstzset(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzspan(b: bool, s: "const Span *") -> "TSequence *": - s_converted = _ffi.cast("const Span *", s) +def tboolseq_from_base_tstzspan(b: bool, s: 'const Span *') -> 'TSequence *': + s_converted = _ffi.cast('const Span *', s) result = _lib.tboolseq_from_base_tstzspan(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_from_base_tstzspanset( - b: bool, ss: "const SpanSet *" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tboolseqset_from_base_tstzspanset(b: bool, ss: 'const SpanSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tboolseqset_from_base_tstzspanset(b, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_copy(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_copy(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_copy(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_from_base_temp(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_from_base_temp(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_from_base_temp(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_make(d: float, t: int) -> "TInstant *": - t_converted = _ffi.cast("TimestampTz", t) +def tfloatinst_make(d: float, t: int) -> 'TInstant *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.tfloatinst_make(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": - s_converted = _ffi.cast("const Set *", s) +def tfloatseq_from_base_tstzset(d: float, s: 'const Set *') -> 'TSequence *': + s_converted = _ffi.cast('const Set *', s) result = _lib.tfloatseq_from_base_tstzset(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzspan( - d: float, s: "const Span *", interp: "interpType" -) -> "TSequence *": - s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) +def tfloatseq_from_base_tstzspan(d: float, s: 'const Span *', interp: 'interpType') -> 'TSequence *': + s_converted = _ffi.cast('const Span *', s) + interp_converted = _ffi.cast('interpType', interp) result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_from_base_tstzspanset( - d: float, ss: "const SpanSet *", interp: "interpType" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) +def tfloatseqset_from_base_tstzspanset(d: float, ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + interp_converted = _ffi.cast('interpType', interp) result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_from_base_temp(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_from_base_temp(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_from_base_temp(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintinst_make(i: int, t: int) -> "TInstant *": - t_converted = _ffi.cast("TimestampTz", t) +def tintinst_make(i: int, t: int) -> 'TInstant *': + t_converted = _ffi.cast('TimestampTz', t) result = _lib.tintinst_make(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzset(i: int, s: "const Set *") -> "TSequence *": - s_converted = _ffi.cast("const Set *", s) +def tintseq_from_base_tstzset(i: int, s: 'const Set *') -> 'TSequence *': + s_converted = _ffi.cast('const Set *', s) result = _lib.tintseq_from_base_tstzset(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzspan(i: int, s: "const Span *") -> "TSequence *": - s_converted = _ffi.cast("const Span *", s) +def tintseq_from_base_tstzspan(i: int, s: 'const Span *') -> 'TSequence *': + s_converted = _ffi.cast('const Span *', s) result = _lib.tintseq_from_base_tstzspan(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_from_base_tstzspanset(i: int, ss: "const SpanSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) +def tintseqset_from_base_tstzspanset(i: int, ss: 'const SpanSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tintseqset_from_base_tstzspanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_make( - instants: "const TInstant **", - count: int, - lower_inc: bool, - upper_inc: bool, - interp: "interpType", - normalize: bool, -) -> "TSequence *": - instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_make( - instants_converted, count, lower_inc, upper_inc, interp_converted, normalize - ) +def tsequence_make(instants: 'const TInstant **', count: int, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': + instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_make(instants_converted, count, lower_inc, upper_inc, interp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make( - sequences: "const TSequence **", count: int, normalize: bool -) -> "TSequenceSet *": - sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] +def tsequenceset_make(sequences: 'const TSequence **', count: int, normalize: bool) -> 'TSequenceSet *': + sequences_converted = [_ffi.cast('const TSequence *', x) for x in sequences] result = _lib.tsequenceset_make(sequences_converted, count, normalize) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_gaps( - instants: "const TInstant **", - interp: "interpType", - maxt: "Optional['const Interval *']", - maxdist: float, -) -> "TSequenceSet *": - instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) - maxt_converted = ( - _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL - ) - result = _lib.tsequenceset_make_gaps( - instants_converted, len(instants), interp_converted, maxt_converted, maxdist - ) +def tsequenceset_make_gaps(instants: 'const TInstant **', interp: 'interpType', maxt: "Optional['const Interval *']", maxdist: float) -> 'TSequenceSet *': + instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] + interp_converted = _ffi.cast('interpType', interp) + maxt_converted = _ffi.cast('const Interval *', maxt) if maxt is not None else _ffi.NULL + result = _lib.tsequenceset_make_gaps(instants_converted, len(instants), interp_converted, maxt_converted, maxdist) _check_error() return result if result != _ffi.NULL else None -def ttext_from_base_temp(txt: str, temp: "const Temporal *") -> "Temporal *": +def ttext_from_base_temp(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_from_base_temp(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttextinst_make(txt: str, t: int) -> "TInstant *": +def ttextinst_make(txt: str, t: int) -> 'TInstant *': txt_converted = cstring2text(txt) - t_converted = _ffi.cast("TimestampTz", t) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.ttextinst_make(txt_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzset(txt: str, s: "const Set *") -> "TSequence *": +def ttextseq_from_base_tstzset(txt: str, s: 'const Set *') -> 'TSequence *': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Set *", s) + s_converted = _ffi.cast('const Set *', s) result = _lib.ttextseq_from_base_tstzset(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzspan(txt: str, s: "const Span *") -> "TSequence *": +def ttextseq_from_base_tstzspan(txt: str, s: 'const Span *') -> 'TSequence *': txt_converted = cstring2text(txt) - s_converted = _ffi.cast("const Span *", s) + s_converted = _ffi.cast('const Span *', s) result = _lib.ttextseq_from_base_tstzspan(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_from_base_tstzspanset( - txt: str, ss: "const SpanSet *" -) -> "TSequenceSet *": +def ttextseqset_from_base_tstzspanset(txt: str, ss: 'const SpanSet *') -> 'TSequenceSet *': txt_converted = cstring2text(txt) - ss_converted = _ffi.cast("const SpanSet *", ss) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.ttextseqset_from_base_tstzspanset(txt_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_to_tint(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_to_tint(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tstzspan(temp: "const Temporal *") -> "Span *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_to_tstzspan(temp: 'const Temporal *') -> 'Span *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_to_tstzspan(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_to_tint(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_to_tint(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_to_tfloat(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_to_tfloat(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_to_tfloat(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_span(temp: "const Temporal *") -> "Span *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_to_span(temp: 'const Temporal *') -> 'Span *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_to_span(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_end_value(temp: "const Temporal *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_end_value(temp: 'const Temporal *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_start_value(temp: "const Temporal *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_start_value(temp: 'const Temporal *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("bool *") - result = _lib.tbool_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) +def tbool_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('bool *') + result = _lib.tbool_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("bool *") +def tbool_value_n(temp: 'const Temporal *', n: int) -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('bool *') result = _lib.tbool_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6459,194 +6136,192 @@ def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": return None -def tbool_values(temp: "const Temporal *") -> "Tuple['bool *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tbool_values(temp: 'const Temporal *') -> "Tuple['bool *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tbool_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_duration(temp: "const Temporal *", boundspan: bool) -> "Interval *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_duration(temp: 'const Temporal *', boundspan: bool) -> 'Interval *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_duration(temp_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def temporal_end_instant(temp: "const Temporal *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_end_instant(temp: 'const Temporal *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_end_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_sequence(temp: "const Temporal *") -> "TSequence *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_end_sequence(temp: 'const Temporal *') -> 'TSequence *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_end_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_timestamptz(temp: "const Temporal *") -> "TimestampTz": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_end_timestamptz(temp: 'const Temporal *') -> 'TimestampTz': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_end_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_hash(temp: "const Temporal *") -> "uint32": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_hash(temp: 'const Temporal *') -> 'uint32': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_hash(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_instant_n(temp: "const Temporal *", n: int) -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_instant_n(temp: 'const Temporal *', n: int) -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_instant_n(temp_converted, n) _check_error() return result if result != _ffi.NULL else None -def temporal_instants(temp: "const Temporal *") -> "Tuple['TInstant **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_instants(temp: 'const Temporal *') -> "Tuple['TInstant **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_instants(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_interp(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_interp(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_interp(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def temporal_lower_inc(temp: "const Temporal *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_lower_inc(temp: 'const Temporal *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_lower_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_max_instant(temp: "const Temporal *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_max_instant(temp: 'const Temporal *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_max_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_instant(temp: "const Temporal *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_min_instant(temp: 'const Temporal *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_min_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_instants(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_num_instants(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_num_instants(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_sequences(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_num_sequences(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_num_sequences(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_timestamps(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_num_timestamps(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_num_timestamps(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_segments(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_segments(temp: 'const Temporal *') -> "Tuple['TSequence **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_segments(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_sequence_n(temp: "const Temporal *", i: int) -> "TSequence *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_sequence_n(temp: 'const Temporal *', i: int) -> 'TSequence *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_sequence_n(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def temporal_sequences(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_sequences(temp: 'const Temporal *') -> "Tuple['TSequence **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_sequences(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_start_instant(temp: "const Temporal *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_start_instant(temp: 'const Temporal *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_start_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_sequence(temp: "const Temporal *") -> "TSequence *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_start_sequence(temp: 'const Temporal *') -> 'TSequence *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_start_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_timestamptz(temp: "const Temporal *") -> "TimestampTz": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_start_timestamptz(temp: 'const Temporal *') -> 'TimestampTz': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_start_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_stops( - temp: "const Temporal *", maxdist: float, minduration: "const Interval *" -) -> "TSequenceSet *": - temp_converted = _ffi.cast("const Temporal *", temp) - minduration_converted = _ffi.cast("const Interval *", minduration) +def temporal_stops(temp: 'const Temporal *', maxdist: float, minduration: 'const Interval *') -> 'TSequenceSet *': + temp_converted = _ffi.cast('const Temporal *', temp) + minduration_converted = _ffi.cast('const Interval *', minduration) result = _lib.temporal_stops(temp_converted, maxdist, minduration_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_subtype(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_subtype(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_subtype(temp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def temporal_time(temp: "const Temporal *") -> "SpanSet *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_time(temp: 'const Temporal *') -> 'SpanSet *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_time(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_timestamps(temp: "const Temporal *") -> "Tuple['TimestampTz *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_timestamps(temp: 'const Temporal *') -> "Tuple['TimestampTz *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_timestamps(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("TimestampTz *") +def temporal_timestamptz_n(temp: 'const Temporal *', n: int) -> int: + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('TimestampTz *') result = _lib.temporal_timestamptz_n(temp_converted, n, out_result) _check_error() if result: @@ -6654,59 +6329,55 @@ def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: return None -def temporal_upper_inc(temp: "const Temporal *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_upper_inc(temp: 'const Temporal *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_upper_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_end_value(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_end_value(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_max_value(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_max_value(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_min_value(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_min_value(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_start_value(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_start_value(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("double *") - result = _lib.tfloat_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) +def tfloat_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('double *') + result = _lib.tfloat_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("double *") +def tfloat_value_n(temp: 'const Temporal *', n: int) -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('double *') result = _lib.tfloat_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6714,58 +6385,56 @@ def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": return None -def tfloat_values(temp: "const Temporal *") -> "Tuple['double *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tfloat_values(temp: 'const Temporal *') -> "Tuple['double *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tfloat_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_end_value(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_end_value(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_max_value(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_max_value(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_min_value(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_min_value(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_start_value(temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_start_value(temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_value_at_timestamptz(temp: "const Temporal *", t: int, strict: bool) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("int *") - result = _lib.tint_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) +def tint_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('int *') + result = _lib.tint_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tint_value_n(temp: "const Temporal *", n: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("int *") +def tint_value_n(temp: 'const Temporal *', n: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('int *') result = _lib.tint_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6773,85 +6442,81 @@ def tint_value_n(temp: "const Temporal *", n: int) -> "int": return None -def tint_values(temp: "const Temporal *") -> "Tuple['int *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tint_values(temp: 'const Temporal *') -> "Tuple['int *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tint_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_integral(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_integral(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_integral(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_twavg(temp: "const Temporal *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_twavg(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_twavg(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_valuespans(temp: "const Temporal *") -> "SpanSet *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_valuespans(temp: 'const Temporal *') -> 'SpanSet *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_valuespans(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_end_value(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_end_value(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_end_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_max_value(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_max_value(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_max_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_min_value(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_min_value(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_min_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_start_value(temp: "const Temporal *") -> str: - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_start_value(temp: 'const Temporal *') -> str: + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_start_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "text **": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("text **") - result = _lib.ttext_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) +def ttext_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'text **': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('text **') + result = _lib.ttext_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("text **") +def ttext_value_n(temp: 'const Temporal *', n: int) -> 'text **': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('text **') result = _lib.ttext_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6859,7684 +6524,11331 @@ def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": return None -def ttext_values(temp: "const Temporal *") -> "Tuple['text **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def ttext_values(temp: 'const Temporal *') -> "Tuple['text **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.ttext_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def float_degrees(value: float, normalize: bool) -> "double": +def float_degrees(value: float, normalize: bool) -> 'double': result = _lib.float_degrees(value, normalize) _check_error() return result if result != _ffi.NULL else None -def temparr_round(temp: "const Temporal **", count: int, maxdd: int) -> "Temporal **": - temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] +def temparr_round(temp: 'const Temporal **', count: int, maxdd: int) -> 'Temporal **': + temp_converted = [_ffi.cast('const Temporal *', x) for x in temp] result = _lib.temparr_round(temp_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_round(temp: 'const Temporal *', maxdd: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_round(temp_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_scale_time( - temp: "const Temporal *", duration: "const Interval *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) +def temporal_scale_time(temp: 'const Temporal *', duration: 'const Interval *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) result = _lib.temporal_scale_time(temp_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_set_interp(temp: "const Temporal *", interp: "interpType") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) +def temporal_set_interp(temp: 'const Temporal *', interp: 'interpType') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + interp_converted = _ffi.cast('interpType', interp) result = _lib.temporal_set_interp(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_shift_scale_time( - temp: "const Temporal *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.temporal_shift_scale_time( - temp_converted, shift_converted, duration_converted - ) +def temporal_shift_scale_time(temp: 'const Temporal *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL + result = _lib.temporal_shift_scale_time(temp_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_shift_time( - temp: "const Temporal *", shift: "const Interval *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - shift_converted = _ffi.cast("const Interval *", shift) +def temporal_shift_time(temp: 'const Temporal *', shift: 'const Interval *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + shift_converted = _ffi.cast('const Interval *', shift) result = _lib.temporal_shift_time(temp_converted, shift_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_to_tinstant(temp: 'const Temporal *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_to_tinstant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tsequence( - temp: "const Temporal *", interp: "interpType" -) -> "TSequence *": - temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) +def temporal_to_tsequence(temp: 'const Temporal *', interp: 'interpType') -> 'TSequence *': + temp_converted = _ffi.cast('const Temporal *', temp) + interp_converted = _ffi.cast('interpType', interp) result = _lib.temporal_to_tsequence(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tsequenceset( - temp: "const Temporal *", interp: "interpType" -) -> "TSequenceSet *": - temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) +def temporal_to_tsequenceset(temp: 'const Temporal *', interp: 'interpType') -> 'TSequenceSet *': + temp_converted = _ffi.cast('const Temporal *', temp) + interp_converted = _ffi.cast('interpType', interp) result = _lib.temporal_to_tsequenceset(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ceil(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_ceil(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_ceil(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_degrees(temp: "const Temporal *", normalize: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_degrees(temp: 'const Temporal *', normalize: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_degrees(temp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def tfloat_floor(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_floor(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_floor(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_radians(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_radians(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_radians(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_scale_value(temp: "const Temporal *", width: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_scale_value(temp: 'const Temporal *', width: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_scale_value(temp_converted, width) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_scale_value( - temp: "const Temporal *", shift: float, width: float -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_shift_scale_value(temp: 'const Temporal *', shift: float, width: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_value(temp: "const Temporal *", shift: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_shift_value(temp: 'const Temporal *', shift: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def tint_scale_value(temp: "const Temporal *", width: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_scale_value(temp: 'const Temporal *', width: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_scale_value(temp_converted, width) _check_error() return result if result != _ffi.NULL else None -def tint_shift_scale_value( - temp: "const Temporal *", shift: int, width: int -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_shift_scale_value(temp: 'const Temporal *', shift: int, width: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_shift_value(temp: 'const Temporal *', shift: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def temporal_append_tinstant( - temp: "Temporal *", - inst: "const TInstant *", - interp: "interpType", - maxdist: float, - maxt: "Optional['const Interval *']", - expand: bool, -) -> "Temporal *": - temp_converted = _ffi.cast("Temporal *", temp) - inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - maxt_converted = ( - _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL - ) - result = _lib.temporal_append_tinstant( - temp_converted, - inst_converted, - interp_converted, - maxdist, - maxt_converted, - expand, - ) +def temporal_append_tinstant(temp: 'Temporal *', inst: 'const TInstant *', interp: 'interpType', maxdist: float, maxt: "Optional['const Interval *']", expand: bool) -> 'Temporal *': + temp_converted = _ffi.cast('Temporal *', temp) + inst_converted = _ffi.cast('const TInstant *', inst) + interp_converted = _ffi.cast('interpType', interp) + maxt_converted = _ffi.cast('const Interval *', maxt) if maxt is not None else _ffi.NULL + result = _lib.temporal_append_tinstant(temp_converted, inst_converted, interp_converted, maxdist, maxt_converted, expand) _check_error() return result if result != _ffi.NULL else None -def temporal_append_tsequence( - temp: "Temporal *", seq: "const TSequence *", expand: bool -) -> "Temporal *": - temp_converted = _ffi.cast("Temporal *", temp) - seq_converted = _ffi.cast("const TSequence *", seq) +def temporal_append_tsequence(temp: 'Temporal *', seq: 'const TSequence *', expand: bool) -> 'Temporal *': + temp_converted = _ffi.cast('Temporal *', temp) + seq_converted = _ffi.cast('const TSequence *', seq) result = _lib.temporal_append_tsequence(temp_converted, seq_converted, expand) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_timestamptz( - temp: "const Temporal *", t: int, connect: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) +def temporal_delete_timestamptz(temp: 'const Temporal *', t: int, connect: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.temporal_delete_timestamptz(temp_converted, t_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzset( - temp: "const Temporal *", s: "const Set *", connect: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) +def temporal_delete_tstzset(temp: 'const Temporal *', s: 'const Set *', connect: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Set *', s) result = _lib.temporal_delete_tstzset(temp_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzspan( - temp: "const Temporal *", s: "const Span *", connect: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def temporal_delete_tstzspan(temp: 'const Temporal *', s: 'const Span *', connect: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.temporal_delete_tstzspan(temp_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *", connect: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) +def temporal_delete_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *', connect: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.temporal_delete_tstzspanset(temp_converted, ss_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_insert( - temp1: "const Temporal *", temp2: "const Temporal *", connect: bool -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_insert(temp1: 'const Temporal *', temp2: 'const Temporal *', connect: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_insert(temp1_converted, temp2_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_merge( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_merge(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_merge(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_merge_array(temparr: "const Temporal **", count: int) -> "Temporal *": - temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] +def temporal_merge_array(temparr: 'const Temporal **', count: int) -> 'Temporal *': + temparr_converted = [_ffi.cast('const Temporal *', x) for x in temparr] result = _lib.temporal_merge_array(temparr_converted, count) _check_error() return result if result != _ffi.NULL else None -def temporal_update( - temp1: "const Temporal *", temp2: "const Temporal *", connect: bool -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_update(temp1: 'const Temporal *', temp2: 'const Temporal *', connect: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_update(temp1_converted, temp2_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tbool_at_value(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_at_value(temp: 'const Temporal *', b: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_at_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tbool_minus_value(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_minus_value(temp: 'const Temporal *', b: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_minus_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def temporal_at_max(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_at_max(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_at_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_min(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_at_min(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_at_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) +def temporal_at_timestamptz(temp: 'const Temporal *', t: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.temporal_at_timestamptz(temp_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) +def temporal_at_tstzset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Set *', s) result = _lib.temporal_at_tstzset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzspan(temp: "const Temporal *", s: "const Span *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def temporal_at_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.temporal_at_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) +def temporal_at_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.temporal_at_tstzspanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - set_converted = _ffi.cast("const Set *", set) +def temporal_at_values(temp: 'const Temporal *', set: 'const Set *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + set_converted = _ffi.cast('const Set *', set) result = _lib.temporal_at_values(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_max(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_minus_max(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_minus_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_min(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_minus_min(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_minus_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) +def temporal_minus_timestamptz(temp: 'const Temporal *', t: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) result = _lib.temporal_minus_timestamptz(temp_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) +def temporal_minus_tstzset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Set *', s) result = _lib.temporal_minus_tstzset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzspan( - temp: "const Temporal *", s: "const Span *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def temporal_minus_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.temporal_minus_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) +def temporal_minus_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.temporal_minus_tstzspanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - set_converted = _ffi.cast("const Set *", set) +def temporal_minus_values(temp: 'const Temporal *', set: 'const Set *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + set_converted = _ffi.cast('const Set *', set) result = _lib.temporal_minus_values(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_at_value(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_at_value(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_at_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tfloat_minus_value(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_minus_value(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_minus_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tint_at_value(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_at_value(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_at_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tint_minus_value(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_minus_value(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_minus_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - span_converted = _ffi.cast("const Span *", span) +def tnumber_at_span(temp: 'const Temporal *', span: 'const Span *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + span_converted = _ffi.cast('const Span *', span) result = _lib.tnumber_at_span(temp_converted, span_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_spanset(temp: "const Temporal *", ss: "const SpanSet *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) +def tnumber_at_spanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tnumber_at_spanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def tnumber_at_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.tnumber_at_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - span_converted = _ffi.cast("const Span *", span) +def tnumber_minus_span(temp: 'const Temporal *', span: 'const Span *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + span_converted = _ffi.cast('const Span *', span) result = _lib.tnumber_minus_span(temp_converted, span_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_spanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) +def tnumber_minus_spanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tnumber_minus_spanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def tnumber_minus_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.tnumber_minus_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_at_value(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_at_value(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ttext_at_value(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_minus_value(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_minus_value(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ttext_minus_value(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_cmp(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_cmp(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_cmp(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_eq(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_eq(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_eq(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_ge(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_ge(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_ge(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_gt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_gt(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_gt(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_le(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_le(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_le(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_lt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_lt(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_lt(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_ne(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_ne(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_ne(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def always_eq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def always_eq_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.always_eq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_eq_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_eq_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_eq_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.always_eq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ge_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ge_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def always_ge_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.always_ge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_ge_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ge_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ge_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ge_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ge_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.always_ge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_gt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_gt_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_gt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def always_gt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.always_gt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_gt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_gt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_gt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_gt_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_gt_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_gt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.always_gt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_le_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_le_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_le_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def always_le_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.always_le_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_le_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_le_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_le_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_le_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_le_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_le_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.always_le_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_lt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_lt_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_lt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def always_lt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.always_lt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_lt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_lt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_lt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_lt_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_lt_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_lt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.always_lt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def always_ne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def always_ne_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.always_ne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_ne_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ne_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.always_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def always_ne_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.always_ne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def ever_eq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def ever_eq_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.ever_eq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_eq_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_eq_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ever_eq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ge_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ge_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def ever_ge_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.ever_ge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_ge_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ge_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ge_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ge_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ever_ge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_gt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_gt_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_gt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def ever_gt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.ever_gt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_gt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_gt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_gt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_gt_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_gt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ever_gt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_le_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_le_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_le_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def ever_le_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.ever_le_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_le_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_le_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_le_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_le_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_le_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_le_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ever_le_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_lt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_lt_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_lt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def ever_lt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.ever_lt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_lt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_lt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_lt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_lt_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_lt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ever_lt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_int_tint(i: int, temp: "const Temporal *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_int_tint(i: int, temp: 'const Temporal *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def ever_ne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def ever_ne_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.ever_ne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_ne_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ever_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def ever_ne_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.ever_ne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def teq_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def teq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def teq_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.teq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def teq_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def teq_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def teq_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.teq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def teq_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def teq_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.teq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tge_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tge_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tge_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tge_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tge_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tge_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tge_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tge_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tge_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tge_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tge_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.tge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tgt_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tgt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tgt_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tgt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tgt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tgt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tgt_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tgt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tgt_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tgt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tgt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tgt_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tgt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tgt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tgt_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.tgt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tle_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tle_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tle_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tle_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tle_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tle_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tle_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tle_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tle_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tle_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tle_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tle_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tle_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tle_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tle_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tle_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tle_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.tle_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tlt_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tlt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tlt_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tlt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tlt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tlt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tlt_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tlt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tlt_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tlt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tlt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tlt_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tlt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tlt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tlt_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.tlt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tne_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tne_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tne_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tne_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tne_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tne_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tne_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.tne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_spans(temp: "const Temporal *") -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_spans(temp: 'const Temporal *') -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_spans(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_split_each_n_spans( - temp: "const Temporal *", elem_count: int -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_split_each_n_spans(temp: 'const Temporal *', elem_count: int) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_split_n_spans( - temp: "const Temporal *", span_count: int -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def temporal_split_n_spans(temp: 'const Temporal *', span_count: int) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.temporal_split_n_spans(temp_converted, span_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_split_each_n_tboxes( - temp: "const Temporal *", elem_count: int -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tnumber_split_each_n_tboxes(temp: 'const Temporal *', elem_count: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_split_n_tboxes( - temp: "const Temporal *", box_count: int -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tnumber_split_n_tboxes(temp: 'const Temporal *', box_count: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_tboxes(temp: "const Temporal *") -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tnumber_tboxes(temp: 'const Temporal *') -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tnumber_tboxes(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def adjacent_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def adjacent_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.adjacent_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def adjacent_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.adjacent_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def adjacent_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.adjacent_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def adjacent_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.adjacent_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def adjacent_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.adjacent_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def adjacent_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.adjacent_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def adjacent_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.adjacent_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def adjacent_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.adjacent_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def contained_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.contained_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def contained_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.contained_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def contained_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.contained_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def contained_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def contained_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.contained_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def contained_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.contained_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def contained_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.contained_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def contained_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.contained_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def contains_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.contains_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def contains_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.contains_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def contains_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.contains_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def contains_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.contains_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def contains_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.contains_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def contains_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.contains_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def contains_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.contains_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def contains_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.contains_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def overlaps_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overlaps_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def overlaps_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overlaps_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overlaps_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overlaps_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def overlaps_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.overlaps_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def overlaps_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.overlaps_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def overlaps_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.overlaps_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overlaps_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overlaps_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def overlaps_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overlaps_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def same_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.same_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def same_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.same_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def same_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.same_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def same_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def same_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.same_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def same_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.same_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def same_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.same_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def same_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.same_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def same_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def same_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.same_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def after_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.after_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def after_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.after_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def after_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.after_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def after_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.after_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def after_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def after_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.after_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def after_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.after_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def before_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.before_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def before_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.before_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def before_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.before_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def before_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.before_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def before_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def before_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.before_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def before_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.before_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def left_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.left_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def left_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.left_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def left_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.left_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def left_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.left_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def left_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.left_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def overafter_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overafter_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def overafter_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.overafter_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overafter_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overafter_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def overafter_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.overafter_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overafter_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overafter_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def overafter_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overafter_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def overbefore_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overbefore_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def overbefore_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.overbefore_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overbefore_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overbefore_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def overbefore_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.overbefore_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overbefore_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overbefore_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def overbefore_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overbefore_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def overleft_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overleft_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def overleft_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overleft_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def overleft_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.overleft_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def overleft_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.overleft_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overleft_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overleft_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def overright_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overright_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def overright_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.overright_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def overright_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.overright_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def overright_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.overright_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def overright_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.overright_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def right_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": - s_converted = _ffi.cast("const Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def right_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.right_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def right_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": - box_converted = _ffi.cast("const TBox *", box) - temp_converted = _ffi.cast("const Temporal *", temp) +def right_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const TBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.right_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def right_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) +def right_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) result = _lib.right_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def right_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.right_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def right_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def right_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.right_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tand_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tand_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tand_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tand_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tand_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tand_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tand_tbool_tbool( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tand_tbool_tbool(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tand_tbool_tbool(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_when_true(temp: "const Temporal *") -> "SpanSet *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_when_true(temp: 'const Temporal *') -> 'SpanSet *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_when_true(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnot_tbool(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnot_tbool(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnot_tbool(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tor_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tor_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tor_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tor_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tor_tbool_tbool( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tor_tbool_tbool(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tor_tbool_tbool(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def add_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def add_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.add_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def add_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.add_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def add_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.add_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def add_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def add_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.add_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def add_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) +def add_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': + tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) + tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) result = _lib.add_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def div_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def div_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.div_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def div_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.div_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def div_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.div_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def div_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def div_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.div_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def div_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) +def div_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': + tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) + tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) result = _lib.div_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def mult_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def mult_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.mult_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def mult_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.mult_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def mult_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.mult_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def mult_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def mult_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.mult_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def mult_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) +def mult_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': + tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) + tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) result = _lib.mult_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def sub_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def sub_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.sub_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def sub_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.sub_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def sub_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.sub_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def sub_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": - tnumber_converted = _ffi.cast("const Temporal *", tnumber) +def sub_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': + tnumber_converted = _ffi.cast('const Temporal *', tnumber) result = _lib.sub_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def sub_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": - tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) - tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) +def sub_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': + tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) + tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) result = _lib.sub_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_derivative(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_derivative(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_derivative(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_exp(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_exp(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_exp(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ln(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_ln(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_ln(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_log10(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_log10(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_log10(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_abs(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_abs(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_abs(temp_converted) _check_error() return result if result != _ffi.NULL else None -def float_angular_difference(degrees1: float, degrees2: float) -> "double": +def float_angular_difference(degrees1: float, degrees2: float) -> 'double': result = _lib.float_angular_difference(degrees1, degrees2) _check_error() return result if result != _ffi.NULL else None -def tnumber_angular_difference(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_angular_difference(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_delta_value(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_delta_value(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_delta_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def textcat_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': txt_converted = cstring2text(txt) - temp_converted = _ffi.cast("const Temporal *", temp) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.textcat_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def textcat_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) txt_converted = cstring2text(txt) result = _lib.textcat_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_ttext_ttext( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def textcat_ttext_ttext(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.textcat_ttext_ttext(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_initcap(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_initcap(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_initcap(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_upper(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_upper(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_upper(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_lower(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_lower(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_lower(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tdistance_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tdistance_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tdistance_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def tdistance_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tdistance_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def tdistance_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.tdistance_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tboxfloat_tboxfloat(box1: "const TBox *", box2: "const TBox *") -> "double": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def nad_tboxfloat_tboxfloat(box1: 'const TBox *', box2: 'const TBox *') -> 'double': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.nad_tboxfloat_tboxfloat(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tboxint_tboxint(box1: "const TBox *", box2: "const TBox *") -> "int": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) +def nad_tboxint_tboxint(box1: 'const TBox *', box2: 'const TBox *') -> 'int': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) result = _lib.nad_tboxint_tboxint(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_float(temp: "const Temporal *", d: float) -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) +def nad_tfloat_float(temp: 'const Temporal *', d: float) -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.nad_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_tfloat(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def nad_tfloat_tfloat(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.nad_tfloat_tfloat(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def nad_tfloat_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.nad_tfloat_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tint_int(temp: "const Temporal *", i: int) -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) +def nad_tint_int(temp: 'const Temporal *', i: int) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.nad_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def nad_tint_tbox(temp: "const Temporal *", box: "const TBox *") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) +def nad_tint_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) result = _lib.nad_tint_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tint_tint(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def nad_tint_tint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.nad_tint_tint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_tand_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_tand_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_tand_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_tor_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tbool_tor_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tbool_tor_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_extent_transfn(s: "Span *", temp: "const Temporal *") -> "Span *": - s_converted = _ffi.cast("Span *", s) - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_extent_transfn(s: 'Span *', temp: 'const Temporal *') -> 'Span *': + s_converted = _ffi.cast('Span *', s) + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_extent_transfn(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tagg_finalfn(state: "SkipList *") -> "Temporal *": - state_converted = _ffi.cast("SkipList *", state) +def temporal_tagg_finalfn(state: 'SkipList *') -> 'Temporal *': + state_converted = _ffi.cast('SkipList *', state) result = _lib.temporal_tagg_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tcount_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_tcount_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_tcount_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_tmax_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_tmin_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_tsum_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tfloat_tsum_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tfloat_tsum_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_wmax_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) +def tfloat_wmax_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tfloat_wmax_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_wmin_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) +def tfloat_wmin_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tfloat_wmin_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_wsum_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) +def tfloat_wsum_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tfloat_wsum_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - t_converted = _ffi.cast("TimestampTz", t) +def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + t_converted = _ffi.cast('TimestampTz', t) result = _lib.timestamptz_tcount_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tint_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_tmax_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_tmin_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_tsum_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tint_tsum_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tint_tsum_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_wmax_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) +def tint_wmax_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tint_wmax_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tint_wmin_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) +def tint_wmin_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tint_wmin_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tint_wsum_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) +def tint_wsum_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) result = _lib.tint_wsum_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_extent_transfn( - box: "Optional['TBox *']", temp: "const Temporal *" -) -> "TBox *": - box_converted = _ffi.cast("TBox *", box) if box is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_extent_transfn(box: "Optional['TBox *']", temp: 'const Temporal *') -> 'TBox *': + box_converted = _ffi.cast('TBox *', box) if box is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_extent_transfn(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_tavg_finalfn(state: "SkipList *") -> "Temporal *": - state_converted = _ffi.cast("SkipList *", state) +def tnumber_tavg_finalfn(state: 'SkipList *') -> 'Temporal *': + state_converted = _ffi.cast('SkipList *', state) result = _lib.tnumber_tavg_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_tavg_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def tnumber_tavg_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.tnumber_tavg_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_wavg_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) - temp_converted = _ffi.cast("const Temporal *", temp) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tnumber_wavg_transfn( - state_converted, temp_converted, interv_converted - ) +def tnumber_wavg_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('const Temporal *', temp) + interv_converted = _ffi.cast('const Interval *', interv) + result = _lib.tnumber_wavg_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_tcount_transfn( - state: "Optional['SkipList *']", s: "const Set *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - s_converted = _ffi.cast("const Set *", s) +def tstzset_tcount_transfn(state: "Optional['SkipList *']", s: 'const Set *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + s_converted = _ffi.cast('const Set *', s) result = _lib.tstzset_tcount_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_tcount_transfn( - state: "Optional['SkipList *']", s: "const Span *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - s_converted = _ffi.cast("const Span *", s) +def tstzspan_tcount_transfn(state: "Optional['SkipList *']", s: 'const Span *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + s_converted = _ffi.cast('const Span *', s) result = _lib.tstzspan_tcount_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_tcount_transfn( - state: "Optional['SkipList *']", ss: "const SpanSet *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - ss_converted = _ffi.cast("const SpanSet *", ss) +def tstzspanset_tcount_transfn(state: "Optional['SkipList *']", ss: 'const SpanSet *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + ss_converted = _ffi.cast('const SpanSet *', ss) result = _lib.tstzspanset_tcount_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_tmax_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": - state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast("const Temporal *", temp) +def ttext_tmin_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.ttext_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_dp( - temp: "const Temporal *", eps_dist: float, synchronized: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_simplify_dp(temp: 'const Temporal *', eps_dist: float, synchronized: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_simplify_dp(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_max_dist( - temp: "const Temporal *", eps_dist: float, synchronized: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_simplify_max_dist(temp: 'const Temporal *', eps_dist: float, synchronized: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_simplify_max_dist(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_min_dist(temp: "const Temporal *", dist: float) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) +def temporal_simplify_min_dist(temp: 'const Temporal *', dist: float) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) result = _lib.temporal_simplify_min_dist(temp_converted, dist) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_min_tdelta( - temp: "const Temporal *", mint: "const Interval *" -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - mint_converted = _ffi.cast("const Interval *", mint) +def temporal_simplify_min_tdelta(temp: 'const Temporal *', mint: 'const Interval *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + mint_converted = _ffi.cast('const Interval *', mint) result = _lib.temporal_simplify_min_tdelta(temp_converted, mint_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tprecision( - temp: "const Temporal *", duration: "const Interval *", origin: int -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - result = _lib.temporal_tprecision( - temp_converted, duration_converted, origin_converted - ) +def temporal_tprecision(temp: 'const Temporal *', duration: 'const Interval *', origin: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + origin_converted = _ffi.cast('TimestampTz', origin) + result = _lib.temporal_tprecision(temp_converted, duration_converted, origin_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tsample( - temp: "const Temporal *", - duration: "const Interval *", - origin: int, - interp: "interpType", -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_tsample( - temp_converted, duration_converted, origin_converted, interp_converted - ) +def temporal_tsample(temp: 'const Temporal *', duration: 'const Interval *', origin: int, interp: 'interpType') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + origin_converted = _ffi.cast('TimestampTz', origin) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.temporal_tsample(temp_converted, duration_converted, origin_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_dyntimewarp_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_dyntimewarp_distance(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_dyntimewarp_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_dyntimewarp_path( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Tuple['Match *', 'int']": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - count = _ffi.new("int *") +def temporal_dyntimewarp_path(temp1: 'const Temporal *', temp2: 'const Temporal *') -> "Tuple['Match *', 'int']": + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + count = _ffi.new('int *') result = _lib.temporal_dyntimewarp_path(temp1_converted, temp2_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_frechet_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_frechet_distance(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_frechet_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_frechet_path( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Tuple['Match *', 'int']": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - count = _ffi.new("int *") +def temporal_frechet_path(temp1: 'const Temporal *', temp2: 'const Temporal *') -> "Tuple['Match *', 'int']": + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + count = _ffi.new('int *') result = _lib.temporal_frechet_path(temp1_converted, temp2_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_hausdorff_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) +def temporal_hausdorff_distance(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) result = _lib.temporal_hausdorff_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_time_bins( - temp: "const Temporal *", duration: "const Interval *", origin: int -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - origin_converted = _ffi.cast("TimestampTz", origin) - count = _ffi.new("int *") - result = _lib.temporal_time_bins( - temp_converted, duration_converted, origin_converted, count - ) +def temporal_time_bins(temp: 'const Temporal *', duration: 'const Interval *', origin: int) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + origin_converted = _ffi.cast('TimestampTz', origin) + count = _ffi.new('int *') + result = _lib.temporal_time_bins(temp_converted, duration_converted, origin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_time_split( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - time_bins = _ffi.new("TimestampTz **") - count = _ffi.new("int *") - result = _lib.temporal_time_split( - temp_converted, duration_converted, torigin_converted, time_bins, count - ) +def temporal_time_split(temp: 'const Temporal *', duration: 'const Interval *', torigin: int) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + time_bins = _ffi.new('TimestampTz **') + count = _ffi.new('int *') + result = _lib.temporal_time_split(temp_converted, duration_converted, torigin_converted, time_bins, count) _check_error() return result if result != _ffi.NULL else None, time_bins[0], count[0] -def tfloat_time_boxes( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tfloat_time_boxes( - temp_converted, duration_converted, torigin_converted, count - ) +def tfloat_time_boxes(temp: 'const Temporal *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tfloat_time_boxes(temp_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_bins( - temp: "const Temporal *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tfloat_value_bins(temp: 'const Temporal *', vsize: float, vorigin: float) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tfloat_value_bins(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_boxes( - temp: "const Temporal *", vsize: float, vorigin: float -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tfloat_value_boxes(temp: 'const Temporal *', vsize: float, vorigin: float) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tfloat_value_boxes(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_split( - temp: "const Temporal *", size: float, origin: float, bins: "double **" -) -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - bins_converted = [_ffi.cast("double *", x) for x in bins] - count = _ffi.new("int *") - result = _lib.tfloat_value_split( - temp_converted, size, origin, bins_converted, count - ) +def tfloat_value_split(temp: 'const Temporal *', size: float, origin: float, bins: 'double **') -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + bins_converted = [_ffi.cast('double *', x) for x in bins] + count = _ffi.new('int *') + result = _lib.tfloat_value_split(temp_converted, size, origin, bins_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_time_boxes( - temp: "const Temporal *", - vsize: float, - duration: "const Interval *", - vorigin: float, - torigin: int, -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tfloat_value_time_boxes( - temp_converted, vsize, duration_converted, vorigin, torigin_converted, count - ) +def tfloat_value_time_boxes(temp: 'const Temporal *', vsize: float, duration: 'const Interval *', vorigin: float, torigin: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tfloat_value_time_boxes(temp_converted, vsize, duration_converted, vorigin, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_time_split( - temp: "const Temporal *", - vsize: float, - duration: "const Interval *", - vorigin: float, - torigin: int, -) -> "Tuple['Temporal **', 'double *', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - value_bins = _ffi.new("double **") - time_bins = _ffi.new("TimestampTz **") - count = _ffi.new("int *") - result = _lib.tfloat_value_time_split( - temp_converted, - vsize, - duration_converted, - vorigin, - torigin_converted, - value_bins, - time_bins, - count, - ) +def tfloat_value_time_split(temp: 'const Temporal *', vsize: float, duration: 'const Interval *', vorigin: float, torigin: int) -> "Tuple['Temporal **', 'double *', 'TimestampTz *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + value_bins = _ffi.new('double **') + time_bins = _ffi.new('TimestampTz **') + count = _ffi.new('int *') + result = _lib.tfloat_value_time_split(temp_converted, vsize, duration_converted, vorigin, torigin_converted, value_bins, time_bins, count) _check_error() - return ( - result if result != _ffi.NULL else None, - value_bins[0], - time_bins[0], - count[0], - ) + return result if result != _ffi.NULL else None, value_bins[0], time_bins[0], count[0] -def tfloatbox_time_tiles( - box: "const TBox *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast("const TBox *", box) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tfloatbox_time_tiles( - box_converted, duration_converted, torigin_converted, count - ) +def tfloatbox_time_tiles(box: 'const TBox *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast('const TBox *', box) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tfloatbox_time_tiles(box_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloatbox_value_tiles( - box: "const TBox *", vsize: float, vorigin: float -) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast("const TBox *", box) - count = _ffi.new("int *") +def tfloatbox_value_tiles(box: 'const TBox *', vsize: float, vorigin: float) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast('const TBox *', box) + count = _ffi.new('int *') result = _lib.tfloatbox_value_tiles(box_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloatbox_value_time_tiles( - box: "const TBox *", - vsize: float, - duration: "const Interval *", - vorigin: float, - torigin: "Optional[int]", -) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast("const TBox *", box) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = ( - _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL - ) - count = _ffi.new("int *") - result = _lib.tfloatbox_value_time_tiles( - box_converted, vsize, duration_converted, vorigin, torigin_converted, count - ) +def tfloatbox_value_time_tiles(box: 'const TBox *', vsize: float, duration: 'const Interval *', vorigin: float, torigin: "Optional[int]") -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast('const TBox *', box) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) if torigin is not None else _ffi.NULL + count = _ffi.new('int *') + result = _lib.tfloatbox_value_time_tiles(box_converted, vsize, duration_converted, vorigin, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_time_boxes( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tint_time_boxes( - temp_converted, duration_converted, torigin_converted, count - ) +def tint_time_boxes(temp: 'const Temporal *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tint_time_boxes(temp_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_bins( - temp: "const Temporal *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tint_value_bins(temp: 'const Temporal *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tint_value_bins(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_boxes( - temp: "const Temporal *", vsize: int, vorigin: int -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") +def tint_value_boxes(temp: 'const Temporal *', vsize: int, vorigin: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') result = _lib.tint_value_boxes(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_split( - temp: "const Temporal *", vsize: int, vorigin: int -) -> "Tuple['Temporal **', 'int *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - value_bins = _ffi.new("int **") - count = _ffi.new("int *") +def tint_value_split(temp: 'const Temporal *', vsize: int, vorigin: int) -> "Tuple['Temporal **', 'int *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + value_bins = _ffi.new('int **') + count = _ffi.new('int *') result = _lib.tint_value_split(temp_converted, vsize, vorigin, value_bins, count) _check_error() return result if result != _ffi.NULL else None, value_bins[0], count[0] -def tint_value_time_boxes( - temp: "const Temporal *", - vsize: int, - duration: "const Interval *", - vorigin: int, - torigin: int, -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tint_value_time_boxes( - temp_converted, vsize, duration_converted, vorigin, torigin_converted, count - ) +def tint_value_time_boxes(temp: 'const Temporal *', vsize: int, duration: 'const Interval *', vorigin: int, torigin: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tint_value_time_boxes(temp_converted, vsize, duration_converted, vorigin, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_time_split( - temp: "const Temporal *", - size: int, - duration: "const Interval *", - vorigin: int, - torigin: int, -) -> "Tuple['Temporal **', 'int *', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - value_bins = _ffi.new("int **") - time_bins = _ffi.new("TimestampTz **") - count = _ffi.new("int *") - result = _lib.tint_value_time_split( - temp_converted, - size, - duration_converted, - vorigin, - torigin_converted, - value_bins, - time_bins, - count, - ) +def tint_value_time_split(temp: 'const Temporal *', size: int, duration: 'const Interval *', vorigin: int, torigin: int) -> "Tuple['Temporal **', 'int *', 'TimestampTz *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + value_bins = _ffi.new('int **') + time_bins = _ffi.new('TimestampTz **') + count = _ffi.new('int *') + result = _lib.tint_value_time_split(temp_converted, size, duration_converted, vorigin, torigin_converted, value_bins, time_bins, count) _check_error() - return ( - result if result != _ffi.NULL else None, - value_bins[0], - time_bins[0], - count[0], - ) + return result if result != _ffi.NULL else None, value_bins[0], time_bins[0], count[0] -def tintbox_time_tiles( - box: "const TBox *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast("const TBox *", box) - duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tintbox_time_tiles( - box_converted, duration_converted, torigin_converted, count - ) +def tintbox_time_tiles(box: 'const TBox *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast('const TBox *', box) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tintbox_time_tiles(box_converted, duration_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tintbox_value_tiles( - box: "const TBox *", xsize: int, xorigin: int -) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast("const TBox *", box) - count = _ffi.new("int *") +def tintbox_value_tiles(box: 'const TBox *', xsize: int, xorigin: int) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast('const TBox *', box) + count = _ffi.new('int *') result = _lib.tintbox_value_tiles(box_converted, xsize, xorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tintbox_value_time_tiles( - box: "const TBox *", - xsize: int, - duration: "const Interval *", - xorigin: "Optional[int]", - torigin: "Optional[int]", -) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast("const TBox *", box) - duration_converted = _ffi.cast("const Interval *", duration) +def tintbox_value_time_tiles(box: 'const TBox *', xsize: int, duration: 'const Interval *', xorigin: 'Optional[int]', torigin: "Optional[int]") -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast('const TBox *', box) + duration_converted = _ffi.cast('const Interval *', duration) xorigin_converted = xorigin if xorigin is not None else _ffi.NULL - torigin_converted = ( - _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL - ) - count = _ffi.new("int *") - result = _lib.tintbox_value_time_tiles( - box_converted, - xsize, - duration_converted, - xorigin_converted, - torigin_converted, - count, - ) + torigin_converted = _ffi.cast('TimestampTz', torigin) if torigin is not None else _ffi.NULL + count = _ffi.new('int *') + result = _lib.tintbox_value_time_tiles(box_converted, xsize, duration_converted, xorigin_converted, torigin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temptype_subtype(subtype: "tempSubtype") -> "bool": - subtype_converted = _ffi.cast("tempSubtype", subtype) - result = _lib.temptype_subtype(subtype_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temptype_subtype_all(subtype: "tempSubtype") -> "bool": - subtype_converted = _ffi.cast("tempSubtype", subtype) - result = _lib.temptype_subtype_all(subtype_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tempsubtype_name(subtype: "tempSubtype") -> str: - subtype_converted = _ffi.cast("tempSubtype", subtype) +def tempsubtype_name(subtype: 'tempSubtype') -> str: + subtype_converted = _ffi.cast('tempSubtype', subtype) result = _lib.tempsubtype_name(subtype_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tempsubtype_from_string(string: str, subtype: "int16 *") -> "bool": - string_converted = string.encode("utf-8") - subtype_converted = _ffi.cast("int16 *", subtype) +def tempsubtype_from_string(string: str, subtype: 'int16 *') -> 'bool': + string_converted = string.encode('utf-8') + subtype_converted = _ffi.cast('int16 *', subtype) result = _lib.tempsubtype_from_string(string_converted, subtype_converted) _check_error() return result if result != _ffi.NULL else None -def meosoper_name(oper: "meosOper") -> str: - oper_converted = _ffi.cast("meosOper", oper) +def meosoper_name(oper: 'meosOper') -> str: + oper_converted = _ffi.cast('meosOper', oper) result = _lib.meosoper_name(oper_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def meosoper_from_string(name: str) -> "meosOper": - name_converted = name.encode("utf-8") +def meosoper_from_string(name: str) -> 'meosOper': + name_converted = name.encode('utf-8') result = _lib.meosoper_from_string(name_converted) _check_error() return result if result != _ffi.NULL else None -def interptype_name(interp: "interpType") -> str: - interp_converted = _ffi.cast("interpType", interp) +def interptype_name(interp: 'interpType') -> str: + interp_converted = _ffi.cast('interpType', interp) result = _lib.interptype_name(interp_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def interptype_from_string(interp_str: str) -> "interpType": - interp_str_converted = interp_str.encode("utf-8") +def interptype_from_string(interp_str: str) -> 'interpType': + interp_str_converted = interp_str.encode('utf-8') result = _lib.interptype_from_string(interp_str_converted) _check_error() return result if result != _ffi.NULL else None -def meostype_name(type: "meosType") -> str: - type_converted = _ffi.cast("meosType", type) +def meostype_name(type: 'meosType') -> str: + type_converted = _ffi.cast('meosType', type) result = _lib.meostype_name(type_converted) _check_error() - result = _ffi.string(result).decode("utf-8") + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def temptype_basetype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def temptype_basetype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.temptype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def settype_basetype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def settype_basetype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.settype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_basetype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def spantype_basetype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.spantype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_spansettype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def spantype_spansettype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.spantype_spansettype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spansettype_spantype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def spansettype_spantype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.spansettype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_spantype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def basetype_spantype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.basetype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_settype(type: "meosType") -> "meosType": - type_converted = _ffi.cast("meosType", type) +def basetype_settype(type: 'meosType') -> 'meosType': + type_converted = _ffi.cast('meosType', type) result = _lib.basetype_settype(type_converted) _check_error() return result if result != _ffi.NULL else None -def meos_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.meos_basetype(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def tnumber_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tnumber_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def alphanum_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.alphanum_basetype(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def alphanum_temptype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.alphanum_temptype(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def geo_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def geo_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.geo_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def time_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def time_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.time_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.set_basetype(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def set_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def set_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.set_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def numset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_numset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timeset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def timeset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.timeset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_spantype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def set_spantype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_set_spantype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_set_spantype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def alphanumset_type(settype: "meosType") -> "bool": - settype_converted = _ffi.cast("meosType", settype) +def alphanumset_type(settype: 'meosType') -> 'bool': + settype_converted = _ffi.cast('meosType', settype) result = _lib.alphanumset_type(settype_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def geoset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_geoset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_geoset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def spatialset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_spatialset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_spatialset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def span_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.span_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_canon_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def span_canon_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.span_canon_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def span_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.span_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def type_span_bbox(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def type_span_bbox(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.type_span_bbox(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_tbox_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def span_tbox_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_span_tbox_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_span_tbox_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def numspan_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.numspan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def numspan_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numspan_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_numspan_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def timespan_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.timespan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def timespan_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.timespan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def spanset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.spanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespanset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def timespanset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_timespanset_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_timespanset_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def temporal_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.temporal_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.temporal_basetype(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def temptype_continuous(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def temptype_continuous(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.temptype_continuous(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_byvalue(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def basetype_byvalue(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.basetype_byvalue(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_varlength(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def basetype_varlength(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.basetype_varlength(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_length(type: "meosType") -> "int16": - type_converted = _ffi.cast("meosType", type) +def basetype_length(type: 'meosType') -> 'int16': + type_converted = _ffi.cast('meosType', type) result = _lib.basetype_length(type_converted) _check_error() return result if result != _ffi.NULL else None -def talphanum_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) - result = _lib.talphanum_type(type_converted) - _check_error() - return result if result != _ffi.NULL else None - - -def talpha_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def talpha_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.talpha_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tnumber_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tnumber_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tnumber_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_spantype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tnumber_spantype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tnumber_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatial_basetype(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def spatial_basetype(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.spatial_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tspatial_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tspatial_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tspatial_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tpoint_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tpoint_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tpoint_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tgeo_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tgeo_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type_all(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tgeo_type_all(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type_all(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tgeo_type_all(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tgeometry_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeometry_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tgeometry_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeodetic_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def tgeodetic_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeodetic_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tgeodetic_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_tpoint_type(type: "meosType") -> "bool": - type_converted = _ffi.cast("meosType", type) +def ensure_tnumber_tpoint_type(type: 'meosType') -> 'bool': + type_converted = _ffi.cast('meosType', type) result = _lib.ensure_tnumber_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def SET_BBOX_PTR(s: "const Set *") -> "void *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.SET_BBOX_PTR(s_converted) +def geo_as_ewkb(gs: 'const GSERIALIZED *', endian: str, size: 'size_t *') -> 'uint8_t *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + endian_converted = endian.encode('utf-8') + size_converted = _ffi.cast('size_t *', size) + result = _lib.geo_as_ewkb(gs_converted, endian_converted, size_converted) _check_error() return result if result != _ffi.NULL else None -def SET_OFFSETS_PTR(s: "const Set *") -> "size_t *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.SET_OFFSETS_PTR(s_converted) +def geo_as_ewkt(gs: 'const GSERIALIZED *', precision: int) -> str: + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_as_ewkt(gs_converted, precision) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def SET_VAL_N(s: "const Set *", index: int) -> "Datum": - s_converted = _ffi.cast("const Set *", s) - result = _lib.SET_VAL_N(s_converted, index) +def geo_as_geojson(gs: 'const GSERIALIZED *', option: int, precision: int, srs: str) -> str: + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + srs_converted = srs.encode('utf-8') + result = _lib.geo_as_geojson(gs_converted, option, precision, srs_converted) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def SPANSET_SP_N(ss: "const SpanSet *", index: int) -> "const Span *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.SPANSET_SP_N(ss_converted, index) +def geo_as_hexewkb(gs: 'const GSERIALIZED *', endian: str) -> str: + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + endian_converted = endian.encode('utf-8') + result = _lib.geo_as_hexewkb(gs_converted, endian_converted) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def TSEQUENCE_OFFSETS_PTR(seq: "const TSequence *") -> "size_t *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.TSEQUENCE_OFFSETS_PTR(seq_converted) +def geo_as_text(gs: 'const GSERIALIZED *', precision: int) -> str: + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_as_text(gs_converted, precision) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def TSEQUENCE_INST_N(seq: "const TSequence *", index: int) -> "const TInstant *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.TSEQUENCE_INST_N(seq_converted, index) +def geo_from_ewkb(wkb: 'const uint8_t *', wkb_size: 'size_t', srid: int) -> 'GSERIALIZED *': + wkb_converted = _ffi.cast('const uint8_t *', wkb) + wkb_size_converted = _ffi.cast('size_t', wkb_size) + srid_converted = _ffi.cast('int32', srid) + result = _lib.geo_from_ewkb(wkb_converted, wkb_size_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def TSEQUENCESET_OFFSETS_PTR(ss: "const TSequenceSet *") -> "size_t *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.TSEQUENCESET_OFFSETS_PTR(ss_converted) +def geo_from_geojson(geojson: str) -> 'GSERIALIZED *': + geojson_converted = geojson.encode('utf-8') + result = _lib.geo_from_geojson(geojson_converted) _check_error() return result if result != _ffi.NULL else None -def TSEQUENCESET_SEQ_N(ss: "const TSequenceSet *", index: int) -> "const TSequence *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.TSEQUENCESET_SEQ_N(ss_converted, index) +def geo_from_text(wkt: str, srid: 'int32_t') -> 'GSERIALIZED *': + wkt_converted = wkt.encode('utf-8') + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.geo_from_text(wkt_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def gsl_get_generation_rng() -> "gsl_rng *": - result = _lib.gsl_get_generation_rng() +def geo_out(gs: 'const GSERIALIZED *') -> str: + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_out(gs_converted) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def gsl_get_aggregation_rng() -> "gsl_rng *": - result = _lib.gsl_get_aggregation_rng() +def geog_from_binary(wkb_bytea: str) -> 'GSERIALIZED *': + wkb_bytea_converted = wkb_bytea.encode('utf-8') + result = _lib.geog_from_binary(wkb_bytea_converted) _check_error() return result if result != _ffi.NULL else None -def datum_ceil(d: "Datum") -> "Datum": - d_converted = _ffi.cast("Datum", d) - result = _lib.datum_ceil(d_converted) +def geog_from_hexewkb(wkt: str) -> 'GSERIALIZED *': + wkt_converted = wkt.encode('utf-8') + result = _lib.geog_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def datum_degrees(d: "Datum", normalize: "Datum") -> "Datum": - d_converted = _ffi.cast("Datum", d) - normalize_converted = _ffi.cast("Datum", normalize) - result = _lib.datum_degrees(d_converted, normalize_converted) +def geog_in(string: str, typmod: int) -> 'GSERIALIZED *': + string_converted = string.encode('utf-8') + typmod_converted = _ffi.cast('int32', typmod) + result = _lib.geog_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def datum_float_round(value: "Datum", size: "Datum") -> "Datum": - value_converted = _ffi.cast("Datum", value) - size_converted = _ffi.cast("Datum", size) - result = _lib.datum_float_round(value_converted, size_converted) +def geom_from_hexewkb(wkt: str) -> 'GSERIALIZED *': + wkt_converted = wkt.encode('utf-8') + result = _lib.geom_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def datum_floor(d: "Datum") -> "Datum": - d_converted = _ffi.cast("Datum", d) - result = _lib.datum_floor(d_converted) +def geom_in(string: str, typmod: int) -> 'GSERIALIZED *': + string_converted = string.encode('utf-8') + typmod_converted = _ffi.cast('int32', typmod) + result = _lib.geom_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def datum_hash(d: "Datum", basetype: "meosType") -> "uint32": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.datum_hash(d_converted, basetype_converted) +def geo_copy(g: 'const GSERIALIZED *') -> 'GSERIALIZED *': + g_converted = _ffi.cast('const GSERIALIZED *', g) + result = _lib.geo_copy(g_converted) _check_error() return result if result != _ffi.NULL else None -def datum_hash_extended(d: "Datum", basetype: "meosType", seed: int) -> "uint64": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - seed_converted = _ffi.cast("uint64", seed) - result = _lib.datum_hash_extended(d_converted, basetype_converted, seed_converted) +def geogpoint_make2d(srid: 'int32_t', x: float, y: float) -> 'GSERIALIZED *': + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.geogpoint_make2d(srid_converted, x, y) _check_error() return result if result != _ffi.NULL else None -def datum_radians(d: "Datum") -> "Datum": - d_converted = _ffi.cast("Datum", d) - result = _lib.datum_radians(d_converted) +def geogpoint_make3dz(srid: 'int32_t', x: float, y: float, z: float) -> 'GSERIALIZED *': + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.geogpoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def floatspan_round_set(s: "const Span *", maxdd: int) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - out_result = _ffi.new("Span *") - _lib.floatspan_round_set(s_converted, maxdd, out_result) +def geompoint_make2d(srid: 'int32_t', x: float, y: float) -> 'GSERIALIZED *': + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.geompoint_make2d(srid_converted, x, y) _check_error() - return out_result if out_result != _ffi.NULL else None + return result if result != _ffi.NULL else None -def set_in(string: str, basetype: "meosType") -> "Set *": - string_converted = string.encode("utf-8") - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.set_in(string_converted, basetype_converted) +def geompoint_make3dz(srid: 'int32_t', x: float, y: float, z: float) -> 'GSERIALIZED *': + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.geompoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def set_out(s: "const Set *", maxdd: int) -> str: - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_out(s_converted, maxdd) +def geom_to_geog(geom: 'const GSERIALIZED *') -> 'GSERIALIZED *': + geom_converted = _ffi.cast('const GSERIALIZED *', geom) + result = _lib.geom_to_geog(geom_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def span_in(string: str, spantype: "meosType") -> "Span *": - string_converted = string.encode("utf-8") - spantype_converted = _ffi.cast("meosType", spantype) - result = _lib.span_in(string_converted, spantype_converted) +def geog_to_geom(geog: 'const GSERIALIZED *') -> 'GSERIALIZED *': + geog_converted = _ffi.cast('const GSERIALIZED *', geog) + result = _lib.geog_to_geom(geog_converted) _check_error() return result if result != _ffi.NULL else None -def span_out(s: "const Span *", maxdd: int) -> str: - s_converted = _ffi.cast("const Span *", s) - result = _lib.span_out(s_converted, maxdd) +def geo_is_empty(g: 'const GSERIALIZED *') -> 'bool': + g_converted = _ffi.cast('const GSERIALIZED *', g) + result = _lib.geo_is_empty(g_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def spanset_in(string: str, spantype: "meosType") -> "SpanSet *": - string_converted = string.encode("utf-8") - spantype_converted = _ffi.cast("meosType", spantype) - result = _lib.spanset_in(string_converted, spantype_converted) +def geo_typename(type: int) -> str: + result = _lib.geo_typename(type) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def spanset_out(ss: "const SpanSet *", maxdd: int) -> str: - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_out(ss_converted, maxdd) +def geog_area(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'double': + g_converted = _ffi.cast('const GSERIALIZED *', g) + result = _lib.geog_area(g_converted, use_spheroid) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def set_make( - values: "const Datum *", count: int, basetype: "meosType", order: bool -) -> "Set *": - values_converted = _ffi.cast("const Datum *", values) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.set_make(values_converted, count, basetype_converted, order) +def geog_centroid(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'GSERIALIZED *': + g_converted = _ffi.cast('const GSERIALIZED *', g) + result = _lib.geog_centroid(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def set_make_exp( - values: "const Datum *", - count: int, - maxcount: int, - basetype: "meosType", - order: bool, -) -> "Set *": - values_converted = _ffi.cast("const Datum *", values) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.set_make_exp( - values_converted, count, maxcount, basetype_converted, order - ) +def geog_length(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'double': + g_converted = _ffi.cast('const GSERIALIZED *', g) + result = _lib.geog_length(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def set_make_free( - values: "Datum *", count: int, basetype: "meosType", order: bool -) -> "Set *": - values_converted = _ffi.cast("Datum *", values) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.set_make_free(values_converted, count, basetype_converted, order) +def geog_perimeter(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'double': + g_converted = _ffi.cast('const GSERIALIZED *', g) + result = _lib.geog_perimeter(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def span_make( - lower: "Datum", - upper: "Datum", - lower_inc: bool, - upper_inc: bool, - basetype: "meosType", -) -> "Span *": - lower_converted = _ffi.cast("Datum", lower) - upper_converted = _ffi.cast("Datum", upper) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.span_make( - lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted - ) +def geom_azimuth(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + out_result = _ffi.new('double *') + result = _lib.geom_azimuth(gs1_converted, gs2_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def span_set( - lower: "Datum", - upper: "Datum", - lower_inc: bool, - upper_inc: bool, - basetype: "meosType", - spantype: "meosType", - s: "Span *", -) -> None: - lower_converted = _ffi.cast("Datum", lower) - upper_converted = _ffi.cast("Datum", upper) - basetype_converted = _ffi.cast("meosType", basetype) - spantype_converted = _ffi.cast("meosType", spantype) - s_converted = _ffi.cast("Span *", s) - _lib.span_set( - lower_converted, - upper_converted, - lower_inc, - upper_inc, - basetype_converted, - spantype_converted, - s_converted, - ) +def geom_length(gs: 'const GSERIALIZED *') -> 'double': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geom_length(gs_converted) _check_error() + return result if result != _ffi.NULL else None -def spanset_make_exp( - spans: "Span *", count: int, maxcount: int, normalize: bool, order: bool -) -> "SpanSet *": - spans_converted = _ffi.cast("Span *", spans) - result = _lib.spanset_make_exp(spans_converted, count, maxcount, normalize, order) +def geom_perimeter(gs: 'const GSERIALIZED *') -> 'double': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geom_perimeter(gs_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_make_free( - spans: "Span *", count: int, normalize: bool, order: bool -) -> "SpanSet *": - spans_converted = _ffi.cast("Span *", spans) - result = _lib.spanset_make_free(spans_converted, count, normalize, order) +def line_numpoints(gs: 'const GSERIALIZED *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.line_numpoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def set_span(s: "const Set *") -> "Span *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_span(s_converted) +def line_point_n(geom: 'const GSERIALIZED *', n: int) -> 'GSERIALIZED *': + geom_converted = _ffi.cast('const GSERIALIZED *', geom) + result = _lib.line_point_n(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def set_spanset(s: "const Set *") -> "SpanSet *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_spanset(s_converted) +def geo_reverse(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_reverse(gs_converted) _check_error() return result if result != _ffi.NULL else None -def value_set_span(value: "Datum", basetype: "meosType", s: "Span *") -> None: - value_converted = _ffi.cast("Datum", value) - basetype_converted = _ffi.cast("meosType", basetype) - s_converted = _ffi.cast("Span *", s) - _lib.value_set_span(value_converted, basetype_converted, s_converted) +def geo_round(gs: 'const GSERIALIZED *', maxdd: int) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_round(gs_converted, maxdd) _check_error() + return result if result != _ffi.NULL else None -def value_set(d: "Datum", basetype: "meosType") -> "Set *": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_set(d_converted, basetype_converted) +def geo_set_srid(gs: 'const GSERIALIZED *', srid: 'int32_t') -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.geo_set_srid(gs_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def value_span(d: "Datum", basetype: "meosType") -> "Span *": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_span(d_converted, basetype_converted) +def geo_srid(gs: 'const GSERIALIZED *') -> 'int32_t': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_srid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def value_spanset(d: "Datum", basetype: "meosType") -> "SpanSet *": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_spanset(d_converted, basetype_converted) +def geo_transform(geom: 'GSERIALIZED *', srid_to: 'int32_t') -> 'GSERIALIZED *': + geom_converted = _ffi.cast('GSERIALIZED *', geom) + srid_to_converted = _ffi.cast('int32_t', srid_to) + result = _lib.geo_transform(geom_converted, srid_to_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_width(s: "const Span *") -> "Datum": - s_converted = _ffi.cast("const Span *", s) - result = _lib.numspan_width(s_converted) +def geo_transform_pipeline(gs: 'const GSERIALIZED *', pipeline: str, srid_to: 'int32_t', is_forward: bool) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + pipeline_converted = pipeline.encode('utf-8') + srid_to_converted = _ffi.cast('int32_t', srid_to) + result = _lib.geo_transform_pipeline(gs_converted, pipeline_converted, srid_to_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def numspanset_width(ss: "const SpanSet *", boundspan: bool) -> "Datum": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.numspanset_width(ss_converted, boundspan) +def geo_collect_garray(gsarr: 'GSERIALIZED **', count: int) -> 'GSERIALIZED *': + gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] + result = _lib.geo_collect_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def set_end_value(s: "const Set *") -> "Datum": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_end_value(s_converted) +def geo_makeline_garray(gsarr: 'GSERIALIZED **', count: int) -> 'GSERIALIZED *': + gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] + result = _lib.geo_makeline_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def set_mem_size(s: "const Set *") -> "int": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_mem_size(s_converted) +def geo_npoints(gs: 'const GSERIALIZED *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_npoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def set_set_subspan(s: "const Set *", minidx: int, maxidx: int) -> "Span *": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("Span *") - _lib.set_set_subspan(s_converted, minidx, maxidx, out_result) +def geo_ngeos(gs: 'const GSERIALIZED *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_ngeos(gs_converted) _check_error() - return out_result if out_result != _ffi.NULL else None + return result if result != _ffi.NULL else None -def set_set_span(s: "const Set *") -> "Span *": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("Span *") - _lib.set_set_span(s_converted, out_result) +def geo_geoN(geom: 'const GSERIALIZED *', n: int) -> 'GSERIALIZED *': + geom_converted = _ffi.cast('const GSERIALIZED *', geom) + result = _lib.geo_geoN(geom_converted, n) _check_error() - return out_result if out_result != _ffi.NULL else None + return result if result != _ffi.NULL else None -def set_start_value(s: "const Set *") -> "Datum": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_start_value(s_converted) +def geom_array_union(gsarr: 'GSERIALIZED **', count: int) -> 'GSERIALIZED *': + gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] + result = _lib.geom_array_union(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def set_value_n(s: "const Set *", n: int) -> "Datum *": - s_converted = _ffi.cast("const Set *", s) - out_result = _ffi.new("Datum *") - result = _lib.set_value_n(s_converted, n, out_result) +def geom_boundary(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geom_boundary(gs_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def set_vals(s: "const Set *") -> "Datum *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_vals(s_converted) +def geom_buffer(gs: 'const GSERIALIZED *', size: float, params: str) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + params_converted = params.encode('utf-8') + result = _lib.geom_buffer(gs_converted, size, params_converted) _check_error() return result if result != _ffi.NULL else None -def set_values(s: "const Set *") -> "Datum *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_values(s_converted) +def geom_centroid(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geom_centroid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lower(ss: "const SpanSet *") -> "Datum": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_lower(ss_converted) +def geom_convex_hull(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geom_convex_hull(gs_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_mem_size(ss: "const SpanSet *") -> "int": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_mem_size(ss_converted) +def geom_difference2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_difference2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_sps(ss: "const SpanSet *") -> "const Span **": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_sps(ss_converted) +def geom_intersection2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_intersection2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper(ss: "const SpanSet *") -> "Datum": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_upper(ss_converted) +def geom_shortestline2d(gs1: 'const GSERIALIZED *', s2: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + s2_converted = _ffi.cast('const GSERIALIZED *', s2) + result = _lib.geom_shortestline2d(gs1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_set_tstzspan(s1: "const Span *", s2: "Span *") -> None: - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("Span *", s2) - _lib.datespan_set_tstzspan(s1_converted, s2_converted) +def geom_shortestline3d(gs1: 'const GSERIALIZED *', s2: 'const GSERIALIZED *') -> 'GSERIALIZED *': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + s2_converted = _ffi.cast('const GSERIALIZED *', s2) + result = _lib.geom_shortestline3d(gs1_converted, s2_converted) _check_error() + return result if result != _ffi.NULL else None -def floatspan_set_intspan(s1: "const Span *", s2: "Span *") -> None: - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("Span *", s2) - _lib.floatspan_set_intspan(s1_converted, s2_converted) +def geom_unary_union(gs: 'GSERIALIZED *', prec: float) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.geom_unary_union(gs_converted, prec) _check_error() + return result if result != _ffi.NULL else None -def intspan_set_floatspan(s1: "const Span *", s2: "Span *") -> None: - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("Span *", s2) - _lib.intspan_set_floatspan(s1_converted, s2_converted) +def line_interpolate_point(gs: 'GSERIALIZED *', distance_fraction: float, repeat: bool) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.line_interpolate_point(gs_converted, distance_fraction, repeat) _check_error() + return result if result != _ffi.NULL else None -def numset_shift_scale( - s: "const Set *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool -) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - shift_converted = _ffi.cast("Datum", shift) - width_converted = _ffi.cast("Datum", width) - result = _lib.numset_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) +def line_locate_point(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.line_locate_point(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.numspan_expand(s_converted, value_converted) +def line_substring(gs: 'const GSERIALIZED *', from_: float, to: float) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.line_substring(gs_converted, from_, to) _check_error() return result if result != _ffi.NULL else None -def numspan_shift_scale( - s: "const Span *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool -) -> "Span *": - s_converted = _ffi.cast("const Span *", s) - shift_converted = _ffi.cast("Datum", shift) - width_converted = _ffi.cast("Datum", width) - result = _lib.numspan_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) +def geog_dwithin(g1: 'const GSERIALIZED *', g2: 'const GSERIALIZED *', tolerance: float, use_spheroid: bool) -> 'bool': + g1_converted = _ffi.cast('const GSERIALIZED *', g1) + g2_converted = _ffi.cast('const GSERIALIZED *', g2) + result = _lib.geog_dwithin(g1_converted, g2_converted, tolerance, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def numspanset_shift_scale( - ss: "const SpanSet *", - shift: "Datum", - width: "Datum", - hasshift: bool, - haswidth: bool, -) -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - shift_converted = _ffi.cast("Datum", shift) - width_converted = _ffi.cast("Datum", width) - result = _lib.numspanset_shift_scale( - ss_converted, shift_converted, width_converted, hasshift, haswidth - ) +def geog_intersects(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', use_spheroid: bool) -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geog_intersects(gs1_converted, gs2_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def set_compact(s: "const Set *") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - result = _lib.set_compact(s_converted) +def geom_contains(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_contains(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def span_expand(s1: "const Span *", s2: "Span *") -> None: - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("Span *", s2) - _lib.span_expand(s1_converted, s2_converted) +def geom_covers(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_covers(gs1_converted, gs2_converted) _check_error() + return result if result != _ffi.NULL else None -def spanset_compact(ss: "const SpanSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.spanset_compact(ss_converted) +def geom_disjoint2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_disjoint2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_value( - box: "const TBox *", value: "Datum", basetyp: "meosType" -) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - value_converted = _ffi.cast("Datum", value) - basetyp_converted = _ffi.cast("meosType", basetyp) - result = _lib.tbox_expand_value(box_converted, value_converted, basetyp_converted) +def geom_dwithin2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', tolerance: float) -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_dwithin2d(gs1_converted, gs2_converted, tolerance) _check_error() return result if result != _ffi.NULL else None -def textcat_textset_text_int(s: "const Set *", txt: str, invert: bool) -> "Set *": - s_converted = _ffi.cast("const Set *", s) - txt_converted = cstring2text(txt) - result = _lib.textcat_textset_text_int(s_converted, txt_converted, invert) +def geom_dwithin3d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', tolerance: float) -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_dwithin3d(gs1_converted, gs2_converted, tolerance) _check_error() return result if result != _ffi.NULL else None -def tstzspan_set_datespan(s1: "const Span *", s2: "Span *") -> None: - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("Span *", s2) - _lib.tstzspan_set_datespan(s1_converted, s2_converted) +def geom_intersects2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_intersects2d(gs1_converted, gs2_converted) _check_error() + return result if result != _ffi.NULL else None -def adjacent_span_value(s: "const Span *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.adjacent_span_value(s_converted, value_converted) +def geom_intersects3d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_intersects3d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.adjacent_spanset_value(ss_converted, value_converted) +def geom_relate_pattern(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', patt: str) -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + patt_converted = patt.encode('utf-8') + result = _lib.geom_relate_pattern(gs1_converted, gs2_converted, patt_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.adjacent_value_spanset(value_converted, ss_converted) +def geom_touches(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_touches(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_value_set(value: "Datum", s: "const Set *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.contained_value_set(value_converted, s_converted) +def geo_stboxes(gs: 'const GSERIALIZED *') -> "Tuple['STBox *', 'int']": + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + count = _ffi.new('int *') + result = _lib.geo_stboxes(gs_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def contained_value_span(value: "Datum", s: "const Span *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.contained_value_span(value_converted, s_converted) +def geo_split_each_n_stboxes(gs: 'const GSERIALIZED *', elem_count: int) -> "Tuple['STBox *', 'int']": + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + count = _ffi.new('int *') + result = _lib.geo_split_each_n_stboxes(gs_converted, elem_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def contained_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.contained_value_spanset(value_converted, ss_converted) +def geo_split_n_stboxes(gs: 'const GSERIALIZED *', box_count: int) -> "Tuple['STBox *', 'int']": + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + count = _ffi.new('int *') + result = _lib.geo_split_n_stboxes(gs_converted, box_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def contains_set_value(s: "const Set *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.contains_set_value(s_converted, value_converted) +def geog_distance(g1: 'const GSERIALIZED *', g2: 'const GSERIALIZED *') -> 'double': + g1_converted = _ffi.cast('const GSERIALIZED *', g1) + g2_converted = _ffi.cast('const GSERIALIZED *', g2) + result = _lib.geog_distance(g1_converted, g2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_value(s: "const Span *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.contains_span_value(s_converted, value_converted) +def geom_distance2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_distance2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.contains_spanset_value(ss_converted, value_converted) +def geom_distance3d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geom_distance3d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def ovadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.ovadj_span_span(s1_converted, s2_converted) +def geo_equals(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'int': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geo_equals(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_value(s: "const Set *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.left_set_value(s_converted, value_converted) +def geo_same(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + result = _lib.geo_same(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_value(s: "const Span *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.left_span_value(s_converted, value_converted) +def geogset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') + result = _lib.geogset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.left_spanset_value(ss_converted, value_converted) +def geomset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') + result = _lib.geomset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def left_value_set(value: "Datum", s: "const Set *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.left_value_set(value_converted, s_converted) +def spatialset_as_text(set: 'const Set *', maxdd: int) -> str: + set_converted = _ffi.cast('const Set *', set) + result = _lib.spatialset_as_text(set_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def left_value_span(value: "Datum", s: "const Span *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.left_value_span(value_converted, s_converted) +def spatialset_as_ewkt(set: 'const Set *', maxdd: int) -> str: + set_converted = _ffi.cast('const Set *', set) + result = _lib.spatialset_as_ewkt(set_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def left_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.left_value_spanset(value_converted, ss_converted) +def geoset_make(values: 'const GSERIALIZED **') -> 'Set *': + values_converted = [_ffi.cast('const GSERIALIZED *', x) for x in values] + result = _lib.geoset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def lfnadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.lfnadj_span_span(s1_converted, s2_converted) +def geo_to_set(gs: 'const GSERIALIZED *') -> 'Set *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_to_set(gs_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_value(s: "const Set *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.overleft_set_value(s_converted, value_converted) +def geoset_end_value(s: 'const Set *') -> 'GSERIALIZED *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.geoset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_value(s: "const Span *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.overleft_span_value(s_converted, value_converted) +def geoset_start_value(s: 'const Set *') -> 'GSERIALIZED *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.geoset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.overleft_spanset_value(ss_converted, value_converted) +def geoset_value_n(s: 'const Set *', n: int) -> 'GSERIALIZED **': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('GSERIALIZED **') + result = _lib.geoset_value_n(s_converted, n, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result if out_result != _ffi.NULL else None + return None -def overleft_value_set(value: "Datum", s: "const Set *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.overleft_value_set(value_converted, s_converted) +def geoset_values(s: 'const Set *') -> 'GSERIALIZED **': + s_converted = _ffi.cast('const Set *', s) + result = _lib.geoset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_value_span(value: "Datum", s: "const Span *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overleft_value_span(value_converted, s_converted) +def contained_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'bool': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Set *', s) + result = _lib.contained_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.overleft_value_spanset(value_converted, ss_converted) +def contains_set_geo(s: 'const Set *', gs: 'GSERIALIZED *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.contains_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_value(s: "const Set *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.overright_set_value(s_converted, value_converted) +def geo_union_transfn(state: 'Set *', gs: 'const GSERIALIZED *') -> 'Set *': + state_converted = _ffi.cast('Set *', state) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_union_transfn(state_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_value(s: "const Span *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.overright_span_value(s_converted, value_converted) +def intersection_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'Set *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Set *', s) + result = _lib.intersection_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.overright_spanset_value(ss_converted, value_converted) +def intersection_set_geo(s: 'const Set *', gs: 'const GSERIALIZED *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.intersection_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def overright_value_set(value: "Datum", s: "const Set *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.overright_value_set(value_converted, s_converted) +def minus_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'Set *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Set *', s) + result = _lib.minus_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_value_span(value: "Datum", s: "const Span *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.overright_value_span(value_converted, s_converted) +def minus_set_geo(s: 'const Set *', gs: 'const GSERIALIZED *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.minus_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def overright_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.overright_value_spanset(value_converted, ss_converted) +def union_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'Set *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Set *', s) + result = _lib.union_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_value_set(value: "Datum", s: "const Set *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.right_value_set(value_converted, s_converted) +def union_set_geo(s: 'const Set *', gs: 'const GSERIALIZED *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.union_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_value(s: "const Set *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.right_set_value(s_converted, value_converted) +def spatialset_set_srid(s: 'const Set *', srid: 'int32_t') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.spatialset_set_srid(s_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def right_value_span(value: "Datum", s: "const Span *") -> "bool": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.right_value_span(value_converted, s_converted) +def spatialset_srid(s: 'const Set *') -> 'int32_t': + s_converted = _ffi.cast('const Set *', s) + result = _lib.spatialset_srid(s_converted) _check_error() return result if result != _ffi.NULL else None -def right_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.right_value_spanset(value_converted, ss_converted) +def spatialset_transform(s: 'const Set *', srid: 'int32_t') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.spatialset_transform(s_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_value(s: "const Span *", value: "Datum") -> "bool": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.right_span_value(s_converted, value_converted) +def spatialset_transform_pipeline(s: 'const Set *', pipelinestr: str, srid: 'int32_t', is_forward: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + pipelinestr_converted = pipelinestr.encode('utf-8') + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.spatialset_transform_pipeline(s_converted, pipelinestr_converted, srid_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def right_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.right_spanset_value(ss_converted, value_converted) +def stbox_as_hexwkb(box: 'const STBox *', variant: int) -> "Tuple[str, 'size_t *']": + box_converted = _ffi.cast('const STBox *', box) + variant_converted = _ffi.cast('uint8_t', variant) + size = _ffi.new('size_t *') + result = _lib.stbox_as_hexwkb(box_converted, variant_converted, size) _check_error() - return result if result != _ffi.NULL else None + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None, size[0] -def bbox_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - out_result = _ffi.new("Span *") - _lib.bbox_union_span_span(s1_converted, s2_converted, out_result) +def stbox_as_wkb(box: 'const STBox *', variant: int) -> bytes: + box_converted = _ffi.cast('const STBox *', box) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') + result = _lib.stbox_as_wkb(box_converted, variant_converted, size_out) _check_error() - return out_result if out_result != _ffi.NULL else None + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + return result_converted -def inter_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - out_result = _ffi.new("Span *") - result = _lib.inter_span_span(s1_converted, s2_converted, out_result) +def stbox_from_hexwkb(hexwkb: str) -> 'STBox *': + hexwkb_converted = hexwkb.encode('utf-8') + result = _lib.stbox_from_hexwkb(hexwkb_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def intersection_set_value(s: "const Set *", value: "Datum") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.intersection_set_value(s_converted, value_converted) - _check_error() +def stbox_from_wkb(wkb: bytes) -> 'STBOX *': + wkb_converted = _ffi.new('uint8_t []', wkb) + result = _lib.stbox_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def intersection_span_value(s: "const Span *", value: "Datum") -> "Span *": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.intersection_span_value(s_converted, value_converted) +def stbox_in(string: str) -> 'STBox *': + string_converted = string.encode('utf-8') + result = _lib.stbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.intersection_spanset_value(ss_converted, value_converted) +def stbox_out(box: 'const STBox *', maxdd: int) -> str: + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_out(box_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def intersection_value_set(value: "Datum", s: "const Set *") -> "Set *": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.intersection_value_set(value_converted, s_converted) +def geo_timestamptz_to_stbox(gs: 'const GSERIALIZED *', t: int) -> 'STBox *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.geo_timestamptz_to_stbox(gs_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_value_span(value: "Datum", s: "const Span *") -> "Span *": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.intersection_value_span(value_converted, s_converted) +def geo_tstzspan_to_stbox(gs: 'const GSERIALIZED *', s: 'const Span *') -> 'STBox *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Span *', s) + result = _lib.geo_tstzspan_to_stbox(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.intersection_value_spanset(value_converted, ss_converted) +def stbox_copy(box: 'const STBox *') -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_copy(box_converted) _check_error() return result if result != _ffi.NULL else None -def mi_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - out_result = _ffi.new("Span *") - result = _lib.mi_span_span(s1_converted, s2_converted, out_result) +def stbox_make(hasx: bool, hasz: bool, geodetic: bool, srid: int, xmin: float, xmax: float, ymin: float, ymax: float, zmin: float, zmax: float, s: "Optional['const Span *']") -> 'STBox *': + srid_converted = _ffi.cast('int32', srid) + s_converted = _ffi.cast('const Span *', s) if s is not None else _ffi.NULL + result = _lib.stbox_make(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted) _check_error() - return out_result if out_result != _ffi.NULL else None + return result if result != _ffi.NULL else None -def minus_set_value(s: "const Set *", value: "Datum") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.minus_set_value(s_converted, value_converted) +def geo_to_stbox(gs: 'const GSERIALIZED *') -> 'STBox *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geo_to_stbox(gs_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.minus_span_value(s_converted, value_converted) +def spatialset_to_stbox(s: 'const Set *') -> 'STBox *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.spatialset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.minus_spanset_value(ss_converted, value_converted) +def stbox_to_box3d(box: 'const STBox *') -> 'BOX3D *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_to_box3d(box_converted) _check_error() return result if result != _ffi.NULL else None -def minus_value_set(value: "Datum", s: "const Set *") -> "Set *": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.minus_value_set(value_converted, s_converted) +def stbox_to_gbox(box: 'const STBox *') -> 'GBOX *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_to_gbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def minus_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.minus_value_span(value_converted, s_converted) +def stbox_to_geo(box: 'const STBox *') -> 'GSERIALIZED *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_to_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def minus_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.minus_value_spanset(value_converted, ss_converted) +def stbox_to_tstzspan(box: 'const STBox *') -> 'Span *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def super_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.super_union_span_span(s1_converted, s2_converted) +def timestamptz_to_stbox(t: int) -> 'STBox *': + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.timestamptz_to_stbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_value(s: "const Set *", value: "Datum") -> "Set *": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.union_set_value(s_converted, value_converted) +def tstzset_to_stbox(s: 'const Set *') -> 'STBox *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.tstzset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.union_span_value(s_converted, value_converted) +def tstzspan_to_stbox(s: 'const Span *') -> 'STBox *': + s_converted = _ffi.cast('const Span *', s) + result = _lib.tstzspan_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.union_spanset_value(ss_converted, value_converted) +def tstzspanset_to_stbox(ss: 'const SpanSet *') -> 'STBox *': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.tstzspanset_to_stbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_value_set(value: "Datum", s: "const Set *") -> "Set *": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Set *", s) - result = _lib.union_value_set(value_converted, s_converted) +def stbox_area(box: 'const STBox *', spheroid: bool) -> 'double': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_area(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def union_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": - value_converted = _ffi.cast("Datum", value) - s_converted = _ffi.cast("const Span *", s) - result = _lib.union_value_span(value_converted, s_converted) +def stbox_hast(box: 'const STBox *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def union_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": - value_converted = _ffi.cast("Datum", value) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.union_value_spanset(value_converted, ss_converted) +def stbox_hasx(box: 'const STBox *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_set(s1: "const Set *", s2: "const Set *") -> "Datum": - s1_converted = _ffi.cast("const Set *", s1) - s2_converted = _ffi.cast("const Set *", s2) - result = _lib.distance_set_set(s1_converted, s2_converted) +def stbox_hasz(box: 'const STBox *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_hasz(box_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_value(s: "const Set *", value: "Datum") -> "Datum": - s_converted = _ffi.cast("const Set *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.distance_set_value(s_converted, value_converted) +def stbox_isgeodetic(box: 'const STBox *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_isgeodetic(box_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_span(s1: "const Span *", s2: "const Span *") -> "Datum": - s1_converted = _ffi.cast("const Span *", s1) - s2_converted = _ffi.cast("const Span *", s2) - result = _lib.distance_span_span(s1_converted, s2_converted) +def stbox_perimeter(box: 'const STBox *', spheroid: bool) -> 'double': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_perimeter(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def distance_span_value(s: "const Span *", value: "Datum") -> "Datum": - s_converted = _ffi.cast("const Span *", s) - value_converted = _ffi.cast("Datum", value) - result = _lib.distance_span_value(s_converted, value_converted) +def stbox_tmax(box: 'const STBox *') -> int: + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('TimestampTz *') + result = _lib.stbox_tmax(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def distance_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "Datum": - ss_converted = _ffi.cast("const SpanSet *", ss) - s_converted = _ffi.cast("const Span *", s) - result = _lib.distance_spanset_span(ss_converted, s_converted) +def stbox_tmax_inc(box: 'const STBox *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('bool *') + result = _lib.stbox_tmax_inc(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def distance_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "Datum": - ss1_converted = _ffi.cast("const SpanSet *", ss1) - ss2_converted = _ffi.cast("const SpanSet *", ss2) - result = _lib.distance_spanset_spanset(ss1_converted, ss2_converted) +def stbox_tmin(box: 'const STBox *') -> int: + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('TimestampTz *') + result = _lib.stbox_tmin(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def distance_spanset_value(ss: "const SpanSet *", value: "Datum") -> "Datum": - ss_converted = _ffi.cast("const SpanSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.distance_spanset_value(ss_converted, value_converted) +def stbox_tmin_inc(box: 'const STBox *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('bool *') + result = _lib.stbox_tmin_inc(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def distance_value_value(l: "Datum", r: "Datum", basetype: "meosType") -> "Datum": - l_converted = _ffi.cast("Datum", l) - r_converted = _ffi.cast("Datum", r) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.distance_value_value(l_converted, r_converted, basetype_converted) +def stbox_volume(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_volume(box_converted) _check_error() return result if result != _ffi.NULL else None -def spanbase_extent_transfn( - state: "Span *", value: "Datum", basetype: "meosType" -) -> "Span *": - state_converted = _ffi.cast("Span *", state) - value_converted = _ffi.cast("Datum", value) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.spanbase_extent_transfn( - state_converted, value_converted, basetype_converted - ) +def stbox_xmax(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('double *') + result = _lib.stbox_xmax(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def value_union_transfn( - state: "Set *", value: "Datum", basetype: "meosType" -) -> "Set *": - state_converted = _ffi.cast("Set *", state) - value_converted = _ffi.cast("Datum", value) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_union_transfn( - state_converted, value_converted, basetype_converted - ) +def stbox_xmin(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('double *') + result = _lib.stbox_xmin(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def number_tstzspan_to_tbox( - d: "Datum", basetype: "meosType", s: "const Span *" -) -> "TBox *": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - s_converted = _ffi.cast("const Span *", s) - result = _lib.number_tstzspan_to_tbox(d_converted, basetype_converted, s_converted) +def stbox_ymax(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('double *') + result = _lib.stbox_ymax(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def number_timestamptz_to_tbox(d: "Datum", basetype: "meosType", t: int) -> "TBox *": - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.number_timestamptz_to_tbox( - d_converted, basetype_converted, t_converted - ) +def stbox_ymin(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('double *') + result = _lib.stbox_ymin(box_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def tbox_set(s: "const Span *", p: "const Span *", box: "TBox *") -> None: - s_converted = _ffi.cast("const Span *", s) - p_converted = _ffi.cast("const Span *", p) - box_converted = _ffi.cast("TBox *", box) - _lib.tbox_set(s_converted, p_converted, box_converted) +def stbox_zmax(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('double *') + result = _lib.stbox_zmax(box_converted, out_result) _check_error() + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def float_set_tbox(d: float, box: "TBox *") -> None: - box_converted = _ffi.cast("TBox *", box) - _lib.float_set_tbox(d, box_converted) +def stbox_zmin(box: 'const STBox *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + out_result = _ffi.new('double *') + result = _lib.stbox_zmin(box_converted, out_result) _check_error() + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def int_set_tbox(i: int, box: "TBox *") -> None: - box_converted = _ffi.cast("TBox *", box) - _lib.int_set_tbox(i, box_converted) +def stbox_expand_space(box: 'const STBox *', d: float) -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_expand_space(box_converted, d) _check_error() + return result if result != _ffi.NULL else None -def number_set_tbox(d: "Datum", basetype: "meosType", box: "TBox *") -> None: - d_converted = _ffi.cast("Datum", d) - basetype_converted = _ffi.cast("meosType", basetype) - box_converted = _ffi.cast("TBox *", box) - _lib.number_set_tbox(d_converted, basetype_converted, box_converted) +def stbox_expand_time(box: 'const STBox *', interv: 'const Interval *') -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + interv_converted = _ffi.cast('const Interval *', interv) + result = _lib.stbox_expand_time(box_converted, interv_converted) _check_error() + return result if result != _ffi.NULL else None -def number_tbox(value: "Datum", basetype: "meosType") -> "TBox *": - value_converted = _ffi.cast("Datum", value) - basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.number_tbox(value_converted, basetype_converted) +def stbox_get_space(box: 'const STBox *') -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_get_space(box_converted) _check_error() return result if result != _ffi.NULL else None -def numset_set_tbox(s: "const Set *", box: "TBox *") -> None: - s_converted = _ffi.cast("const Set *", s) - box_converted = _ffi.cast("TBox *", box) - _lib.numset_set_tbox(s_converted, box_converted) +def stbox_quad_split(box: 'const STBox *') -> "Tuple['STBox *', 'int']": + box_converted = _ffi.cast('const STBox *', box) + count = _ffi.new('int *') + result = _lib.stbox_quad_split(box_converted, count) _check_error() + return result if result != _ffi.NULL else None, count[0] -def numspan_set_tbox(span: "const Span *", box: "TBox *") -> None: - span_converted = _ffi.cast("const Span *", span) - box_converted = _ffi.cast("TBox *", box) - _lib.numspan_set_tbox(span_converted, box_converted) +def stbox_round(box: 'const STBox *', maxdd: int) -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_round(box_converted, maxdd) _check_error() + return result if result != _ffi.NULL else None -def numspanset_set_tbox(ss: "const SpanSet *", box: "TBox *") -> None: - ss_converted = _ffi.cast("const SpanSet *", ss) - box_converted = _ffi.cast("TBox *", box) - _lib.numspanset_set_tbox(ss_converted, box_converted) +def stbox_shift_scale_time(box: 'const STBox *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL + result = _lib.stbox_shift_scale_time(box_converted, shift_converted, duration_converted) _check_error() + return result if result != _ffi.NULL else None -def timestamptz_set_tbox(t: int, box: "TBox *") -> None: - t_converted = _ffi.cast("TimestampTz", t) - box_converted = _ffi.cast("TBox *", box) - _lib.timestamptz_set_tbox(t_converted, box_converted) +def stboxarr_round(boxarr: 'const STBox *', count: int, maxdd: int) -> 'STBox *': + boxarr_converted = _ffi.cast('const STBox *', boxarr) + result = _lib.stboxarr_round(boxarr_converted, count, maxdd) _check_error() + return result if result != _ffi.NULL else None -def tstzset_set_tbox(s: "const Set *", box: "TBox *") -> None: - s_converted = _ffi.cast("const Set *", s) - box_converted = _ffi.cast("TBox *", box) - _lib.tstzset_set_tbox(s_converted, box_converted) +def stbox_set_srid(box: 'const STBox *', srid: 'int32_t') -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.stbox_set_srid(box_converted, srid_converted) _check_error() + return result if result != _ffi.NULL else None -def tstzspan_set_tbox(s: "const Span *", box: "TBox *") -> None: - s_converted = _ffi.cast("const Span *", s) - box_converted = _ffi.cast("TBox *", box) - _lib.tstzspan_set_tbox(s_converted, box_converted) +def stbox_srid(box: 'const STBox *') -> 'int32_t': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_srid(box_converted) _check_error() + return result if result != _ffi.NULL else None -def tstzspanset_set_tbox(ss: "const SpanSet *", box: "TBox *") -> None: - ss_converted = _ffi.cast("const SpanSet *", ss) - box_converted = _ffi.cast("TBox *", box) - _lib.tstzspanset_set_tbox(ss_converted, box_converted) +def stbox_transform(box: 'const STBox *', srid: 'int32_t') -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.stbox_transform(box_converted, srid_converted) _check_error() + return result if result != _ffi.NULL else None -def tbox_shift_scale_value( - box: "const TBox *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool -) -> "TBox *": - box_converted = _ffi.cast("const TBox *", box) - shift_converted = _ffi.cast("Datum", shift) - width_converted = _ffi.cast("Datum", width) - result = _lib.tbox_shift_scale_value( - box_converted, shift_converted, width_converted, hasshift, haswidth - ) +def stbox_transform_pipeline(box: 'const STBox *', pipelinestr: str, srid: 'int32_t', is_forward: bool) -> 'STBox *': + box_converted = _ffi.cast('const STBox *', box) + pipelinestr_converted = pipelinestr.encode('utf-8') + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.stbox_transform_pipeline(box_converted, pipelinestr_converted, srid_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def tbox_expand(box1: "const TBox *", box2: "TBox *") -> None: - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("TBox *", box2) - _lib.tbox_expand(box1_converted, box2_converted) +def adjacent_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.adjacent_stbox_stbox(box1_converted, box2_converted) _check_error() + return result if result != _ffi.NULL else None -def inter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - out_result = _ffi.new("TBox *") - result = _lib.inter_tbox_tbox(box1_converted, box2_converted, out_result) +def contained_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.contained_stbox_stbox(box1_converted, box2_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tboolinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tboolinst_from_mfjson(mfjson_converted) +def contains_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.contains_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tboolinst_in(string: str) -> "TInstant *": - string_converted = string.encode("utf-8") - result = _lib.tboolinst_in(string_converted) +def overlaps_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overlaps_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_mfjson(mfjson: "json_object *") -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tboolseq_from_mfjson(mfjson_converted) +def same_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.same_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_in(string: str, interp: "interpType") -> "TSequence *": - string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tboolseq_in(string_converted, interp_converted) +def above_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.above_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_from_mfjson(mfjson: "json_object *") -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tboolseqset_from_mfjson(mfjson_converted) +def after_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.after_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_in(string: str) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - result = _lib.tboolseqset_in(string_converted) +def back_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.back_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_in(string: str, temptype: "meosType") -> "Temporal *": - string_converted = string.encode("utf-8") - temptype_converted = _ffi.cast("meosType", temptype) - result = _lib.temporal_in(string_converted, temptype_converted) +def before_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.before_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_out(temp: "const Temporal *", maxdd: int) -> str: - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_out(temp_converted, maxdd) +def below_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.below_stbox_stbox(box1_converted, box2_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temparr_out(temparr: "const Temporal **", count: int, maxdd: int) -> "char **": - temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] - result = _lib.temparr_out(temparr_converted, count, maxdd) +def front_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.front_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tfloatinst_from_mfjson(mfjson_converted) +def left_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.left_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_in(string: str) -> "TInstant *": - string_converted = string.encode("utf-8") - result = _lib.tfloatinst_in(string_converted) +def overabove_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overabove_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_mfjson( - mfjson: "json_object *", interp: "interpType" -) -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_from_mfjson(mfjson_converted, interp_converted) +def overafter_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overafter_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_in(string: str, interp: "interpType") -> "TSequence *": - string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_in(string_converted, interp_converted) +def overback_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overback_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_from_mfjson( - mfjson: "json_object *", interp: "interpType" -) -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseqset_from_mfjson(mfjson_converted, interp_converted) +def overbefore_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overbefore_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_in(string: str) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - result = _lib.tfloatseqset_in(string_converted) +def overbelow_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overbelow_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_from_mfjson( - mfjson: "json_object *", spatial: bool, srid: "int32_t", temptype: "meosType" -) -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - srid_converted = _ffi.cast("int32_t", srid) - temptype_converted = _ffi.cast("meosType", temptype) - result = _lib.tinstant_from_mfjson( - mfjson_converted, spatial, srid_converted, temptype_converted - ) +def overfront_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overfront_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_in(string: str, temptype: "meosType") -> "TInstant *": - string_converted = string.encode("utf-8") - temptype_converted = _ffi.cast("meosType", temptype) - result = _lib.tinstant_in(string_converted, temptype_converted) +def overleft_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overleft_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_out(inst: "const TInstant *", maxdd: int) -> str: - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_out(inst_converted, maxdd) +def overright_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.overright_stbox_stbox(box1_converted, box2_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tintinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tintinst_from_mfjson(mfjson_converted) +def right_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.right_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tintinst_in(string: str) -> "TInstant *": - string_converted = string.encode("utf-8") - result = _lib.tintinst_in(string_converted) +def union_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *', strict: bool) -> 'STBox *': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.union_stbox_stbox(box1_converted, box2_converted, strict) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_mfjson(mfjson: "json_object *") -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tintseq_from_mfjson(mfjson_converted) +def intersection_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'STBox *': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.intersection_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_in(string: str, interp: "interpType") -> "TSequence *": - string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tintseq_in(string_converted, interp_converted) +def stbox_cmp(box1: 'const STBox *', box2: 'const STBox *') -> 'int': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_cmp(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_from_mfjson(mfjson: "json_object *") -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.tintseqset_from_mfjson(mfjson_converted) +def stbox_eq(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_eq(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_in(string: str) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - result = _lib.tintseqset_in(string_converted) +def stbox_ge(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_ge(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_from_mfjson( - mfjson: "json_object *", - spatial: bool, - srid: "int32_t", - temptype: "meosType", - interp: "interpType", -) -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - srid_converted = _ffi.cast("int32_t", srid) - temptype_converted = _ffi.cast("meosType", temptype) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_from_mfjson( - mfjson_converted, spatial, srid_converted, temptype_converted, interp_converted - ) +def stbox_gt(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_gt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_in( - string: str, temptype: "meosType", interp: "interpType" -) -> "TSequence *": - string_converted = string.encode("utf-8") - temptype_converted = _ffi.cast("meosType", temptype) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_in(string_converted, temptype_converted, interp_converted) +def stbox_le(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_le(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_out(seq: "const TSequence *", maxdd: int) -> str: - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_out(seq_converted, maxdd) +def stbox_lt(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_lt(box1_converted, box2_converted) _check_error() - result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tsequenceset_from_mfjson( - mfjson: "json_object *", - spatial: bool, - srid: "int32_t", - temptype: "meosType", - interp: "interpType", -) -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - srid_converted = _ffi.cast("int32_t", srid) - temptype_converted = _ffi.cast("meosType", temptype) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequenceset_from_mfjson( - mfjson_converted, spatial, srid_converted, temptype_converted, interp_converted - ) +def stbox_ne(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.stbox_ne(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_in( - string: str, temptype: "meosType", interp: "interpType" -) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - temptype_converted = _ffi.cast("meosType", temptype) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequenceset_in( - string_converted, temptype_converted, interp_converted - ) +def rtree_create_stbox() -> 'RTree *': + result = _lib.rtree_create_stbox() _check_error() return result if result != _ffi.NULL else None -def tsequenceset_out(ss: "const TSequenceSet *", maxdd: int) -> str: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_out(ss_converted, maxdd) +def rtree_free(rtree: 'RTree *') -> None: + rtree_converted = _ffi.cast('RTree *', rtree) + _lib.rtree_free(rtree_converted) _check_error() - result = _ffi.string(result).decode("utf-8") - return result if result != _ffi.NULL else None -def ttextinst_from_mfjson(mfjson: "json_object *") -> "TInstant *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.ttextinst_from_mfjson(mfjson_converted) +def rtree_insert(rtree: 'RTree *', box: 'STBox *', id: int) -> None: + rtree_converted = _ffi.cast('RTree *', rtree) + box_converted = _ffi.cast('STBox *', box) + id_converted = _ffi.cast('int64', id) + _lib.rtree_insert(rtree_converted, box_converted, id_converted) _check_error() - return result if result != _ffi.NULL else None -def ttextinst_in(string: str) -> "TInstant *": - string_converted = string.encode("utf-8") - result = _lib.ttextinst_in(string_converted) +def rtree_search(rtree: 'const RTree *', query: 'const STBox *') -> "Tuple['int *', 'int']": + rtree_converted = _ffi.cast('const RTree *', rtree) + query_converted = _ffi.cast('const STBox *', query) + count = _ffi.new('int *') + result = _lib.rtree_search(rtree_converted, query_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ttextseq_from_mfjson(mfjson: "json_object *") -> "TSequence *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.ttextseq_from_mfjson(mfjson_converted) +def tgeo_out(temp: 'const Temporal *', maxdd: int) -> str: + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_out(temp_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def ttextseq_in(string: str, interp: "interpType") -> "TSequence *": - string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.ttextseq_in(string_converted, interp_converted) +def tgeogpoint_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeogpoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_from_mfjson(mfjson: "json_object *") -> "TSequenceSet *": - mfjson_converted = _ffi.cast("json_object *", mfjson) - result = _lib.ttextseqset_from_mfjson(mfjson_converted) +def tgeogpoint_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeogpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_in(string: str) -> "TSequenceSet *": - string_converted = string.encode("utf-8") - result = _lib.ttextseqset_in(string_converted) +def tgeography_from_mfjson(mfjson: str) -> 'Temporal *': + mfjson_converted = mfjson.encode('utf-8') + result = _lib.tgeography_from_mfjson(mfjson_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_mfjson(mfjson: str, temptype: "meosType") -> "Temporal *": - mfjson_converted = mfjson.encode("utf-8") - temptype_converted = _ffi.cast("meosType", temptype) - result = _lib.temporal_from_mfjson(mfjson_converted, temptype_converted) +def tgeography_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeography_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_base_temp( - value: "Datum", temptype: "meosType", temp: "const Temporal *" -) -> "Temporal *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_from_base_temp( - value_converted, temptype_converted, temp_converted - ) +def tgeometry_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeometry_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_copy(inst: "const TInstant *") -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_copy(inst_converted) +def tgeometry_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeometry_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_make(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tinstant_make(value_converted, temptype_converted, t_converted) +def tgeompoint_from_mfjson(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeompoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_make_free(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tinstant_make_free(value_converted, temptype_converted, t_converted) +def tgeompoint_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tgeompoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_copy(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_copy(seq_converted) +def tspatial_as_ewkt(temp: 'const Temporal *', maxdd: int) -> str: + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tspatial_as_ewkt(temp_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tsequence_from_base_temp( - value: "Datum", temptype: "meosType", seq: "const TSequence *" -) -> "TSequence *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_from_base_temp( - value_converted, temptype_converted, seq_converted - ) +def tspatial_as_text(temp: 'const Temporal *', maxdd: int) -> str: + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tspatial_as_text(temp_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tsequence_from_base_tstzset( - value: "Datum", temptype: "meosType", s: "const Set *" -) -> "TSequence *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tsequence_from_base_tstzset( - value_converted, temptype_converted, s_converted - ) +def tgeo_from_base_temp(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_from_base_temp(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_from_base_tstzspan( - value: "Datum", temptype: "meosType", s: "const Span *", interp: "interpType" -) -> "TSequence *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_from_base_tstzspan( - value_converted, temptype_converted, s_converted, interp_converted - ) +def tgeoinst_make(gs: 'const GSERIALIZED *', t: int) -> 'TInstant *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tgeoinst_make(gs_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_make_exp( - instants: "const TInstant **", - count: int, - maxcount: int, - lower_inc: bool, - upper_inc: bool, - interp: "interpType", - normalize: bool, -) -> "TSequence *": - instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_make_exp( - instants_converted, - count, - maxcount, - lower_inc, - upper_inc, - interp_converted, - normalize, - ) +def tgeoseq_from_base_tstzset(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'TSequence *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tgeoseq_from_base_tstzset(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_make_free( - instants: "TInstant **", - count: int, - lower_inc: bool, - upper_inc: bool, - interp: "interpType", - normalize: bool, -) -> "TSequence *": - instants_converted = [_ffi.cast("TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_make_free( - instants_converted, count, lower_inc, upper_inc, interp_converted, normalize - ) +def tgeoseq_from_base_tstzspan(gs: 'const GSERIALIZED *', s: 'const Span *', interp: 'interpType') -> 'TSequence *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Span *', s) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tgeoseq_from_base_tstzspan(gs_converted, s_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_copy(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_copy(ss_converted) +def tgeoseqset_from_base_tstzspanset(gs: 'const GSERIALIZED *', ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + ss_converted = _ffi.cast('const SpanSet *', ss) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tgeoseqset_from_base_tstzspanset(gs_converted, ss_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tseqsetarr_to_tseqset( - seqsets: "TSequenceSet **", count: int, totalseqs: int -) -> "TSequenceSet *": - seqsets_converted = [_ffi.cast("TSequenceSet *", x) for x in seqsets] - result = _lib.tseqsetarr_to_tseqset(seqsets_converted, count, totalseqs) +def tpoint_from_base_temp(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_from_base_temp(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_from_base_temp( - value: "Datum", temptype: "meosType", ss: "const TSequenceSet *" -) -> "TSequenceSet *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_from_base_temp( - value_converted, temptype_converted, ss_converted - ) +def tpointinst_make(gs: 'const GSERIALIZED *', t: int) -> 'TInstant *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tpointinst_make(gs_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_from_base_tstzspanset( - value: "Datum", temptype: "meosType", ss: "const SpanSet *", interp: "interpType" -) -> "TSequenceSet *": - value_converted = _ffi.cast("Datum", value) - temptype_converted = _ffi.cast("meosType", temptype) - ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequenceset_from_base_tstzspanset( - value_converted, temptype_converted, ss_converted, interp_converted - ) +def tpointseq_from_base_tstzset(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'TSequence *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tpointseq_from_base_tstzset(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_exp( - sequences: "const TSequence **", count: int, maxcount: int, normalize: bool -) -> "TSequenceSet *": - sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] - result = _lib.tsequenceset_make_exp(sequences_converted, count, maxcount, normalize) +def tpointseq_from_base_tstzspan(gs: 'const GSERIALIZED *', s: 'const Span *', interp: 'interpType') -> 'TSequence *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + s_converted = _ffi.cast('const Span *', s) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tpointseq_from_base_tstzspan(gs_converted, s_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_free( - sequences: "TSequence **", count: int, normalize: bool -) -> "TSequenceSet *": - sequences_converted = [_ffi.cast("TSequence *", x) for x in sequences] - result = _lib.tsequenceset_make_free(sequences_converted, count, normalize) +def tpointseq_make_coords(xcoords: 'const double *', ycoords: 'const double *', zcoords: 'const double *', times: int, count: int, srid: int, geodetic: bool, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': + xcoords_converted = _ffi.cast('const double *', xcoords) + ycoords_converted = _ffi.cast('const double *', ycoords) + zcoords_converted = _ffi.cast('const double *', zcoords) + times_converted = _ffi.cast('const TimestampTz *', times) + srid_converted = _ffi.cast('int32', srid) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tpointseq_make_coords(xcoords_converted, ycoords_converted, zcoords_converted, times_converted, count, srid_converted, geodetic, lower_inc, upper_inc, interp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def temporal_set_tstzspan(temp: "const Temporal *", s: "Span *") -> None: - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("Span *", s) - _lib.temporal_set_tstzspan(temp_converted, s_converted) +def tpointseqset_from_base_tstzspanset(gs: 'const GSERIALIZED *', ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + ss_converted = _ffi.cast('const SpanSet *', ss) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tpointseqset_from_base_tstzspanset(gs_converted, ss_converted, interp_converted) _check_error() + return result if result != _ffi.NULL else None -def tinstant_set_tstzspan(inst: "const TInstant *", s: "Span *") -> None: - inst_converted = _ffi.cast("const TInstant *", inst) - s_converted = _ffi.cast("Span *", s) - _lib.tinstant_set_tstzspan(inst_converted, s_converted) +def box3d_to_stbox(box: 'const BOX3D *') -> 'STBox *': + box_converted = _ffi.cast('const BOX3D *', box) + result = _lib.box3d_to_stbox(box_converted) _check_error() + return result if result != _ffi.NULL else None -def tnumber_set_tbox(temp: "const Temporal *", box: "TBox *") -> None: - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("TBox *", box) - _lib.tnumber_set_tbox(temp_converted, box_converted) +def gbox_to_stbox(box: 'const GBOX *') -> 'STBox *': + box_converted = _ffi.cast('const GBOX *', box) + result = _lib.gbox_to_stbox(box_converted) _check_error() + return result if result != _ffi.NULL else None -def tnumberinst_set_tbox(inst: "const TInstant *", box: "TBox *") -> None: - inst_converted = _ffi.cast("const TInstant *", inst) - box_converted = _ffi.cast("TBox *", box) - _lib.tnumberinst_set_tbox(inst_converted, box_converted) +def geomeas_to_tpoint(gs: 'const GSERIALIZED *') -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geomeas_to_tpoint(gs_converted) _check_error() + return result if result != _ffi.NULL else None -def tnumberseq_set_tbox(seq: "const TSequence *", box: "TBox *") -> None: - seq_converted = _ffi.cast("const TSequence *", seq) - box_converted = _ffi.cast("TBox *", box) - _lib.tnumberseq_set_tbox(seq_converted, box_converted) +def tgeogpoint_to_tgeography(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeogpoint_to_tgeography(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def tnumberseqset_set_tbox(ss: "const TSequenceSet *", box: "TBox *") -> None: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - box_converted = _ffi.cast("TBox *", box) - _lib.tnumberseqset_set_tbox(ss_converted, box_converted) +def tgeography_to_tgeogpoint(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeography_to_tgeogpoint(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def tsequence_set_tstzspan(seq: "const TSequence *", s: "Span *") -> None: - seq_converted = _ffi.cast("const TSequence *", seq) - s_converted = _ffi.cast("Span *", s) - _lib.tsequence_set_tstzspan(seq_converted, s_converted) +def tgeography_to_tgeometry(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeography_to_tgeometry(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def tsequenceset_set_tstzspan(ss: "const TSequenceSet *", s: "Span *") -> None: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - s_converted = _ffi.cast("Span *", s) - _lib.tsequenceset_set_tstzspan(ss_converted, s_converted) +def tgeometry_to_tgeography(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeometry_to_tgeography(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def temporal_end_inst(temp: "const Temporal *") -> "const TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_end_inst(temp_converted) +def tgeometry_to_tgeompoint(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeometry_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_value(temp: "const Temporal *") -> "Datum": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_end_value(temp_converted) +def tgeompoint_to_tgeometry(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeompoint_to_tgeometry(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_inst_n(temp: "const Temporal *", n: int) -> "const TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_inst_n(temp_converted, n) +def tpoint_as_mvtgeom(temp: 'const Temporal *', bounds: 'const STBox *', extent: 'int32_t', buffer: 'int32_t', clip_geom: bool, gsarr: 'GSERIALIZED **', timesarr: 'int64 **') -> "Tuple['bool', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + bounds_converted = _ffi.cast('const STBox *', bounds) + extent_converted = _ffi.cast('int32_t', extent) + buffer_converted = _ffi.cast('int32_t', buffer) + gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] + timesarr_converted = [_ffi.cast('int64 *', x) for x in timesarr] + count = _ffi.new('int *') + result = _lib.tpoint_as_mvtgeom(temp_converted, bounds_converted, extent_converted, buffer_converted, clip_geom, gsarr_converted, timesarr_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tpoint_tfloat_to_geomeas(tpoint: 'const Temporal *', measure: 'const Temporal *', segmentize: bool) -> 'GSERIALIZED **': + tpoint_converted = _ffi.cast('const Temporal *', tpoint) + measure_converted = _ffi.cast('const Temporal *', measure) + out_result = _ffi.new('GSERIALIZED **') + result = _lib.tpoint_tfloat_to_geomeas(tpoint_converted, measure_converted, segmentize, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tspatial_to_stbox(temp: 'const Temporal *') -> 'STBox *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tspatial_to_stbox(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_instants_p( - temp: "const Temporal *", -) -> "Tuple['const TInstant **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_instants_p(temp_converted, count) +def bearing_point_point(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': + gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) + gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) + out_result = _ffi.new('double *') + result = _lib.bearing_point_point(gs1_converted, gs2_converted, out_result) _check_error() - return result if result != _ffi.NULL else None, count[0] + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None -def temporal_max_value(temp: "const Temporal *") -> "Datum": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_max_value(temp_converted) +def bearing_tpoint_point(temp: 'const Temporal *', gs: 'const GSERIALIZED *', invert: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.bearing_tpoint_point(temp_converted, gs_converted, invert) _check_error() return result if result != _ffi.NULL else None -def temporal_mem_size(temp: "const Temporal *") -> "size_t": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_mem_size(temp_converted) +def bearing_tpoint_tpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.bearing_tpoint_tpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_value(temp: "const Temporal *") -> "Datum": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_min_value(temp_converted) +def tgeo_centroid(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_centroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_sequences_p( - temp: "const Temporal *", -) -> "Tuple['const TSequence **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_sequences_p(temp_converted, count) +def tgeo_convex_hull(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_convex_hull(temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_set_bbox(temp: "const Temporal *", box: "void *") -> None: - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("void *", box) - _lib.temporal_set_bbox(temp_converted, box_converted) +def tgeo_end_value(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_end_value(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def temporal_start_inst(temp: "const Temporal *") -> "const TInstant *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_start_inst(temp_converted) +def tgeo_start_value(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_value(temp: "const Temporal *") -> "Datum": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_start_value(temp_converted) +def tgeo_traversed_area(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_traversed_area(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_values_p(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_values_p(temp_converted, count) +def tgeo_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool, value: 'GSERIALIZED **') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + value_converted = [_ffi.cast('GSERIALIZED *', x) for x in value] + result = _lib.tgeo_value_at_timestamptz(temp_converted, t_converted, strict, value_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_value_n(temp: "const Temporal *", n: int) -> "Datum *": - temp_converted = _ffi.cast("const Temporal *", temp) - out_result = _ffi.new("Datum *") - result = _lib.temporal_value_n(temp_converted, n, out_result) +def tgeo_value_n(temp: 'const Temporal *', n: int) -> 'GSERIALIZED **': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('GSERIALIZED **') + result = _lib.tgeo_value_n(temp_converted, n, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def temporal_values(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_values(temp_converted, count) +def tgeo_values(temp: 'const Temporal *') -> "Tuple['GSERIALIZED **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.tgeo_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tinstant_hash(inst: "const TInstant *") -> "uint32": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_hash(inst_converted) +def tpoint_angular_difference(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_insts(inst: "const TInstant *") -> "Tuple['const TInstant **', 'int']": - inst_converted = _ffi.cast("const TInstant *", inst) - count = _ffi.new("int *") - result = _lib.tinstant_insts(inst_converted, count) +def tpoint_azimuth(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_azimuth(temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tinstant_set_bbox(inst: "const TInstant *", box: "void *") -> None: - inst_converted = _ffi.cast("const TInstant *", inst) - box_converted = _ffi.cast("void *", box) - _lib.tinstant_set_bbox(inst_converted, box_converted) +def tpoint_cumulative_length(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_cumulative_length(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def tinstant_time(inst: "const TInstant *") -> "SpanSet *": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_time(inst_converted) +def tpoint_direction(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('double *') + result = _lib.tpoint_direction(temp_converted, out_result) + _check_error() + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None + + +def tpoint_get_x(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_get_x(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_timestamps(inst: "const TInstant *") -> "Tuple['TimestampTz *', 'int']": - inst_converted = _ffi.cast("const TInstant *", inst) - count = _ffi.new("int *") - result = _lib.tinstant_timestamps(inst_converted, count) +def tpoint_get_y(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_get_y(temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tinstant_value_p(inst: "const TInstant *") -> "Datum": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_value_p(inst_converted) +def tpoint_get_z(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_get_z(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value(inst: "const TInstant *") -> "Datum": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tinstant_value(inst_converted) +def tpoint_is_simple(temp: 'const Temporal *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_is_simple(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value_at_timestamptz(inst: "const TInstant *", t: int) -> "Datum *": - inst_converted = _ffi.cast("const TInstant *", inst) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("Datum *") - result = _lib.tinstant_value_at_timestamptz(inst_converted, t_converted, out_result) +def tpoint_length(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_length(temp_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tinstant_values_p(inst: "const TInstant *") -> "Tuple['Datum *', 'int']": - inst_converted = _ffi.cast("const TInstant *", inst) - count = _ffi.new("int *") - result = _lib.tinstant_values_p(inst_converted, count) +def tpoint_trajectory(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_trajectory(temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_set_span(temp: "const Temporal *", span: "Span *") -> None: - temp_converted = _ffi.cast("const Temporal *", temp) - span_converted = _ffi.cast("Span *", span) - _lib.tnumber_set_span(temp_converted, span_converted) +def tpoint_twcentroid(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_twcentroid(temp_converted) _check_error() + return result if result != _ffi.NULL else None -def tnumberinst_valuespans(inst: "const TInstant *") -> "SpanSet *": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tnumberinst_valuespans(inst_converted) +def tgeo_affine(temp: 'const Temporal *', a: 'const AFFINE *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + a_converted = _ffi.cast('const AFFINE *', a) + result = _lib.tgeo_affine(temp_converted, a_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_valuespans(seq: "const TSequence *") -> "SpanSet *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tnumberseq_valuespans(seq_converted) +def tgeo_scale(temp: 'const Temporal *', scale: 'const GSERIALIZED *', sorigin: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + scale_converted = _ffi.cast('const GSERIALIZED *', scale) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + result = _lib.tgeo_scale(temp_converted, scale_converted, sorigin_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_valuespans(ss: "const TSequenceSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tnumberseqset_valuespans(ss_converted) +def tpoint_make_simple(temp: 'const Temporal *') -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.tpoint_make_simple(temp_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tspatial_srid(temp: 'const Temporal *') -> 'int32_t': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tspatial_srid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_duration(seq: "const TSequence *") -> "Interval *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_duration(seq_converted) +def tspatial_set_srid(temp: 'const Temporal *', srid: 'int32_t') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.tspatial_set_srid(temp_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_end_timestamptz(seq: "const TSequence *") -> "TimestampTz": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_end_timestamptz(seq_converted) +def tspatial_transform(temp: 'const Temporal *', srid: 'int32_t') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.tspatial_transform(temp_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_hash(seq: "const TSequence *") -> "uint32": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_hash(seq_converted) +def tspatial_transform_pipeline(temp: 'const Temporal *', pipelinestr: str, srid: 'int32_t', is_forward: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + pipelinestr_converted = pipelinestr.encode('utf-8') + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.tspatial_transform_pipeline(temp_converted, pipelinestr_converted, srid_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def tsequence_insts_p(seq: "const TSequence *") -> "const TInstant **": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_insts_p(seq_converted) +def tgeo_at_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tgeo_at_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_inst(seq: "const TSequence *") -> "const TInstant *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_max_inst(seq_converted) +def tgeo_at_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tgeo_at_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_val(seq: "const TSequence *") -> "Datum": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_max_val(seq_converted) +def tgeo_at_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.tgeo_at_value(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tgeo_minus_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tgeo_minus_geom(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tgeo_minus_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tgeo_minus_stbox(temp_converted, box_converted, border_inc) + _check_error() + return result if result != _ffi.NULL else None + + +def tgeo_minus_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.tgeo_minus_value(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tpoint_at_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *', zspan: 'const Span *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + zspan_converted = _ffi.cast('const Span *', zspan) + result = _lib.tpoint_at_geom(temp_converted, gs_converted, zspan_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tpoint_at_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.tpoint_at_value(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tpoint_minus_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *', zspan: 'const Span *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + zspan_converted = _ffi.cast('const Span *', zspan) + result = _lib.tpoint_minus_geom(temp_converted, gs_converted, zspan_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tpoint_minus_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('GSERIALIZED *', gs) + result = _lib.tpoint_minus_value(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_eq_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_eq_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_eq_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.always_eq_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_eq_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.always_eq_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ne_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_ne_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ne_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.always_ne_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ne_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.always_ne_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_eq_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_eq_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_eq_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.ever_eq_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_eq_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.ever_eq_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_ne_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.ever_ne_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.ever_ne_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def teq_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.teq_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def teq_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.teq_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tne_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tne_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tne_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tne_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tgeo_stboxes(temp: 'const Temporal *') -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.tgeo_stboxes(temp_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tgeo_space_boxes(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *', bitmatrix: bool, border_inc: bool) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + count = _ffi.new('int *') + result = _lib.tgeo_space_boxes(temp_converted, xsize, ysize, zsize, sorigin_converted, bitmatrix, border_inc, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tgeo_space_time_boxes(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, duration: 'const Interval *', sorigin: 'const GSERIALIZED *', torigin: int, bitmatrix: bool, border_inc: bool) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tgeo_space_time_boxes(temp_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted, bitmatrix, border_inc, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tgeo_split_each_n_stboxes(temp: 'const Temporal *', elem_count: int) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.tgeo_split_each_n_stboxes(temp_converted, elem_count, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tgeo_split_n_stboxes(temp: 'const Temporal *', box_count: int) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.tgeo_split_n_stboxes(temp_converted, box_count, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def adjacent_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.adjacent_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adjacent_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.adjacent_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adjacent_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.adjacent_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.contained_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.contained_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.contained_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contains_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.contains_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contains_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.contains_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contains_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.contains_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overlaps_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overlaps_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overlaps_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overlaps_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overlaps_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overlaps_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def same_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.same_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def same_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.same_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def same_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.same_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def above_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.above_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def above_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.above_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def above_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.above_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def after_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.after_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def after_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.after_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def after_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.after_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def back_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.back_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def back_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.back_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def back_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.back_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def before_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.before_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def before_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.before_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def before_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.before_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def below_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.below_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def below_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.below_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def below_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.below_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def front_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.front_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def front_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.front_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def front_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.front_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.left_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.left_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.left_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overabove_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overabove_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overabove_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overabove_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overabove_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overabove_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overafter_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overafter_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overafter_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overafter_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overafter_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overafter_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overback_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overback_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overback_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overback_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overback_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overback_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overbefore_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overbefore_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overbefore_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overbefore_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overbefore_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overbefore_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overbelow_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overbelow_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overbelow_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overbelow_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overbelow_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overbelow_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overfront_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overfront_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overfront_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overfront_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overfront_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overfront_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overleft_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overleft_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overleft_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.overright_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.overright_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.overright_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': + box_converted = _ffi.cast('const STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.right_stbox_tspatial(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.right_tspatial_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.right_tspatial_tspatial(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def acontains_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.acontains_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def acontains_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.acontains_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def acontains_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.acontains_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adisjoint_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.adisjoint_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adisjoint_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.adisjoint_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adwithin_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', dist: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.adwithin_tgeo_geo(temp_converted, gs_converted, dist) + _check_error() + return result if result != _ffi.NULL else None + + +def adwithin_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', dist: float) -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.adwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist) + _check_error() + return result if result != _ffi.NULL else None + + +def aintersects_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.aintersects_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def aintersects_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.aintersects_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def atouches_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.atouches_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def atouches_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.atouches_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def atouches_tpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.atouches_tpoint_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def econtains_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.econtains_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def econtains_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.econtains_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def econtains_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.econtains_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ecovers_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ecovers_geo_tgeo(gs_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ecovers_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.ecovers_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ecovers_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.ecovers_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def edisjoint_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.edisjoint_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def edisjoint_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.edisjoint_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def edwithin_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', dist: float) -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.edwithin_tgeo_geo(temp_converted, gs_converted, dist) + _check_error() + return result if result != _ffi.NULL else None + + +def edwithin_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', dist: float) -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.edwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist) + _check_error() + return result if result != _ffi.NULL else None + + +def eintersects_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.eintersects_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def eintersects_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.eintersects_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def etouches_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.etouches_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def etouches_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.etouches_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def etouches_tpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.etouches_tpoint_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tcontains_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tcontains_geo_tgeo(gs_converted, temp_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tcontains_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tcontains_tgeo_geo(temp_converted, gs_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tcontains_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tcontains_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tcovers_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tcovers_geo_tgeo(gs_converted, temp_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tcovers_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tcovers_tgeo_geo(temp_converted, gs_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tcovers_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tcovers_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdisjoint_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tdisjoint_geo_tgeo(gs_converted, temp_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdisjoint_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tdisjoint_tgeo_geo(temp_converted, gs_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdisjoint_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tdisjoint_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdwithin_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', dist: float, restr: bool, atvalue: bool) -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tdwithin_geo_tgeo(gs_converted, temp_converted, dist, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdwithin_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', dist: float, restr: bool, atvalue: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tdwithin_tgeo_geo(temp_converted, gs_converted, dist, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdwithin_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', dist: float, restr: bool, atvalue: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tdwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tintersects_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tintersects_geo_tgeo(gs_converted, temp_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tintersects_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tintersects_tgeo_geo(temp_converted, gs_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tintersects_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tintersects_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def ttouches_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ttouches_geo_tgeo(gs_converted, temp_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def ttouches_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.ttouches_tgeo_geo(temp_converted, gs_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def ttouches_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.ttouches_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) + _check_error() + return result if result != _ffi.NULL else None + + +def tdistance_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tdistance_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tdistance_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tdistance_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_stbox_geo(box: 'const STBox *', gs: 'const GSERIALIZED *') -> 'double': + box_converted = _ffi.cast('const STBox *', box) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.nad_stbox_geo(box_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'double': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + result = _lib.nad_stbox_stbox(box1_converted, box2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.nad_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tgeo_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.nad_tgeo_stbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.nad_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nai_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.nai_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nai_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'TInstant *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.nai_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def shortestline_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.shortestline_tgeo_geo(temp_converted, gs_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def shortestline_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'GSERIALIZED *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.shortestline_tgeo_tgeo(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tpoint_tcentroid_finalfn(state: 'SkipList *') -> 'Temporal *': + state_converted = _ffi.cast('SkipList *', state) + result = _lib.tpoint_tcentroid_finalfn(state_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tpoint_tcentroid_transfn(state: 'SkipList *', temp: 'Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('Temporal *', temp) + result = _lib.tpoint_tcentroid_transfn(state_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tspatial_extent_transfn(box: 'STBox *', temp: 'const Temporal *') -> 'STBox *': + box_converted = _ffi.cast('STBox *', box) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tspatial_extent_transfn(box_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def stbox_get_space_tile(point: 'const GSERIALIZED *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *') -> 'STBox *': + point_converted = _ffi.cast('const GSERIALIZED *', point) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + result = _lib.stbox_get_space_tile(point_converted, xsize, ysize, zsize, sorigin_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def stbox_get_space_time_tile(point: 'const GSERIALIZED *', t: int, xsize: float, ysize: float, zsize: float, duration: 'const Interval *', sorigin: 'const GSERIALIZED *', torigin: int) -> 'STBox *': + point_converted = _ffi.cast('const GSERIALIZED *', point) + t_converted = _ffi.cast('TimestampTz', t) + duration_converted = _ffi.cast('const Interval *', duration) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + result = _lib.stbox_get_space_time_tile(point_converted, t_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def stbox_get_time_tile(t: int, duration: 'const Interval *', torigin: int) -> 'STBox *': + t_converted = _ffi.cast('TimestampTz', t) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + result = _lib.stbox_get_time_tile(t_converted, duration_converted, torigin_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def stbox_space_tiles(bounds: 'const STBox *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *', border_inc: bool) -> "Tuple['STBox *', 'int']": + bounds_converted = _ffi.cast('const STBox *', bounds) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + count = _ffi.new('int *') + result = _lib.stbox_space_tiles(bounds_converted, xsize, ysize, zsize, sorigin_converted, border_inc, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def stbox_space_time_tiles(bounds: 'const STBox *', xsize: float, ysize: float, zsize: float, duration: "Optional['const Interval *']", sorigin: 'const GSERIALIZED *', torigin: int, border_inc: bool) -> "Tuple['STBox *', 'int']": + bounds_converted = _ffi.cast('const STBox *', bounds) + duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.stbox_space_time_tiles(bounds_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted, border_inc, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def stbox_time_tiles(bounds: 'const STBox *', duration: 'const Interval *', torigin: int, border_inc: bool) -> "Tuple['STBox *', 'int']": + bounds_converted = _ffi.cast('const STBox *', bounds) + duration_converted = _ffi.cast('const Interval *', duration) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.stbox_time_tiles(bounds_converted, duration_converted, torigin_converted, border_inc, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tgeo_space_split(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *', bitmatrix: bool, border_inc: bool, space_bins: 'GSERIALIZED ***') -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + space_bins_converted = [_ffi.cast('GSERIALIZED **', x) for x in space_bins] + count = _ffi.new('int *') + result = _lib.tgeo_space_split(temp_converted, xsize, ysize, zsize, sorigin_converted, bitmatrix, border_inc, space_bins_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tgeo_space_time_split(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, duration: 'const Interval *', sorigin: 'const GSERIALIZED *', torigin: int, bitmatrix: bool, border_inc: bool, space_bins: 'GSERIALIZED ***', time_bins: 'TimestampTz **') -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + duration_converted = _ffi.cast('const Interval *', duration) + sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + space_bins_converted = [_ffi.cast('GSERIALIZED **', x) for x in space_bins] + time_bins_converted = [_ffi.cast('TimestampTz *', x) for x in time_bins] + count = _ffi.new('int *') + result = _lib.tgeo_space_time_split(temp_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted, bitmatrix, border_inc, space_bins_converted, time_bins_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def geo_cluster_kmeans(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t', k: 'uint32_t') -> 'int *': + geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] + ngeoms_converted = _ffi.cast('uint32_t', ngeoms) + k_converted = _ffi.cast('uint32_t', k) + result = _lib.geo_cluster_kmeans(geoms_converted, ngeoms_converted, k_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def geo_cluster_dbscan(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t', tolerance: float, minpoints: int) -> 'uint32_t *': + geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] + ngeoms_converted = _ffi.cast('uint32_t', ngeoms) + result = _lib.geo_cluster_dbscan(geoms_converted, ngeoms_converted, tolerance, minpoints) + _check_error() + return result if result != _ffi.NULL else None + + +def geo_cluster_intersecting(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t') -> "Tuple['GSERIALIZED **', 'int']": + geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] + ngeoms_converted = _ffi.cast('uint32_t', ngeoms) + count = _ffi.new('int *') + result = _lib.geo_cluster_intersecting(geoms_converted, ngeoms_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def geo_cluster_within(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t', tolerance: float) -> "Tuple['GSERIALIZED **', 'int']": + geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] + ngeoms_converted = _ffi.cast('uint32_t', ngeoms) + count = _ffi.new('int *') + result = _lib.geo_cluster_within(geoms_converted, ngeoms_converted, tolerance, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def gsl_get_generation_rng() -> 'gsl_rng *': + result = _lib.gsl_get_generation_rng() + _check_error() + return result if result != _ffi.NULL else None + + +def gsl_get_aggregation_rng() -> 'gsl_rng *': + result = _lib.gsl_get_aggregation_rng() + _check_error() + return result if result != _ffi.NULL else None + + +def datum_ceil(d: 'Datum') -> 'Datum': + d_converted = _ffi.cast('Datum', d) + result = _lib.datum_ceil(d_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_degrees(d: 'Datum', normalize: 'Datum') -> 'Datum': + d_converted = _ffi.cast('Datum', d) + normalize_converted = _ffi.cast('Datum', normalize) + result = _lib.datum_degrees(d_converted, normalize_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_float_round(value: 'Datum', size: 'Datum') -> 'Datum': + value_converted = _ffi.cast('Datum', value) + size_converted = _ffi.cast('Datum', size) + result = _lib.datum_float_round(value_converted, size_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_floor(d: 'Datum') -> 'Datum': + d_converted = _ffi.cast('Datum', d) + result = _lib.datum_floor(d_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_hash(d: 'Datum', basetype: 'meosType') -> 'uint32': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.datum_hash(d_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_hash_extended(d: 'Datum', basetype: 'meosType', seed: int) -> 'uint64': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + seed_converted = _ffi.cast('uint64', seed) + result = _lib.datum_hash_extended(d_converted, basetype_converted, seed_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datum_radians(d: 'Datum') -> 'Datum': + d_converted = _ffi.cast('Datum', d) + result = _lib.datum_radians(d_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def floatspan_round_set(s: 'const Span *', maxdd: int) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + out_result = _ffi.new('Span *') + _lib.floatspan_round_set(s_converted, maxdd, out_result) + _check_error() + return out_result if out_result!= _ffi.NULL else None + + + +def set_in(string: str, basetype: 'meosType') -> 'Set *': + string_converted = string.encode('utf-8') + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.set_in(string_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_out(s: 'const Set *', maxdd: int) -> str: + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_out(s_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def span_in(string: str, spantype: 'meosType') -> 'Span *': + string_converted = string.encode('utf-8') + spantype_converted = _ffi.cast('meosType', spantype) + result = _lib.span_in(string_converted, spantype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def span_out(s: 'const Span *', maxdd: int) -> str: + s_converted = _ffi.cast('const Span *', s) + result = _lib.span_out(s_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def spanset_in(string: str, spantype: 'meosType') -> 'SpanSet *': + string_converted = string.encode('utf-8') + spantype_converted = _ffi.cast('meosType', spantype) + result = _lib.spanset_in(string_converted, spantype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_out(ss: 'const SpanSet *', maxdd: int) -> str: + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.spanset_out(ss_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def set_make(values: 'const Datum *', count: int, basetype: 'meosType', order: bool) -> 'Set *': + values_converted = _ffi.cast('const Datum *', values) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.set_make(values_converted, count, basetype_converted, order) + _check_error() + return result if result != _ffi.NULL else None + + +def set_make_exp(values: 'const Datum *', count: int, maxcount: int, basetype: 'meosType', order: bool) -> 'Set *': + values_converted = _ffi.cast('const Datum *', values) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.set_make_exp(values_converted, count, maxcount, basetype_converted, order) + _check_error() + return result if result != _ffi.NULL else None + + +def set_make_free(values: 'Datum *', count: int, basetype: 'meosType', order: bool) -> 'Set *': + values_converted = _ffi.cast('Datum *', values) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.set_make_free(values_converted, count, basetype_converted, order) + _check_error() + return result if result != _ffi.NULL else None + + +def span_make(lower: 'Datum', upper: 'Datum', lower_inc: bool, upper_inc: bool, basetype: 'meosType') -> 'Span *': + lower_converted = _ffi.cast('Datum', lower) + upper_converted = _ffi.cast('Datum', upper) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.span_make(lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def span_set(lower: 'Datum', upper: 'Datum', lower_inc: bool, upper_inc: bool, basetype: 'meosType', spantype: 'meosType', s: 'Span *') -> None: + lower_converted = _ffi.cast('Datum', lower) + upper_converted = _ffi.cast('Datum', upper) + basetype_converted = _ffi.cast('meosType', basetype) + spantype_converted = _ffi.cast('meosType', spantype) + s_converted = _ffi.cast('Span *', s) + _lib.span_set(lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted, spantype_converted, s_converted) + _check_error() + + +def spanset_make_exp(spans: 'Span *', count: int, maxcount: int, normalize: bool, order: bool) -> 'SpanSet *': + spans_converted = _ffi.cast('Span *', spans) + result = _lib.spanset_make_exp(spans_converted, count, maxcount, normalize, order) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_make_free(spans: 'Span *', count: int, normalize: bool, order: bool) -> 'SpanSet *': + spans_converted = _ffi.cast('Span *', spans) + result = _lib.spanset_make_free(spans_converted, count, normalize, order) + _check_error() + return result if result != _ffi.NULL else None + + +def set_span(s: 'const Set *') -> 'Span *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_span(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_spanset(s: 'const Set *') -> 'SpanSet *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_spanset(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def value_set_span(value: 'Datum', basetype: 'meosType', s: 'Span *') -> None: + value_converted = _ffi.cast('Datum', value) + basetype_converted = _ffi.cast('meosType', basetype) + s_converted = _ffi.cast('Span *', s) + _lib.value_set_span(value_converted, basetype_converted, s_converted) + _check_error() + + +def value_set(d: 'Datum', basetype: 'meosType') -> 'Set *': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.value_set(d_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def value_span(d: 'Datum', basetype: 'meosType') -> 'Span *': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.value_span(d_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def value_spanset(d: 'Datum', basetype: 'meosType') -> 'SpanSet *': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.value_spanset(d_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def numspan_width(s: 'const Span *') -> 'Datum': + s_converted = _ffi.cast('const Span *', s) + result = _lib.numspan_width(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def numspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'Datum': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.numspanset_width(ss_converted, boundspan) + _check_error() + return result if result != _ffi.NULL else None + + +def set_end_value(s: 'const Set *') -> 'Datum': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_end_value(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_mem_size(s: 'const Set *') -> 'int': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_mem_size(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_set_subspan(s: 'const Set *', minidx: int, maxidx: int) -> 'Span *': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('Span *') + _lib.set_set_subspan(s_converted, minidx, maxidx, out_result) + _check_error() + return out_result if out_result!= _ffi.NULL else None + + + +def set_set_span(s: 'const Set *') -> 'Span *': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('Span *') + _lib.set_set_span(s_converted, out_result) + _check_error() + return out_result if out_result!= _ffi.NULL else None + + + +def set_start_value(s: 'const Set *') -> 'Datum': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_start_value(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_value_n(s: 'const Set *', n: int) -> 'Datum *': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('Datum *') + result = _lib.set_value_n(s_converted, n, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def set_vals(s: 'const Set *') -> 'Datum *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_vals(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def set_values(s: 'const Set *') -> 'Datum *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_values(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_lower(ss: 'const SpanSet *') -> 'Datum': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.spanset_lower(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_mem_size(ss: 'const SpanSet *') -> 'int': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.spanset_mem_size(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_sps(ss: 'const SpanSet *') -> 'const Span **': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.spanset_sps(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanset_upper(ss: 'const SpanSet *') -> 'Datum': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.spanset_upper(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def datespan_set_tstzspan(s1: 'const Span *', s2: 'Span *') -> None: + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('Span *', s2) + _lib.datespan_set_tstzspan(s1_converted, s2_converted) + _check_error() + + +def floatspan_set_intspan(s1: 'const Span *', s2: 'Span *') -> None: + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('Span *', s2) + _lib.floatspan_set_intspan(s1_converted, s2_converted) + _check_error() + + +def intspan_set_floatspan(s1: 'const Span *', s2: 'Span *') -> None: + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('Span *', s2) + _lib.intspan_set_floatspan(s1_converted, s2_converted) + _check_error() + + +def numset_shift_scale(s: 'const Set *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + shift_converted = _ffi.cast('Datum', shift) + width_converted = _ffi.cast('Datum', width) + result = _lib.numset_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def numspan_shift_scale(s: 'const Span *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + shift_converted = _ffi.cast('Datum', shift) + width_converted = _ffi.cast('Datum', width) + result = _lib.numspan_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def numspanset_shift_scale(ss: 'const SpanSet *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + shift_converted = _ffi.cast('Datum', shift) + width_converted = _ffi.cast('Datum', width) + result = _lib.numspanset_shift_scale(ss_converted, shift_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def set_compact(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.set_compact(s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def span_expand(s1: 'const Span *', s2: 'Span *') -> None: + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('Span *', s2) + _lib.span_expand(s1_converted, s2_converted) + _check_error() + + +def spanset_compact(ss: 'const SpanSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.spanset_compact(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tbox_expand_value(box: 'const TBox *', value: 'Datum', basetyp: 'meosType') -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) + value_converted = _ffi.cast('Datum', value) + basetyp_converted = _ffi.cast('meosType', basetyp) + result = _lib.tbox_expand_value(box_converted, value_converted, basetyp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def textcat_textset_text_int(s: 'const Set *', txt: str, invert: bool) -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + txt_converted = cstring2text(txt) + result = _lib.textcat_textset_text_int(s_converted, txt_converted, invert) + _check_error() + return result if result != _ffi.NULL else None + + +def tstzspan_set_datespan(s1: 'const Span *', s2: 'Span *') -> None: + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('Span *', s2) + _lib.tstzspan_set_datespan(s1_converted, s2_converted) + _check_error() + + +def adjacent_span_value(s: 'const Span *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.adjacent_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adjacent_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.adjacent_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def adjacent_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.adjacent_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_value_set(value: 'Datum', s: 'const Set *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.contained_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_value_span(value: 'Datum', s: 'const Span *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.contained_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contained_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.contained_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contains_set_value(s: 'const Set *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.contains_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contains_span_value(s: 'const Span *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.contains_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def contains_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.contains_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ovadj_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + result = _lib.ovadj_span_span(s1_converted, s2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_set_value(s: 'const Set *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.left_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_span_value(s: 'const Span *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.left_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.left_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_value_set(value: 'Datum', s: 'const Set *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.left_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_value_span(value: 'Datum', s: 'const Span *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.left_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def left_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.left_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def lfnadj_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + result = _lib.lfnadj_span_span(s1_converted, s2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_set_value(s: 'const Set *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.overleft_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_span_value(s: 'const Span *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.overleft_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.overleft_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_value_set(value: 'Datum', s: 'const Set *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.overleft_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_value_span(value: 'Datum', s: 'const Span *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.overleft_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overleft_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.overleft_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_set_value(s: 'const Set *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.overright_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_span_value(s: 'const Span *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.overright_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.overright_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_value_set(value: 'Datum', s: 'const Set *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.overright_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_value_span(value: 'Datum', s: 'const Span *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.overright_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def overright_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.overright_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_value_set(value: 'Datum', s: 'const Set *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.right_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_set_value(s: 'const Set *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.right_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_value_span(value: 'Datum', s: 'const Span *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.right_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.right_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_span_value(s: 'const Span *', value: 'Datum') -> 'bool': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.right_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def right_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.right_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def bbox_union_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + out_result = _ffi.new('Span *') + _lib.bbox_union_span_span(s1_converted, s2_converted, out_result) + _check_error() + return out_result if out_result!= _ffi.NULL else None + + + +def inter_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + out_result = _ffi.new('Span *') + result = _lib.inter_span_span(s1_converted, s2_converted, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def intersection_set_value(s: 'const Set *', value: 'Datum') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.intersection_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def intersection_span_value(s: 'const Span *', value: 'Datum') -> 'Span *': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.intersection_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def intersection_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.intersection_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def intersection_value_set(value: 'Datum', s: 'const Set *') -> 'Set *': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.intersection_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def intersection_value_span(value: 'Datum', s: 'const Span *') -> 'Span *': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.intersection_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def intersection_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'SpanSet *': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.intersection_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def mi_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + out_result = _ffi.new('Span *') + result = _lib.mi_span_span(s1_converted, s2_converted, out_result) + _check_error() + return out_result if out_result!= _ffi.NULL else None + + + +def minus_set_value(s: 'const Set *', value: 'Datum') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.minus_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def minus_span_value(s: 'const Span *', value: 'Datum') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.minus_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def minus_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.minus_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def minus_value_set(value: 'Datum', s: 'const Set *') -> 'Set *': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.minus_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def minus_value_span(value: 'Datum', s: 'const Span *') -> 'SpanSet *': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.minus_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def minus_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'SpanSet *': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.minus_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def super_union_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + result = _lib.super_union_span_span(s1_converted, s2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def union_set_value(s: 'const Set *', value: 'Datum') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.union_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def union_span_value(s: 'const Span *', value: 'Datum') -> 'SpanSet *': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.union_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def union_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'SpanSet *': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.union_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def union_value_set(value: 'Datum', s: 'const Set *') -> 'Set *': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Set *', s) + result = _lib.union_value_set(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def union_value_span(value: 'Datum', s: 'const Span *') -> 'SpanSet *': + value_converted = _ffi.cast('Datum', value) + s_converted = _ffi.cast('const Span *', s) + result = _lib.union_value_span(value_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def union_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'SpanSet *': + value_converted = _ffi.cast('Datum', value) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.union_value_spanset(value_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Datum': + s1_converted = _ffi.cast('const Set *', s1) + s2_converted = _ffi.cast('const Set *', s2) + result = _lib.distance_set_set(s1_converted, s2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_set_value(s: 'const Set *', value: 'Datum') -> 'Datum': + s_converted = _ffi.cast('const Set *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.distance_set_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Datum': + s1_converted = _ffi.cast('const Span *', s1) + s2_converted = _ffi.cast('const Span *', s2) + result = _lib.distance_span_span(s1_converted, s2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_span_value(s: 'const Span *', value: 'Datum') -> 'Datum': + s_converted = _ffi.cast('const Span *', s) + value_converted = _ffi.cast('Datum', value) + result = _lib.distance_span_value(s_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'Datum': + ss_converted = _ffi.cast('const SpanSet *', ss) + s_converted = _ffi.cast('const Span *', s) + result = _lib.distance_spanset_span(ss_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'Datum': + ss1_converted = _ffi.cast('const SpanSet *', ss1) + ss2_converted = _ffi.cast('const SpanSet *', ss2) + result = _lib.distance_spanset_spanset(ss1_converted, ss2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'Datum': + ss_converted = _ffi.cast('const SpanSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.distance_spanset_value(ss_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def distance_value_value(l: 'Datum', r: 'Datum', basetype: 'meosType') -> 'Datum': + l_converted = _ffi.cast('Datum', l) + r_converted = _ffi.cast('Datum', r) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.distance_value_value(l_converted, r_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spanbase_extent_transfn(state: 'Span *', value: 'Datum', basetype: 'meosType') -> 'Span *': + state_converted = _ffi.cast('Span *', state) + value_converted = _ffi.cast('Datum', value) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.spanbase_extent_transfn(state_converted, value_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def value_union_transfn(state: 'Set *', value: 'Datum', basetype: 'meosType') -> 'Set *': + state_converted = _ffi.cast('Set *', state) + value_converted = _ffi.cast('Datum', value) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.value_union_transfn(state_converted, value_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def number_tstzspan_to_tbox(d: 'Datum', basetype: 'meosType', s: 'const Span *') -> 'TBox *': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + s_converted = _ffi.cast('const Span *', s) + result = _lib.number_tstzspan_to_tbox(d_converted, basetype_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def number_timestamptz_to_tbox(d: 'Datum', basetype: 'meosType', t: int) -> 'TBox *': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.number_timestamptz_to_tbox(d_converted, basetype_converted, t_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tbox_set(s: 'const Span *', p: 'const Span *', box: 'TBox *') -> None: + s_converted = _ffi.cast('const Span *', s) + p_converted = _ffi.cast('const Span *', p) + box_converted = _ffi.cast('TBox *', box) + _lib.tbox_set(s_converted, p_converted, box_converted) + _check_error() + + +def float_set_tbox(d: float, box: 'TBox *') -> None: + box_converted = _ffi.cast('TBox *', box) + _lib.float_set_tbox(d, box_converted) + _check_error() + + +def int_set_tbox(i: int, box: 'TBox *') -> None: + box_converted = _ffi.cast('TBox *', box) + _lib.int_set_tbox(i, box_converted) + _check_error() + + +def number_set_tbox(d: 'Datum', basetype: 'meosType', box: 'TBox *') -> None: + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + box_converted = _ffi.cast('TBox *', box) + _lib.number_set_tbox(d_converted, basetype_converted, box_converted) + _check_error() + + +def number_tbox(value: 'Datum', basetype: 'meosType') -> 'TBox *': + value_converted = _ffi.cast('Datum', value) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.number_tbox(value_converted, basetype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def numset_set_tbox(s: 'const Set *', box: 'TBox *') -> None: + s_converted = _ffi.cast('const Set *', s) + box_converted = _ffi.cast('TBox *', box) + _lib.numset_set_tbox(s_converted, box_converted) + _check_error() + + +def numspan_set_tbox(span: 'const Span *', box: 'TBox *') -> None: + span_converted = _ffi.cast('const Span *', span) + box_converted = _ffi.cast('TBox *', box) + _lib.numspan_set_tbox(span_converted, box_converted) + _check_error() + + +def timestamptz_set_tbox(t: int, box: 'TBox *') -> None: + t_converted = _ffi.cast('TimestampTz', t) + box_converted = _ffi.cast('TBox *', box) + _lib.timestamptz_set_tbox(t_converted, box_converted) + _check_error() + + +def tstzset_set_tbox(s: 'const Set *', box: 'TBox *') -> None: + s_converted = _ffi.cast('const Set *', s) + box_converted = _ffi.cast('TBox *', box) + _lib.tstzset_set_tbox(s_converted, box_converted) + _check_error() + + +def tstzspan_set_tbox(s: 'const Span *', box: 'TBox *') -> None: + s_converted = _ffi.cast('const Span *', s) + box_converted = _ffi.cast('TBox *', box) + _lib.tstzspan_set_tbox(s_converted, box_converted) + _check_error() + + +def tbox_shift_scale_value(box: 'const TBox *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'TBox *': + box_converted = _ffi.cast('const TBox *', box) + shift_converted = _ffi.cast('Datum', shift) + width_converted = _ffi.cast('Datum', width) + result = _lib.tbox_shift_scale_value(box_converted, shift_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def tbox_expand(box1: 'const TBox *', box2: 'TBox *') -> None: + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('TBox *', box2) + _lib.tbox_expand(box1_converted, box2_converted) + _check_error() + + +def inter_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'TBox *': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) + out_result = _ffi.new('TBox *') + result = _lib.inter_tbox_tbox(box1_converted, box2_converted, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tboolinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tboolinst_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tboolseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tboolseq_in(string_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tboolseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tboolseqset_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_in(string: str, temptype: 'meosType') -> 'Temporal *': + string_converted = string.encode('utf-8') + temptype_converted = _ffi.cast('meosType', temptype) + result = _lib.temporal_in(string_converted, temptype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_out(temp: 'const Temporal *', maxdd: int) -> str: + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_out(temp_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def temparr_out(temparr: 'const Temporal **', count: int, maxdd: int) -> 'char **': + temparr_converted = [_ffi.cast('const Temporal *', x) for x in temparr] + result = _lib.temparr_out(temparr_converted, count, maxdd) + _check_error() + return result if result != _ffi.NULL else None + + +def tfloatinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tfloatinst_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tfloatseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tfloatseq_in(string_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tfloatseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tfloatseqset_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_in(string: str, temptype: 'meosType') -> 'TInstant *': + string_converted = string.encode('utf-8') + temptype_converted = _ffi.cast('meosType', temptype) + result = _lib.tinstant_in(string_converted, temptype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_out(inst: 'const TInstant *', maxdd: int) -> str: + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tinstant_out(inst_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def tintinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tintinst_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tintseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tintseq_in(string_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tintseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tintseqset_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_in(string: str, temptype: 'meosType', interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + temptype_converted = _ffi.cast('meosType', temptype) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_in(string_converted, temptype_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_out(seq: 'const TSequence *', maxdd: int) -> str: + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_out(seq_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def tsequenceset_in(string: str, temptype: 'meosType', interp: 'interpType') -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + temptype_converted = _ffi.cast('meosType', temptype) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequenceset_in(string_converted, temptype_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_out(ss: 'const TSequenceSet *', maxdd: int) -> str: + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_out(ss_converted, maxdd) + _check_error() + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None + + +def ttextinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.ttextinst_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ttextseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.ttextseq_in(string_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ttextseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.ttextseqset_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_from_mfjson(mfjson: str, temptype: 'meosType') -> 'Temporal *': + mfjson_converted = mfjson.encode('utf-8') + temptype_converted = _ffi.cast('meosType', temptype) + result = _lib.temporal_from_mfjson(mfjson_converted, temptype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_from_base_temp(value: 'Datum', temptype: 'meosType', temp: 'const Temporal *') -> 'Temporal *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_from_base_temp(value_converted, temptype_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_copy(inst: 'const TInstant *') -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tinstant_copy(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_make(value: 'Datum', temptype: 'meosType', t: int) -> 'TInstant *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tinstant_make(value_converted, temptype_converted, t_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_make_free(value: 'Datum', temptype: 'meosType', t: int) -> 'TInstant *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tinstant_make_free(value_converted, temptype_converted, t_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_copy(seq: 'const TSequence *') -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_copy(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_from_base_temp(value: 'Datum', temptype: 'meosType', seq: 'const TSequence *') -> 'TSequence *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_from_base_temp(value_converted, temptype_converted, seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_from_base_tstzset(value: 'Datum', temptype: 'meosType', s: 'const Set *') -> 'TSequence *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tsequence_from_base_tstzset(value_converted, temptype_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_from_base_tstzspan(value: 'Datum', temptype: 'meosType', s: 'const Span *', interp: 'interpType') -> 'TSequence *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + s_converted = _ffi.cast('const Span *', s) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_from_base_tstzspan(value_converted, temptype_converted, s_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_make_exp(instants: 'const TInstant **', count: int, maxcount: int, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': + instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_make_exp(instants_converted, count, maxcount, lower_inc, upper_inc, interp_converted, normalize) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_make_free(instants: 'TInstant **', count: int, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': + instants_converted = [_ffi.cast('TInstant *', x) for x in instants] + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_make_free(instants_converted, count, lower_inc, upper_inc, interp_converted, normalize) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_copy(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_copy(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tseqsetarr_to_tseqset(seqsets: 'TSequenceSet **', count: int, totalseqs: int) -> 'TSequenceSet *': + seqsets_converted = [_ffi.cast('TSequenceSet *', x) for x in seqsets] + result = _lib.tseqsetarr_to_tseqset(seqsets_converted, count, totalseqs) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_from_base_temp(value: 'Datum', temptype: 'meosType', ss: 'const TSequenceSet *') -> 'TSequenceSet *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_from_base_temp(value_converted, temptype_converted, ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_from_base_tstzspanset(value: 'Datum', temptype: 'meosType', ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': + value_converted = _ffi.cast('Datum', value) + temptype_converted = _ffi.cast('meosType', temptype) + ss_converted = _ffi.cast('const SpanSet *', ss) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequenceset_from_base_tstzspanset(value_converted, temptype_converted, ss_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_make_exp(sequences: 'const TSequence **', count: int, maxcount: int, normalize: bool) -> 'TSequenceSet *': + sequences_converted = [_ffi.cast('const TSequence *', x) for x in sequences] + result = _lib.tsequenceset_make_exp(sequences_converted, count, maxcount, normalize) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_make_free(sequences: 'TSequence **', count: int, normalize: bool) -> 'TSequenceSet *': + sequences_converted = [_ffi.cast('TSequence *', x) for x in sequences] + result = _lib.tsequenceset_make_free(sequences_converted, count, normalize) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_set_tstzspan(temp: 'const Temporal *', s: 'Span *') -> None: + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('Span *', s) + _lib.temporal_set_tstzspan(temp_converted, s_converted) + _check_error() + + +def tinstant_set_tstzspan(inst: 'const TInstant *', s: 'Span *') -> None: + inst_converted = _ffi.cast('const TInstant *', inst) + s_converted = _ffi.cast('Span *', s) + _lib.tinstant_set_tstzspan(inst_converted, s_converted) + _check_error() + + +def tnumber_set_tbox(temp: 'const Temporal *', box: 'TBox *') -> None: + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('TBox *', box) + _lib.tnumber_set_tbox(temp_converted, box_converted) + _check_error() + + +def tnumberinst_set_tbox(inst: 'const TInstant *', box: 'TBox *') -> None: + inst_converted = _ffi.cast('const TInstant *', inst) + box_converted = _ffi.cast('TBox *', box) + _lib.tnumberinst_set_tbox(inst_converted, box_converted) + _check_error() + + +def tnumberseq_set_tbox(seq: 'const TSequence *', box: 'TBox *') -> None: + seq_converted = _ffi.cast('const TSequence *', seq) + box_converted = _ffi.cast('TBox *', box) + _lib.tnumberseq_set_tbox(seq_converted, box_converted) + _check_error() + + +def tnumberseqset_set_tbox(ss: 'const TSequenceSet *', box: 'TBox *') -> None: + ss_converted = _ffi.cast('const TSequenceSet *', ss) + box_converted = _ffi.cast('TBox *', box) + _lib.tnumberseqset_set_tbox(ss_converted, box_converted) + _check_error() + + +def tsequence_set_tstzspan(seq: 'const TSequence *', s: 'Span *') -> None: + seq_converted = _ffi.cast('const TSequence *', seq) + s_converted = _ffi.cast('Span *', s) + _lib.tsequence_set_tstzspan(seq_converted, s_converted) + _check_error() + + +def tsequenceset_set_tstzspan(ss: 'const TSequenceSet *', s: 'Span *') -> None: + ss_converted = _ffi.cast('const TSequenceSet *', ss) + s_converted = _ffi.cast('Span *', s) + _lib.tsequenceset_set_tstzspan(ss_converted, s_converted) + _check_error() + + +def temporal_end_inst(temp: 'const Temporal *') -> 'const TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_end_inst(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_end_value(temp: 'const Temporal *') -> 'Datum': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_end_value(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_inst_n(temp: 'const Temporal *', n: int) -> 'const TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_inst_n(temp_converted, n) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_instants_p(temp: 'const Temporal *') -> "Tuple['const TInstant **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.temporal_instants_p(temp_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def temporal_max_value(temp: 'const Temporal *') -> 'Datum': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_max_value(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_mem_size(temp: 'const Temporal *') -> 'size_t': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_mem_size(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_min_value(temp: 'const Temporal *') -> 'Datum': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_min_value(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_sequences_p(temp: 'const Temporal *') -> "Tuple['const TSequence **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.temporal_sequences_p(temp_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def temporal_set_bbox(temp: 'const Temporal *', box: 'void *') -> None: + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('void *', box) + _lib.temporal_set_bbox(temp_converted, box_converted) + _check_error() + + +def temporal_start_inst(temp: 'const Temporal *') -> 'const TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_start_inst(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_start_value(temp: 'const Temporal *') -> 'Datum': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_start_value(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_values_p(temp: 'const Temporal *') -> "Tuple['Datum *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.temporal_values_p(temp_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def temporal_value_n(temp: 'const Temporal *', n: int) -> 'Datum *': + temp_converted = _ffi.cast('const Temporal *', temp) + out_result = _ffi.new('Datum *') + result = _lib.temporal_value_n(temp_converted, n, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def temporal_values(temp: 'const Temporal *') -> "Tuple['Datum *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.temporal_values(temp_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tinstant_hash(inst: 'const TInstant *') -> 'uint32': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tinstant_hash(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_insts(inst: 'const TInstant *') -> "Tuple['const TInstant **', 'int']": + inst_converted = _ffi.cast('const TInstant *', inst) + count = _ffi.new('int *') + result = _lib.tinstant_insts(inst_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tinstant_set_bbox(inst: 'const TInstant *', box: 'void *') -> None: + inst_converted = _ffi.cast('const TInstant *', inst) + box_converted = _ffi.cast('void *', box) + _lib.tinstant_set_bbox(inst_converted, box_converted) + _check_error() + + +def tinstant_time(inst: 'const TInstant *') -> 'SpanSet *': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tinstant_time(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_timestamps(inst: 'const TInstant *') -> "Tuple['TimestampTz *', 'int']": + inst_converted = _ffi.cast('const TInstant *', inst) + count = _ffi.new('int *') + result = _lib.tinstant_timestamps(inst_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tinstant_value_p(inst: 'const TInstant *') -> 'Datum': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tinstant_value_p(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_value(inst: 'const TInstant *') -> 'Datum': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tinstant_value(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_value_at_timestamptz(inst: 'const TInstant *', t: int) -> 'Datum *': + inst_converted = _ffi.cast('const TInstant *', inst) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('Datum *') + result = _lib.tinstant_value_at_timestamptz(inst_converted, t_converted, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tinstant_values_p(inst: 'const TInstant *') -> "Tuple['Datum *', 'int']": + inst_converted = _ffi.cast('const TInstant *', inst) + count = _ffi.new('int *') + result = _lib.tinstant_values_p(inst_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tnumber_set_span(temp: 'const Temporal *', span: 'Span *') -> None: + temp_converted = _ffi.cast('const Temporal *', temp) + span_converted = _ffi.cast('Span *', span) + _lib.tnumber_set_span(temp_converted, span_converted) + _check_error() + + +def tnumberinst_valuespans(inst: 'const TInstant *') -> 'SpanSet *': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tnumberinst_valuespans(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_valuespans(seq: 'const TSequence *') -> 'SpanSet *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tnumberseq_valuespans(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_valuespans(ss: 'const TSequenceSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tnumberseqset_valuespans(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_duration(seq: 'const TSequence *') -> 'Interval *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_duration(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_end_timestamptz(seq: 'const TSequence *') -> 'TimestampTz': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_end_timestamptz(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_hash(seq: 'const TSequence *') -> 'uint32': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_hash(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_insts_p(seq: 'const TSequence *') -> 'const TInstant **': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_insts_p(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_max_inst(seq: 'const TSequence *') -> 'const TInstant *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_max_inst(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_max_val(seq: 'const TSequence *') -> 'Datum': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_max_val(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_min_inst(seq: 'const TSequence *') -> 'const TInstant *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_min_inst(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_min_val(seq: 'const TSequence *') -> 'Datum': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_min_val(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_segments(seq: 'const TSequence *') -> "Tuple['TSequence **', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tsequence_segments(seq_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tsequence_seqs(seq: 'const TSequence *') -> "Tuple['const TSequence **', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tsequence_seqs(seq_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tsequence_start_timestamptz(seq: 'const TSequence *') -> 'TimestampTz': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_start_timestamptz(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_time(seq: 'const TSequence *') -> 'SpanSet *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_time(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_timestamps(seq: 'const TSequence *') -> "Tuple['TimestampTz *', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tsequence_timestamps(seq_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tsequence_value_at_timestamptz(seq: 'const TSequence *', t: int, strict: bool) -> 'Datum *': + seq_converted = _ffi.cast('const TSequence *', seq) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('Datum *') + result = _lib.tsequence_value_at_timestamptz(seq_converted, t_converted, strict, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tsequence_values_p(seq: 'const TSequence *') -> "Tuple['Datum *', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tsequence_values_p(seq_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tsequenceset_duration(ss: 'const TSequenceSet *', boundspan: bool) -> 'Interval *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_duration(ss_converted, boundspan) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_end_timestamptz(ss: 'const TSequenceSet *') -> 'TimestampTz': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_end_timestamptz(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_hash(ss: 'const TSequenceSet *') -> 'uint32': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_hash(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_inst_n(ss: 'const TSequenceSet *', n: int) -> 'const TInstant *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_inst_n(ss_converted, n) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_insts_p(ss: 'const TSequenceSet *') -> 'const TInstant **': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_insts_p(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_max_inst(ss: 'const TSequenceSet *') -> 'const TInstant *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_max_inst(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_max_val(ss: 'const TSequenceSet *') -> 'Datum': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_max_val(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_min_inst(ss: 'const TSequenceSet *') -> 'const TInstant *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_min_inst(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_min_val(ss: 'const TSequenceSet *') -> 'Datum': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_min_val(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_num_instants(ss: 'const TSequenceSet *') -> 'int': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_num_instants(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_num_timestamps(ss: 'const TSequenceSet *') -> 'int': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_num_timestamps(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_segments(ss: 'const TSequenceSet *') -> "Tuple['TSequence **', 'int']": + ss_converted = _ffi.cast('const TSequenceSet *', ss) + count = _ffi.new('int *') + result = _lib.tsequenceset_segments(ss_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tsequenceset_sequences_p(ss: 'const TSequenceSet *') -> 'const TSequence **': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_sequences_p(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_start_timestamptz(ss: 'const TSequenceSet *') -> 'TimestampTz': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_start_timestamptz(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_time(ss: 'const TSequenceSet *') -> 'SpanSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_time(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_timestamptz_n(ss: 'const TSequenceSet *', n: int) -> int: + ss_converted = _ffi.cast('const TSequenceSet *', ss) + out_result = _ffi.new('TimestampTz *') + result = _lib.tsequenceset_timestamptz_n(ss_converted, n, out_result) + _check_error() + if result: + return out_result[0] if out_result[0] != _ffi.NULL else None + return None + + +def tsequenceset_timestamps(ss: 'const TSequenceSet *') -> "Tuple['TimestampTz *', 'int']": + ss_converted = _ffi.cast('const TSequenceSet *', ss) + count = _ffi.new('int *') + result = _lib.tsequenceset_timestamps(ss_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tsequenceset_value_at_timestamptz(ss: 'const TSequenceSet *', t: int, strict: bool) -> 'Datum *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('Datum *') + result = _lib.tsequenceset_value_at_timestamptz(ss_converted, t_converted, strict, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tsequenceset_value_n(ss: 'const TSequenceSet *', n: int) -> 'Datum *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + out_result = _ffi.new('Datum *') + result = _lib.tsequenceset_value_n(ss_converted, n, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tsequenceset_values_p(ss: 'const TSequenceSet *') -> "Tuple['Datum *', 'int']": + ss_converted = _ffi.cast('const TSequenceSet *', ss) + count = _ffi.new('int *') + result = _lib.tsequenceset_values_p(ss_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def temporal_restart(temp: 'Temporal *', count: int) -> None: + temp_converted = _ffi.cast('Temporal *', temp) + _lib.temporal_restart(temp_converted, count) + _check_error() + + +def temporal_tsequence(temp: 'const Temporal *', interp: 'interpType') -> 'TSequence *': + temp_converted = _ffi.cast('const Temporal *', temp) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.temporal_tsequence(temp_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_tsequenceset(temp: 'const Temporal *', interp: 'interpType') -> 'TSequenceSet *': + temp_converted = _ffi.cast('const Temporal *', temp) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.temporal_tsequenceset(temp_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_shift_time(inst: 'const TInstant *', interv: 'const Interval *') -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + interv_converted = _ffi.cast('const Interval *', interv) + result = _lib.tinstant_shift_time(inst_converted, interv_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_to_tsequence(inst: 'const TInstant *', interp: 'interpType') -> 'TSequence *': + inst_converted = _ffi.cast('const TInstant *', inst) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tinstant_to_tsequence(inst_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_to_tsequence_free(inst: 'TInstant *', interp: 'interpType') -> 'TSequence *': + inst_converted = _ffi.cast('TInstant *', inst) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tinstant_to_tsequence_free(inst_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_to_tsequenceset(inst: 'const TInstant *', interp: 'interpType') -> 'TSequenceSet *': + inst_converted = _ffi.cast('const TInstant *', inst) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tinstant_to_tsequenceset(inst_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumber_shift_scale_value(temp: 'const Temporal *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + shift_converted = _ffi.cast('Datum', shift) + width_converted = _ffi.cast('Datum', width) + result = _lib.tnumber_shift_scale_value(temp_converted, shift_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberinst_shift_value(inst: 'const TInstant *', shift: 'Datum') -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + shift_converted = _ffi.cast('Datum', shift) + result = _lib.tnumberinst_shift_value(inst_converted, shift_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_shift_scale_value(seq: 'const TSequence *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + shift_converted = _ffi.cast('Datum', shift) + width_converted = _ffi.cast('Datum', width) + result = _lib.tnumberseq_shift_scale_value(seq_converted, shift_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_shift_scale_value(ss: 'const TSequenceSet *', start: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + start_converted = _ffi.cast('Datum', start) + width_converted = _ffi.cast('Datum', width) + result = _lib.tnumberseqset_shift_scale_value(ss_converted, start_converted, width_converted, hasshift, haswidth) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_restart(seq: 'TSequence *', count: int) -> None: + seq_converted = _ffi.cast('TSequence *', seq) + _lib.tsequence_restart(seq_converted, count) + _check_error() + + +def tsequence_set_interp(seq: 'const TSequence *', interp: 'interpType') -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_set_interp(seq_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_shift_scale_time(seq: 'const TSequence *', shift: 'const Interval *', duration: 'const Interval *') -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + shift_converted = _ffi.cast('const Interval *', shift) + duration_converted = _ffi.cast('const Interval *', duration) + result = _lib.tsequence_shift_scale_time(seq_converted, shift_converted, duration_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_subseq(seq: 'const TSequence *', from_: int, to: int, lower_inc: bool, upper_inc: bool) -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_subseq(seq_converted, from_, to, lower_inc, upper_inc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_to_tinstant(seq: 'const TSequence *') -> 'TInstant *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_to_tinstant(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_to_tsequenceset(seq: 'const TSequence *') -> 'TSequenceSet *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_to_tsequenceset(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_to_tsequenceset_free(seq: 'TSequence *') -> 'TSequenceSet *': + seq_converted = _ffi.cast('TSequence *', seq) + result = _lib.tsequence_to_tsequenceset_free(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_to_tsequenceset_interp(seq: 'const TSequence *', interp: 'interpType') -> 'TSequenceSet *': + seq_converted = _ffi.cast('const TSequence *', seq) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restart(ss: 'TSequenceSet *', count: int) -> None: + ss_converted = _ffi.cast('TSequenceSet *', ss) + _lib.tsequenceset_restart(ss_converted, count) + _check_error() + + +def tsequenceset_set_interp(ss: 'const TSequenceSet *', interp: 'interpType') -> 'Temporal *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tsequenceset_set_interp(ss_converted, interp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_shift_scale_time(ss: 'const TSequenceSet *', start: 'const Interval *', duration: 'const Interval *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + start_converted = _ffi.cast('const Interval *', start) + duration_converted = _ffi.cast('const Interval *', duration) + result = _lib.tsequenceset_shift_scale_time(ss_converted, start_converted, duration_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_to_discrete(ss: 'const TSequenceSet *') -> 'TSequence *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_to_discrete(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_to_linear(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_to_linear(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_to_step(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_to_step(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_to_tinstant(ss: 'const TSequenceSet *') -> 'TInstant *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_to_tinstant(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_to_tsequence(ss: 'const TSequenceSet *') -> 'TSequence *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_to_tsequence(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_merge(inst1: 'const TInstant *', inst2: 'const TInstant *') -> 'Temporal *': + inst1_converted = _ffi.cast('const TInstant *', inst1) + inst2_converted = _ffi.cast('const TInstant *', inst2) + result = _lib.tinstant_merge(inst1_converted, inst2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_merge_array(instants: 'const TInstant **', count: int) -> 'Temporal *': + instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] + result = _lib.tinstant_merge_array(instants_converted, count) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_append_tinstant(seq: 'TSequence *', inst: 'const TInstant *', maxdist: float, maxt: 'const Interval *', expand: bool) -> 'Temporal *': + seq_converted = _ffi.cast('TSequence *', seq) + inst_converted = _ffi.cast('const TInstant *', inst) + maxt_converted = _ffi.cast('const Interval *', maxt) + result = _lib.tsequence_append_tinstant(seq_converted, inst_converted, maxdist, maxt_converted, expand) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_append_tsequence(seq1: 'const TSequence *', seq2: 'const TSequence *', expand: bool) -> 'Temporal *': + seq1_converted = _ffi.cast('const TSequence *', seq1) + seq2_converted = _ffi.cast('const TSequence *', seq2) + result = _lib.tsequence_append_tsequence(seq1_converted, seq2_converted, expand) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_delete_timestamptz(seq: 'const TSequence *', t: int, connect: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tsequence_delete_timestamptz(seq_converted, t_converted, connect) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_delete_tstzset(seq: 'const TSequence *', s: 'const Set *', connect: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tsequence_delete_tstzset(seq_converted, s_converted, connect) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_delete_tstzspan(seq: 'const TSequence *', s: 'const Span *', connect: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + s_converted = _ffi.cast('const Span *', s) + result = _lib.tsequence_delete_tstzspan(seq_converted, s_converted, connect) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_delete_tstzspanset(seq: 'const TSequence *', ss: 'const SpanSet *', connect: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.tsequence_delete_tstzspanset(seq_converted, ss_converted, connect) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_insert(seq1: 'const TSequence *', seq2: 'const TSequence *', connect: bool) -> 'Temporal *': + seq1_converted = _ffi.cast('const TSequence *', seq1) + seq2_converted = _ffi.cast('const TSequence *', seq2) + result = _lib.tsequence_insert(seq1_converted, seq2_converted, connect) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_merge(seq1: 'const TSequence *', seq2: 'const TSequence *') -> 'Temporal *': + seq1_converted = _ffi.cast('const TSequence *', seq1) + seq2_converted = _ffi.cast('const TSequence *', seq2) + result = _lib.tsequence_merge(seq1_converted, seq2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_merge_array(sequences: 'const TSequence **', count: int) -> 'Temporal *': + sequences_converted = [_ffi.cast('const TSequence *', x) for x in sequences] + result = _lib.tsequence_merge_array(sequences_converted, count) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_append_tinstant(ss: 'TSequenceSet *', inst: 'const TInstant *', maxdist: float, maxt: 'const Interval *', expand: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('TSequenceSet *', ss) + inst_converted = _ffi.cast('const TInstant *', inst) + maxt_converted = _ffi.cast('const Interval *', maxt) + result = _lib.tsequenceset_append_tinstant(ss_converted, inst_converted, maxdist, maxt_converted, expand) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_append_tsequence(ss: 'TSequenceSet *', seq: 'const TSequence *', expand: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('TSequenceSet *', ss) + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequenceset_append_tsequence(ss_converted, seq_converted, expand) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_delete_timestamptz(ss: 'const TSequenceSet *', t: int) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tsequenceset_delete_timestamptz(ss_converted, t_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_delete_tstzset(ss: 'const TSequenceSet *', s: 'const Set *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tsequenceset_delete_tstzset(ss_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_delete_tstzspan(ss: 'const TSequenceSet *', s: 'const Span *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + s_converted = _ffi.cast('const Span *', s) + result = _lib.tsequenceset_delete_tstzspan(ss_converted, s_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_delete_tstzspanset(ss: 'const TSequenceSet *', ps: 'const SpanSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + ps_converted = _ffi.cast('const SpanSet *', ps) + result = _lib.tsequenceset_delete_tstzspanset(ss_converted, ps_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_insert(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'TSequenceSet *': + ss1_converted = _ffi.cast('const TSequenceSet *', ss1) + ss2_converted = _ffi.cast('const TSequenceSet *', ss2) + result = _lib.tsequenceset_insert(ss1_converted, ss2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_merge(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'TSequenceSet *': + ss1_converted = _ffi.cast('const TSequenceSet *', ss1) + ss2_converted = _ffi.cast('const TSequenceSet *', ss2) + result = _lib.tsequenceset_merge(ss1_converted, ss2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_merge_array(seqsets: 'const TSequenceSet **', count: int) -> 'TSequenceSet *': + seqsets_converted = [_ffi.cast('const TSequenceSet *', x) for x in seqsets] + result = _lib.tsequenceset_merge_array(seqsets_converted, count) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_expand_bbox(seq: 'TSequence *', inst: 'const TInstant *') -> None: + seq_converted = _ffi.cast('TSequence *', seq) + inst_converted = _ffi.cast('const TInstant *', inst) + _lib.tsequence_expand_bbox(seq_converted, inst_converted) + _check_error() + + +def tsequence_set_bbox(seq: 'const TSequence *', box: 'void *') -> None: + seq_converted = _ffi.cast('const TSequence *', seq) + box_converted = _ffi.cast('void *', box) + _lib.tsequence_set_bbox(seq_converted, box_converted) + _check_error() + + +def tsequenceset_expand_bbox(ss: 'TSequenceSet *', seq: 'const TSequence *') -> None: + ss_converted = _ffi.cast('TSequenceSet *', ss) + seq_converted = _ffi.cast('const TSequence *', seq) + _lib.tsequenceset_expand_bbox(ss_converted, seq_converted) + _check_error() + + +def tsequenceset_set_bbox(ss: 'const TSequenceSet *', box: 'void *') -> None: + ss_converted = _ffi.cast('const TSequenceSet *', ss) + box_converted = _ffi.cast('void *', box) + _lib.tsequenceset_set_bbox(ss_converted, box_converted) + _check_error() + + +def tdiscseq_restrict_minmax(seq: 'const TSequence *', min: bool, atfunc: bool) -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tdiscseq_restrict_minmax(seq_converted, min, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tcontseq_restrict_minmax(seq: 'const TSequence *', min: bool, atfunc: bool) -> 'TSequenceSet *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tcontseq_restrict_minmax(seq_converted, min, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_bbox_restrict_set(temp: 'const Temporal *', set: 'const Set *') -> 'bool': + temp_converted = _ffi.cast('const Temporal *', temp) + set_converted = _ffi.cast('const Set *', set) + result = _lib.temporal_bbox_restrict_set(temp_converted, set_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_minmax(temp: 'const Temporal *', min: bool, atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_restrict_minmax(temp_converted, min, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_timestamptz(temp: 'const Temporal *', t: int, atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.temporal_restrict_timestamptz(temp_converted, t_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_tstzset(temp: 'const Temporal *', s: 'const Set *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Set *', s) + result = _lib.temporal_restrict_tstzset(temp_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_tstzspan(temp: 'const Temporal *', s: 'const Span *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Span *', s) + result = _lib.temporal_restrict_tstzspan(temp_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.temporal_restrict_tstzspanset(temp_converted, ss_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_value(temp: 'const Temporal *', value: 'Datum', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.temporal_restrict_value(temp_converted, value_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_restrict_values(temp: 'const Temporal *', set: 'const Set *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + set_converted = _ffi.cast('const Set *', set) + result = _lib.temporal_restrict_values(temp_converted, set_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'Datum *': + temp_converted = _ffi.cast('const Temporal *', temp) + t_converted = _ffi.cast('TimestampTz', t) + out_result = _ffi.new('Datum *') + result = _lib.temporal_value_at_timestamptz(temp_converted, t_converted, strict, out_result) + _check_error() + if result: + return out_result if out_result != _ffi.NULL else None + return None + + +def tinstant_restrict_tstzspan(inst: 'const TInstant *', period: 'const Span *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + period_converted = _ffi.cast('const Span *', period) + result = _lib.tinstant_restrict_tstzspan(inst_converted, period_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_restrict_tstzspanset(inst: 'const TInstant *', ss: 'const SpanSet *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.tinstant_restrict_tstzspanset(inst_converted, ss_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_restrict_timestamptz(inst: 'const TInstant *', t: int, atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tinstant_restrict_timestamptz(inst_converted, t_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_restrict_tstzset(inst: 'const TInstant *', s: 'const Set *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tinstant_restrict_tstzset(inst_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_restrict_value(inst: 'const TInstant *', value: 'Datum', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + value_converted = _ffi.cast('Datum', value) + result = _lib.tinstant_restrict_value(inst_converted, value_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_restrict_values(inst: 'const TInstant *', set: 'const Set *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + set_converted = _ffi.cast('const Set *', set) + result = _lib.tinstant_restrict_values(inst_converted, set_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumber_restrict_span(temp: 'const Temporal *', span: 'const Span *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + span_converted = _ffi.cast('const Span *', span) + result = _lib.tnumber_restrict_span(temp_converted, span_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumber_restrict_spanset(temp: 'const Temporal *', ss: 'const SpanSet *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.tnumber_restrict_spanset(temp_converted, ss_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberinst_restrict_span(inst: 'const TInstant *', span: 'const Span *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + span_converted = _ffi.cast('const Span *', span) + result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberinst_restrict_spanset(inst: 'const TInstant *', ss: 'const SpanSet *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_restrict_span(ss: 'const TSequenceSet *', span: 'const Span *', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + span_converted = _ffi.cast('const Span *', span) + result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_restrict_spanset(ss: 'const TSequenceSet *', spanset: 'const SpanSet *', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + spanset_converted = _ffi.cast('const SpanSet *', spanset) + result = _lib.tnumberseqset_restrict_spanset(ss_converted, spanset_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_at_timestamptz(seq: 'const TSequence *', t: int) -> 'TInstant *': + seq_converted = _ffi.cast('const TSequence *', seq) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tsequence_at_timestamptz(seq_converted, t_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_restrict_tstzspan(seq: 'const TSequence *', s: 'const Span *', atfunc: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + s_converted = _ffi.cast('const Span *', s) + result = _lib.tsequence_restrict_tstzspan(seq_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_restrict_tstzspanset(seq: 'const TSequence *', ss: 'const SpanSet *', atfunc: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + ss_converted = _ffi.cast('const SpanSet *', ss) + result = _lib.tsequence_restrict_tstzspanset(seq_converted, ss_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_minmax(ss: 'const TSequenceSet *', min: bool, atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_restrict_minmax(ss_converted, min, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_tstzspan(ss: 'const TSequenceSet *', s: 'const Span *', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + s_converted = _ffi.cast('const Span *', s) + result = _lib.tsequenceset_restrict_tstzspan(ss_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_tstzspanset(ss: 'const TSequenceSet *', ps: 'const SpanSet *', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + ps_converted = _ffi.cast('const SpanSet *', ps) + result = _lib.tsequenceset_restrict_tstzspanset(ss_converted, ps_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_timestamptz(ss: 'const TSequenceSet *', t: int, atfunc: bool) -> 'Temporal *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tsequenceset_restrict_timestamptz(ss_converted, t_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_tstzset(ss: 'const TSequenceSet *', s: 'const Set *', atfunc: bool) -> 'Temporal *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tsequenceset_restrict_tstzset(ss_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_value(ss: 'const TSequenceSet *', value: 'Datum', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + value_converted = _ffi.cast('Datum', value) + result = _lib.tsequenceset_restrict_value(ss_converted, value_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_restrict_values(ss: 'const TSequenceSet *', s: 'const Set *', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tsequenceset_restrict_values(ss_converted, s_converted, atfunc) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_cmp(inst1: 'const TInstant *', inst2: 'const TInstant *') -> 'int': + inst1_converted = _ffi.cast('const TInstant *', inst1) + inst2_converted = _ffi.cast('const TInstant *', inst2) + result = _lib.tinstant_cmp(inst1_converted, inst2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tinstant_eq(inst1: 'const TInstant *', inst2: 'const TInstant *') -> 'bool': + inst1_converted = _ffi.cast('const TInstant *', inst1) + inst2_converted = _ffi.cast('const TInstant *', inst2) + result = _lib.tinstant_eq(inst1_converted, inst2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_cmp(seq1: 'const TSequence *', seq2: 'const TSequence *') -> 'int': + seq1_converted = _ffi.cast('const TSequence *', seq1) + seq2_converted = _ffi.cast('const TSequence *', seq2) + result = _lib.tsequence_cmp(seq1_converted, seq2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_eq(seq1: 'const TSequence *', seq2: 'const TSequence *') -> 'bool': + seq1_converted = _ffi.cast('const TSequence *', seq1) + seq2_converted = _ffi.cast('const TSequence *', seq2) + result = _lib.tsequence_eq(seq1_converted, seq2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_cmp(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'int': + ss1_converted = _ffi.cast('const TSequenceSet *', ss1) + ss2_converted = _ffi.cast('const TSequenceSet *', ss2) + result = _lib.tsequenceset_cmp(ss1_converted, ss2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_eq(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'bool': + ss1_converted = _ffi.cast('const TSequenceSet *', ss1) + ss2_converted = _ffi.cast('const TSequenceSet *', ss2) + result = _lib.tsequenceset_eq(ss1_converted, ss2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_eq_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_eq_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_eq_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.always_eq_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ne_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_ne_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ne_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.always_ne_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ge_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_ge_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_ge_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.always_ge_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_gt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_gt_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_gt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.always_gt_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_le_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_le_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_le_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.always_le_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_lt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_lt_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def always_lt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.always_lt_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_eq_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_eq_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_eq_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.ever_eq_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_ne_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ne_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.ever_ne_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ge_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_ge_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_ge_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.ever_ge_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_gt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_gt_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_gt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.ever_gt_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_le_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_le_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_le_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.ever_le_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_lt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': + value_converted = _ffi.cast('Datum', value) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_lt_base_temporal(value_converted, temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def ever_lt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.ever_lt_temporal_base(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberinst_abs(inst: 'const TInstant *') -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tnumberinst_abs(inst_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_abs(seq: 'const TSequence *') -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tnumberseq_abs(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_angular_difference(seq: 'const TSequence *') -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tnumberseq_angular_difference(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_delta_value(seq: 'const TSequence *') -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tnumberseq_delta_value(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_abs(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tnumberseqset_abs(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_angular_difference(ss: 'const TSequenceSet *') -> 'TSequence *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tnumberseqset_angular_difference(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_delta_value(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tnumberseqset_delta_value(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tdistance_tnumber_number(temp: 'const Temporal *', value: 'Datum') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.tdistance_tnumber_number(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'double': + box1_converted = _ffi.cast('const TBox *', box1) + box2_converted = _ffi.cast('const TBox *', box2) + result = _lib.nad_tbox_tbox(box1_converted, box2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tnumber_number(temp: 'const Temporal *', value: 'Datum') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + value_converted = _ffi.cast('Datum', value) + result = _lib.nad_tnumber_number(temp_converted, value_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const TBox *', box) + result = _lib.nad_tnumber_tbox(temp_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def nad_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.nad_tnumber_tnumber(temp1_converted, temp2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_integral(seq: 'const TSequence *') -> 'double': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tnumberseq_integral(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseq_twavg(seq: 'const TSequence *') -> 'double': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tnumberseq_twavg(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_integral(ss: 'const TSequenceSet *') -> 'double': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tnumberseqset_integral(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumberseqset_twavg(ss: 'const TSequenceSet *') -> 'double': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tnumberseqset_twavg(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_compact(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.temporal_compact(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequence_compact(seq: 'const TSequence *') -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tsequence_compact(seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tsequenceset_compact(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tsequenceset_compact(ss_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def skiplist_free(list: 'SkipList *') -> None: + list_converted = _ffi.cast('SkipList *', list) + _lib.skiplist_free(list_converted) + _check_error() + + +def temporal_app_tinst_transfn(state: 'Temporal *', inst: 'const TInstant *', interp: 'interpType', maxdist: float, maxt: 'const Interval *') -> 'Temporal *': + state_converted = _ffi.cast('Temporal *', state) + inst_converted = _ffi.cast('const TInstant *', inst) + interp_converted = _ffi.cast('interpType', interp) + maxt_converted = _ffi.cast('const Interval *', maxt) + result = _lib.temporal_app_tinst_transfn(state_converted, inst_converted, interp_converted, maxdist, maxt_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def temporal_app_tseq_transfn(state: 'Temporal *', seq: 'const TSequence *') -> 'Temporal *': + state_converted = _ffi.cast('Temporal *', state) + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.temporal_app_tseq_transfn(state_converted, seq_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def span_bins(s: 'const Span *', size: 'Datum', origin: 'Datum') -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast('const Span *', s) + size_converted = _ffi.cast('Datum', size) + origin_converted = _ffi.cast('Datum', origin) + count = _ffi.new('int *') + result = _lib.span_bins(s_converted, size_converted, origin_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def spanset_bins(ss: 'const SpanSet *', size: 'Datum', origin: 'Datum') -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast('const SpanSet *', ss) + size_converted = _ffi.cast('Datum', size) + origin_converted = _ffi.cast('Datum', origin) + count = _ffi.new('int *') + result = _lib.spanset_bins(ss_converted, size_converted, origin_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tnumber_value_bins(temp: 'const Temporal *', size: 'Datum', origin: 'Datum') -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + size_converted = _ffi.cast('Datum', size) + origin_converted = _ffi.cast('Datum', origin) + count = _ffi.new('int *') + result = _lib.tnumber_value_bins(temp_converted, size_converted, origin_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tnumber_value_time_boxes(temp: 'const Temporal *', vsize: 'Datum', duration: 'const Interval *', vorigin: 'Datum', torigin: int) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + vsize_converted = _ffi.cast('Datum', vsize) + duration_converted = _ffi.cast('const Interval *', duration) + vorigin_converted = _ffi.cast('Datum', vorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + count = _ffi.new('int *') + result = _lib.tnumber_value_time_boxes(temp_converted, vsize_converted, duration_converted, vorigin_converted, torigin_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tnumber_value_split(temp: 'const Temporal *', vsize: 'Datum', vorigin: 'Datum', bins: 'Datum **') -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + vsize_converted = _ffi.cast('Datum', vsize) + vorigin_converted = _ffi.cast('Datum', vorigin) + bins_converted = [_ffi.cast('Datum *', x) for x in bins] + count = _ffi.new('int *') + result = _lib.tnumber_value_split(temp_converted, vsize_converted, vorigin_converted, bins_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def tbox_get_value_time_tile(value: 'Datum', t: int, vsize: 'Datum', duration: 'const Interval *', vorigin: 'Datum', torigin: int, basetype: 'meosType', spantype: 'meosType') -> 'TBox *': + value_converted = _ffi.cast('Datum', value) + t_converted = _ffi.cast('TimestampTz', t) + vsize_converted = _ffi.cast('Datum', vsize) + duration_converted = _ffi.cast('const Interval *', duration) + vorigin_converted = _ffi.cast('Datum', vorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + basetype_converted = _ffi.cast('meosType', basetype) + spantype_converted = _ffi.cast('meosType', spantype) + result = _lib.tbox_get_value_time_tile(value_converted, t_converted, vsize_converted, duration_converted, vorigin_converted, torigin_converted, basetype_converted, spantype_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def tnumber_value_time_split(temp: 'const Temporal *', size: 'Datum', duration: 'const Interval *', vorigin: 'Datum', torigin: int, value_bins: 'Datum **', time_bins: 'TimestampTz **') -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + size_converted = _ffi.cast('Datum', size) + duration_converted = _ffi.cast('const Interval *', duration) + vorigin_converted = _ffi.cast('Datum', vorigin) + torigin_converted = _ffi.cast('TimestampTz', torigin) + value_bins_converted = [_ffi.cast('Datum *', x) for x in value_bins] + time_bins_converted = [_ffi.cast('TimestampTz *', x) for x in time_bins] + count = _ffi.new('int *') + result = _lib.tnumber_value_time_split(temp_converted, size_converted, duration_converted, vorigin_converted, torigin_converted, value_bins_converted, time_bins_converted, count) + _check_error() + return result if result != _ffi.NULL else None, count[0] + + +def proj_get_context() -> 'PJ_CONTEXT *': + result = _lib.proj_get_context() + _check_error() + return result if result != _ffi.NULL else None + + +def datum_geo_round(value: 'Datum', size: 'Datum') -> 'Datum': + value_converted = _ffi.cast('Datum', value) + size_converted = _ffi.cast('Datum', size) + result = _lib.datum_geo_round(value_converted, size_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def point_round(gs: 'const GSERIALIZED *', maxdd: int) -> 'GSERIALIZED *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.point_round(gs_converted, maxdd) + _check_error() + return result if result != _ffi.NULL else None + + +def stbox_set(hasx: bool, hasz: bool, geodetic: bool, srid: int, xmin: float, xmax: float, ymin: float, ymax: float, zmin: float, zmax: float, s: 'const Span *', box: 'STBox *') -> None: + srid_converted = _ffi.cast('int32', srid) + s_converted = _ffi.cast('const Span *', s) + box_converted = _ffi.cast('STBox *', box) + _lib.stbox_set(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted, box_converted) + _check_error() + + +def gbox_set_stbox(box: 'const GBOX *', srid: 'int32_t') -> 'STBox *': + box_converted = _ffi.cast('const GBOX *', box) + srid_converted = _ffi.cast('int32_t', srid) + out_result = _ffi.new('STBox *') + _lib.gbox_set_stbox(box_converted, srid_converted, out_result) + _check_error() + return out_result if out_result!= _ffi.NULL else None + + + +def geo_set_stbox(gs: 'const GSERIALIZED *', box: 'STBox *') -> 'bool': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + box_converted = _ffi.cast('STBox *', box) + result = _lib.geo_set_stbox(gs_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def geoarr_set_stbox(values: 'const Datum *', count: int, box: 'STBox *') -> None: + values_converted = _ffi.cast('const Datum *', values) + box_converted = _ffi.cast('STBox *', box) + _lib.geoarr_set_stbox(values_converted, count, box_converted) + _check_error() + + +def spatial_set_stbox(d: 'Datum', basetype: 'meosType', box: 'STBox *') -> 'bool': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + box_converted = _ffi.cast('STBox *', box) + result = _lib.spatial_set_stbox(d_converted, basetype_converted, box_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def spatialset_set_stbox(set: 'const Set *', box: 'STBox *') -> None: + set_converted = _ffi.cast('const Set *', set) + box_converted = _ffi.cast('STBox *', box) + _lib.spatialset_set_stbox(set_converted, box_converted) + _check_error() + + +def stbox_set_box3d(box: 'const STBox *', box3d: 'BOX3D *') -> None: + box_converted = _ffi.cast('const STBox *', box) + box3d_converted = _ffi.cast('BOX3D *', box3d) + _lib.stbox_set_box3d(box_converted, box3d_converted) + _check_error() + + +def stbox_set_gbox(box: 'const STBox *', gbox: 'GBOX *') -> None: + box_converted = _ffi.cast('const STBox *', box) + gbox_converted = _ffi.cast('GBOX *', gbox) + _lib.stbox_set_gbox(box_converted, gbox_converted) + _check_error() + + +def tstzset_set_stbox(s: 'const Set *', box: 'STBox *') -> None: + s_converted = _ffi.cast('const Set *', s) + box_converted = _ffi.cast('STBox *', box) + _lib.tstzset_set_stbox(s_converted, box_converted) + _check_error() + + +def tstzspan_set_stbox(s: 'const Span *', box: 'STBox *') -> None: + s_converted = _ffi.cast('const Span *', s) + box_converted = _ffi.cast('STBox *', box) + _lib.tstzspan_set_stbox(s_converted, box_converted) + _check_error() + + +def tstzspanset_set_stbox(s: 'const SpanSet *', box: 'STBox *') -> None: + s_converted = _ffi.cast('const SpanSet *', s) + box_converted = _ffi.cast('STBox *', box) + _lib.tstzspanset_set_stbox(s_converted, box_converted) + _check_error() + + +def stbox_expand(box1: 'const STBox *', box2: 'STBox *') -> None: + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('STBox *', box2) + _lib.stbox_expand(box1_converted, box2_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequence_min_inst(seq: "const TSequence *") -> "const TInstant *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_min_inst(seq_converted) +def inter_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'STBox *': + box1_converted = _ffi.cast('const STBox *', box1) + box2_converted = _ffi.cast('const STBox *', box2) + out_result = _ffi.new('STBox *') + result = _lib.inter_stbox_stbox(box1_converted, box2_converted, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result if out_result != _ffi.NULL else None + return None -def tsequence_min_val(seq: "const TSequence *") -> "Datum": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_min_val(seq_converted) +def stbox_geo(box: 'const STBox *') -> 'GSERIALIZED *': + box_converted = _ffi.cast('const STBox *', box) + result = _lib.stbox_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_segments(seq: "const TSequence *") -> "Tuple['TSequence **', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_segments(seq_converted, count) +def tgeogpointinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tgeogpointinst_in(string_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequence_seqs(seq: "const TSequence *") -> "Tuple['const TSequence **', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_seqs(seq_converted, count) +def tgeogpointseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tgeogpointseq_in(string_converted, interp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequence_start_timestamptz(seq: "const TSequence *") -> "TimestampTz": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_start_timestamptz(seq_converted) +def tgeogpointseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tgeogpointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_time(seq: "const TSequence *") -> "SpanSet *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_time(seq_converted) +def tgeompointinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tgeompointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_timestamps(seq: "const TSequence *") -> "Tuple['TimestampTz *', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_timestamps(seq_converted, count) +def tgeompointseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tgeompointseq_in(string_converted, interp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequence_value_at_timestamptz( - seq: "const TSequence *", t: int, strict: bool -) -> "Datum *": - seq_converted = _ffi.cast("const TSequence *", seq) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("Datum *") - result = _lib.tsequence_value_at_timestamptz( - seq_converted, t_converted, strict, out_result - ) +def tgeompointseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tgeompointseqset_in(string_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tsequence_values_p(seq: "const TSequence *") -> "Tuple['Datum *', 'int']": - seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_values_p(seq_converted, count) +def tgeographyinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tgeographyinst_in(string_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequenceset_duration(ss: "const TSequenceSet *", boundspan: bool) -> "Interval *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_duration(ss_converted, boundspan) +def tgeographyseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tgeographyseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_end_timestamptz(ss: "const TSequenceSet *") -> "TimestampTz": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_end_timestamptz(ss_converted) +def tgeographyseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tgeographyseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_hash(ss: "const TSequenceSet *") -> "uint32": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_hash(ss_converted) +def tgeometryinst_in(string: str) -> 'TInstant *': + string_converted = string.encode('utf-8') + result = _lib.tgeometryinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_inst_n(ss: "const TSequenceSet *", n: int) -> "const TInstant *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_inst_n(ss_converted, n) +def tgeometryseq_in(string: str, interp: 'interpType') -> 'TSequence *': + string_converted = string.encode('utf-8') + interp_converted = _ffi.cast('interpType', interp) + result = _lib.tgeometryseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_insts_p(ss: "const TSequenceSet *") -> "const TInstant **": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_insts_p(ss_converted) +def tgeometryseqset_in(string: str) -> 'TSequenceSet *': + string_converted = string.encode('utf-8') + result = _lib.tgeometryseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_inst(ss: "const TSequenceSet *") -> "const TInstant *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_max_inst(ss_converted) +def tspatial_set_stbox(temp: 'const Temporal *', box: 'STBox *') -> None: + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('STBox *', box) + _lib.tspatial_set_stbox(temp_converted, box_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequenceset_max_val(ss: "const TSequenceSet *") -> "Datum": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_max_val(ss_converted) +def tgeoinst_set_stbox(inst: 'const TInstant *', box: 'STBox *') -> None: + inst_converted = _ffi.cast('const TInstant *', inst) + box_converted = _ffi.cast('STBox *', box) + _lib.tgeoinst_set_stbox(inst_converted, box_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequenceset_min_inst(ss: "const TSequenceSet *") -> "const TInstant *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_min_inst(ss_converted) +def tspatialseq_set_stbox(seq: 'const TSequence *', box: 'STBox *') -> None: + seq_converted = _ffi.cast('const TSequence *', seq) + box_converted = _ffi.cast('STBox *', box) + _lib.tspatialseq_set_stbox(seq_converted, box_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequenceset_min_val(ss: "const TSequenceSet *") -> "Datum": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_min_val(ss_converted) +def tspatialseqset_set_stbox(ss: 'const TSequenceSet *', box: 'STBox *') -> None: + ss_converted = _ffi.cast('const TSequenceSet *', ss) + box_converted = _ffi.cast('STBox *', box) + _lib.tspatialseqset_set_stbox(ss_converted, box_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequenceset_num_instants(ss: "const TSequenceSet *") -> "int": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_num_instants(ss_converted) +def tgeo_restrict_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + zspan_converted = _ffi.cast('const Span *', zspan) + result = _lib.tgeo_restrict_geom(temp_converted, gs_converted, zspan_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_timestamps(ss: "const TSequenceSet *") -> "int": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_num_timestamps(ss_converted) +def tgeo_restrict_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tgeo_restrict_stbox(temp_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_segments(ss: "const TSequenceSet *") -> "Tuple['TSequence **', 'int']": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tsequenceset_segments(ss_converted, count) +def tgeoinst_restrict_geom(inst: 'const TInstant *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + zspan_converted = _ffi.cast('const Span *', zspan) + result = _lib.tgeoinst_restrict_geom(inst_converted, gs_converted, zspan_converted, atfunc) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequenceset_sequences_p(ss: "const TSequenceSet *") -> "const TSequence **": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_sequences_p(ss_converted) +def tgeoinst_restrict_stbox(inst: 'const TInstant *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tgeoinst_restrict_stbox(inst_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_start_timestamptz(ss: "const TSequenceSet *") -> "TimestampTz": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_start_timestamptz(ss_converted) +def tgeoseq_restrict_geom(seq: 'const TSequence *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + zspan_converted = _ffi.cast('const Span *', zspan) + result = _lib.tgeoseq_restrict_geom(seq_converted, gs_converted, zspan_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_time(ss: "const TSequenceSet *") -> "SpanSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_time(ss_converted) +def tgeoseq_restrict_stbox(seq: 'const TSequence *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'Temporal *': + seq_converted = _ffi.cast('const TSequence *', seq) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tgeoseq_restrict_stbox(seq_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_timestamptz_n(ss: "const TSequenceSet *", n: int) -> int: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - out_result = _ffi.new("TimestampTz *") - result = _lib.tsequenceset_timestamptz_n(ss_converted, n, out_result) +def tgeoseqset_restrict_geom(ss: 'const TSequenceSet *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + zspan_converted = _ffi.cast('const Span *', zspan) + result = _lib.tgeoseqset_restrict_geom(ss_converted, gs_converted, zspan_converted, atfunc) _check_error() - if result: - return out_result[0] if out_result[0] != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tsequenceset_timestamps( - ss: "const TSequenceSet *", -) -> "Tuple['TimestampTz *', 'int']": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tsequenceset_timestamps(ss_converted, count) +def tgeoseqset_restrict_stbox(ss: 'const TSequenceSet *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tgeoseqset_restrict_stbox(ss_converted, box_converted, border_inc, atfunc) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequenceset_value_at_timestamptz( - ss: "const TSequenceSet *", t: int, strict: bool -) -> "Datum *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("Datum *") - result = _lib.tsequenceset_value_at_timestamptz( - ss_converted, t_converted, strict, out_result - ) +def spatial_srid(d: 'Datum', basetype: 'meosType') -> 'int32_t': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + result = _lib.spatial_srid(d_converted, basetype_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tsequenceset_value_n(ss: "const TSequenceSet *", n: int) -> "Datum *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - out_result = _ffi.new("Datum *") - result = _lib.tsequenceset_value_n(ss_converted, n, out_result) +def spatial_set_srid(d: 'Datum', basetype: 'meosType', srid: 'int32_t') -> 'bool': + d_converted = _ffi.cast('Datum', d) + basetype_converted = _ffi.cast('meosType', basetype) + srid_converted = _ffi.cast('int32_t', srid) + result = _lib.spatial_set_srid(d_converted, basetype_converted, srid_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tsequenceset_values_p(ss: "const TSequenceSet *") -> "Tuple['Datum *', 'int']": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tsequenceset_values_p(ss_converted, count) +def tspatialinst_srid(inst: 'const TInstant *') -> 'int': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tspatialinst_srid(inst_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_restart(temp: "Temporal *", count: int) -> None: - temp_converted = _ffi.cast("Temporal *", temp) - _lib.temporal_restart(temp_converted, count) +def tpointseq_azimuth(seq: 'const TSequence *') -> 'TSequenceSet *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tpointseq_azimuth(seq_converted) _check_error() + return result if result != _ffi.NULL else None -def temporal_tsequence(temp: "const Temporal *", interp: "interpType") -> "TSequence *": - temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_tsequence(temp_converted, interp_converted) +def tpointseq_cumulative_length(seq: 'const TSequence *', prevlength: float) -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tpointseq_cumulative_length(seq_converted, prevlength) _check_error() return result if result != _ffi.NULL else None -def temporal_tsequenceset( - temp: "const Temporal *", interp: "interpType" -) -> "TSequenceSet *": - temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_tsequenceset(temp_converted, interp_converted) +def tpointseq_is_simple(seq: 'const TSequence *') -> 'bool': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tpointseq_is_simple(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_shift_time( - inst: "const TInstant *", interv: "const Interval *" -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tinstant_shift_time(inst_converted, interv_converted) +def tpointseq_length(seq: 'const TSequence *') -> 'double': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tpointseq_length(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_to_tsequence( - inst: "const TInstant *", interp: "interpType" -) -> "TSequence *": - inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tinstant_to_tsequence(inst_converted, interp_converted) +def tpointseq_linear_trajectory(seq: 'const TSequence *', unary_union: bool) -> 'GSERIALIZED *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tpointseq_linear_trajectory(seq_converted, unary_union) _check_error() return result if result != _ffi.NULL else None -def tinstant_to_tsequence_free( - inst: "TInstant *", interp: "interpType" -) -> "TSequence *": - inst_converted = _ffi.cast("TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tinstant_to_tsequence_free(inst_converted, interp_converted) +def tgeoseq_stboxes(seq: 'const TSequence *') -> "Tuple['STBox *', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tgeoseq_stboxes(seq_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tinstant_to_tsequenceset( - inst: "const TInstant *", interp: "interpType" -) -> "TSequenceSet *": - inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tinstant_to_tsequenceset(inst_converted, interp_converted) +def tgeoseq_split_n_stboxes(seq: 'const TSequence *', max_count: int) -> "Tuple['STBox *', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tgeoseq_split_n_stboxes(seq_converted, max_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tnumber_shift_scale_value( - temp: "const Temporal *", - shift: "Datum", - width: "Datum", - hasshift: bool, - haswidth: bool, -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - shift_converted = _ffi.cast("Datum", shift) - width_converted = _ffi.cast("Datum", width) - result = _lib.tnumber_shift_scale_value( - temp_converted, shift_converted, width_converted, hasshift, haswidth - ) +def tpointseqset_azimuth(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tpointseqset_azimuth(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_shift_value(inst: "const TInstant *", shift: "Datum") -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - shift_converted = _ffi.cast("Datum", shift) - result = _lib.tnumberinst_shift_value(inst_converted, shift_converted) +def tpointseqset_cumulative_length(ss: 'const TSequenceSet *') -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tpointseqset_cumulative_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_shift_scale_value( - seq: "const TSequence *", - shift: "Datum", - width: "Datum", - hasshift: bool, - haswidth: bool, -) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - shift_converted = _ffi.cast("Datum", shift) - width_converted = _ffi.cast("Datum", width) - result = _lib.tnumberseq_shift_scale_value( - seq_converted, shift_converted, width_converted, hasshift, haswidth - ) +def tpointseqset_is_simple(ss: 'const TSequenceSet *') -> 'bool': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tpointseqset_is_simple(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_shift_scale_value( - ss: "const TSequenceSet *", - start: "Datum", - width: "Datum", - hasshift: bool, - haswidth: bool, -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - start_converted = _ffi.cast("Datum", start) - width_converted = _ffi.cast("Datum", width) - result = _lib.tnumberseqset_shift_scale_value( - ss_converted, start_converted, width_converted, hasshift, haswidth - ) +def tpointseqset_length(ss: 'const TSequenceSet *') -> 'double': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tpointseqset_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_restart(seq: "TSequence *", count: int) -> None: - seq_converted = _ffi.cast("TSequence *", seq) - _lib.tsequence_restart(seq_converted, count) +def tgeoseqset_stboxes(ss: 'const TSequenceSet *') -> "Tuple['STBox *', 'int']": + ss_converted = _ffi.cast('const TSequenceSet *', ss) + count = _ffi.new('int *') + result = _lib.tgeoseqset_stboxes(ss_converted, count) _check_error() + return result if result != _ffi.NULL else None, count[0] -def tsequence_set_interp( - seq: "const TSequence *", interp: "interpType" -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_set_interp(seq_converted, interp_converted) +def tgeoseqset_split_n_stboxes(ss: 'const TSequenceSet *', max_count: int) -> "Tuple['STBox *', 'int']": + ss_converted = _ffi.cast('const TSequenceSet *', ss) + count = _ffi.new('int *') + result = _lib.tgeoseqset_split_n_stboxes(ss_converted, max_count, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tsequence_shift_scale_time( - seq: "const TSequence *", shift: "const Interval *", duration: "const Interval *" -) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - shift_converted = _ffi.cast("const Interval *", shift) - duration_converted = _ffi.cast("const Interval *", duration) - result = _lib.tsequence_shift_scale_time( - seq_converted, shift_converted, duration_converted - ) +def tpoint_get_coord(temp: 'const Temporal *', coord: int) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tpoint_get_coord(temp_converted, coord) _check_error() return result if result != _ffi.NULL else None -def tsequence_subseq( - seq: "const TSequence *", from_: int, to: int, lower_inc: bool, upper_inc: bool -) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_subseq(seq_converted, from_, to, lower_inc, upper_inc) +def tgeominst_tgeoginst(inst: 'const TInstant *', oper: bool) -> 'TInstant *': + inst_converted = _ffi.cast('const TInstant *', inst) + result = _lib.tgeominst_tgeoginst(inst_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tinstant(seq: "const TSequence *") -> "TInstant *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_to_tinstant(seq_converted) +def tgeomseq_tgeogseq(seq: 'const TSequence *', oper: bool) -> 'TSequence *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tgeomseq_tgeogseq(seq_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset(seq: "const TSequence *") -> "TSequenceSet *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_to_tsequenceset(seq_converted) +def tgeomseqset_tgeogseqset(ss: 'const TSequenceSet *', oper: bool) -> 'TSequenceSet *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tgeomseqset_tgeogseqset(ss_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset_free(seq: "TSequence *") -> "TSequenceSet *": - seq_converted = _ffi.cast("TSequence *", seq) - result = _lib.tsequence_to_tsequenceset_free(seq_converted) +def tgeom_tgeog(temp: 'const Temporal *', oper: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeom_tgeog(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset_interp( - seq: "const TSequence *", interp: "interpType" -) -> "TSequenceSet *": - seq_converted = _ffi.cast("const TSequence *", seq) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp_converted) +def tgeo_tpoint(temp: 'const Temporal *', oper: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeo_tpoint(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restart(ss: "TSequenceSet *", count: int) -> None: - ss_converted = _ffi.cast("TSequenceSet *", ss) - _lib.tsequenceset_restart(ss_converted, count) +def tspatialinst_set_srid(inst: 'TInstant *', srid: 'int32_t') -> None: + inst_converted = _ffi.cast('TInstant *', inst) + srid_converted = _ffi.cast('int32_t', srid) + _lib.tspatialinst_set_srid(inst_converted, srid_converted) _check_error() -def tsequenceset_set_interp( - ss: "const TSequenceSet *", interp: "interpType" -) -> "Temporal *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequenceset_set_interp(ss_converted, interp_converted) +def tpointseq_make_simple(seq: 'const TSequence *') -> "Tuple['TSequence **', 'int']": + seq_converted = _ffi.cast('const TSequence *', seq) + count = _ffi.new('int *') + result = _lib.tpointseq_make_simple(seq_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tsequenceset_shift_scale_time( - ss: "const TSequenceSet *", start: "const Interval *", duration: "const Interval *" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - start_converted = _ffi.cast("const Interval *", start) - duration_converted = _ffi.cast("const Interval *", duration) - result = _lib.tsequenceset_shift_scale_time( - ss_converted, start_converted, duration_converted - ) +def tspatialseq_set_srid(seq: 'TSequence *', srid: 'int32_t') -> None: + seq_converted = _ffi.cast('TSequence *', seq) + srid_converted = _ffi.cast('int32_t', srid) + _lib.tspatialseq_set_srid(seq_converted, srid_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequenceset_to_discrete(ss: "const TSequenceSet *") -> "TSequence *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_to_discrete(ss_converted) +def tpointseqset_make_simple(ss: 'const TSequenceSet *') -> "Tuple['TSequence **', 'int']": + ss_converted = _ffi.cast('const TSequenceSet *', ss) + count = _ffi.new('int *') + result = _lib.tpointseqset_make_simple(ss_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def tsequenceset_to_linear(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_to_linear(ss_converted) +def tspatialseqset_set_srid(ss: 'TSequenceSet *', srid: 'int32_t') -> None: + ss_converted = _ffi.cast('TSequenceSet *', ss) + srid_converted = _ffi.cast('int32_t', srid) + _lib.tspatialseqset_set_srid(ss_converted, srid_converted) _check_error() - return result if result != _ffi.NULL else None -def tsequenceset_to_step(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_to_step(ss_converted) +def tpointseq_twcentroid(seq: 'const TSequence *') -> 'GSERIALIZED *': + seq_converted = _ffi.cast('const TSequence *', seq) + result = _lib.tpointseq_twcentroid(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tinstant(ss: "const TSequenceSet *") -> "TInstant *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_to_tinstant(ss_converted) +def tpointseqset_twcentroid(ss: 'const TSequenceSet *') -> 'GSERIALIZED *': + ss_converted = _ffi.cast('const TSequenceSet *', ss) + result = _lib.tpointseqset_twcentroid(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tsequence(ss: "const TSequenceSet *") -> "TSequence *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_to_tsequence(ss_converted) +def npoint_as_ewkt(np: 'const Npoint *', maxdd: int) -> str: + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_as_ewkt(np_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tinstant_merge( - inst1: "const TInstant *", inst2: "const TInstant *" -) -> "Temporal *": - inst1_converted = _ffi.cast("const TInstant *", inst1) - inst2_converted = _ffi.cast("const TInstant *", inst2) - result = _lib.tinstant_merge(inst1_converted, inst2_converted) +def npoint_as_hexwkb(np: 'const Npoint *', variant: int) -> "Tuple[str, 'size_t *']": + np_converted = _ffi.cast('const Npoint *', np) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') + result = _lib.npoint_as_hexwkb(np_converted, variant_converted, size_out) _check_error() - return result if result != _ffi.NULL else None + result = _ffi.string(result).decode('utf-8') + return result if result != _ffi.NULL else None, size_out[0] -def tinstant_merge_array(instants: "const TInstant **", count: int) -> "Temporal *": - instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - result = _lib.tinstant_merge_array(instants_converted, count) +def npoint_as_text(np: 'const Npoint *', maxdd: int) -> str: + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_as_text(np_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tsequence_append_tinstant( - seq: "TSequence *", - inst: "const TInstant *", - maxdist: float, - maxt: "const Interval *", - expand: bool, -) -> "Temporal *": - seq_converted = _ffi.cast("TSequence *", seq) - inst_converted = _ffi.cast("const TInstant *", inst) - maxt_converted = _ffi.cast("const Interval *", maxt) - result = _lib.tsequence_append_tinstant( - seq_converted, inst_converted, maxdist, maxt_converted, expand - ) +def npoint_as_wkb(np: 'const Npoint *', variant: int) -> "Tuple['uint8_t *', 'size_t *']": + np_converted = _ffi.cast('const Npoint *', np) + variant_converted = _ffi.cast('uint8_t', variant) + size_out = _ffi.new('size_t *') + result = _lib.npoint_as_wkb(np_converted, variant_converted, size_out) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, size_out[0] -def tsequence_append_tsequence( - seq1: "const TSequence *", seq2: "const TSequence *", expand: bool -) -> "Temporal *": - seq1_converted = _ffi.cast("const TSequence *", seq1) - seq2_converted = _ffi.cast("const TSequence *", seq2) - result = _lib.tsequence_append_tsequence(seq1_converted, seq2_converted, expand) +def npoint_from_hexwkb(hexwkb: str) -> 'Npoint *': + hexwkb_converted = hexwkb.encode('utf-8') + result = _lib.npoint_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_timestamptz( - seq: "const TSequence *", t: int, connect: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tsequence_delete_timestamptz(seq_converted, t_converted, connect) +def npoint_from_wkb(wkb: 'const uint8_t *', size: 'size_t') -> 'Npoint *': + wkb_converted = _ffi.cast('const uint8_t *', wkb) + size_converted = _ffi.cast('size_t', size) + result = _lib.npoint_from_wkb(wkb_converted, size_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_tstzset( - seq: "const TSequence *", s: "const Set *", connect: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tsequence_delete_tstzset(seq_converted, s_converted, connect) +def npoint_in(string: str) -> 'Npoint *': + string_converted = string.encode('utf-8') + result = _lib.npoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_tstzspan( - seq: "const TSequence *", s: "const Span *", connect: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - s_converted = _ffi.cast("const Span *", s) - result = _lib.tsequence_delete_tstzspan(seq_converted, s_converted, connect) +def npoint_out(np: 'const Npoint *', maxdd: int) -> str: + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_out(np_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tsequence_delete_tstzspanset( - seq: "const TSequence *", ss: "const SpanSet *", connect: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tsequence_delete_tstzspanset(seq_converted, ss_converted, connect) +def nsegment_in(string: str) -> 'Nsegment *': + string_converted = string.encode('utf-8') + result = _lib.nsegment_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_insert( - seq1: "const TSequence *", seq2: "const TSequence *", connect: bool -) -> "Temporal *": - seq1_converted = _ffi.cast("const TSequence *", seq1) - seq2_converted = _ffi.cast("const TSequence *", seq2) - result = _lib.tsequence_insert(seq1_converted, seq2_converted, connect) +def nsegment_out(ns: 'const Nsegment *', maxdd: int) -> str: + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_out(ns_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tsequence_merge( - seq1: "const TSequence *", seq2: "const TSequence *" -) -> "Temporal *": - seq1_converted = _ffi.cast("const TSequence *", seq1) - seq2_converted = _ffi.cast("const TSequence *", seq2) - result = _lib.tsequence_merge(seq1_converted, seq2_converted) +def npoint_make(rid: int, pos: float) -> 'Npoint *': + rid_converted = _ffi.cast('int64', rid) + result = _lib.npoint_make(rid_converted, pos) _check_error() return result if result != _ffi.NULL else None -def tsequence_merge_array(sequences: "const TSequence **", count: int) -> "Temporal *": - sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] - result = _lib.tsequence_merge_array(sequences_converted, count) +def nsegment_make(rid: int, pos1: float, pos2: float) -> 'Nsegment *': + rid_converted = _ffi.cast('int64', rid) + result = _lib.nsegment_make(rid_converted, pos1, pos2) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_append_tinstant( - ss: "TSequenceSet *", - inst: "const TInstant *", - maxdist: float, - maxt: "const Interval *", - expand: bool, -) -> "TSequenceSet *": - ss_converted = _ffi.cast("TSequenceSet *", ss) - inst_converted = _ffi.cast("const TInstant *", inst) - maxt_converted = _ffi.cast("const Interval *", maxt) - result = _lib.tsequenceset_append_tinstant( - ss_converted, inst_converted, maxdist, maxt_converted, expand - ) +def geompoint_to_npoint(gs: 'const GSERIALIZED *') -> 'Npoint *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geompoint_to_npoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_append_tsequence( - ss: "TSequenceSet *", seq: "const TSequence *", expand: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("TSequenceSet *", ss) - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequenceset_append_tsequence(ss_converted, seq_converted, expand) +def geom_to_nsegment(gs: 'const GSERIALIZED *') -> 'Nsegment *': + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.geom_to_nsegment(gs_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_timestamptz( - ss: "const TSequenceSet *", t: int -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tsequenceset_delete_timestamptz(ss_converted, t_converted) +def npoint_to_geompoint(np: 'const Npoint *') -> 'GSERIALIZED *': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_to_geompoint(np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_tstzset( - ss: "const TSequenceSet *", s: "const Set *" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tsequenceset_delete_tstzset(ss_converted, s_converted) +def npoint_to_nsegment(np: 'const Npoint *') -> 'Nsegment *': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_to_nsegment(np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_tstzspan( - ss: "const TSequenceSet *", s: "const Span *" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - s_converted = _ffi.cast("const Span *", s) - result = _lib.tsequenceset_delete_tstzspan(ss_converted, s_converted) +def npoint_to_stbox(np: 'const Npoint *') -> 'STBox *': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_tstzspanset( - ss: "const TSequenceSet *", ps: "const SpanSet *" -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - ps_converted = _ffi.cast("const SpanSet *", ps) - result = _lib.tsequenceset_delete_tstzspanset(ss_converted, ps_converted) +def nsegment_to_geom(ns: 'const Nsegment *') -> 'GSERIALIZED *': + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_to_geom(ns_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_insert( - ss1: "const TSequenceSet *", ss2: "const TSequenceSet *" -) -> "TSequenceSet *": - ss1_converted = _ffi.cast("const TSequenceSet *", ss1) - ss2_converted = _ffi.cast("const TSequenceSet *", ss2) - result = _lib.tsequenceset_insert(ss1_converted, ss2_converted) +def nsegment_to_stbox(np: 'const Nsegment *') -> 'STBox *': + np_converted = _ffi.cast('const Nsegment *', np) + result = _lib.nsegment_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_merge( - ss1: "const TSequenceSet *", ss2: "const TSequenceSet *" -) -> "TSequenceSet *": - ss1_converted = _ffi.cast("const TSequenceSet *", ss1) - ss2_converted = _ffi.cast("const TSequenceSet *", ss2) - result = _lib.tsequenceset_merge(ss1_converted, ss2_converted) +def npoint_hash(np: 'const Npoint *') -> 'uint32': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_hash(np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_merge_array( - seqsets: "const TSequenceSet **", count: int -) -> "TSequenceSet *": - seqsets_converted = [_ffi.cast("const TSequenceSet *", x) for x in seqsets] - result = _lib.tsequenceset_merge_array(seqsets_converted, count) +def npoint_hash_extended(np: 'const Npoint *', seed: int) -> 'uint64': + np_converted = _ffi.cast('const Npoint *', np) + seed_converted = _ffi.cast('uint64', seed) + result = _lib.npoint_hash_extended(np_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_expand_bbox(seq: "TSequence *", inst: "const TInstant *") -> None: - seq_converted = _ffi.cast("TSequence *", seq) - inst_converted = _ffi.cast("const TInstant *", inst) - _lib.tsequence_expand_bbox(seq_converted, inst_converted) +def npoint_position(np: 'const Npoint *') -> 'double': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_position(np_converted) _check_error() + return result if result != _ffi.NULL else None -def tsequence_set_bbox(seq: "const TSequence *", box: "void *") -> None: - seq_converted = _ffi.cast("const TSequence *", seq) - box_converted = _ffi.cast("void *", box) - _lib.tsequence_set_bbox(seq_converted, box_converted) +def npoint_route(np: 'const Npoint *') -> 'int64': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_route(np_converted) _check_error() + return result if result != _ffi.NULL else None -def tsequenceset_expand_bbox(ss: "TSequenceSet *", seq: "const TSequence *") -> None: - ss_converted = _ffi.cast("TSequenceSet *", ss) - seq_converted = _ffi.cast("const TSequence *", seq) - _lib.tsequenceset_expand_bbox(ss_converted, seq_converted) +def nsegment_end_position(ns: 'const Nsegment *') -> 'double': + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_end_position(ns_converted) _check_error() + return result if result != _ffi.NULL else None -def tsequenceset_set_bbox(ss: "const TSequenceSet *", box: "void *") -> None: - ss_converted = _ffi.cast("const TSequenceSet *", ss) - box_converted = _ffi.cast("void *", box) - _lib.tsequenceset_set_bbox(ss_converted, box_converted) +def nsegment_route(ns: 'const Nsegment *') -> 'int64': + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_route(ns_converted) _check_error() + return result if result != _ffi.NULL else None -def tdiscseq_restrict_minmax( - seq: "const TSequence *", min: bool, atfunc: bool -) -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tdiscseq_restrict_minmax(seq_converted, min, atfunc) +def nsegment_start_position(ns: 'const Nsegment *') -> 'double': + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_start_position(ns_converted) _check_error() return result if result != _ffi.NULL else None -def tcontseq_restrict_minmax( - seq: "const TSequence *", min: bool, atfunc: bool -) -> "TSequenceSet *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tcontseq_restrict_minmax(seq_converted, min, atfunc) +def route_exists(rid: int) -> 'bool': + rid_converted = _ffi.cast('int64', rid) + result = _lib.route_exists(rid_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_bbox_restrict_set(temp: "const Temporal *", set: "const Set *") -> "bool": - temp_converted = _ffi.cast("const Temporal *", temp) - set_converted = _ffi.cast("const Set *", set) - result = _lib.temporal_bbox_restrict_set(temp_converted, set_converted) +def route_geom(rid: int) -> 'GSERIALIZED *': + rid_converted = _ffi.cast('int64', rid) + result = _lib.route_geom(rid_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_minmax( - temp: "const Temporal *", min: bool, atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_restrict_minmax(temp_converted, min, atfunc) +def route_length(rid: int) -> 'double': + rid_converted = _ffi.cast('int64', rid) + result = _lib.route_length(rid_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_timestamptz( - temp: "const Temporal *", t: int, atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.temporal_restrict_timestamptz(temp_converted, t_converted, atfunc) +def npoint_round(np: 'const Npoint *', maxdd: int) -> 'Npoint *': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_round(np_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_tstzset( - temp: "const Temporal *", s: "const Set *", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Set *", s) - result = _lib.temporal_restrict_tstzset(temp_converted, s_converted, atfunc) +def nsegment_round(ns: 'const Nsegment *', maxdd: int) -> 'Nsegment *': + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_round(ns_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_tstzspan( - temp: "const Temporal *", s: "const Span *", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - s_converted = _ffi.cast("const Span *", s) - result = _lib.temporal_restrict_tstzspan(temp_converted, s_converted, atfunc) +def get_srid_ways() -> 'int32_t': + result = _lib.get_srid_ways() _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.temporal_restrict_tstzspanset(temp_converted, ss_converted, atfunc) +def npoint_srid(np: 'const Npoint *') -> 'int32_t': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_srid(np_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_value( - temp: "const Temporal *", value: "Datum", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.temporal_restrict_value(temp_converted, value_converted, atfunc) +def nsegment_srid(ns: 'const Nsegment *') -> 'int32_t': + ns_converted = _ffi.cast('const Nsegment *', ns) + result = _lib.nsegment_srid(ns_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_values( - temp: "const Temporal *", set: "const Set *", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - set_converted = _ffi.cast("const Set *", set) - result = _lib.temporal_restrict_values(temp_converted, set_converted, atfunc) +def npoint_timestamptz_to_stbox(np: 'const Npoint *', t: int) -> 'STBox *': + np_converted = _ffi.cast('const Npoint *', np) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.npoint_timestamptz_to_stbox(np_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "Datum *": - temp_converted = _ffi.cast("const Temporal *", temp) - t_converted = _ffi.cast("TimestampTz", t) - out_result = _ffi.new("Datum *") - result = _lib.temporal_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) +def npoint_tstzspan_to_stbox(np: 'const Npoint *', s: 'const Span *') -> 'STBox *': + np_converted = _ffi.cast('const Npoint *', np) + s_converted = _ffi.cast('const Span *', s) + result = _lib.npoint_tstzspan_to_stbox(np_converted, s_converted) _check_error() - if result: - return out_result if out_result != _ffi.NULL else None - return None + return result if result != _ffi.NULL else None -def tinstant_restrict_tstzspan( - inst: "const TInstant *", period: "const Span *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - period_converted = _ffi.cast("const Span *", period) - result = _lib.tinstant_restrict_tstzspan(inst_converted, period_converted, atfunc) +def npoint_cmp(np1: 'const Npoint *', np2: 'const Npoint *') -> 'int': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_cmp(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_tstzspanset( - inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tinstant_restrict_tstzspanset(inst_converted, ss_converted, atfunc) +def npoint_eq(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_eq(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_timestamptz( - inst: "const TInstant *", t: int, atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tinstant_restrict_timestamptz(inst_converted, t_converted, atfunc) +def npoint_ge(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_ge(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_tstzset( - inst: "const TInstant *", s: "const Set *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tinstant_restrict_tstzset(inst_converted, s_converted, atfunc) +def npoint_gt(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_gt(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_value( - inst: "const TInstant *", value: "Datum", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - value_converted = _ffi.cast("Datum", value) - result = _lib.tinstant_restrict_value(inst_converted, value_converted, atfunc) +def npoint_le(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_le(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_values( - inst: "const TInstant *", set: "const Set *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - set_converted = _ffi.cast("const Set *", set) - result = _lib.tinstant_restrict_values(inst_converted, set_converted, atfunc) +def npoint_lt(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_lt(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_restrict_span( - temp: "const Temporal *", span: "const Span *", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumber_restrict_span(temp_converted, span_converted, atfunc) +def npoint_ne(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_ne(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_restrict_spanset( - temp: "const Temporal *", ss: "const SpanSet *", atfunc: bool -) -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tnumber_restrict_spanset(temp_converted, ss_converted, atfunc) +def npoint_same(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': + np1_converted = _ffi.cast('const Npoint *', np1) + np2_converted = _ffi.cast('const Npoint *', np2) + result = _lib.npoint_same(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_restrict_span( - inst: "const TInstant *", span: "const Span *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) +def nsegment_cmp(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'int': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_cmp(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_restrict_spanset( - inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool -) -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) +def nsegment_eq(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_eq(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_restrict_span( - ss: "const TSequenceSet *", span: "const Span *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - span_converted = _ffi.cast("const Span *", span) - result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) +def nsegment_ge(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_ge(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_restrict_spanset( - ss: "const TSequenceSet *", spanset: "const SpanSet *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - spanset_converted = _ffi.cast("const SpanSet *", spanset) - result = _lib.tnumberseqset_restrict_spanset( - ss_converted, spanset_converted, atfunc - ) +def nsegment_gt(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_gt(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_at_timestamptz(seq: "const TSequence *", t: int) -> "TInstant *": - seq_converted = _ffi.cast("const TSequence *", seq) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tsequence_at_timestamptz(seq_converted, t_converted) +def nsegment_le(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_le(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_restrict_tstzspan( - seq: "const TSequence *", s: "const Span *", atfunc: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - s_converted = _ffi.cast("const Span *", s) - result = _lib.tsequence_restrict_tstzspan(seq_converted, s_converted, atfunc) +def nsegment_lt(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_lt(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_restrict_tstzspanset( - seq: "const TSequence *", ss: "const SpanSet *", atfunc: bool -) -> "Temporal *": - seq_converted = _ffi.cast("const TSequence *", seq) - ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tsequence_restrict_tstzspanset(seq_converted, ss_converted, atfunc) +def nsegment_ne(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': + ns1_converted = _ffi.cast('const Nsegment *', ns1) + ns2_converted = _ffi.cast('const Nsegment *', ns2) + result = _lib.nsegment_ne(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_minmax( - ss: "const TSequenceSet *", min: bool, atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_restrict_minmax(ss_converted, min, atfunc) +def npointset_in(string: str) -> 'Set *': + string_converted = string.encode('utf-8') + result = _lib.npointset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_tstzspan( - ss: "const TSequenceSet *", s: "const Span *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - s_converted = _ffi.cast("const Span *", s) - result = _lib.tsequenceset_restrict_tstzspan(ss_converted, s_converted, atfunc) +def npointset_out(s: 'const Set *', maxdd: int) -> str: + s_converted = _ffi.cast('const Set *', s) + result = _lib.npointset_out(s_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def tsequenceset_restrict_tstzspanset( - ss: "const TSequenceSet *", ps: "const SpanSet *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - ps_converted = _ffi.cast("const SpanSet *", ps) - result = _lib.tsequenceset_restrict_tstzspanset(ss_converted, ps_converted, atfunc) +def npointset_make(values: 'const Npoint **', count: int) -> 'Set *': + values_converted = [_ffi.cast('const Npoint *', x) for x in values] + result = _lib.npointset_make(values_converted, count) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_timestamptz( - ss: "const TSequenceSet *", t: int, atfunc: bool -) -> "Temporal *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - t_converted = _ffi.cast("TimestampTz", t) - result = _lib.tsequenceset_restrict_timestamptz(ss_converted, t_converted, atfunc) +def npoint_to_set(np: 'const Npoint *') -> 'Set *': + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_to_set(np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_tstzset( - ss: "const TSequenceSet *", s: "const Set *", atfunc: bool -) -> "Temporal *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tsequenceset_restrict_tstzset(ss_converted, s_converted, atfunc) +def npointset_end_value(s: 'const Set *') -> 'Npoint *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.npointset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_value( - ss: "const TSequenceSet *", value: "Datum", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - value_converted = _ffi.cast("Datum", value) - result = _lib.tsequenceset_restrict_value(ss_converted, value_converted, atfunc) +def npointset_routes(s: 'const Set *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.npointset_routes(s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_values( - ss: "const TSequenceSet *", s: "const Set *", atfunc: bool -) -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - s_converted = _ffi.cast("const Set *", s) - result = _lib.tsequenceset_restrict_values(ss_converted, s_converted, atfunc) +def npointset_start_value(s: 'const Set *') -> 'Npoint *': + s_converted = _ffi.cast('const Set *', s) + result = _lib.npointset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_cmp(inst1: "const TInstant *", inst2: "const TInstant *") -> "int": - inst1_converted = _ffi.cast("const TInstant *", inst1) - inst2_converted = _ffi.cast("const TInstant *", inst2) - result = _lib.tinstant_cmp(inst1_converted, inst2_converted) +def npointset_value_n(s: 'const Set *', n: int) -> 'Npoint **': + s_converted = _ffi.cast('const Set *', s) + out_result = _ffi.new('Npoint **') + result = _lib.npointset_value_n(s_converted, n, out_result) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result if out_result != _ffi.NULL else None + return None -def tinstant_eq(inst1: "const TInstant *", inst2: "const TInstant *") -> "bool": - inst1_converted = _ffi.cast("const TInstant *", inst1) - inst2_converted = _ffi.cast("const TInstant *", inst2) - result = _lib.tinstant_eq(inst1_converted, inst2_converted) +def npointset_values(s: 'const Set *') -> 'Npoint **': + s_converted = _ffi.cast('const Set *', s) + result = _lib.npointset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_cmp(seq1: "const TSequence *", seq2: "const TSequence *") -> "int": - seq1_converted = _ffi.cast("const TSequence *", seq1) - seq2_converted = _ffi.cast("const TSequence *", seq2) - result = _lib.tsequence_cmp(seq1_converted, seq2_converted) +def contained_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'bool': + np_converted = _ffi.cast('const Npoint *', np) + s_converted = _ffi.cast('const Set *', s) + result = _lib.contained_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_eq(seq1: "const TSequence *", seq2: "const TSequence *") -> "bool": - seq1_converted = _ffi.cast("const TSequence *", seq1) - seq2_converted = _ffi.cast("const TSequence *", seq2) - result = _lib.tsequence_eq(seq1_converted, seq2_converted) +def contains_set_npoint(s: 'const Set *', np: 'Npoint *') -> 'bool': + s_converted = _ffi.cast('const Set *', s) + np_converted = _ffi.cast('Npoint *', np) + result = _lib.contains_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_cmp(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> "int": - ss1_converted = _ffi.cast("const TSequenceSet *", ss1) - ss2_converted = _ffi.cast("const TSequenceSet *", ss2) - result = _lib.tsequenceset_cmp(ss1_converted, ss2_converted) +def intersection_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'Set *': + np_converted = _ffi.cast('const Npoint *', np) + s_converted = _ffi.cast('const Set *', s) + result = _lib.intersection_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_eq(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> "bool": - ss1_converted = _ffi.cast("const TSequenceSet *", ss1) - ss2_converted = _ffi.cast("const TSequenceSet *", ss2) - result = _lib.tsequenceset_eq(ss1_converted, ss2_converted) +def intersection_set_npoint(s: 'const Set *', np: 'const Npoint *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.intersection_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_eq_base_temporal(value_converted, temp_converted) +def minus_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'Set *': + np_converted = _ffi.cast('const Npoint *', np) + s_converted = _ffi.cast('const Set *', s) + result = _lib.minus_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.always_eq_temporal_base(temp_converted, value_converted) +def minus_set_npoint(s: 'const Set *', np: 'const Npoint *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.minus_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ne_base_temporal(value_converted, temp_converted) +def npoint_union_transfn(state: 'Set *', np: 'const Npoint *') -> 'Set *': + state_converted = _ffi.cast('Set *', state) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.npoint_union_transfn(state_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.always_ne_temporal_base(temp_converted, value_converted) +def union_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'Set *': + np_converted = _ffi.cast('const Npoint *', np) + s_converted = _ffi.cast('const Set *', s) + result = _lib.union_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_ge_base_temporal(value_converted, temp_converted) +def union_set_npoint(s: 'const Set *', np: 'const Npoint *') -> 'Set *': + s_converted = _ffi.cast('const Set *', s) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.union_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.always_ge_temporal_base(temp_converted, value_converted) +def tnpoint_in(string: str) -> 'Temporal *': + string_converted = string.encode('utf-8') + result = _lib.tnpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_gt_base_temporal(value_converted, temp_converted) +def tnpoint_out(temp: 'const Temporal *', maxdd: int) -> str: + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_out(temp_converted, maxdd) _check_error() + result = _ffi.string(result).decode('utf-8') return result if result != _ffi.NULL else None -def always_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.always_gt_temporal_base(temp_converted, value_converted) +def tnpointinst_make(np: 'const Npoint *', t: int) -> 'TInstant *': + np_converted = _ffi.cast('const Npoint *', np) + t_converted = _ffi.cast('TimestampTz', t) + result = _lib.tnpointinst_make(np_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_le_base_temporal(value_converted, temp_converted) +def tgeompoint_to_tnpoint(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tgeompoint_to_tnpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.always_le_temporal_base(temp_converted, value_converted) +def tnpoint_to_tgeompoint(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.always_lt_base_temporal(value_converted, temp_converted) +def tnpoint_cumulative_length(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.always_lt_temporal_base(temp_converted, value_converted) +def tnpoint_length(temp: 'const Temporal *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_eq_base_temporal(value_converted, temp_converted) +def tnpoint_positions(temp: 'const Temporal *') -> "Tuple['Nsegment **', 'int']": + temp_converted = _ffi.cast('const Temporal *', temp) + count = _ffi.new('int *') + result = _lib.tnpoint_positions(temp_converted, count) _check_error() - return result if result != _ffi.NULL else None + return result if result != _ffi.NULL else None, count[0] -def ever_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.ever_eq_temporal_base(temp_converted, value_converted) +def tnpoint_route(temp: 'const Temporal *') -> 'int64': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_route(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ne_base_temporal(value_converted, temp_converted) +def tnpoint_routes(temp: 'const Temporal *') -> 'Set *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_routes(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.ever_ne_temporal_base(temp_converted, value_converted) +def tnpoint_speed(temp: 'const Temporal *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_speed(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_ge_base_temporal(value_converted, temp_converted) +def tnpoint_trajectory(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_trajectory(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.ever_ge_temporal_base(temp_converted, value_converted) +def tnpoint_twcentroid(temp: 'const Temporal *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.tnpoint_twcentroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_gt_base_temporal(value_converted, temp_converted) +def tnpoint_at_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tnpoint_at_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.ever_gt_temporal_base(temp_converted, value_converted) +def tnpoint_at_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.tnpoint_at_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_le_base_temporal(value_converted, temp_converted) +def tnpoint_at_npointset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tnpoint_at_npointset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.ever_le_temporal_base(temp_converted, value_converted) +def tnpoint_at_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tnpoint_at_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def ever_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": - value_converted = _ffi.cast("Datum", value) - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.ever_lt_base_temporal(value_converted, temp_converted) +def tnpoint_minus_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tnpoint_minus_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.ever_lt_temporal_base(temp_converted, value_converted) +def tnpoint_minus_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.tnpoint_minus_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_derivative(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tfloatseq_derivative(seq_converted) +def tnpoint_minus_npointset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + s_converted = _ffi.cast('const Set *', s) + result = _lib.tnpoint_minus_npointset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_derivative(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tfloatseqset_derivative(ss_converted) +def tnpoint_minus_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.tnpoint_minus_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_abs(inst: "const TInstant *") -> "TInstant *": - inst_converted = _ffi.cast("const TInstant *", inst) - result = _lib.tnumberinst_abs(inst_converted) +def tdistance_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.tdistance_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_abs(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tnumberseq_abs(seq_converted) +def tdistance_tnpoint_point(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.tdistance_tnpoint_point(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_angular_difference(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tnumberseq_angular_difference(seq_converted) +def tdistance_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.tdistance_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_delta_value(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tnumberseq_delta_value(seq_converted) +def nad_tnpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.nad_tnpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_abs(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tnumberseqset_abs(ss_converted) +def nad_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.nad_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_angular_difference(ss: "const TSequenceSet *") -> "TSequence *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tnumberseqset_angular_difference(ss_converted) +def nad_tnpoint_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'double': + temp_converted = _ffi.cast('const Temporal *', temp) + box_converted = _ffi.cast('const STBox *', box) + result = _lib.nad_tnpoint_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_delta_value(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tnumberseqset_delta_value(ss_converted) +def nad_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.nad_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.tdistance_tnumber_number(temp_converted, value_converted) +def nai_tnpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.nai_tnpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "double": - box1_converted = _ffi.cast("const TBox *", box1) - box2_converted = _ffi.cast("const TBox *", box2) - result = _lib.nad_tbox_tbox(box1_converted, box2_converted) +def nai_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'TInstant *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.nai_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - value_converted = _ffi.cast("Datum", value) - result = _lib.nad_tnumber_number(temp_converted, value_converted) +def nai_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'TInstant *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.nai_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": - temp_converted = _ffi.cast("const Temporal *", temp) - box_converted = _ffi.cast("const TBox *", box) - result = _lib.nad_tnumber_tbox(temp_converted, box_converted) +def shortestline_tnpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + gs_converted = _ffi.cast('const GSERIALIZED *', gs) + result = _lib.shortestline_tnpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": - temp1_converted = _ffi.cast("const Temporal *", temp1) - temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.nad_tnumber_tnumber(temp1_converted, temp2_converted) +def shortestline_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'GSERIALIZED *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.shortestline_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_integral(seq: "const TSequence *") -> "double": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tnumberseq_integral(seq_converted) +def shortestline_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'GSERIALIZED *': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.shortestline_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_twavg(seq: "const TSequence *") -> "double": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tnumberseq_twavg(seq_converted) +def tnpoint_tcentroid_transfn(state: 'SkipList *', temp: 'Temporal *') -> 'SkipList *': + state_converted = _ffi.cast('SkipList *', state) + temp_converted = _ffi.cast('Temporal *', temp) + result = _lib.tnpoint_tcentroid_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_integral(ss: "const TSequenceSet *") -> "double": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tnumberseqset_integral(ss_converted) +def always_eq_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': + np_converted = _ffi.cast('const Npoint *', np) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_eq_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_twavg(ss: "const TSequenceSet *") -> "double": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tnumberseqset_twavg(ss_converted) +def always_eq_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.always_eq_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_compact(temp: "const Temporal *") -> "Temporal *": - temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_compact(temp_converted) +def always_eq_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.always_eq_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_compact(seq: "const TSequence *") -> "TSequence *": - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_compact(seq_converted) +def always_ne_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': + np_converted = _ffi.cast('const Npoint *', np) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.always_ne_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_compact(ss: "const TSequenceSet *") -> "TSequenceSet *": - ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_compact(ss_converted) +def always_ne_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.always_ne_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def skiplist_free(list: "SkipList *") -> None: - list_converted = _ffi.cast("SkipList *", list) - _lib.skiplist_free(list_converted) +def always_ne_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.always_ne_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() + return result if result != _ffi.NULL else None -def temporal_app_tinst_transfn( - state: "Temporal *", - inst: "const TInstant *", - interp: "interpType", - maxdist: float, - maxt: "const Interval *", -) -> "Temporal *": - state_converted = _ffi.cast("Temporal *", state) - inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - maxt_converted = _ffi.cast("const Interval *", maxt) - result = _lib.temporal_app_tinst_transfn( - state_converted, inst_converted, interp_converted, maxdist, maxt_converted - ) +def ever_eq_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': + np_converted = _ffi.cast('const Npoint *', np) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_eq_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_app_tseq_transfn( - state: "Temporal *", seq: "const TSequence *" -) -> "Temporal *": - state_converted = _ffi.cast("Temporal *", state) - seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.temporal_app_tseq_transfn(state_converted, seq_converted) +def ever_eq_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.ever_eq_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def span_bins( - s: "const Span *", size: "Datum", origin: "Datum" -) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast("const Span *", s) - size_converted = _ffi.cast("Datum", size) - origin_converted = _ffi.cast("Datum", origin) - count = _ffi.new("int *") - result = _lib.span_bins(s_converted, size_converted, origin_converted, count) +def ever_eq_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.ever_eq_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def spanset_bins( - ss: "const SpanSet *", size: "Datum", origin: "Datum" -) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast("const SpanSet *", ss) - size_converted = _ffi.cast("Datum", size) - origin_converted = _ffi.cast("Datum", origin) - count = _ffi.new("int *") - result = _lib.spanset_bins(ss_converted, size_converted, origin_converted, count) +def ever_ne_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': + np_converted = _ffi.cast('const Npoint *', np) + temp_converted = _ffi.cast('const Temporal *', temp) + result = _lib.ever_ne_npoint_tnpoint(np_converted, temp_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_value_bins( - temp: "const Temporal *", size: "Datum", origin: "Datum" -) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - size_converted = _ffi.cast("Datum", size) - origin_converted = _ffi.cast("Datum", origin) - count = _ffi.new("int *") - result = _lib.tnumber_value_bins( - temp_converted, size_converted, origin_converted, count - ) +def ever_ne_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.ever_ne_tnpoint_npoint(temp_converted, np_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_value_time_boxes( - temp: "const Temporal *", - vsize: "Datum", - duration: "const Interval *", - vorigin: "Datum", - torigin: int, -) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - vsize_converted = _ffi.cast("Datum", vsize) - duration_converted = _ffi.cast("const Interval *", duration) - vorigin_converted = _ffi.cast("Datum", vorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tnumber_value_time_boxes( - temp_converted, - vsize_converted, - duration_converted, - vorigin_converted, - torigin_converted, - count, - ) +def ever_ne_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': + temp1_converted = _ffi.cast('const Temporal *', temp1) + temp2_converted = _ffi.cast('const Temporal *', temp2) + result = _lib.ever_ne_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_value_split( - temp: "const Temporal *", vsize: "Datum", vorigin: "Datum", bins: "Datum **" -) -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - vsize_converted = _ffi.cast("Datum", vsize) - vorigin_converted = _ffi.cast("Datum", vorigin) - bins_converted = [_ffi.cast("Datum *", x) for x in bins] - count = _ffi.new("int *") - result = _lib.tnumber_value_split( - temp_converted, vsize_converted, vorigin_converted, bins_converted, count - ) +def teq_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.teq_tnpoint_npoint(temp_converted, np_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tbox_get_value_time_tile( - value: "Datum", - t: int, - vsize: "Datum", - duration: "const Interval *", - vorigin: "Datum", - torigin: int, - basetype: "meosType", - spantype: "meosType", -) -> "TBox *": - value_converted = _ffi.cast("Datum", value) - t_converted = _ffi.cast("TimestampTz", t) - vsize_converted = _ffi.cast("Datum", vsize) - duration_converted = _ffi.cast("const Interval *", duration) - vorigin_converted = _ffi.cast("Datum", vorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - basetype_converted = _ffi.cast("meosType", basetype) - spantype_converted = _ffi.cast("meosType", spantype) - result = _lib.tbox_get_value_time_tile( - value_converted, - t_converted, - vsize_converted, - duration_converted, - vorigin_converted, - torigin_converted, - basetype_converted, - spantype_converted, - ) +def tne_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': + temp_converted = _ffi.cast('const Temporal *', temp) + np_converted = _ffi.cast('const Npoint *', np) + result = _lib.tne_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_value_time_split( - temp: "const Temporal *", - size: "Datum", - duration: "const Interval *", - vorigin: "Datum", - torigin: int, - value_bins: "Datum **", - time_bins: "TimestampTz **", -) -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast("const Temporal *", temp) - size_converted = _ffi.cast("Datum", size) - duration_converted = _ffi.cast("const Interval *", duration) - vorigin_converted = _ffi.cast("Datum", vorigin) - torigin_converted = _ffi.cast("TimestampTz", torigin) - value_bins_converted = [_ffi.cast("Datum *", x) for x in value_bins] - time_bins_converted = [_ffi.cast("TimestampTz *", x) for x in time_bins] - count = _ffi.new("int *") - result = _lib.tnumber_value_time_split( - temp_converted, - size_converted, - duration_converted, - vorigin_converted, - torigin_converted, - value_bins_converted, - time_bins_converted, - count, - ) - _check_error() - return result if result != _ffi.NULL else None, count[0] From 130e636039c114c10408206a1a227b14eba833e8 Mon Sep 17 00:00:00 2001 From: diviloper Date: Sun, 27 Jul 2025 20:40:13 +0200 Subject: [PATCH 03/36] Remove common config file --- builder/build_header.py | 13 ++++++++++--- builder/build_pymeos.py | 10 ++++++++-- builder/meos_configs.py | 8 -------- 3 files changed, 18 insertions(+), 13 deletions(-) delete mode 100644 builder/meos_configs.py diff --git a/builder/build_header.py b/builder/build_header.py index 019c9cb..3b38cf4 100644 --- a/builder/build_header.py +++ b/builder/build_header.py @@ -5,7 +5,14 @@ import sys from typing import Set, Tuple, Match -from builder.meos_configs import header_files +header_files = [ + "meos.h", + "meos_catalog.h", + "meos_geo.h", + "meos_internal.h", + "meos_internal_geo.h", + "meos_npoint.h", +] def get_defined_functions(library_path): @@ -23,7 +30,7 @@ def remove_undefined_functions(content, so_path): def remove_if_not_defined(m): function = m.group(0).split("(")[0].strip().split(" ")[-1].strip("*") if function in defined or ( - sys.platform == "darwin" and ("_" + function) in defined + sys.platform == "darwin" and ("_" + function) in defined ): for t in undefined_types: if t in m.group(0): @@ -44,7 +51,7 @@ def remove_if_not_defined(m): def remove_repeated_functions( - content: str, seen_functions: set + content: str, seen_functions: set ) -> Tuple[str, Set[str]]: def remove_if_repeated(m: Match): function = m.group("function") diff --git a/builder/build_pymeos.py b/builder/build_pymeos.py index e2aa667..38a7ea2 100644 --- a/builder/build_pymeos.py +++ b/builder/build_pymeos.py @@ -2,7 +2,14 @@ from cffi import FFI -from builder.meos_configs import header_files +header_files = [ + "meos.h", + "meos_catalog.h", + "meos_geo.h", + "meos_internal.h", + "meos_internal_geo.h", + "meos_npoint.h", +] ffibuilder = FFI() @@ -22,7 +29,6 @@ def get_include_dirs(): return [path for path in paths if os.path.exists(path)] - ffibuilder.set_source( "_meos_cffi", "\n".join(f'#include "{h}"' for h in header_files), diff --git a/builder/meos_configs.py b/builder/meos_configs.py deleted file mode 100644 index daf25ce..0000000 --- a/builder/meos_configs.py +++ /dev/null @@ -1,8 +0,0 @@ -header_files = [ - "meos.h", - "meos_catalog.h", - "meos_geo.h", - "meos_internal.h", - "meos_internal_geo.h", - "meos_npoint.h", -] From 5f202f2532e80f98448025b4e7801821aebadbae Mon Sep 17 00:00:00 2001 From: diviloper Date: Mon, 28 Jul 2025 18:34:15 +0200 Subject: [PATCH 04/36] Add MEOS spatial data csv to wheel --- builder/build_header.py | 4 +- builder/build_pymeos_functions_modifiers.py | 2 +- builder/meos.h | 2 + pymeos_cffi/__init__.py | 4614 +++--- pymeos_cffi/functions.py | 14034 ++++++++++-------- setup.py | 12 + 6 files changed, 10127 insertions(+), 8541 deletions(-) diff --git a/builder/build_header.py b/builder/build_header.py index 3b38cf4..4953c39 100644 --- a/builder/build_header.py +++ b/builder/build_header.py @@ -30,7 +30,7 @@ def remove_undefined_functions(content, so_path): def remove_if_not_defined(m): function = m.group(0).split("(")[0].strip().split(" ")[-1].strip("*") if function in defined or ( - sys.platform == "darwin" and ("_" + function) in defined + sys.platform == "darwin" and ("_" + function) in defined ): for t in undefined_types: if t in m.group(0): @@ -51,7 +51,7 @@ def remove_if_not_defined(m): def remove_repeated_functions( - content: str, seen_functions: set + content: str, seen_functions: set ) -> Tuple[str, Set[str]]: def remove_if_repeated(m: Match): function = m.group("function") diff --git a/builder/build_pymeos_functions_modifiers.py b/builder/build_pymeos_functions_modifiers.py index 9ad4176..de8c3a4 100644 --- a/builder/build_pymeos_functions_modifiers.py +++ b/builder/build_pymeos_functions_modifiers.py @@ -48,7 +48,7 @@ def meos_initialize_modifier(_: str) -> str: # Assume we are in a wheel and the PROJ data is in the package os.environ["PROJ_DATA"] = proj_dir os.environ["PROJ_LIB"] = proj_dir - + _lib.meos_set_spatial_ref_sys_csv(os.path.join(os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv").encode('utf-8')) _lib.meos_initialize() tz_str_converted = tz_str.encode('utf-8') if tz_str is not None else _ffi.NULL _lib.meos_initialize_timezone(tz_str_converted) diff --git a/builder/meos.h b/builder/meos.h index 9053ff0..c4090a7 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -275,6 +275,8 @@ extern bool meos_set_intervalstyle(const char *newval, int extra); extern char *meos_get_datestyle(void); extern char *meos_get_intervalstyle(void); +extern void meos_set_spatial_ref_sys_csv(const char* path); + extern void meos_initialize(void); extern void meos_finalize(void); diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index 99e59c3..9860b3a 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -34,2311 +34,2311 @@ "InterpolationType", "SpatialRelation", # Functions - 'py_error_handler', - 'create_pointer', - 'get_address', - 'datetime_to_timestamptz', - 'timestamptz_to_datetime', - 'date_to_date_adt', - 'date_adt_to_date', - 'timedelta_to_interval', - 'interval_to_timedelta', - 'geo_to_gserialized', - 'geometry_to_gserialized', - 'geography_to_gserialized', - 'gserialized_to_shapely_point', - 'gserialized_to_shapely_geometry', - 'as_tinstant', - 'as_tsequence', - 'as_tsequenceset', - 'time_in', - 'time_out', - 'meos_errno', - 'meos_errno_set', - 'meos_errno_restore', - 'meos_errno_reset', - 'meos_finalize_projsrs', - 'meos_finalize_ways', - 'meos_set_datestyle', - 'meos_set_intervalstyle', - 'meos_get_datestyle', - 'meos_get_intervalstyle', - 'meos_initialize', - 'meos_finalize', - 'add_date_int', - 'add_interval_interval', - 'add_timestamptz_interval', - 'bool_in', - 'bool_out', - 'cstring2text', - 'date_to_timestamp', - 'date_to_timestamptz', - 'float_exp', - 'float_ln', - 'float_log10', - 'float_round', - 'interval_make', - 'minus_date_date', - 'minus_date_int', - 'minus_timestamptz_interval', - 'minus_timestamptz_timestamptz', - 'mul_interval_double', - 'pg_date_in', - 'pg_date_out', - 'pg_interval_cmp', - 'pg_interval_in', - 'pg_interval_out', - 'pg_timestamp_in', - 'pg_timestamp_out', - 'pg_timestamptz_in', - 'pg_timestamptz_out', - 'text2cstring', - 'text_cmp', - 'text_copy', - 'text_initcap', - 'text_lower', - 'text_out', - 'text_upper', - 'textcat_text_text', - 'timestamptz_shift', - 'timestamp_to_date', - 'timestamptz_to_date', - 'bigintset_in', - 'bigintset_out', - 'bigintspan_in', - 'bigintspan_out', - 'bigintspanset_in', - 'bigintspanset_out', - 'dateset_in', - 'dateset_out', - 'datespan_in', - 'datespan_out', - 'datespanset_in', - 'datespanset_out', - 'floatset_in', - 'floatset_out', - 'floatspan_in', - 'floatspan_out', - 'floatspanset_in', - 'floatspanset_out', - 'intset_in', - 'intset_out', - 'intspan_in', - 'intspan_out', - 'intspanset_in', - 'intspanset_out', - 'set_as_hexwkb', - 'set_as_wkb', - 'set_from_hexwkb', - 'set_from_wkb', - 'span_as_hexwkb', - 'span_as_wkb', - 'span_from_hexwkb', - 'span_from_wkb', - 'spanset_as_hexwkb', - 'spanset_as_wkb', - 'spanset_from_hexwkb', - 'spanset_from_wkb', - 'textset_in', - 'textset_out', - 'tstzset_in', - 'tstzset_out', - 'tstzspan_in', - 'tstzspan_out', - 'tstzspanset_in', - 'tstzspanset_out', - 'bigintset_make', - 'bigintspan_make', - 'dateset_make', - 'datespan_make', - 'floatset_make', - 'floatspan_make', - 'intset_make', - 'intspan_make', - 'set_copy', - 'span_copy', - 'spanset_copy', - 'spanset_make', - 'textset_make', - 'tstzset_make', - 'tstzspan_make', - 'bigint_to_set', - 'bigint_to_span', - 'bigint_to_spanset', - 'date_to_set', - 'date_to_span', - 'date_to_spanset', - 'dateset_to_tstzset', - 'datespan_to_tstzspan', - 'datespanset_to_tstzspanset', - 'float_to_set', - 'float_to_span', - 'float_to_spanset', - 'floatset_to_intset', - 'floatspan_to_intspan', - 'floatspanset_to_intspanset', - 'int_to_set', - 'int_to_span', - 'int_to_spanset', - 'intset_to_floatset', - 'intspan_to_floatspan', - 'intspanset_to_floatspanset', - 'set_to_span', - 'set_to_spanset', - 'span_to_spanset', - 'text_to_set', - 'timestamptz_to_set', - 'timestamptz_to_span', - 'timestamptz_to_spanset', - 'tstzset_to_dateset', - 'tstzspan_to_datespan', - 'tstzspanset_to_datespanset', - 'bigintset_end_value', - 'bigintset_start_value', - 'bigintset_value_n', - 'bigintset_values', - 'bigintspan_lower', - 'bigintspan_upper', - 'bigintspan_width', - 'bigintspanset_lower', - 'bigintspanset_upper', - 'bigintspanset_width', - 'dateset_end_value', - 'dateset_start_value', - 'dateset_value_n', - 'dateset_values', - 'datespan_duration', - 'datespan_lower', - 'datespan_upper', - 'datespanset_date_n', - 'datespanset_dates', - 'datespanset_duration', - 'datespanset_end_date', - 'datespanset_num_dates', - 'datespanset_start_date', - 'floatset_end_value', - 'floatset_start_value', - 'floatset_value_n', - 'floatset_values', - 'floatspan_lower', - 'floatspan_upper', - 'floatspan_width', - 'floatspanset_lower', - 'floatspanset_upper', - 'floatspanset_width', - 'intset_end_value', - 'intset_start_value', - 'intset_value_n', - 'intset_values', - 'intspan_lower', - 'intspan_upper', - 'intspan_width', - 'intspanset_lower', - 'intspanset_upper', - 'intspanset_width', - 'set_hash', - 'set_hash_extended', - 'set_num_values', - 'span_hash', - 'span_hash_extended', - 'span_lower_inc', - 'span_upper_inc', - 'spanset_end_span', - 'spanset_hash', - 'spanset_hash_extended', - 'spanset_lower_inc', - 'spanset_num_spans', - 'spanset_span', - 'spanset_span_n', - 'spanset_spanarr', - 'spanset_start_span', - 'spanset_upper_inc', - 'textset_end_value', - 'textset_start_value', - 'textset_value_n', - 'textset_values', - 'tstzset_end_value', - 'tstzset_start_value', - 'tstzset_value_n', - 'tstzset_values', - 'tstzspan_duration', - 'tstzspan_lower', - 'tstzspan_upper', - 'tstzspanset_duration', - 'tstzspanset_end_timestamptz', - 'tstzspanset_lower', - 'tstzspanset_num_timestamps', - 'tstzspanset_start_timestamptz', - 'tstzspanset_timestamps', - 'tstzspanset_timestamptz_n', - 'tstzspanset_upper', - 'bigintset_shift_scale', - 'bigintspan_shift_scale', - 'bigintspanset_shift_scale', - 'dateset_shift_scale', - 'datespan_shift_scale', - 'datespanset_shift_scale', - 'floatset_ceil', - 'floatset_degrees', - 'floatset_floor', - 'floatset_radians', - 'floatset_shift_scale', - 'floatspan_ceil', - 'floatspan_degrees', - 'floatspan_floor', - 'floatspan_radians', - 'floatspan_round', - 'floatspan_shift_scale', - 'floatspanset_ceil', - 'floatspanset_floor', - 'floatspanset_degrees', - 'floatspanset_radians', - 'floatspanset_round', - 'floatspanset_shift_scale', - 'intset_shift_scale', - 'intspan_shift_scale', - 'intspanset_shift_scale', - 'numspan_expand', - 'tstzspan_expand', - 'set_round', - 'textcat_text_textset', - 'textcat_textset_text', - 'textset_initcap', - 'textset_lower', - 'textset_upper', - 'timestamptz_tprecision', - 'tstzset_shift_scale', - 'tstzset_tprecision', - 'tstzspan_shift_scale', - 'tstzspan_tprecision', - 'tstzspanset_shift_scale', - 'tstzspanset_tprecision', - 'set_cmp', - 'set_eq', - 'set_ge', - 'set_gt', - 'set_le', - 'set_lt', - 'set_ne', - 'span_cmp', - 'span_eq', - 'span_ge', - 'span_gt', - 'span_le', - 'span_lt', - 'span_ne', - 'spanset_cmp', - 'spanset_eq', - 'spanset_ge', - 'spanset_gt', - 'spanset_le', - 'spanset_lt', - 'spanset_ne', - 'set_spans', - 'set_split_each_n_spans', - 'set_split_n_spans', - 'spanset_spans', - 'spanset_split_each_n_spans', - 'spanset_split_n_spans', - 'adjacent_span_bigint', - 'adjacent_span_date', - 'adjacent_span_float', - 'adjacent_span_int', - 'adjacent_span_span', - 'adjacent_span_spanset', - 'adjacent_span_timestamptz', - 'adjacent_spanset_bigint', - 'adjacent_spanset_date', - 'adjacent_spanset_float', - 'adjacent_spanset_int', - 'adjacent_spanset_timestamptz', - 'adjacent_spanset_span', - 'adjacent_spanset_spanset', - 'contained_bigint_set', - 'contained_bigint_span', - 'contained_bigint_spanset', - 'contained_date_set', - 'contained_date_span', - 'contained_date_spanset', - 'contained_float_set', - 'contained_float_span', - 'contained_float_spanset', - 'contained_int_set', - 'contained_int_span', - 'contained_int_spanset', - 'contained_set_set', - 'contained_span_span', - 'contained_span_spanset', - 'contained_spanset_span', - 'contained_spanset_spanset', - 'contained_text_set', - 'contained_timestamptz_set', - 'contained_timestamptz_span', - 'contained_timestamptz_spanset', - 'contains_set_bigint', - 'contains_set_date', - 'contains_set_float', - 'contains_set_int', - 'contains_set_set', - 'contains_set_text', - 'contains_set_timestamptz', - 'contains_span_bigint', - 'contains_span_date', - 'contains_span_float', - 'contains_span_int', - 'contains_span_span', - 'contains_span_spanset', - 'contains_span_timestamptz', - 'contains_spanset_bigint', - 'contains_spanset_date', - 'contains_spanset_float', - 'contains_spanset_int', - 'contains_spanset_span', - 'contains_spanset_spanset', - 'contains_spanset_timestamptz', - 'overlaps_set_set', - 'overlaps_span_span', - 'overlaps_span_spanset', - 'overlaps_spanset_span', - 'overlaps_spanset_spanset', - 'after_date_set', - 'after_date_span', - 'after_date_spanset', - 'after_set_date', - 'after_set_timestamptz', - 'after_span_date', - 'after_span_timestamptz', - 'after_spanset_date', - 'after_spanset_timestamptz', - 'after_timestamptz_set', - 'after_timestamptz_span', - 'after_timestamptz_spanset', - 'before_date_set', - 'before_date_span', - 'before_date_spanset', - 'before_set_date', - 'before_set_timestamptz', - 'before_span_date', - 'before_span_timestamptz', - 'before_spanset_date', - 'before_spanset_timestamptz', - 'before_timestamptz_set', - 'before_timestamptz_span', - 'before_timestamptz_spanset', - 'left_bigint_set', - 'left_bigint_span', - 'left_bigint_spanset', - 'left_float_set', - 'left_float_span', - 'left_float_spanset', - 'left_int_set', - 'left_int_span', - 'left_int_spanset', - 'left_set_bigint', - 'left_set_float', - 'left_set_int', - 'left_set_set', - 'left_set_text', - 'left_span_bigint', - 'left_span_float', - 'left_span_int', - 'left_span_span', - 'left_span_spanset', - 'left_spanset_bigint', - 'left_spanset_float', - 'left_spanset_int', - 'left_spanset_span', - 'left_spanset_spanset', - 'left_text_set', - 'overafter_date_set', - 'overafter_date_span', - 'overafter_date_spanset', - 'overafter_set_date', - 'overafter_set_timestamptz', - 'overafter_span_date', - 'overafter_span_timestamptz', - 'overafter_spanset_date', - 'overafter_spanset_timestamptz', - 'overafter_timestamptz_set', - 'overafter_timestamptz_span', - 'overafter_timestamptz_spanset', - 'overbefore_date_set', - 'overbefore_date_span', - 'overbefore_date_spanset', - 'overbefore_set_date', - 'overbefore_set_timestamptz', - 'overbefore_span_date', - 'overbefore_span_timestamptz', - 'overbefore_spanset_date', - 'overbefore_spanset_timestamptz', - 'overbefore_timestamptz_set', - 'overbefore_timestamptz_span', - 'overbefore_timestamptz_spanset', - 'overleft_bigint_set', - 'overleft_bigint_span', - 'overleft_bigint_spanset', - 'overleft_float_set', - 'overleft_float_span', - 'overleft_float_spanset', - 'overleft_int_set', - 'overleft_int_span', - 'overleft_int_spanset', - 'overleft_set_bigint', - 'overleft_set_float', - 'overleft_set_int', - 'overleft_set_set', - 'overleft_set_text', - 'overleft_span_bigint', - 'overleft_span_float', - 'overleft_span_int', - 'overleft_span_span', - 'overleft_span_spanset', - 'overleft_spanset_bigint', - 'overleft_spanset_float', - 'overleft_spanset_int', - 'overleft_spanset_span', - 'overleft_spanset_spanset', - 'overleft_text_set', - 'overright_bigint_set', - 'overright_bigint_span', - 'overright_bigint_spanset', - 'overright_float_set', - 'overright_float_span', - 'overright_float_spanset', - 'overright_int_set', - 'overright_int_span', - 'overright_int_spanset', - 'overright_set_bigint', - 'overright_set_float', - 'overright_set_int', - 'overright_set_set', - 'overright_set_text', - 'overright_span_bigint', - 'overright_span_float', - 'overright_span_int', - 'overright_span_span', - 'overright_span_spanset', - 'overright_spanset_bigint', - 'overright_spanset_float', - 'overright_spanset_int', - 'overright_spanset_span', - 'overright_spanset_spanset', - 'overright_text_set', - 'right_bigint_set', - 'right_bigint_span', - 'right_bigint_spanset', - 'right_float_set', - 'right_float_span', - 'right_float_spanset', - 'right_int_set', - 'right_int_span', - 'right_int_spanset', - 'right_set_bigint', - 'right_set_float', - 'right_set_int', - 'right_set_set', - 'right_set_text', - 'right_span_bigint', - 'right_span_float', - 'right_span_int', - 'right_span_span', - 'right_span_spanset', - 'right_spanset_bigint', - 'right_spanset_float', - 'right_spanset_int', - 'right_spanset_span', - 'right_spanset_spanset', - 'right_text_set', - 'intersection_bigint_set', - 'intersection_date_set', - 'intersection_float_set', - 'intersection_int_set', - 'intersection_set_bigint', - 'intersection_set_date', - 'intersection_set_float', - 'intersection_set_int', - 'intersection_set_set', - 'intersection_set_text', - 'intersection_set_timestamptz', - 'intersection_span_bigint', - 'intersection_span_date', - 'intersection_span_float', - 'intersection_span_int', - 'intersection_span_span', - 'intersection_span_spanset', - 'intersection_span_timestamptz', - 'intersection_spanset_bigint', - 'intersection_spanset_date', - 'intersection_spanset_float', - 'intersection_spanset_int', - 'intersection_spanset_span', - 'intersection_spanset_spanset', - 'intersection_spanset_timestamptz', - 'intersection_text_set', - 'intersection_timestamptz_set', - 'minus_bigint_set', - 'minus_bigint_span', - 'minus_bigint_spanset', - 'minus_date_set', - 'minus_date_span', - 'minus_date_spanset', - 'minus_float_set', - 'minus_float_span', - 'minus_float_spanset', - 'minus_int_set', - 'minus_int_span', - 'minus_int_spanset', - 'minus_set_bigint', - 'minus_set_date', - 'minus_set_float', - 'minus_set_int', - 'minus_set_set', - 'minus_set_text', - 'minus_set_timestamptz', - 'minus_span_bigint', - 'minus_span_date', - 'minus_span_float', - 'minus_span_int', - 'minus_span_span', - 'minus_span_spanset', - 'minus_span_timestamptz', - 'minus_spanset_bigint', - 'minus_spanset_date', - 'minus_spanset_float', - 'minus_spanset_int', - 'minus_spanset_span', - 'minus_spanset_spanset', - 'minus_spanset_timestamptz', - 'minus_text_set', - 'minus_timestamptz_set', - 'minus_timestamptz_span', - 'minus_timestamptz_spanset', - 'union_bigint_set', - 'union_bigint_span', - 'union_bigint_spanset', - 'union_date_set', - 'union_date_span', - 'union_date_spanset', - 'union_float_set', - 'union_float_span', - 'union_float_spanset', - 'union_int_set', - 'union_int_span', - 'union_int_spanset', - 'union_set_bigint', - 'union_set_date', - 'union_set_float', - 'union_set_int', - 'union_set_set', - 'union_set_text', - 'union_set_timestamptz', - 'union_span_bigint', - 'union_span_date', - 'union_span_float', - 'union_span_int', - 'union_span_span', - 'union_span_spanset', - 'union_span_timestamptz', - 'union_spanset_bigint', - 'union_spanset_date', - 'union_spanset_float', - 'union_spanset_int', - 'union_spanset_span', - 'union_spanset_spanset', - 'union_spanset_timestamptz', - 'union_text_set', - 'union_timestamptz_set', - 'union_timestamptz_span', - 'union_timestamptz_spanset', - 'distance_bigintset_bigintset', - 'distance_bigintspan_bigintspan', - 'distance_bigintspanset_bigintspan', - 'distance_bigintspanset_bigintspanset', - 'distance_dateset_dateset', - 'distance_datespan_datespan', - 'distance_datespanset_datespan', - 'distance_datespanset_datespanset', - 'distance_floatset_floatset', - 'distance_floatspan_floatspan', - 'distance_floatspanset_floatspan', - 'distance_floatspanset_floatspanset', - 'distance_intset_intset', - 'distance_intspan_intspan', - 'distance_intspanset_intspan', - 'distance_intspanset_intspanset', - 'distance_set_bigint', - 'distance_set_date', - 'distance_set_float', - 'distance_set_int', - 'distance_set_timestamptz', - 'distance_span_bigint', - 'distance_span_date', - 'distance_span_float', - 'distance_span_int', - 'distance_span_timestamptz', - 'distance_spanset_bigint', - 'distance_spanset_date', - 'distance_spanset_float', - 'distance_spanset_int', - 'distance_spanset_timestamptz', - 'distance_tstzset_tstzset', - 'distance_tstzspan_tstzspan', - 'distance_tstzspanset_tstzspan', - 'distance_tstzspanset_tstzspanset', - 'bigint_extent_transfn', - 'bigint_union_transfn', - 'date_extent_transfn', - 'date_union_transfn', - 'float_extent_transfn', - 'float_union_transfn', - 'int_extent_transfn', - 'int_union_transfn', - 'set_extent_transfn', - 'set_union_finalfn', - 'set_union_transfn', - 'span_extent_transfn', - 'span_union_transfn', - 'spanset_extent_transfn', - 'spanset_union_finalfn', - 'spanset_union_transfn', - 'text_union_transfn', - 'timestamptz_extent_transfn', - 'timestamptz_union_transfn', - 'bigint_get_bin', - 'bigintspan_bins', - 'bigintspanset_bins', - 'date_get_bin', - 'datespan_bins', - 'datespanset_bins', - 'float_get_bin', - 'floatspan_bins', - 'floatspanset_bins', - 'int_get_bin', - 'intspan_bins', - 'intspanset_bins', - 'timestamptz_get_bin', - 'tstzspan_bins', - 'tstzspanset_bins', - 'tbox_as_hexwkb', - 'tbox_as_wkb', - 'tbox_from_hexwkb', - 'tbox_from_wkb', - 'tbox_in', - 'tbox_out', - 'float_timestamptz_to_tbox', - 'float_tstzspan_to_tbox', - 'int_timestamptz_to_tbox', - 'int_tstzspan_to_tbox', - 'numspan_tstzspan_to_tbox', - 'numspan_timestamptz_to_tbox', - 'tbox_copy', - 'tbox_make', - 'float_to_tbox', - 'int_to_tbox', - 'set_to_tbox', - 'span_to_tbox', - 'spanset_to_tbox', - 'tbox_to_intspan', - 'tbox_to_floatspan', - 'tbox_to_tstzspan', - 'timestamptz_to_tbox', - 'tbox_hast', - 'tbox_hasx', - 'tbox_tmax', - 'tbox_tmax_inc', - 'tbox_tmin', - 'tbox_tmin_inc', - 'tbox_xmax', - 'tbox_xmax_inc', - 'tbox_xmin', - 'tbox_xmin_inc', - 'tboxfloat_xmax', - 'tboxfloat_xmin', - 'tboxint_xmax', - 'tboxint_xmin', - 'tbox_expand_float', - 'tbox_expand_int', - 'tbox_expand_time', - 'tbox_round', - 'tbox_shift_scale_float', - 'tbox_shift_scale_int', - 'tbox_shift_scale_time', - 'union_tbox_tbox', - 'intersection_tbox_tbox', - 'adjacent_tbox_tbox', - 'contained_tbox_tbox', - 'contains_tbox_tbox', - 'overlaps_tbox_tbox', - 'same_tbox_tbox', - 'after_tbox_tbox', - 'before_tbox_tbox', - 'left_tbox_tbox', - 'overafter_tbox_tbox', - 'overbefore_tbox_tbox', - 'overleft_tbox_tbox', - 'overright_tbox_tbox', - 'right_tbox_tbox', - 'tbox_cmp', - 'tbox_eq', - 'tbox_ge', - 'tbox_gt', - 'tbox_le', - 'tbox_lt', - 'tbox_ne', - 'tbool_from_mfjson', - 'tbool_in', - 'tbool_out', - 'temporal_as_hexwkb', - 'temporal_as_mfjson', - 'temporal_as_wkb', - 'temporal_from_hexwkb', - 'temporal_from_wkb', - 'tfloat_from_mfjson', - 'tfloat_in', - 'tfloat_out', - 'tint_from_mfjson', - 'tint_in', - 'tint_out', - 'ttext_from_mfjson', - 'ttext_in', - 'ttext_out', - 'tbool_from_base_temp', - 'tboolinst_make', - 'tboolseq_from_base_tstzset', - 'tboolseq_from_base_tstzspan', - 'tboolseqset_from_base_tstzspanset', - 'temporal_copy', - 'tfloat_from_base_temp', - 'tfloatinst_make', - 'tfloatseq_from_base_tstzset', - 'tfloatseq_from_base_tstzspan', - 'tfloatseqset_from_base_tstzspanset', - 'tint_from_base_temp', - 'tintinst_make', - 'tintseq_from_base_tstzset', - 'tintseq_from_base_tstzspan', - 'tintseqset_from_base_tstzspanset', - 'tsequence_make', - 'tsequenceset_make', - 'tsequenceset_make_gaps', - 'ttext_from_base_temp', - 'ttextinst_make', - 'ttextseq_from_base_tstzset', - 'ttextseq_from_base_tstzspan', - 'ttextseqset_from_base_tstzspanset', - 'tbool_to_tint', - 'temporal_to_tstzspan', - 'tfloat_to_tint', - 'tint_to_tfloat', - 'tnumber_to_span', - 'tbool_end_value', - 'tbool_start_value', - 'tbool_value_at_timestamptz', - 'tbool_value_n', - 'tbool_values', - 'temporal_duration', - 'temporal_end_instant', - 'temporal_end_sequence', - 'temporal_end_timestamptz', - 'temporal_hash', - 'temporal_instant_n', - 'temporal_instants', - 'temporal_interp', - 'temporal_lower_inc', - 'temporal_max_instant', - 'temporal_min_instant', - 'temporal_num_instants', - 'temporal_num_sequences', - 'temporal_num_timestamps', - 'temporal_segments', - 'temporal_sequence_n', - 'temporal_sequences', - 'temporal_start_instant', - 'temporal_start_sequence', - 'temporal_start_timestamptz', - 'temporal_stops', - 'temporal_subtype', - 'temporal_time', - 'temporal_timestamps', - 'temporal_timestamptz_n', - 'temporal_upper_inc', - 'tfloat_end_value', - 'tfloat_max_value', - 'tfloat_min_value', - 'tfloat_start_value', - 'tfloat_value_at_timestamptz', - 'tfloat_value_n', - 'tfloat_values', - 'tint_end_value', - 'tint_max_value', - 'tint_min_value', - 'tint_start_value', - 'tint_value_at_timestamptz', - 'tint_value_n', - 'tint_values', - 'tnumber_integral', - 'tnumber_twavg', - 'tnumber_valuespans', - 'ttext_end_value', - 'ttext_max_value', - 'ttext_min_value', - 'ttext_start_value', - 'ttext_value_at_timestamptz', - 'ttext_value_n', - 'ttext_values', - 'float_degrees', - 'temparr_round', - 'temporal_round', - 'temporal_scale_time', - 'temporal_set_interp', - 'temporal_shift_scale_time', - 'temporal_shift_time', - 'temporal_to_tinstant', - 'temporal_to_tsequence', - 'temporal_to_tsequenceset', - 'tfloat_ceil', - 'tfloat_degrees', - 'tfloat_floor', - 'tfloat_radians', - 'tfloat_scale_value', - 'tfloat_shift_scale_value', - 'tfloat_shift_value', - 'tint_scale_value', - 'tint_shift_scale_value', - 'tint_shift_value', - 'temporal_append_tinstant', - 'temporal_append_tsequence', - 'temporal_delete_timestamptz', - 'temporal_delete_tstzset', - 'temporal_delete_tstzspan', - 'temporal_delete_tstzspanset', - 'temporal_insert', - 'temporal_merge', - 'temporal_merge_array', - 'temporal_update', - 'tbool_at_value', - 'tbool_minus_value', - 'temporal_at_max', - 'temporal_at_min', - 'temporal_at_timestamptz', - 'temporal_at_tstzset', - 'temporal_at_tstzspan', - 'temporal_at_tstzspanset', - 'temporal_at_values', - 'temporal_minus_max', - 'temporal_minus_min', - 'temporal_minus_timestamptz', - 'temporal_minus_tstzset', - 'temporal_minus_tstzspan', - 'temporal_minus_tstzspanset', - 'temporal_minus_values', - 'tfloat_at_value', - 'tfloat_minus_value', - 'tint_at_value', - 'tint_minus_value', - 'tnumber_at_span', - 'tnumber_at_spanset', - 'tnumber_at_tbox', - 'tnumber_minus_span', - 'tnumber_minus_spanset', - 'tnumber_minus_tbox', - 'ttext_at_value', - 'ttext_minus_value', - 'temporal_cmp', - 'temporal_eq', - 'temporal_ge', - 'temporal_gt', - 'temporal_le', - 'temporal_lt', - 'temporal_ne', - 'always_eq_bool_tbool', - 'always_eq_float_tfloat', - 'always_eq_int_tint', - 'always_eq_tbool_bool', - 'always_eq_temporal_temporal', - 'always_eq_text_ttext', - 'always_eq_tfloat_float', - 'always_eq_tint_int', - 'always_eq_ttext_text', - 'always_ge_float_tfloat', - 'always_ge_int_tint', - 'always_ge_temporal_temporal', - 'always_ge_text_ttext', - 'always_ge_tfloat_float', - 'always_ge_tint_int', - 'always_ge_ttext_text', - 'always_gt_float_tfloat', - 'always_gt_int_tint', - 'always_gt_temporal_temporal', - 'always_gt_text_ttext', - 'always_gt_tfloat_float', - 'always_gt_tint_int', - 'always_gt_ttext_text', - 'always_le_float_tfloat', - 'always_le_int_tint', - 'always_le_temporal_temporal', - 'always_le_text_ttext', - 'always_le_tfloat_float', - 'always_le_tint_int', - 'always_le_ttext_text', - 'always_lt_float_tfloat', - 'always_lt_int_tint', - 'always_lt_temporal_temporal', - 'always_lt_text_ttext', - 'always_lt_tfloat_float', - 'always_lt_tint_int', - 'always_lt_ttext_text', - 'always_ne_bool_tbool', - 'always_ne_float_tfloat', - 'always_ne_int_tint', - 'always_ne_tbool_bool', - 'always_ne_temporal_temporal', - 'always_ne_text_ttext', - 'always_ne_tfloat_float', - 'always_ne_tint_int', - 'always_ne_ttext_text', - 'ever_eq_bool_tbool', - 'ever_eq_float_tfloat', - 'ever_eq_int_tint', - 'ever_eq_tbool_bool', - 'ever_eq_temporal_temporal', - 'ever_eq_text_ttext', - 'ever_eq_tfloat_float', - 'ever_eq_tint_int', - 'ever_eq_ttext_text', - 'ever_ge_float_tfloat', - 'ever_ge_int_tint', - 'ever_ge_temporal_temporal', - 'ever_ge_text_ttext', - 'ever_ge_tfloat_float', - 'ever_ge_tint_int', - 'ever_ge_ttext_text', - 'ever_gt_float_tfloat', - 'ever_gt_int_tint', - 'ever_gt_temporal_temporal', - 'ever_gt_text_ttext', - 'ever_gt_tfloat_float', - 'ever_gt_tint_int', - 'ever_gt_ttext_text', - 'ever_le_float_tfloat', - 'ever_le_int_tint', - 'ever_le_temporal_temporal', - 'ever_le_text_ttext', - 'ever_le_tfloat_float', - 'ever_le_tint_int', - 'ever_le_ttext_text', - 'ever_lt_float_tfloat', - 'ever_lt_int_tint', - 'ever_lt_temporal_temporal', - 'ever_lt_text_ttext', - 'ever_lt_tfloat_float', - 'ever_lt_tint_int', - 'ever_lt_ttext_text', - 'ever_ne_bool_tbool', - 'ever_ne_float_tfloat', - 'ever_ne_int_tint', - 'ever_ne_tbool_bool', - 'ever_ne_temporal_temporal', - 'ever_ne_text_ttext', - 'ever_ne_tfloat_float', - 'ever_ne_tint_int', - 'ever_ne_ttext_text', - 'teq_bool_tbool', - 'teq_float_tfloat', - 'teq_int_tint', - 'teq_tbool_bool', - 'teq_temporal_temporal', - 'teq_text_ttext', - 'teq_tfloat_float', - 'teq_tint_int', - 'teq_ttext_text', - 'tge_float_tfloat', - 'tge_int_tint', - 'tge_temporal_temporal', - 'tge_text_ttext', - 'tge_tfloat_float', - 'tge_tint_int', - 'tge_ttext_text', - 'tgt_float_tfloat', - 'tgt_int_tint', - 'tgt_temporal_temporal', - 'tgt_text_ttext', - 'tgt_tfloat_float', - 'tgt_tint_int', - 'tgt_ttext_text', - 'tle_float_tfloat', - 'tle_int_tint', - 'tle_temporal_temporal', - 'tle_text_ttext', - 'tle_tfloat_float', - 'tle_tint_int', - 'tle_ttext_text', - 'tlt_float_tfloat', - 'tlt_int_tint', - 'tlt_temporal_temporal', - 'tlt_text_ttext', - 'tlt_tfloat_float', - 'tlt_tint_int', - 'tlt_ttext_text', - 'tne_bool_tbool', - 'tne_float_tfloat', - 'tne_int_tint', - 'tne_tbool_bool', - 'tne_temporal_temporal', - 'tne_text_ttext', - 'tne_tfloat_float', - 'tne_tint_int', - 'tne_ttext_text', - 'temporal_spans', - 'temporal_split_each_n_spans', - 'temporal_split_n_spans', - 'tnumber_split_each_n_tboxes', - 'tnumber_split_n_tboxes', - 'tnumber_tboxes', - 'adjacent_numspan_tnumber', - 'adjacent_tbox_tnumber', - 'adjacent_temporal_temporal', - 'adjacent_temporal_tstzspan', - 'adjacent_tnumber_numspan', - 'adjacent_tnumber_tbox', - 'adjacent_tnumber_tnumber', - 'adjacent_tstzspan_temporal', - 'contained_numspan_tnumber', - 'contained_tbox_tnumber', - 'contained_temporal_temporal', - 'contained_temporal_tstzspan', - 'contained_tnumber_numspan', - 'contained_tnumber_tbox', - 'contained_tnumber_tnumber', - 'contained_tstzspan_temporal', - 'contains_numspan_tnumber', - 'contains_tbox_tnumber', - 'contains_temporal_tstzspan', - 'contains_temporal_temporal', - 'contains_tnumber_numspan', - 'contains_tnumber_tbox', - 'contains_tnumber_tnumber', - 'contains_tstzspan_temporal', - 'overlaps_numspan_tnumber', - 'overlaps_tbox_tnumber', - 'overlaps_temporal_temporal', - 'overlaps_temporal_tstzspan', - 'overlaps_tnumber_numspan', - 'overlaps_tnumber_tbox', - 'overlaps_tnumber_tnumber', - 'overlaps_tstzspan_temporal', - 'same_numspan_tnumber', - 'same_tbox_tnumber', - 'same_temporal_temporal', - 'same_temporal_tstzspan', - 'same_tnumber_numspan', - 'same_tnumber_tbox', - 'same_tnumber_tnumber', - 'same_tstzspan_temporal', - 'after_tbox_tnumber', - 'after_temporal_tstzspan', - 'after_temporal_temporal', - 'after_tnumber_tbox', - 'after_tnumber_tnumber', - 'after_tstzspan_temporal', - 'before_tbox_tnumber', - 'before_temporal_tstzspan', - 'before_temporal_temporal', - 'before_tnumber_tbox', - 'before_tnumber_tnumber', - 'before_tstzspan_temporal', - 'left_tbox_tnumber', - 'left_numspan_tnumber', - 'left_tnumber_numspan', - 'left_tnumber_tbox', - 'left_tnumber_tnumber', - 'overafter_tbox_tnumber', - 'overafter_temporal_tstzspan', - 'overafter_temporal_temporal', - 'overafter_tnumber_tbox', - 'overafter_tnumber_tnumber', - 'overafter_tstzspan_temporal', - 'overbefore_tbox_tnumber', - 'overbefore_temporal_tstzspan', - 'overbefore_temporal_temporal', - 'overbefore_tnumber_tbox', - 'overbefore_tnumber_tnumber', - 'overbefore_tstzspan_temporal', - 'overleft_numspan_tnumber', - 'overleft_tbox_tnumber', - 'overleft_tnumber_numspan', - 'overleft_tnumber_tbox', - 'overleft_tnumber_tnumber', - 'overright_numspan_tnumber', - 'overright_tbox_tnumber', - 'overright_tnumber_numspan', - 'overright_tnumber_tbox', - 'overright_tnumber_tnumber', - 'right_numspan_tnumber', - 'right_tbox_tnumber', - 'right_tnumber_numspan', - 'right_tnumber_tbox', - 'right_tnumber_tnumber', - 'tand_bool_tbool', - 'tand_tbool_bool', - 'tand_tbool_tbool', - 'tbool_when_true', - 'tnot_tbool', - 'tor_bool_tbool', - 'tor_tbool_bool', - 'tor_tbool_tbool', - 'add_float_tfloat', - 'add_int_tint', - 'add_tfloat_float', - 'add_tint_int', - 'add_tnumber_tnumber', - 'div_float_tfloat', - 'div_int_tint', - 'div_tfloat_float', - 'div_tint_int', - 'div_tnumber_tnumber', - 'mult_float_tfloat', - 'mult_int_tint', - 'mult_tfloat_float', - 'mult_tint_int', - 'mult_tnumber_tnumber', - 'sub_float_tfloat', - 'sub_int_tint', - 'sub_tfloat_float', - 'sub_tint_int', - 'sub_tnumber_tnumber', - 'temporal_derivative', - 'tfloat_exp', - 'tfloat_ln', - 'tfloat_log10', - 'tnumber_abs', - 'float_angular_difference', - 'tnumber_angular_difference', - 'tnumber_delta_value', - 'textcat_text_ttext', - 'textcat_ttext_text', - 'textcat_ttext_ttext', - 'ttext_initcap', - 'ttext_upper', - 'ttext_lower', - 'tdistance_tfloat_float', - 'tdistance_tint_int', - 'tdistance_tnumber_tnumber', - 'nad_tboxfloat_tboxfloat', - 'nad_tboxint_tboxint', - 'nad_tfloat_float', - 'nad_tfloat_tfloat', - 'nad_tfloat_tbox', - 'nad_tint_int', - 'nad_tint_tbox', - 'nad_tint_tint', - 'tbool_tand_transfn', - 'tbool_tor_transfn', - 'temporal_extent_transfn', - 'temporal_tagg_finalfn', - 'temporal_tcount_transfn', - 'tfloat_tmax_transfn', - 'tfloat_tmin_transfn', - 'tfloat_tsum_transfn', - 'tfloat_wmax_transfn', - 'tfloat_wmin_transfn', - 'tfloat_wsum_transfn', - 'timestamptz_tcount_transfn', - 'tint_tmax_transfn', - 'tint_tmin_transfn', - 'tint_tsum_transfn', - 'tint_wmax_transfn', - 'tint_wmin_transfn', - 'tint_wsum_transfn', - 'tnumber_extent_transfn', - 'tnumber_tavg_finalfn', - 'tnumber_tavg_transfn', - 'tnumber_wavg_transfn', - 'tstzset_tcount_transfn', - 'tstzspan_tcount_transfn', - 'tstzspanset_tcount_transfn', - 'ttext_tmax_transfn', - 'ttext_tmin_transfn', - 'temporal_simplify_dp', - 'temporal_simplify_max_dist', - 'temporal_simplify_min_dist', - 'temporal_simplify_min_tdelta', - 'temporal_tprecision', - 'temporal_tsample', - 'temporal_dyntimewarp_distance', - 'temporal_dyntimewarp_path', - 'temporal_frechet_distance', - 'temporal_frechet_path', - 'temporal_hausdorff_distance', - 'temporal_time_bins', - 'temporal_time_split', - 'tfloat_time_boxes', - 'tfloat_value_bins', - 'tfloat_value_boxes', - 'tfloat_value_split', - 'tfloat_value_time_boxes', - 'tfloat_value_time_split', - 'tfloatbox_time_tiles', - 'tfloatbox_value_tiles', - 'tfloatbox_value_time_tiles', - 'tint_time_boxes', - 'tint_value_bins', - 'tint_value_boxes', - 'tint_value_split', - 'tint_value_time_boxes', - 'tint_value_time_split', - 'tintbox_time_tiles', - 'tintbox_value_tiles', - 'tintbox_value_time_tiles', - 'tempsubtype_name', - 'tempsubtype_from_string', - 'meosoper_name', - 'meosoper_from_string', - 'interptype_name', - 'interptype_from_string', - 'meostype_name', - 'temptype_basetype', - 'settype_basetype', - 'spantype_basetype', - 'spantype_spansettype', - 'spansettype_spantype', - 'basetype_spantype', - 'basetype_settype', - 'tnumber_basetype', - 'geo_basetype', - 'time_type', - 'set_type', - 'numset_type', - 'ensure_numset_type', - 'timeset_type', - 'set_spantype', - 'ensure_set_spantype', - 'alphanumset_type', - 'geoset_type', - 'ensure_geoset_type', - 'spatialset_type', - 'ensure_spatialset_type', - 'span_basetype', - 'span_canon_basetype', - 'span_type', - 'type_span_bbox', - 'span_tbox_type', - 'ensure_span_tbox_type', - 'numspan_basetype', - 'numspan_type', - 'ensure_numspan_type', - 'timespan_basetype', - 'timespan_type', - 'spanset_type', - 'timespanset_type', - 'ensure_timespanset_type', - 'temporal_type', - 'temptype_continuous', - 'basetype_byvalue', - 'basetype_varlength', - 'basetype_length', - 'talpha_type', - 'tnumber_type', - 'ensure_tnumber_type', - 'ensure_tnumber_basetype', - 'tnumber_spantype', - 'spatial_basetype', - 'tspatial_type', - 'ensure_tspatial_type', - 'tpoint_type', - 'ensure_tpoint_type', - 'tgeo_type', - 'ensure_tgeo_type', - 'tgeo_type_all', - 'ensure_tgeo_type_all', - 'tgeometry_type', - 'ensure_tgeometry_type', - 'tgeodetic_type', - 'ensure_tgeodetic_type', - 'ensure_tnumber_tpoint_type', - 'geo_as_ewkb', - 'geo_as_ewkt', - 'geo_as_geojson', - 'geo_as_hexewkb', - 'geo_as_text', - 'geo_from_ewkb', - 'geo_from_geojson', - 'geo_from_text', - 'geo_out', - 'geog_from_binary', - 'geog_from_hexewkb', - 'geog_in', - 'geom_from_hexewkb', - 'geom_in', - 'geo_copy', - 'geogpoint_make2d', - 'geogpoint_make3dz', - 'geompoint_make2d', - 'geompoint_make3dz', - 'geom_to_geog', - 'geog_to_geom', - 'geo_is_empty', - 'geo_typename', - 'geog_area', - 'geog_centroid', - 'geog_length', - 'geog_perimeter', - 'geom_azimuth', - 'geom_length', - 'geom_perimeter', - 'line_numpoints', - 'line_point_n', - 'geo_reverse', - 'geo_round', - 'geo_set_srid', - 'geo_srid', - 'geo_transform', - 'geo_transform_pipeline', - 'geo_collect_garray', - 'geo_makeline_garray', - 'geo_npoints', - 'geo_ngeos', - 'geo_geoN', - 'geom_array_union', - 'geom_boundary', - 'geom_buffer', - 'geom_centroid', - 'geom_convex_hull', - 'geom_difference2d', - 'geom_intersection2d', - 'geom_shortestline2d', - 'geom_shortestline3d', - 'geom_unary_union', - 'line_interpolate_point', - 'line_locate_point', - 'line_substring', - 'geog_dwithin', - 'geog_intersects', - 'geom_contains', - 'geom_covers', - 'geom_disjoint2d', - 'geom_dwithin2d', - 'geom_dwithin3d', - 'geom_intersects2d', - 'geom_intersects3d', - 'geom_relate_pattern', - 'geom_touches', - 'geo_stboxes', - 'geo_split_each_n_stboxes', - 'geo_split_n_stboxes', - 'geog_distance', - 'geom_distance2d', - 'geom_distance3d', - 'geo_equals', - 'geo_same', - 'geogset_in', - 'geomset_in', - 'spatialset_as_text', - 'spatialset_as_ewkt', - 'geoset_make', - 'geo_to_set', - 'geoset_end_value', - 'geoset_start_value', - 'geoset_value_n', - 'geoset_values', - 'contained_geo_set', - 'contains_set_geo', - 'geo_union_transfn', - 'intersection_geo_set', - 'intersection_set_geo', - 'minus_geo_set', - 'minus_set_geo', - 'union_geo_set', - 'union_set_geo', - 'spatialset_set_srid', - 'spatialset_srid', - 'spatialset_transform', - 'spatialset_transform_pipeline', - 'stbox_as_hexwkb', - 'stbox_as_wkb', - 'stbox_from_hexwkb', - 'stbox_from_wkb', - 'stbox_in', - 'stbox_out', - 'geo_timestamptz_to_stbox', - 'geo_tstzspan_to_stbox', - 'stbox_copy', - 'stbox_make', - 'geo_to_stbox', - 'spatialset_to_stbox', - 'stbox_to_box3d', - 'stbox_to_gbox', - 'stbox_to_geo', - 'stbox_to_tstzspan', - 'timestamptz_to_stbox', - 'tstzset_to_stbox', - 'tstzspan_to_stbox', - 'tstzspanset_to_stbox', - 'stbox_area', - 'stbox_hast', - 'stbox_hasx', - 'stbox_hasz', - 'stbox_isgeodetic', - 'stbox_perimeter', - 'stbox_tmax', - 'stbox_tmax_inc', - 'stbox_tmin', - 'stbox_tmin_inc', - 'stbox_volume', - 'stbox_xmax', - 'stbox_xmin', - 'stbox_ymax', - 'stbox_ymin', - 'stbox_zmax', - 'stbox_zmin', - 'stbox_expand_space', - 'stbox_expand_time', - 'stbox_get_space', - 'stbox_quad_split', - 'stbox_round', - 'stbox_shift_scale_time', - 'stboxarr_round', - 'stbox_set_srid', - 'stbox_srid', - 'stbox_transform', - 'stbox_transform_pipeline', - 'adjacent_stbox_stbox', - 'contained_stbox_stbox', - 'contains_stbox_stbox', - 'overlaps_stbox_stbox', - 'same_stbox_stbox', - 'above_stbox_stbox', - 'after_stbox_stbox', - 'back_stbox_stbox', - 'before_stbox_stbox', - 'below_stbox_stbox', - 'front_stbox_stbox', - 'left_stbox_stbox', - 'overabove_stbox_stbox', - 'overafter_stbox_stbox', - 'overback_stbox_stbox', - 'overbefore_stbox_stbox', - 'overbelow_stbox_stbox', - 'overfront_stbox_stbox', - 'overleft_stbox_stbox', - 'overright_stbox_stbox', - 'right_stbox_stbox', - 'union_stbox_stbox', - 'intersection_stbox_stbox', - 'stbox_cmp', - 'stbox_eq', - 'stbox_ge', - 'stbox_gt', - 'stbox_le', - 'stbox_lt', - 'stbox_ne', - 'rtree_create_stbox', - 'rtree_free', - 'rtree_insert', - 'rtree_search', - 'tgeo_out', - 'tgeogpoint_from_mfjson', - 'tgeogpoint_in', - 'tgeography_from_mfjson', - 'tgeography_in', - 'tgeometry_from_mfjson', - 'tgeometry_in', - 'tgeompoint_from_mfjson', - 'tgeompoint_in', - 'tspatial_as_ewkt', - 'tspatial_as_text', - 'tgeo_from_base_temp', - 'tgeoinst_make', - 'tgeoseq_from_base_tstzset', - 'tgeoseq_from_base_tstzspan', - 'tgeoseqset_from_base_tstzspanset', - 'tpoint_from_base_temp', - 'tpointinst_make', - 'tpointseq_from_base_tstzset', - 'tpointseq_from_base_tstzspan', - 'tpointseq_make_coords', - 'tpointseqset_from_base_tstzspanset', - 'box3d_to_stbox', - 'gbox_to_stbox', - 'geomeas_to_tpoint', - 'tgeogpoint_to_tgeography', - 'tgeography_to_tgeogpoint', - 'tgeography_to_tgeometry', - 'tgeometry_to_tgeography', - 'tgeometry_to_tgeompoint', - 'tgeompoint_to_tgeometry', - 'tpoint_as_mvtgeom', - 'tpoint_tfloat_to_geomeas', - 'tspatial_to_stbox', - 'bearing_point_point', - 'bearing_tpoint_point', - 'bearing_tpoint_tpoint', - 'tgeo_centroid', - 'tgeo_convex_hull', - 'tgeo_end_value', - 'tgeo_start_value', - 'tgeo_traversed_area', - 'tgeo_value_at_timestamptz', - 'tgeo_value_n', - 'tgeo_values', - 'tpoint_angular_difference', - 'tpoint_azimuth', - 'tpoint_cumulative_length', - 'tpoint_direction', - 'tpoint_get_x', - 'tpoint_get_y', - 'tpoint_get_z', - 'tpoint_is_simple', - 'tpoint_length', - 'tpoint_trajectory', - 'tpoint_twcentroid', - 'tgeo_affine', - 'tgeo_scale', - 'tpoint_make_simple', - 'tspatial_srid', - 'tspatial_set_srid', - 'tspatial_transform', - 'tspatial_transform_pipeline', - 'tgeo_at_geom', - 'tgeo_at_stbox', - 'tgeo_at_value', - 'tgeo_minus_geom', - 'tgeo_minus_stbox', - 'tgeo_minus_value', - 'tpoint_at_geom', - 'tpoint_at_value', - 'tpoint_minus_geom', - 'tpoint_minus_value', - 'always_eq_geo_tgeo', - 'always_eq_tgeo_geo', - 'always_eq_tgeo_tgeo', - 'always_ne_geo_tgeo', - 'always_ne_tgeo_geo', - 'always_ne_tgeo_tgeo', - 'ever_eq_geo_tgeo', - 'ever_eq_tgeo_geo', - 'ever_eq_tgeo_tgeo', - 'ever_ne_geo_tgeo', - 'ever_ne_tgeo_geo', - 'ever_ne_tgeo_tgeo', - 'teq_geo_tgeo', - 'teq_tgeo_geo', - 'tne_geo_tgeo', - 'tne_tgeo_geo', - 'tgeo_stboxes', - 'tgeo_space_boxes', - 'tgeo_space_time_boxes', - 'tgeo_split_each_n_stboxes', - 'tgeo_split_n_stboxes', - 'adjacent_stbox_tspatial', - 'adjacent_tspatial_stbox', - 'adjacent_tspatial_tspatial', - 'contained_stbox_tspatial', - 'contained_tspatial_stbox', - 'contained_tspatial_tspatial', - 'contains_stbox_tspatial', - 'contains_tspatial_stbox', - 'contains_tspatial_tspatial', - 'overlaps_stbox_tspatial', - 'overlaps_tspatial_stbox', - 'overlaps_tspatial_tspatial', - 'same_stbox_tspatial', - 'same_tspatial_stbox', - 'same_tspatial_tspatial', - 'above_stbox_tspatial', - 'above_tspatial_stbox', - 'above_tspatial_tspatial', - 'after_stbox_tspatial', - 'after_tspatial_stbox', - 'after_tspatial_tspatial', - 'back_stbox_tspatial', - 'back_tspatial_stbox', - 'back_tspatial_tspatial', - 'before_stbox_tspatial', - 'before_tspatial_stbox', - 'before_tspatial_tspatial', - 'below_stbox_tspatial', - 'below_tspatial_stbox', - 'below_tspatial_tspatial', - 'front_stbox_tspatial', - 'front_tspatial_stbox', - 'front_tspatial_tspatial', - 'left_stbox_tspatial', - 'left_tspatial_stbox', - 'left_tspatial_tspatial', - 'overabove_stbox_tspatial', - 'overabove_tspatial_stbox', - 'overabove_tspatial_tspatial', - 'overafter_stbox_tspatial', - 'overafter_tspatial_stbox', - 'overafter_tspatial_tspatial', - 'overback_stbox_tspatial', - 'overback_tspatial_stbox', - 'overback_tspatial_tspatial', - 'overbefore_stbox_tspatial', - 'overbefore_tspatial_stbox', - 'overbefore_tspatial_tspatial', - 'overbelow_stbox_tspatial', - 'overbelow_tspatial_stbox', - 'overbelow_tspatial_tspatial', - 'overfront_stbox_tspatial', - 'overfront_tspatial_stbox', - 'overfront_tspatial_tspatial', - 'overleft_stbox_tspatial', - 'overleft_tspatial_stbox', - 'overleft_tspatial_tspatial', - 'overright_stbox_tspatial', - 'overright_tspatial_stbox', - 'overright_tspatial_tspatial', - 'right_stbox_tspatial', - 'right_tspatial_stbox', - 'right_tspatial_tspatial', - 'acontains_geo_tgeo', - 'acontains_tgeo_geo', - 'acontains_tgeo_tgeo', - 'adisjoint_tgeo_geo', - 'adisjoint_tgeo_tgeo', - 'adwithin_tgeo_geo', - 'adwithin_tgeo_tgeo', - 'aintersects_tgeo_geo', - 'aintersects_tgeo_tgeo', - 'atouches_tgeo_geo', - 'atouches_tgeo_tgeo', - 'atouches_tpoint_geo', - 'econtains_geo_tgeo', - 'econtains_tgeo_geo', - 'econtains_tgeo_tgeo', - 'ecovers_geo_tgeo', - 'ecovers_tgeo_geo', - 'ecovers_tgeo_tgeo', - 'edisjoint_tgeo_geo', - 'edisjoint_tgeo_tgeo', - 'edwithin_tgeo_geo', - 'edwithin_tgeo_tgeo', - 'eintersects_tgeo_geo', - 'eintersects_tgeo_tgeo', - 'etouches_tgeo_geo', - 'etouches_tgeo_tgeo', - 'etouches_tpoint_geo', - 'tcontains_geo_tgeo', - 'tcontains_tgeo_geo', - 'tcontains_tgeo_tgeo', - 'tcovers_geo_tgeo', - 'tcovers_tgeo_geo', - 'tcovers_tgeo_tgeo', - 'tdisjoint_geo_tgeo', - 'tdisjoint_tgeo_geo', - 'tdisjoint_tgeo_tgeo', - 'tdwithin_geo_tgeo', - 'tdwithin_tgeo_geo', - 'tdwithin_tgeo_tgeo', - 'tintersects_geo_tgeo', - 'tintersects_tgeo_geo', - 'tintersects_tgeo_tgeo', - 'ttouches_geo_tgeo', - 'ttouches_tgeo_geo', - 'ttouches_tgeo_tgeo', - 'tdistance_tgeo_geo', - 'tdistance_tgeo_tgeo', - 'nad_stbox_geo', - 'nad_stbox_stbox', - 'nad_tgeo_geo', - 'nad_tgeo_stbox', - 'nad_tgeo_tgeo', - 'nai_tgeo_geo', - 'nai_tgeo_tgeo', - 'shortestline_tgeo_geo', - 'shortestline_tgeo_tgeo', - 'tpoint_tcentroid_finalfn', - 'tpoint_tcentroid_transfn', - 'tspatial_extent_transfn', - 'stbox_get_space_tile', - 'stbox_get_space_time_tile', - 'stbox_get_time_tile', - 'stbox_space_tiles', - 'stbox_space_time_tiles', - 'stbox_time_tiles', - 'tgeo_space_split', - 'tgeo_space_time_split', - 'geo_cluster_kmeans', - 'geo_cluster_dbscan', - 'geo_cluster_intersecting', - 'geo_cluster_within', - 'gsl_get_generation_rng', - 'gsl_get_aggregation_rng', - 'datum_ceil', - 'datum_degrees', - 'datum_float_round', - 'datum_floor', - 'datum_hash', - 'datum_hash_extended', - 'datum_radians', - 'floatspan_round_set', - 'set_in', - 'set_out', - 'span_in', - 'span_out', - 'spanset_in', - 'spanset_out', - 'set_make', - 'set_make_exp', - 'set_make_free', - 'span_make', - 'span_set', - 'spanset_make_exp', - 'spanset_make_free', - 'set_span', - 'set_spanset', - 'value_set_span', - 'value_set', - 'value_span', - 'value_spanset', - 'numspan_width', - 'numspanset_width', - 'set_end_value', - 'set_mem_size', - 'set_set_subspan', - 'set_set_span', - 'set_start_value', - 'set_value_n', - 'set_vals', - 'set_values', - 'spanset_lower', - 'spanset_mem_size', - 'spanset_sps', - 'spanset_upper', - 'datespan_set_tstzspan', - 'floatspan_set_intspan', - 'intspan_set_floatspan', - 'numset_shift_scale', - 'numspan_shift_scale', - 'numspanset_shift_scale', - 'set_compact', - 'span_expand', - 'spanset_compact', - 'tbox_expand_value', - 'textcat_textset_text_int', - 'tstzspan_set_datespan', - 'adjacent_span_value', - 'adjacent_spanset_value', - 'adjacent_value_spanset', - 'contained_value_set', - 'contained_value_span', - 'contained_value_spanset', - 'contains_set_value', - 'contains_span_value', - 'contains_spanset_value', - 'ovadj_span_span', - 'left_set_value', - 'left_span_value', - 'left_spanset_value', - 'left_value_set', - 'left_value_span', - 'left_value_spanset', - 'lfnadj_span_span', - 'overleft_set_value', - 'overleft_span_value', - 'overleft_spanset_value', - 'overleft_value_set', - 'overleft_value_span', - 'overleft_value_spanset', - 'overright_set_value', - 'overright_span_value', - 'overright_spanset_value', - 'overright_value_set', - 'overright_value_span', - 'overright_value_spanset', - 'right_value_set', - 'right_set_value', - 'right_value_span', - 'right_value_spanset', - 'right_span_value', - 'right_spanset_value', - 'bbox_union_span_span', - 'inter_span_span', - 'intersection_set_value', - 'intersection_span_value', - 'intersection_spanset_value', - 'intersection_value_set', - 'intersection_value_span', - 'intersection_value_spanset', - 'mi_span_span', - 'minus_set_value', - 'minus_span_value', - 'minus_spanset_value', - 'minus_value_set', - 'minus_value_span', - 'minus_value_spanset', - 'super_union_span_span', - 'union_set_value', - 'union_span_value', - 'union_spanset_value', - 'union_value_set', - 'union_value_span', - 'union_value_spanset', - 'distance_set_set', - 'distance_set_value', - 'distance_span_span', - 'distance_span_value', - 'distance_spanset_span', - 'distance_spanset_spanset', - 'distance_spanset_value', - 'distance_value_value', - 'spanbase_extent_transfn', - 'value_union_transfn', - 'number_tstzspan_to_tbox', - 'number_timestamptz_to_tbox', - 'tbox_set', - 'float_set_tbox', - 'int_set_tbox', - 'number_set_tbox', - 'number_tbox', - 'numset_set_tbox', - 'numspan_set_tbox', - 'timestamptz_set_tbox', - 'tstzset_set_tbox', - 'tstzspan_set_tbox', - 'tbox_shift_scale_value', - 'tbox_expand', - 'inter_tbox_tbox', - 'tboolinst_in', - 'tboolseq_in', - 'tboolseqset_in', - 'temporal_in', - 'temporal_out', - 'temparr_out', - 'tfloatinst_in', - 'tfloatseq_in', - 'tfloatseqset_in', - 'tinstant_in', - 'tinstant_out', - 'tintinst_in', - 'tintseq_in', - 'tintseqset_in', - 'tsequence_in', - 'tsequence_out', - 'tsequenceset_in', - 'tsequenceset_out', - 'ttextinst_in', - 'ttextseq_in', - 'ttextseqset_in', - 'temporal_from_mfjson', - 'temporal_from_base_temp', - 'tinstant_copy', - 'tinstant_make', - 'tinstant_make_free', - 'tsequence_copy', - 'tsequence_from_base_temp', - 'tsequence_from_base_tstzset', - 'tsequence_from_base_tstzspan', - 'tsequence_make_exp', - 'tsequence_make_free', - 'tsequenceset_copy', - 'tseqsetarr_to_tseqset', - 'tsequenceset_from_base_temp', - 'tsequenceset_from_base_tstzspanset', - 'tsequenceset_make_exp', - 'tsequenceset_make_free', - 'temporal_set_tstzspan', - 'tinstant_set_tstzspan', - 'tnumber_set_tbox', - 'tnumberinst_set_tbox', - 'tnumberseq_set_tbox', - 'tnumberseqset_set_tbox', - 'tsequence_set_tstzspan', - 'tsequenceset_set_tstzspan', - 'temporal_end_inst', - 'temporal_end_value', - 'temporal_inst_n', - 'temporal_instants_p', - 'temporal_max_value', - 'temporal_mem_size', - 'temporal_min_value', - 'temporal_sequences_p', - 'temporal_set_bbox', - 'temporal_start_inst', - 'temporal_start_value', - 'temporal_values_p', - 'temporal_value_n', - 'temporal_values', - 'tinstant_hash', - 'tinstant_insts', - 'tinstant_set_bbox', - 'tinstant_time', - 'tinstant_timestamps', - 'tinstant_value_p', - 'tinstant_value', - 'tinstant_value_at_timestamptz', - 'tinstant_values_p', - 'tnumber_set_span', - 'tnumberinst_valuespans', - 'tnumberseq_valuespans', - 'tnumberseqset_valuespans', - 'tsequence_duration', - 'tsequence_end_timestamptz', - 'tsequence_hash', - 'tsequence_insts_p', - 'tsequence_max_inst', - 'tsequence_max_val', - 'tsequence_min_inst', - 'tsequence_min_val', - 'tsequence_segments', - 'tsequence_seqs', - 'tsequence_start_timestamptz', - 'tsequence_time', - 'tsequence_timestamps', - 'tsequence_value_at_timestamptz', - 'tsequence_values_p', - 'tsequenceset_duration', - 'tsequenceset_end_timestamptz', - 'tsequenceset_hash', - 'tsequenceset_inst_n', - 'tsequenceset_insts_p', - 'tsequenceset_max_inst', - 'tsequenceset_max_val', - 'tsequenceset_min_inst', - 'tsequenceset_min_val', - 'tsequenceset_num_instants', - 'tsequenceset_num_timestamps', - 'tsequenceset_segments', - 'tsequenceset_sequences_p', - 'tsequenceset_start_timestamptz', - 'tsequenceset_time', - 'tsequenceset_timestamptz_n', - 'tsequenceset_timestamps', - 'tsequenceset_value_at_timestamptz', - 'tsequenceset_value_n', - 'tsequenceset_values_p', - 'temporal_restart', - 'temporal_tsequence', - 'temporal_tsequenceset', - 'tinstant_shift_time', - 'tinstant_to_tsequence', - 'tinstant_to_tsequence_free', - 'tinstant_to_tsequenceset', - 'tnumber_shift_scale_value', - 'tnumberinst_shift_value', - 'tnumberseq_shift_scale_value', - 'tnumberseqset_shift_scale_value', - 'tsequence_restart', - 'tsequence_set_interp', - 'tsequence_shift_scale_time', - 'tsequence_subseq', - 'tsequence_to_tinstant', - 'tsequence_to_tsequenceset', - 'tsequence_to_tsequenceset_free', - 'tsequence_to_tsequenceset_interp', - 'tsequenceset_restart', - 'tsequenceset_set_interp', - 'tsequenceset_shift_scale_time', - 'tsequenceset_to_discrete', - 'tsequenceset_to_linear', - 'tsequenceset_to_step', - 'tsequenceset_to_tinstant', - 'tsequenceset_to_tsequence', - 'tinstant_merge', - 'tinstant_merge_array', - 'tsequence_append_tinstant', - 'tsequence_append_tsequence', - 'tsequence_delete_timestamptz', - 'tsequence_delete_tstzset', - 'tsequence_delete_tstzspan', - 'tsequence_delete_tstzspanset', - 'tsequence_insert', - 'tsequence_merge', - 'tsequence_merge_array', - 'tsequenceset_append_tinstant', - 'tsequenceset_append_tsequence', - 'tsequenceset_delete_timestamptz', - 'tsequenceset_delete_tstzset', - 'tsequenceset_delete_tstzspan', - 'tsequenceset_delete_tstzspanset', - 'tsequenceset_insert', - 'tsequenceset_merge', - 'tsequenceset_merge_array', - 'tsequence_expand_bbox', - 'tsequence_set_bbox', - 'tsequenceset_expand_bbox', - 'tsequenceset_set_bbox', - 'tdiscseq_restrict_minmax', - 'tcontseq_restrict_minmax', - 'temporal_bbox_restrict_set', - 'temporal_restrict_minmax', - 'temporal_restrict_timestamptz', - 'temporal_restrict_tstzset', - 'temporal_restrict_tstzspan', - 'temporal_restrict_tstzspanset', - 'temporal_restrict_value', - 'temporal_restrict_values', - 'temporal_value_at_timestamptz', - 'tinstant_restrict_tstzspan', - 'tinstant_restrict_tstzspanset', - 'tinstant_restrict_timestamptz', - 'tinstant_restrict_tstzset', - 'tinstant_restrict_value', - 'tinstant_restrict_values', - 'tnumber_restrict_span', - 'tnumber_restrict_spanset', - 'tnumberinst_restrict_span', - 'tnumberinst_restrict_spanset', - 'tnumberseqset_restrict_span', - 'tnumberseqset_restrict_spanset', - 'tsequence_at_timestamptz', - 'tsequence_restrict_tstzspan', - 'tsequence_restrict_tstzspanset', - 'tsequenceset_restrict_minmax', - 'tsequenceset_restrict_tstzspan', - 'tsequenceset_restrict_tstzspanset', - 'tsequenceset_restrict_timestamptz', - 'tsequenceset_restrict_tstzset', - 'tsequenceset_restrict_value', - 'tsequenceset_restrict_values', - 'tinstant_cmp', - 'tinstant_eq', - 'tsequence_cmp', - 'tsequence_eq', - 'tsequenceset_cmp', - 'tsequenceset_eq', - 'always_eq_base_temporal', - 'always_eq_temporal_base', - 'always_ne_base_temporal', - 'always_ne_temporal_base', - 'always_ge_base_temporal', - 'always_ge_temporal_base', - 'always_gt_base_temporal', - 'always_gt_temporal_base', - 'always_le_base_temporal', - 'always_le_temporal_base', - 'always_lt_base_temporal', - 'always_lt_temporal_base', - 'ever_eq_base_temporal', - 'ever_eq_temporal_base', - 'ever_ne_base_temporal', - 'ever_ne_temporal_base', - 'ever_ge_base_temporal', - 'ever_ge_temporal_base', - 'ever_gt_base_temporal', - 'ever_gt_temporal_base', - 'ever_le_base_temporal', - 'ever_le_temporal_base', - 'ever_lt_base_temporal', - 'ever_lt_temporal_base', - 'tnumberinst_abs', - 'tnumberseq_abs', - 'tnumberseq_angular_difference', - 'tnumberseq_delta_value', - 'tnumberseqset_abs', - 'tnumberseqset_angular_difference', - 'tnumberseqset_delta_value', - 'tdistance_tnumber_number', - 'nad_tbox_tbox', - 'nad_tnumber_number', - 'nad_tnumber_tbox', - 'nad_tnumber_tnumber', - 'tnumberseq_integral', - 'tnumberseq_twavg', - 'tnumberseqset_integral', - 'tnumberseqset_twavg', - 'temporal_compact', - 'tsequence_compact', - 'tsequenceset_compact', - 'skiplist_free', - 'temporal_app_tinst_transfn', - 'temporal_app_tseq_transfn', - 'span_bins', - 'spanset_bins', - 'tnumber_value_bins', - 'tnumber_value_time_boxes', - 'tnumber_value_split', - 'tbox_get_value_time_tile', - 'tnumber_value_time_split', - 'proj_get_context', - 'datum_geo_round', - 'point_round', - 'stbox_set', - 'gbox_set_stbox', - 'geo_set_stbox', - 'geoarr_set_stbox', - 'spatial_set_stbox', - 'spatialset_set_stbox', - 'stbox_set_box3d', - 'stbox_set_gbox', - 'tstzset_set_stbox', - 'tstzspan_set_stbox', - 'tstzspanset_set_stbox', - 'stbox_expand', - 'inter_stbox_stbox', - 'stbox_geo', - 'tgeogpointinst_in', - 'tgeogpointseq_in', - 'tgeogpointseqset_in', - 'tgeompointinst_in', - 'tgeompointseq_in', - 'tgeompointseqset_in', - 'tgeographyinst_in', - 'tgeographyseq_in', - 'tgeographyseqset_in', - 'tgeometryinst_in', - 'tgeometryseq_in', - 'tgeometryseqset_in', - 'tspatial_set_stbox', - 'tgeoinst_set_stbox', - 'tspatialseq_set_stbox', - 'tspatialseqset_set_stbox', - 'tgeo_restrict_geom', - 'tgeo_restrict_stbox', - 'tgeoinst_restrict_geom', - 'tgeoinst_restrict_stbox', - 'tgeoseq_restrict_geom', - 'tgeoseq_restrict_stbox', - 'tgeoseqset_restrict_geom', - 'tgeoseqset_restrict_stbox', - 'spatial_srid', - 'spatial_set_srid', - 'tspatialinst_srid', - 'tpointseq_azimuth', - 'tpointseq_cumulative_length', - 'tpointseq_is_simple', - 'tpointseq_length', - 'tpointseq_linear_trajectory', - 'tgeoseq_stboxes', - 'tgeoseq_split_n_stboxes', - 'tpointseqset_azimuth', - 'tpointseqset_cumulative_length', - 'tpointseqset_is_simple', - 'tpointseqset_length', - 'tgeoseqset_stboxes', - 'tgeoseqset_split_n_stboxes', - 'tpoint_get_coord', - 'tgeominst_tgeoginst', - 'tgeomseq_tgeogseq', - 'tgeomseqset_tgeogseqset', - 'tgeom_tgeog', - 'tgeo_tpoint', - 'tspatialinst_set_srid', - 'tpointseq_make_simple', - 'tspatialseq_set_srid', - 'tpointseqset_make_simple', - 'tspatialseqset_set_srid', - 'tpointseq_twcentroid', - 'tpointseqset_twcentroid', - 'npoint_as_ewkt', - 'npoint_as_hexwkb', - 'npoint_as_text', - 'npoint_as_wkb', - 'npoint_from_hexwkb', - 'npoint_from_wkb', - 'npoint_in', - 'npoint_out', - 'nsegment_in', - 'nsegment_out', - 'npoint_make', - 'nsegment_make', - 'geompoint_to_npoint', - 'geom_to_nsegment', - 'npoint_to_geompoint', - 'npoint_to_nsegment', - 'npoint_to_stbox', - 'nsegment_to_geom', - 'nsegment_to_stbox', - 'npoint_hash', - 'npoint_hash_extended', - 'npoint_position', - 'npoint_route', - 'nsegment_end_position', - 'nsegment_route', - 'nsegment_start_position', - 'route_exists', - 'route_geom', - 'route_length', - 'npoint_round', - 'nsegment_round', - 'get_srid_ways', - 'npoint_srid', - 'nsegment_srid', - 'npoint_timestamptz_to_stbox', - 'npoint_tstzspan_to_stbox', - 'npoint_cmp', - 'npoint_eq', - 'npoint_ge', - 'npoint_gt', - 'npoint_le', - 'npoint_lt', - 'npoint_ne', - 'npoint_same', - 'nsegment_cmp', - 'nsegment_eq', - 'nsegment_ge', - 'nsegment_gt', - 'nsegment_le', - 'nsegment_lt', - 'nsegment_ne', - 'npointset_in', - 'npointset_out', - 'npointset_make', - 'npoint_to_set', - 'npointset_end_value', - 'npointset_routes', - 'npointset_start_value', - 'npointset_value_n', - 'npointset_values', - 'contained_npoint_set', - 'contains_set_npoint', - 'intersection_npoint_set', - 'intersection_set_npoint', - 'minus_npoint_set', - 'minus_set_npoint', - 'npoint_union_transfn', - 'union_npoint_set', - 'union_set_npoint', - 'tnpoint_in', - 'tnpoint_out', - 'tnpointinst_make', - 'tgeompoint_to_tnpoint', - 'tnpoint_to_tgeompoint', - 'tnpoint_cumulative_length', - 'tnpoint_length', - 'tnpoint_positions', - 'tnpoint_route', - 'tnpoint_routes', - 'tnpoint_speed', - 'tnpoint_trajectory', - 'tnpoint_twcentroid', - 'tnpoint_at_geom', - 'tnpoint_at_npoint', - 'tnpoint_at_npointset', - 'tnpoint_at_stbox', - 'tnpoint_minus_geom', - 'tnpoint_minus_npoint', - 'tnpoint_minus_npointset', - 'tnpoint_minus_stbox', - 'tdistance_tnpoint_npoint', - 'tdistance_tnpoint_point', - 'tdistance_tnpoint_tnpoint', - 'nad_tnpoint_geo', - 'nad_tnpoint_npoint', - 'nad_tnpoint_stbox', - 'nad_tnpoint_tnpoint', - 'nai_tnpoint_geo', - 'nai_tnpoint_npoint', - 'nai_tnpoint_tnpoint', - 'shortestline_tnpoint_geo', - 'shortestline_tnpoint_npoint', - 'shortestline_tnpoint_tnpoint', - 'tnpoint_tcentroid_transfn', - 'always_eq_npoint_tnpoint', - 'always_eq_tnpoint_npoint', - 'always_eq_tnpoint_tnpoint', - 'always_ne_npoint_tnpoint', - 'always_ne_tnpoint_npoint', - 'always_ne_tnpoint_tnpoint', - 'ever_eq_npoint_tnpoint', - 'ever_eq_tnpoint_npoint', - 'ever_eq_tnpoint_tnpoint', - 'ever_ne_npoint_tnpoint', - 'ever_ne_tnpoint_npoint', - 'ever_ne_tnpoint_tnpoint', - 'teq_tnpoint_npoint', - 'tne_tnpoint_npoint', - + "py_error_handler", + "create_pointer", + "get_address", + "datetime_to_timestamptz", + "timestamptz_to_datetime", + "date_to_date_adt", + "date_adt_to_date", + "timedelta_to_interval", + "interval_to_timedelta", + "geo_to_gserialized", + "geometry_to_gserialized", + "geography_to_gserialized", + "gserialized_to_shapely_point", + "gserialized_to_shapely_geometry", + "as_tinstant", + "as_tsequence", + "as_tsequenceset", + "time_in", + "time_out", + "meos_errno", + "meos_errno_set", + "meos_errno_restore", + "meos_errno_reset", + "meos_finalize_projsrs", + "meos_finalize_ways", + "meos_set_datestyle", + "meos_set_intervalstyle", + "meos_get_datestyle", + "meos_get_intervalstyle", + "meos_set_spatial_ref_sys_csv", + "meos_initialize", + "meos_finalize", + "add_date_int", + "add_interval_interval", + "add_timestamptz_interval", + "bool_in", + "bool_out", + "cstring2text", + "date_to_timestamp", + "date_to_timestamptz", + "float_exp", + "float_ln", + "float_log10", + "float_round", + "interval_make", + "minus_date_date", + "minus_date_int", + "minus_timestamptz_interval", + "minus_timestamptz_timestamptz", + "mul_interval_double", + "pg_date_in", + "pg_date_out", + "pg_interval_cmp", + "pg_interval_in", + "pg_interval_out", + "pg_timestamp_in", + "pg_timestamp_out", + "pg_timestamptz_in", + "pg_timestamptz_out", + "text2cstring", + "text_cmp", + "text_copy", + "text_initcap", + "text_lower", + "text_out", + "text_upper", + "textcat_text_text", + "timestamptz_shift", + "timestamp_to_date", + "timestamptz_to_date", + "bigintset_in", + "bigintset_out", + "bigintspan_in", + "bigintspan_out", + "bigintspanset_in", + "bigintspanset_out", + "dateset_in", + "dateset_out", + "datespan_in", + "datespan_out", + "datespanset_in", + "datespanset_out", + "floatset_in", + "floatset_out", + "floatspan_in", + "floatspan_out", + "floatspanset_in", + "floatspanset_out", + "intset_in", + "intset_out", + "intspan_in", + "intspan_out", + "intspanset_in", + "intspanset_out", + "set_as_hexwkb", + "set_as_wkb", + "set_from_hexwkb", + "set_from_wkb", + "span_as_hexwkb", + "span_as_wkb", + "span_from_hexwkb", + "span_from_wkb", + "spanset_as_hexwkb", + "spanset_as_wkb", + "spanset_from_hexwkb", + "spanset_from_wkb", + "textset_in", + "textset_out", + "tstzset_in", + "tstzset_out", + "tstzspan_in", + "tstzspan_out", + "tstzspanset_in", + "tstzspanset_out", + "bigintset_make", + "bigintspan_make", + "dateset_make", + "datespan_make", + "floatset_make", + "floatspan_make", + "intset_make", + "intspan_make", + "set_copy", + "span_copy", + "spanset_copy", + "spanset_make", + "textset_make", + "tstzset_make", + "tstzspan_make", + "bigint_to_set", + "bigint_to_span", + "bigint_to_spanset", + "date_to_set", + "date_to_span", + "date_to_spanset", + "dateset_to_tstzset", + "datespan_to_tstzspan", + "datespanset_to_tstzspanset", + "float_to_set", + "float_to_span", + "float_to_spanset", + "floatset_to_intset", + "floatspan_to_intspan", + "floatspanset_to_intspanset", + "int_to_set", + "int_to_span", + "int_to_spanset", + "intset_to_floatset", + "intspan_to_floatspan", + "intspanset_to_floatspanset", + "set_to_span", + "set_to_spanset", + "span_to_spanset", + "text_to_set", + "timestamptz_to_set", + "timestamptz_to_span", + "timestamptz_to_spanset", + "tstzset_to_dateset", + "tstzspan_to_datespan", + "tstzspanset_to_datespanset", + "bigintset_end_value", + "bigintset_start_value", + "bigintset_value_n", + "bigintset_values", + "bigintspan_lower", + "bigintspan_upper", + "bigintspan_width", + "bigintspanset_lower", + "bigintspanset_upper", + "bigintspanset_width", + "dateset_end_value", + "dateset_start_value", + "dateset_value_n", + "dateset_values", + "datespan_duration", + "datespan_lower", + "datespan_upper", + "datespanset_date_n", + "datespanset_dates", + "datespanset_duration", + "datespanset_end_date", + "datespanset_num_dates", + "datespanset_start_date", + "floatset_end_value", + "floatset_start_value", + "floatset_value_n", + "floatset_values", + "floatspan_lower", + "floatspan_upper", + "floatspan_width", + "floatspanset_lower", + "floatspanset_upper", + "floatspanset_width", + "intset_end_value", + "intset_start_value", + "intset_value_n", + "intset_values", + "intspan_lower", + "intspan_upper", + "intspan_width", + "intspanset_lower", + "intspanset_upper", + "intspanset_width", + "set_hash", + "set_hash_extended", + "set_num_values", + "span_hash", + "span_hash_extended", + "span_lower_inc", + "span_upper_inc", + "spanset_end_span", + "spanset_hash", + "spanset_hash_extended", + "spanset_lower_inc", + "spanset_num_spans", + "spanset_span", + "spanset_span_n", + "spanset_spanarr", + "spanset_start_span", + "spanset_upper_inc", + "textset_end_value", + "textset_start_value", + "textset_value_n", + "textset_values", + "tstzset_end_value", + "tstzset_start_value", + "tstzset_value_n", + "tstzset_values", + "tstzspan_duration", + "tstzspan_lower", + "tstzspan_upper", + "tstzspanset_duration", + "tstzspanset_end_timestamptz", + "tstzspanset_lower", + "tstzspanset_num_timestamps", + "tstzspanset_start_timestamptz", + "tstzspanset_timestamps", + "tstzspanset_timestamptz_n", + "tstzspanset_upper", + "bigintset_shift_scale", + "bigintspan_shift_scale", + "bigintspanset_shift_scale", + "dateset_shift_scale", + "datespan_shift_scale", + "datespanset_shift_scale", + "floatset_ceil", + "floatset_degrees", + "floatset_floor", + "floatset_radians", + "floatset_shift_scale", + "floatspan_ceil", + "floatspan_degrees", + "floatspan_floor", + "floatspan_radians", + "floatspan_round", + "floatspan_shift_scale", + "floatspanset_ceil", + "floatspanset_floor", + "floatspanset_degrees", + "floatspanset_radians", + "floatspanset_round", + "floatspanset_shift_scale", + "intset_shift_scale", + "intspan_shift_scale", + "intspanset_shift_scale", + "numspan_expand", + "tstzspan_expand", + "set_round", + "textcat_text_textset", + "textcat_textset_text", + "textset_initcap", + "textset_lower", + "textset_upper", + "timestamptz_tprecision", + "tstzset_shift_scale", + "tstzset_tprecision", + "tstzspan_shift_scale", + "tstzspan_tprecision", + "tstzspanset_shift_scale", + "tstzspanset_tprecision", + "set_cmp", + "set_eq", + "set_ge", + "set_gt", + "set_le", + "set_lt", + "set_ne", + "span_cmp", + "span_eq", + "span_ge", + "span_gt", + "span_le", + "span_lt", + "span_ne", + "spanset_cmp", + "spanset_eq", + "spanset_ge", + "spanset_gt", + "spanset_le", + "spanset_lt", + "spanset_ne", + "set_spans", + "set_split_each_n_spans", + "set_split_n_spans", + "spanset_spans", + "spanset_split_each_n_spans", + "spanset_split_n_spans", + "adjacent_span_bigint", + "adjacent_span_date", + "adjacent_span_float", + "adjacent_span_int", + "adjacent_span_span", + "adjacent_span_spanset", + "adjacent_span_timestamptz", + "adjacent_spanset_bigint", + "adjacent_spanset_date", + "adjacent_spanset_float", + "adjacent_spanset_int", + "adjacent_spanset_timestamptz", + "adjacent_spanset_span", + "adjacent_spanset_spanset", + "contained_bigint_set", + "contained_bigint_span", + "contained_bigint_spanset", + "contained_date_set", + "contained_date_span", + "contained_date_spanset", + "contained_float_set", + "contained_float_span", + "contained_float_spanset", + "contained_int_set", + "contained_int_span", + "contained_int_spanset", + "contained_set_set", + "contained_span_span", + "contained_span_spanset", + "contained_spanset_span", + "contained_spanset_spanset", + "contained_text_set", + "contained_timestamptz_set", + "contained_timestamptz_span", + "contained_timestamptz_spanset", + "contains_set_bigint", + "contains_set_date", + "contains_set_float", + "contains_set_int", + "contains_set_set", + "contains_set_text", + "contains_set_timestamptz", + "contains_span_bigint", + "contains_span_date", + "contains_span_float", + "contains_span_int", + "contains_span_span", + "contains_span_spanset", + "contains_span_timestamptz", + "contains_spanset_bigint", + "contains_spanset_date", + "contains_spanset_float", + "contains_spanset_int", + "contains_spanset_span", + "contains_spanset_spanset", + "contains_spanset_timestamptz", + "overlaps_set_set", + "overlaps_span_span", + "overlaps_span_spanset", + "overlaps_spanset_span", + "overlaps_spanset_spanset", + "after_date_set", + "after_date_span", + "after_date_spanset", + "after_set_date", + "after_set_timestamptz", + "after_span_date", + "after_span_timestamptz", + "after_spanset_date", + "after_spanset_timestamptz", + "after_timestamptz_set", + "after_timestamptz_span", + "after_timestamptz_spanset", + "before_date_set", + "before_date_span", + "before_date_spanset", + "before_set_date", + "before_set_timestamptz", + "before_span_date", + "before_span_timestamptz", + "before_spanset_date", + "before_spanset_timestamptz", + "before_timestamptz_set", + "before_timestamptz_span", + "before_timestamptz_spanset", + "left_bigint_set", + "left_bigint_span", + "left_bigint_spanset", + "left_float_set", + "left_float_span", + "left_float_spanset", + "left_int_set", + "left_int_span", + "left_int_spanset", + "left_set_bigint", + "left_set_float", + "left_set_int", + "left_set_set", + "left_set_text", + "left_span_bigint", + "left_span_float", + "left_span_int", + "left_span_span", + "left_span_spanset", + "left_spanset_bigint", + "left_spanset_float", + "left_spanset_int", + "left_spanset_span", + "left_spanset_spanset", + "left_text_set", + "overafter_date_set", + "overafter_date_span", + "overafter_date_spanset", + "overafter_set_date", + "overafter_set_timestamptz", + "overafter_span_date", + "overafter_span_timestamptz", + "overafter_spanset_date", + "overafter_spanset_timestamptz", + "overafter_timestamptz_set", + "overafter_timestamptz_span", + "overafter_timestamptz_spanset", + "overbefore_date_set", + "overbefore_date_span", + "overbefore_date_spanset", + "overbefore_set_date", + "overbefore_set_timestamptz", + "overbefore_span_date", + "overbefore_span_timestamptz", + "overbefore_spanset_date", + "overbefore_spanset_timestamptz", + "overbefore_timestamptz_set", + "overbefore_timestamptz_span", + "overbefore_timestamptz_spanset", + "overleft_bigint_set", + "overleft_bigint_span", + "overleft_bigint_spanset", + "overleft_float_set", + "overleft_float_span", + "overleft_float_spanset", + "overleft_int_set", + "overleft_int_span", + "overleft_int_spanset", + "overleft_set_bigint", + "overleft_set_float", + "overleft_set_int", + "overleft_set_set", + "overleft_set_text", + "overleft_span_bigint", + "overleft_span_float", + "overleft_span_int", + "overleft_span_span", + "overleft_span_spanset", + "overleft_spanset_bigint", + "overleft_spanset_float", + "overleft_spanset_int", + "overleft_spanset_span", + "overleft_spanset_spanset", + "overleft_text_set", + "overright_bigint_set", + "overright_bigint_span", + "overright_bigint_spanset", + "overright_float_set", + "overright_float_span", + "overright_float_spanset", + "overright_int_set", + "overright_int_span", + "overright_int_spanset", + "overright_set_bigint", + "overright_set_float", + "overright_set_int", + "overright_set_set", + "overright_set_text", + "overright_span_bigint", + "overright_span_float", + "overright_span_int", + "overright_span_span", + "overright_span_spanset", + "overright_spanset_bigint", + "overright_spanset_float", + "overright_spanset_int", + "overright_spanset_span", + "overright_spanset_spanset", + "overright_text_set", + "right_bigint_set", + "right_bigint_span", + "right_bigint_spanset", + "right_float_set", + "right_float_span", + "right_float_spanset", + "right_int_set", + "right_int_span", + "right_int_spanset", + "right_set_bigint", + "right_set_float", + "right_set_int", + "right_set_set", + "right_set_text", + "right_span_bigint", + "right_span_float", + "right_span_int", + "right_span_span", + "right_span_spanset", + "right_spanset_bigint", + "right_spanset_float", + "right_spanset_int", + "right_spanset_span", + "right_spanset_spanset", + "right_text_set", + "intersection_bigint_set", + "intersection_date_set", + "intersection_float_set", + "intersection_int_set", + "intersection_set_bigint", + "intersection_set_date", + "intersection_set_float", + "intersection_set_int", + "intersection_set_set", + "intersection_set_text", + "intersection_set_timestamptz", + "intersection_span_bigint", + "intersection_span_date", + "intersection_span_float", + "intersection_span_int", + "intersection_span_span", + "intersection_span_spanset", + "intersection_span_timestamptz", + "intersection_spanset_bigint", + "intersection_spanset_date", + "intersection_spanset_float", + "intersection_spanset_int", + "intersection_spanset_span", + "intersection_spanset_spanset", + "intersection_spanset_timestamptz", + "intersection_text_set", + "intersection_timestamptz_set", + "minus_bigint_set", + "minus_bigint_span", + "minus_bigint_spanset", + "minus_date_set", + "minus_date_span", + "minus_date_spanset", + "minus_float_set", + "minus_float_span", + "minus_float_spanset", + "minus_int_set", + "minus_int_span", + "minus_int_spanset", + "minus_set_bigint", + "minus_set_date", + "minus_set_float", + "minus_set_int", + "minus_set_set", + "minus_set_text", + "minus_set_timestamptz", + "minus_span_bigint", + "minus_span_date", + "minus_span_float", + "minus_span_int", + "minus_span_span", + "minus_span_spanset", + "minus_span_timestamptz", + "minus_spanset_bigint", + "minus_spanset_date", + "minus_spanset_float", + "minus_spanset_int", + "minus_spanset_span", + "minus_spanset_spanset", + "minus_spanset_timestamptz", + "minus_text_set", + "minus_timestamptz_set", + "minus_timestamptz_span", + "minus_timestamptz_spanset", + "union_bigint_set", + "union_bigint_span", + "union_bigint_spanset", + "union_date_set", + "union_date_span", + "union_date_spanset", + "union_float_set", + "union_float_span", + "union_float_spanset", + "union_int_set", + "union_int_span", + "union_int_spanset", + "union_set_bigint", + "union_set_date", + "union_set_float", + "union_set_int", + "union_set_set", + "union_set_text", + "union_set_timestamptz", + "union_span_bigint", + "union_span_date", + "union_span_float", + "union_span_int", + "union_span_span", + "union_span_spanset", + "union_span_timestamptz", + "union_spanset_bigint", + "union_spanset_date", + "union_spanset_float", + "union_spanset_int", + "union_spanset_span", + "union_spanset_spanset", + "union_spanset_timestamptz", + "union_text_set", + "union_timestamptz_set", + "union_timestamptz_span", + "union_timestamptz_spanset", + "distance_bigintset_bigintset", + "distance_bigintspan_bigintspan", + "distance_bigintspanset_bigintspan", + "distance_bigintspanset_bigintspanset", + "distance_dateset_dateset", + "distance_datespan_datespan", + "distance_datespanset_datespan", + "distance_datespanset_datespanset", + "distance_floatset_floatset", + "distance_floatspan_floatspan", + "distance_floatspanset_floatspan", + "distance_floatspanset_floatspanset", + "distance_intset_intset", + "distance_intspan_intspan", + "distance_intspanset_intspan", + "distance_intspanset_intspanset", + "distance_set_bigint", + "distance_set_date", + "distance_set_float", + "distance_set_int", + "distance_set_timestamptz", + "distance_span_bigint", + "distance_span_date", + "distance_span_float", + "distance_span_int", + "distance_span_timestamptz", + "distance_spanset_bigint", + "distance_spanset_date", + "distance_spanset_float", + "distance_spanset_int", + "distance_spanset_timestamptz", + "distance_tstzset_tstzset", + "distance_tstzspan_tstzspan", + "distance_tstzspanset_tstzspan", + "distance_tstzspanset_tstzspanset", + "bigint_extent_transfn", + "bigint_union_transfn", + "date_extent_transfn", + "date_union_transfn", + "float_extent_transfn", + "float_union_transfn", + "int_extent_transfn", + "int_union_transfn", + "set_extent_transfn", + "set_union_finalfn", + "set_union_transfn", + "span_extent_transfn", + "span_union_transfn", + "spanset_extent_transfn", + "spanset_union_finalfn", + "spanset_union_transfn", + "text_union_transfn", + "timestamptz_extent_transfn", + "timestamptz_union_transfn", + "bigint_get_bin", + "bigintspan_bins", + "bigintspanset_bins", + "date_get_bin", + "datespan_bins", + "datespanset_bins", + "float_get_bin", + "floatspan_bins", + "floatspanset_bins", + "int_get_bin", + "intspan_bins", + "intspanset_bins", + "timestamptz_get_bin", + "tstzspan_bins", + "tstzspanset_bins", + "tbox_as_hexwkb", + "tbox_as_wkb", + "tbox_from_hexwkb", + "tbox_from_wkb", + "tbox_in", + "tbox_out", + "float_timestamptz_to_tbox", + "float_tstzspan_to_tbox", + "int_timestamptz_to_tbox", + "int_tstzspan_to_tbox", + "numspan_tstzspan_to_tbox", + "numspan_timestamptz_to_tbox", + "tbox_copy", + "tbox_make", + "float_to_tbox", + "int_to_tbox", + "set_to_tbox", + "span_to_tbox", + "spanset_to_tbox", + "tbox_to_intspan", + "tbox_to_floatspan", + "tbox_to_tstzspan", + "timestamptz_to_tbox", + "tbox_hast", + "tbox_hasx", + "tbox_tmax", + "tbox_tmax_inc", + "tbox_tmin", + "tbox_tmin_inc", + "tbox_xmax", + "tbox_xmax_inc", + "tbox_xmin", + "tbox_xmin_inc", + "tboxfloat_xmax", + "tboxfloat_xmin", + "tboxint_xmax", + "tboxint_xmin", + "tbox_expand_float", + "tbox_expand_int", + "tbox_expand_time", + "tbox_round", + "tbox_shift_scale_float", + "tbox_shift_scale_int", + "tbox_shift_scale_time", + "union_tbox_tbox", + "intersection_tbox_tbox", + "adjacent_tbox_tbox", + "contained_tbox_tbox", + "contains_tbox_tbox", + "overlaps_tbox_tbox", + "same_tbox_tbox", + "after_tbox_tbox", + "before_tbox_tbox", + "left_tbox_tbox", + "overafter_tbox_tbox", + "overbefore_tbox_tbox", + "overleft_tbox_tbox", + "overright_tbox_tbox", + "right_tbox_tbox", + "tbox_cmp", + "tbox_eq", + "tbox_ge", + "tbox_gt", + "tbox_le", + "tbox_lt", + "tbox_ne", + "tbool_from_mfjson", + "tbool_in", + "tbool_out", + "temporal_as_hexwkb", + "temporal_as_mfjson", + "temporal_as_wkb", + "temporal_from_hexwkb", + "temporal_from_wkb", + "tfloat_from_mfjson", + "tfloat_in", + "tfloat_out", + "tint_from_mfjson", + "tint_in", + "tint_out", + "ttext_from_mfjson", + "ttext_in", + "ttext_out", + "tbool_from_base_temp", + "tboolinst_make", + "tboolseq_from_base_tstzset", + "tboolseq_from_base_tstzspan", + "tboolseqset_from_base_tstzspanset", + "temporal_copy", + "tfloat_from_base_temp", + "tfloatinst_make", + "tfloatseq_from_base_tstzset", + "tfloatseq_from_base_tstzspan", + "tfloatseqset_from_base_tstzspanset", + "tint_from_base_temp", + "tintinst_make", + "tintseq_from_base_tstzset", + "tintseq_from_base_tstzspan", + "tintseqset_from_base_tstzspanset", + "tsequence_make", + "tsequenceset_make", + "tsequenceset_make_gaps", + "ttext_from_base_temp", + "ttextinst_make", + "ttextseq_from_base_tstzset", + "ttextseq_from_base_tstzspan", + "ttextseqset_from_base_tstzspanset", + "tbool_to_tint", + "temporal_to_tstzspan", + "tfloat_to_tint", + "tint_to_tfloat", + "tnumber_to_span", + "tbool_end_value", + "tbool_start_value", + "tbool_value_at_timestamptz", + "tbool_value_n", + "tbool_values", + "temporal_duration", + "temporal_end_instant", + "temporal_end_sequence", + "temporal_end_timestamptz", + "temporal_hash", + "temporal_instant_n", + "temporal_instants", + "temporal_interp", + "temporal_lower_inc", + "temporal_max_instant", + "temporal_min_instant", + "temporal_num_instants", + "temporal_num_sequences", + "temporal_num_timestamps", + "temporal_segments", + "temporal_sequence_n", + "temporal_sequences", + "temporal_start_instant", + "temporal_start_sequence", + "temporal_start_timestamptz", + "temporal_stops", + "temporal_subtype", + "temporal_time", + "temporal_timestamps", + "temporal_timestamptz_n", + "temporal_upper_inc", + "tfloat_end_value", + "tfloat_max_value", + "tfloat_min_value", + "tfloat_start_value", + "tfloat_value_at_timestamptz", + "tfloat_value_n", + "tfloat_values", + "tint_end_value", + "tint_max_value", + "tint_min_value", + "tint_start_value", + "tint_value_at_timestamptz", + "tint_value_n", + "tint_values", + "tnumber_integral", + "tnumber_twavg", + "tnumber_valuespans", + "ttext_end_value", + "ttext_max_value", + "ttext_min_value", + "ttext_start_value", + "ttext_value_at_timestamptz", + "ttext_value_n", + "ttext_values", + "float_degrees", + "temparr_round", + "temporal_round", + "temporal_scale_time", + "temporal_set_interp", + "temporal_shift_scale_time", + "temporal_shift_time", + "temporal_to_tinstant", + "temporal_to_tsequence", + "temporal_to_tsequenceset", + "tfloat_ceil", + "tfloat_degrees", + "tfloat_floor", + "tfloat_radians", + "tfloat_scale_value", + "tfloat_shift_scale_value", + "tfloat_shift_value", + "tint_scale_value", + "tint_shift_scale_value", + "tint_shift_value", + "temporal_append_tinstant", + "temporal_append_tsequence", + "temporal_delete_timestamptz", + "temporal_delete_tstzset", + "temporal_delete_tstzspan", + "temporal_delete_tstzspanset", + "temporal_insert", + "temporal_merge", + "temporal_merge_array", + "temporal_update", + "tbool_at_value", + "tbool_minus_value", + "temporal_at_max", + "temporal_at_min", + "temporal_at_timestamptz", + "temporal_at_tstzset", + "temporal_at_tstzspan", + "temporal_at_tstzspanset", + "temporal_at_values", + "temporal_minus_max", + "temporal_minus_min", + "temporal_minus_timestamptz", + "temporal_minus_tstzset", + "temporal_minus_tstzspan", + "temporal_minus_tstzspanset", + "temporal_minus_values", + "tfloat_at_value", + "tfloat_minus_value", + "tint_at_value", + "tint_minus_value", + "tnumber_at_span", + "tnumber_at_spanset", + "tnumber_at_tbox", + "tnumber_minus_span", + "tnumber_minus_spanset", + "tnumber_minus_tbox", + "ttext_at_value", + "ttext_minus_value", + "temporal_cmp", + "temporal_eq", + "temporal_ge", + "temporal_gt", + "temporal_le", + "temporal_lt", + "temporal_ne", + "always_eq_bool_tbool", + "always_eq_float_tfloat", + "always_eq_int_tint", + "always_eq_tbool_bool", + "always_eq_temporal_temporal", + "always_eq_text_ttext", + "always_eq_tfloat_float", + "always_eq_tint_int", + "always_eq_ttext_text", + "always_ge_float_tfloat", + "always_ge_int_tint", + "always_ge_temporal_temporal", + "always_ge_text_ttext", + "always_ge_tfloat_float", + "always_ge_tint_int", + "always_ge_ttext_text", + "always_gt_float_tfloat", + "always_gt_int_tint", + "always_gt_temporal_temporal", + "always_gt_text_ttext", + "always_gt_tfloat_float", + "always_gt_tint_int", + "always_gt_ttext_text", + "always_le_float_tfloat", + "always_le_int_tint", + "always_le_temporal_temporal", + "always_le_text_ttext", + "always_le_tfloat_float", + "always_le_tint_int", + "always_le_ttext_text", + "always_lt_float_tfloat", + "always_lt_int_tint", + "always_lt_temporal_temporal", + "always_lt_text_ttext", + "always_lt_tfloat_float", + "always_lt_tint_int", + "always_lt_ttext_text", + "always_ne_bool_tbool", + "always_ne_float_tfloat", + "always_ne_int_tint", + "always_ne_tbool_bool", + "always_ne_temporal_temporal", + "always_ne_text_ttext", + "always_ne_tfloat_float", + "always_ne_tint_int", + "always_ne_ttext_text", + "ever_eq_bool_tbool", + "ever_eq_float_tfloat", + "ever_eq_int_tint", + "ever_eq_tbool_bool", + "ever_eq_temporal_temporal", + "ever_eq_text_ttext", + "ever_eq_tfloat_float", + "ever_eq_tint_int", + "ever_eq_ttext_text", + "ever_ge_float_tfloat", + "ever_ge_int_tint", + "ever_ge_temporal_temporal", + "ever_ge_text_ttext", + "ever_ge_tfloat_float", + "ever_ge_tint_int", + "ever_ge_ttext_text", + "ever_gt_float_tfloat", + "ever_gt_int_tint", + "ever_gt_temporal_temporal", + "ever_gt_text_ttext", + "ever_gt_tfloat_float", + "ever_gt_tint_int", + "ever_gt_ttext_text", + "ever_le_float_tfloat", + "ever_le_int_tint", + "ever_le_temporal_temporal", + "ever_le_text_ttext", + "ever_le_tfloat_float", + "ever_le_tint_int", + "ever_le_ttext_text", + "ever_lt_float_tfloat", + "ever_lt_int_tint", + "ever_lt_temporal_temporal", + "ever_lt_text_ttext", + "ever_lt_tfloat_float", + "ever_lt_tint_int", + "ever_lt_ttext_text", + "ever_ne_bool_tbool", + "ever_ne_float_tfloat", + "ever_ne_int_tint", + "ever_ne_tbool_bool", + "ever_ne_temporal_temporal", + "ever_ne_text_ttext", + "ever_ne_tfloat_float", + "ever_ne_tint_int", + "ever_ne_ttext_text", + "teq_bool_tbool", + "teq_float_tfloat", + "teq_int_tint", + "teq_tbool_bool", + "teq_temporal_temporal", + "teq_text_ttext", + "teq_tfloat_float", + "teq_tint_int", + "teq_ttext_text", + "tge_float_tfloat", + "tge_int_tint", + "tge_temporal_temporal", + "tge_text_ttext", + "tge_tfloat_float", + "tge_tint_int", + "tge_ttext_text", + "tgt_float_tfloat", + "tgt_int_tint", + "tgt_temporal_temporal", + "tgt_text_ttext", + "tgt_tfloat_float", + "tgt_tint_int", + "tgt_ttext_text", + "tle_float_tfloat", + "tle_int_tint", + "tle_temporal_temporal", + "tle_text_ttext", + "tle_tfloat_float", + "tle_tint_int", + "tle_ttext_text", + "tlt_float_tfloat", + "tlt_int_tint", + "tlt_temporal_temporal", + "tlt_text_ttext", + "tlt_tfloat_float", + "tlt_tint_int", + "tlt_ttext_text", + "tne_bool_tbool", + "tne_float_tfloat", + "tne_int_tint", + "tne_tbool_bool", + "tne_temporal_temporal", + "tne_text_ttext", + "tne_tfloat_float", + "tne_tint_int", + "tne_ttext_text", + "temporal_spans", + "temporal_split_each_n_spans", + "temporal_split_n_spans", + "tnumber_split_each_n_tboxes", + "tnumber_split_n_tboxes", + "tnumber_tboxes", + "adjacent_numspan_tnumber", + "adjacent_tbox_tnumber", + "adjacent_temporal_temporal", + "adjacent_temporal_tstzspan", + "adjacent_tnumber_numspan", + "adjacent_tnumber_tbox", + "adjacent_tnumber_tnumber", + "adjacent_tstzspan_temporal", + "contained_numspan_tnumber", + "contained_tbox_tnumber", + "contained_temporal_temporal", + "contained_temporal_tstzspan", + "contained_tnumber_numspan", + "contained_tnumber_tbox", + "contained_tnumber_tnumber", + "contained_tstzspan_temporal", + "contains_numspan_tnumber", + "contains_tbox_tnumber", + "contains_temporal_tstzspan", + "contains_temporal_temporal", + "contains_tnumber_numspan", + "contains_tnumber_tbox", + "contains_tnumber_tnumber", + "contains_tstzspan_temporal", + "overlaps_numspan_tnumber", + "overlaps_tbox_tnumber", + "overlaps_temporal_temporal", + "overlaps_temporal_tstzspan", + "overlaps_tnumber_numspan", + "overlaps_tnumber_tbox", + "overlaps_tnumber_tnumber", + "overlaps_tstzspan_temporal", + "same_numspan_tnumber", + "same_tbox_tnumber", + "same_temporal_temporal", + "same_temporal_tstzspan", + "same_tnumber_numspan", + "same_tnumber_tbox", + "same_tnumber_tnumber", + "same_tstzspan_temporal", + "after_tbox_tnumber", + "after_temporal_tstzspan", + "after_temporal_temporal", + "after_tnumber_tbox", + "after_tnumber_tnumber", + "after_tstzspan_temporal", + "before_tbox_tnumber", + "before_temporal_tstzspan", + "before_temporal_temporal", + "before_tnumber_tbox", + "before_tnumber_tnumber", + "before_tstzspan_temporal", + "left_tbox_tnumber", + "left_numspan_tnumber", + "left_tnumber_numspan", + "left_tnumber_tbox", + "left_tnumber_tnumber", + "overafter_tbox_tnumber", + "overafter_temporal_tstzspan", + "overafter_temporal_temporal", + "overafter_tnumber_tbox", + "overafter_tnumber_tnumber", + "overafter_tstzspan_temporal", + "overbefore_tbox_tnumber", + "overbefore_temporal_tstzspan", + "overbefore_temporal_temporal", + "overbefore_tnumber_tbox", + "overbefore_tnumber_tnumber", + "overbefore_tstzspan_temporal", + "overleft_numspan_tnumber", + "overleft_tbox_tnumber", + "overleft_tnumber_numspan", + "overleft_tnumber_tbox", + "overleft_tnumber_tnumber", + "overright_numspan_tnumber", + "overright_tbox_tnumber", + "overright_tnumber_numspan", + "overright_tnumber_tbox", + "overright_tnumber_tnumber", + "right_numspan_tnumber", + "right_tbox_tnumber", + "right_tnumber_numspan", + "right_tnumber_tbox", + "right_tnumber_tnumber", + "tand_bool_tbool", + "tand_tbool_bool", + "tand_tbool_tbool", + "tbool_when_true", + "tnot_tbool", + "tor_bool_tbool", + "tor_tbool_bool", + "tor_tbool_tbool", + "add_float_tfloat", + "add_int_tint", + "add_tfloat_float", + "add_tint_int", + "add_tnumber_tnumber", + "div_float_tfloat", + "div_int_tint", + "div_tfloat_float", + "div_tint_int", + "div_tnumber_tnumber", + "mult_float_tfloat", + "mult_int_tint", + "mult_tfloat_float", + "mult_tint_int", + "mult_tnumber_tnumber", + "sub_float_tfloat", + "sub_int_tint", + "sub_tfloat_float", + "sub_tint_int", + "sub_tnumber_tnumber", + "temporal_derivative", + "tfloat_exp", + "tfloat_ln", + "tfloat_log10", + "tnumber_abs", + "float_angular_difference", + "tnumber_angular_difference", + "tnumber_delta_value", + "textcat_text_ttext", + "textcat_ttext_text", + "textcat_ttext_ttext", + "ttext_initcap", + "ttext_upper", + "ttext_lower", + "tdistance_tfloat_float", + "tdistance_tint_int", + "tdistance_tnumber_tnumber", + "nad_tboxfloat_tboxfloat", + "nad_tboxint_tboxint", + "nad_tfloat_float", + "nad_tfloat_tfloat", + "nad_tfloat_tbox", + "nad_tint_int", + "nad_tint_tbox", + "nad_tint_tint", + "tbool_tand_transfn", + "tbool_tor_transfn", + "temporal_extent_transfn", + "temporal_tagg_finalfn", + "temporal_tcount_transfn", + "tfloat_tmax_transfn", + "tfloat_tmin_transfn", + "tfloat_tsum_transfn", + "tfloat_wmax_transfn", + "tfloat_wmin_transfn", + "tfloat_wsum_transfn", + "timestamptz_tcount_transfn", + "tint_tmax_transfn", + "tint_tmin_transfn", + "tint_tsum_transfn", + "tint_wmax_transfn", + "tint_wmin_transfn", + "tint_wsum_transfn", + "tnumber_extent_transfn", + "tnumber_tavg_finalfn", + "tnumber_tavg_transfn", + "tnumber_wavg_transfn", + "tstzset_tcount_transfn", + "tstzspan_tcount_transfn", + "tstzspanset_tcount_transfn", + "ttext_tmax_transfn", + "ttext_tmin_transfn", + "temporal_simplify_dp", + "temporal_simplify_max_dist", + "temporal_simplify_min_dist", + "temporal_simplify_min_tdelta", + "temporal_tprecision", + "temporal_tsample", + "temporal_dyntimewarp_distance", + "temporal_dyntimewarp_path", + "temporal_frechet_distance", + "temporal_frechet_path", + "temporal_hausdorff_distance", + "temporal_time_bins", + "temporal_time_split", + "tfloat_time_boxes", + "tfloat_value_bins", + "tfloat_value_boxes", + "tfloat_value_split", + "tfloat_value_time_boxes", + "tfloat_value_time_split", + "tfloatbox_time_tiles", + "tfloatbox_value_tiles", + "tfloatbox_value_time_tiles", + "tint_time_boxes", + "tint_value_bins", + "tint_value_boxes", + "tint_value_split", + "tint_value_time_boxes", + "tint_value_time_split", + "tintbox_time_tiles", + "tintbox_value_tiles", + "tintbox_value_time_tiles", + "tempsubtype_name", + "tempsubtype_from_string", + "meosoper_name", + "meosoper_from_string", + "interptype_name", + "interptype_from_string", + "meostype_name", + "temptype_basetype", + "settype_basetype", + "spantype_basetype", + "spantype_spansettype", + "spansettype_spantype", + "basetype_spantype", + "basetype_settype", + "tnumber_basetype", + "geo_basetype", + "time_type", + "set_type", + "numset_type", + "ensure_numset_type", + "timeset_type", + "set_spantype", + "ensure_set_spantype", + "alphanumset_type", + "geoset_type", + "ensure_geoset_type", + "spatialset_type", + "ensure_spatialset_type", + "span_basetype", + "span_canon_basetype", + "span_type", + "type_span_bbox", + "span_tbox_type", + "ensure_span_tbox_type", + "numspan_basetype", + "numspan_type", + "ensure_numspan_type", + "timespan_basetype", + "timespan_type", + "spanset_type", + "timespanset_type", + "ensure_timespanset_type", + "temporal_type", + "temptype_continuous", + "basetype_byvalue", + "basetype_varlength", + "basetype_length", + "talpha_type", + "tnumber_type", + "ensure_tnumber_type", + "ensure_tnumber_basetype", + "tnumber_spantype", + "spatial_basetype", + "tspatial_type", + "ensure_tspatial_type", + "tpoint_type", + "ensure_tpoint_type", + "tgeo_type", + "ensure_tgeo_type", + "tgeo_type_all", + "ensure_tgeo_type_all", + "tgeometry_type", + "ensure_tgeometry_type", + "tgeodetic_type", + "ensure_tgeodetic_type", + "ensure_tnumber_tpoint_type", + "geo_as_ewkb", + "geo_as_ewkt", + "geo_as_geojson", + "geo_as_hexewkb", + "geo_as_text", + "geo_from_ewkb", + "geo_from_geojson", + "geo_from_text", + "geo_out", + "geog_from_binary", + "geog_from_hexewkb", + "geog_in", + "geom_from_hexewkb", + "geom_in", + "geo_copy", + "geogpoint_make2d", + "geogpoint_make3dz", + "geompoint_make2d", + "geompoint_make3dz", + "geom_to_geog", + "geog_to_geom", + "geo_is_empty", + "geo_typename", + "geog_area", + "geog_centroid", + "geog_length", + "geog_perimeter", + "geom_azimuth", + "geom_length", + "geom_perimeter", + "line_numpoints", + "line_point_n", + "geo_reverse", + "geo_round", + "geo_set_srid", + "geo_srid", + "geo_transform", + "geo_transform_pipeline", + "geo_collect_garray", + "geo_makeline_garray", + "geo_npoints", + "geo_ngeos", + "geo_geoN", + "geom_array_union", + "geom_boundary", + "geom_buffer", + "geom_centroid", + "geom_convex_hull", + "geom_difference2d", + "geom_intersection2d", + "geom_shortestline2d", + "geom_shortestline3d", + "geom_unary_union", + "line_interpolate_point", + "line_locate_point", + "line_substring", + "geog_dwithin", + "geog_intersects", + "geom_contains", + "geom_covers", + "geom_disjoint2d", + "geom_dwithin2d", + "geom_dwithin3d", + "geom_intersects2d", + "geom_intersects3d", + "geom_relate_pattern", + "geom_touches", + "geo_stboxes", + "geo_split_each_n_stboxes", + "geo_split_n_stboxes", + "geog_distance", + "geom_distance2d", + "geom_distance3d", + "geo_equals", + "geo_same", + "geogset_in", + "geomset_in", + "spatialset_as_text", + "spatialset_as_ewkt", + "geoset_make", + "geo_to_set", + "geoset_end_value", + "geoset_start_value", + "geoset_value_n", + "geoset_values", + "contained_geo_set", + "contains_set_geo", + "geo_union_transfn", + "intersection_geo_set", + "intersection_set_geo", + "minus_geo_set", + "minus_set_geo", + "union_geo_set", + "union_set_geo", + "spatialset_set_srid", + "spatialset_srid", + "spatialset_transform", + "spatialset_transform_pipeline", + "stbox_as_hexwkb", + "stbox_as_wkb", + "stbox_from_hexwkb", + "stbox_from_wkb", + "stbox_in", + "stbox_out", + "geo_timestamptz_to_stbox", + "geo_tstzspan_to_stbox", + "stbox_copy", + "stbox_make", + "geo_to_stbox", + "spatialset_to_stbox", + "stbox_to_box3d", + "stbox_to_gbox", + "stbox_to_geo", + "stbox_to_tstzspan", + "timestamptz_to_stbox", + "tstzset_to_stbox", + "tstzspan_to_stbox", + "tstzspanset_to_stbox", + "stbox_area", + "stbox_hast", + "stbox_hasx", + "stbox_hasz", + "stbox_isgeodetic", + "stbox_perimeter", + "stbox_tmax", + "stbox_tmax_inc", + "stbox_tmin", + "stbox_tmin_inc", + "stbox_volume", + "stbox_xmax", + "stbox_xmin", + "stbox_ymax", + "stbox_ymin", + "stbox_zmax", + "stbox_zmin", + "stbox_expand_space", + "stbox_expand_time", + "stbox_get_space", + "stbox_quad_split", + "stbox_round", + "stbox_shift_scale_time", + "stboxarr_round", + "stbox_set_srid", + "stbox_srid", + "stbox_transform", + "stbox_transform_pipeline", + "adjacent_stbox_stbox", + "contained_stbox_stbox", + "contains_stbox_stbox", + "overlaps_stbox_stbox", + "same_stbox_stbox", + "above_stbox_stbox", + "after_stbox_stbox", + "back_stbox_stbox", + "before_stbox_stbox", + "below_stbox_stbox", + "front_stbox_stbox", + "left_stbox_stbox", + "overabove_stbox_stbox", + "overafter_stbox_stbox", + "overback_stbox_stbox", + "overbefore_stbox_stbox", + "overbelow_stbox_stbox", + "overfront_stbox_stbox", + "overleft_stbox_stbox", + "overright_stbox_stbox", + "right_stbox_stbox", + "union_stbox_stbox", + "intersection_stbox_stbox", + "stbox_cmp", + "stbox_eq", + "stbox_ge", + "stbox_gt", + "stbox_le", + "stbox_lt", + "stbox_ne", + "rtree_create_stbox", + "rtree_free", + "rtree_insert", + "rtree_search", + "tgeo_out", + "tgeogpoint_from_mfjson", + "tgeogpoint_in", + "tgeography_from_mfjson", + "tgeography_in", + "tgeometry_from_mfjson", + "tgeometry_in", + "tgeompoint_from_mfjson", + "tgeompoint_in", + "tspatial_as_ewkt", + "tspatial_as_text", + "tgeo_from_base_temp", + "tgeoinst_make", + "tgeoseq_from_base_tstzset", + "tgeoseq_from_base_tstzspan", + "tgeoseqset_from_base_tstzspanset", + "tpoint_from_base_temp", + "tpointinst_make", + "tpointseq_from_base_tstzset", + "tpointseq_from_base_tstzspan", + "tpointseq_make_coords", + "tpointseqset_from_base_tstzspanset", + "box3d_to_stbox", + "gbox_to_stbox", + "geomeas_to_tpoint", + "tgeogpoint_to_tgeography", + "tgeography_to_tgeogpoint", + "tgeography_to_tgeometry", + "tgeometry_to_tgeography", + "tgeometry_to_tgeompoint", + "tgeompoint_to_tgeometry", + "tpoint_as_mvtgeom", + "tpoint_tfloat_to_geomeas", + "tspatial_to_stbox", + "bearing_point_point", + "bearing_tpoint_point", + "bearing_tpoint_tpoint", + "tgeo_centroid", + "tgeo_convex_hull", + "tgeo_end_value", + "tgeo_start_value", + "tgeo_traversed_area", + "tgeo_value_at_timestamptz", + "tgeo_value_n", + "tgeo_values", + "tpoint_angular_difference", + "tpoint_azimuth", + "tpoint_cumulative_length", + "tpoint_direction", + "tpoint_get_x", + "tpoint_get_y", + "tpoint_get_z", + "tpoint_is_simple", + "tpoint_length", + "tpoint_trajectory", + "tpoint_twcentroid", + "tgeo_affine", + "tgeo_scale", + "tpoint_make_simple", + "tspatial_srid", + "tspatial_set_srid", + "tspatial_transform", + "tspatial_transform_pipeline", + "tgeo_at_geom", + "tgeo_at_stbox", + "tgeo_at_value", + "tgeo_minus_geom", + "tgeo_minus_stbox", + "tgeo_minus_value", + "tpoint_at_geom", + "tpoint_at_value", + "tpoint_minus_geom", + "tpoint_minus_value", + "always_eq_geo_tgeo", + "always_eq_tgeo_geo", + "always_eq_tgeo_tgeo", + "always_ne_geo_tgeo", + "always_ne_tgeo_geo", + "always_ne_tgeo_tgeo", + "ever_eq_geo_tgeo", + "ever_eq_tgeo_geo", + "ever_eq_tgeo_tgeo", + "ever_ne_geo_tgeo", + "ever_ne_tgeo_geo", + "ever_ne_tgeo_tgeo", + "teq_geo_tgeo", + "teq_tgeo_geo", + "tne_geo_tgeo", + "tne_tgeo_geo", + "tgeo_stboxes", + "tgeo_space_boxes", + "tgeo_space_time_boxes", + "tgeo_split_each_n_stboxes", + "tgeo_split_n_stboxes", + "adjacent_stbox_tspatial", + "adjacent_tspatial_stbox", + "adjacent_tspatial_tspatial", + "contained_stbox_tspatial", + "contained_tspatial_stbox", + "contained_tspatial_tspatial", + "contains_stbox_tspatial", + "contains_tspatial_stbox", + "contains_tspatial_tspatial", + "overlaps_stbox_tspatial", + "overlaps_tspatial_stbox", + "overlaps_tspatial_tspatial", + "same_stbox_tspatial", + "same_tspatial_stbox", + "same_tspatial_tspatial", + "above_stbox_tspatial", + "above_tspatial_stbox", + "above_tspatial_tspatial", + "after_stbox_tspatial", + "after_tspatial_stbox", + "after_tspatial_tspatial", + "back_stbox_tspatial", + "back_tspatial_stbox", + "back_tspatial_tspatial", + "before_stbox_tspatial", + "before_tspatial_stbox", + "before_tspatial_tspatial", + "below_stbox_tspatial", + "below_tspatial_stbox", + "below_tspatial_tspatial", + "front_stbox_tspatial", + "front_tspatial_stbox", + "front_tspatial_tspatial", + "left_stbox_tspatial", + "left_tspatial_stbox", + "left_tspatial_tspatial", + "overabove_stbox_tspatial", + "overabove_tspatial_stbox", + "overabove_tspatial_tspatial", + "overafter_stbox_tspatial", + "overafter_tspatial_stbox", + "overafter_tspatial_tspatial", + "overback_stbox_tspatial", + "overback_tspatial_stbox", + "overback_tspatial_tspatial", + "overbefore_stbox_tspatial", + "overbefore_tspatial_stbox", + "overbefore_tspatial_tspatial", + "overbelow_stbox_tspatial", + "overbelow_tspatial_stbox", + "overbelow_tspatial_tspatial", + "overfront_stbox_tspatial", + "overfront_tspatial_stbox", + "overfront_tspatial_tspatial", + "overleft_stbox_tspatial", + "overleft_tspatial_stbox", + "overleft_tspatial_tspatial", + "overright_stbox_tspatial", + "overright_tspatial_stbox", + "overright_tspatial_tspatial", + "right_stbox_tspatial", + "right_tspatial_stbox", + "right_tspatial_tspatial", + "acontains_geo_tgeo", + "acontains_tgeo_geo", + "acontains_tgeo_tgeo", + "adisjoint_tgeo_geo", + "adisjoint_tgeo_tgeo", + "adwithin_tgeo_geo", + "adwithin_tgeo_tgeo", + "aintersects_tgeo_geo", + "aintersects_tgeo_tgeo", + "atouches_tgeo_geo", + "atouches_tgeo_tgeo", + "atouches_tpoint_geo", + "econtains_geo_tgeo", + "econtains_tgeo_geo", + "econtains_tgeo_tgeo", + "ecovers_geo_tgeo", + "ecovers_tgeo_geo", + "ecovers_tgeo_tgeo", + "edisjoint_tgeo_geo", + "edisjoint_tgeo_tgeo", + "edwithin_tgeo_geo", + "edwithin_tgeo_tgeo", + "eintersects_tgeo_geo", + "eintersects_tgeo_tgeo", + "etouches_tgeo_geo", + "etouches_tgeo_tgeo", + "etouches_tpoint_geo", + "tcontains_geo_tgeo", + "tcontains_tgeo_geo", + "tcontains_tgeo_tgeo", + "tcovers_geo_tgeo", + "tcovers_tgeo_geo", + "tcovers_tgeo_tgeo", + "tdisjoint_geo_tgeo", + "tdisjoint_tgeo_geo", + "tdisjoint_tgeo_tgeo", + "tdwithin_geo_tgeo", + "tdwithin_tgeo_geo", + "tdwithin_tgeo_tgeo", + "tintersects_geo_tgeo", + "tintersects_tgeo_geo", + "tintersects_tgeo_tgeo", + "ttouches_geo_tgeo", + "ttouches_tgeo_geo", + "ttouches_tgeo_tgeo", + "tdistance_tgeo_geo", + "tdistance_tgeo_tgeo", + "nad_stbox_geo", + "nad_stbox_stbox", + "nad_tgeo_geo", + "nad_tgeo_stbox", + "nad_tgeo_tgeo", + "nai_tgeo_geo", + "nai_tgeo_tgeo", + "shortestline_tgeo_geo", + "shortestline_tgeo_tgeo", + "tpoint_tcentroid_finalfn", + "tpoint_tcentroid_transfn", + "tspatial_extent_transfn", + "stbox_get_space_tile", + "stbox_get_space_time_tile", + "stbox_get_time_tile", + "stbox_space_tiles", + "stbox_space_time_tiles", + "stbox_time_tiles", + "tgeo_space_split", + "tgeo_space_time_split", + "geo_cluster_kmeans", + "geo_cluster_dbscan", + "geo_cluster_intersecting", + "geo_cluster_within", + "gsl_get_generation_rng", + "gsl_get_aggregation_rng", + "datum_ceil", + "datum_degrees", + "datum_float_round", + "datum_floor", + "datum_hash", + "datum_hash_extended", + "datum_radians", + "floatspan_round_set", + "set_in", + "set_out", + "span_in", + "span_out", + "spanset_in", + "spanset_out", + "set_make", + "set_make_exp", + "set_make_free", + "span_make", + "span_set", + "spanset_make_exp", + "spanset_make_free", + "set_span", + "set_spanset", + "value_set_span", + "value_set", + "value_span", + "value_spanset", + "numspan_width", + "numspanset_width", + "set_end_value", + "set_mem_size", + "set_set_subspan", + "set_set_span", + "set_start_value", + "set_value_n", + "set_vals", + "set_values", + "spanset_lower", + "spanset_mem_size", + "spanset_sps", + "spanset_upper", + "datespan_set_tstzspan", + "floatspan_set_intspan", + "intspan_set_floatspan", + "numset_shift_scale", + "numspan_shift_scale", + "numspanset_shift_scale", + "set_compact", + "span_expand", + "spanset_compact", + "tbox_expand_value", + "textcat_textset_text_int", + "tstzspan_set_datespan", + "adjacent_span_value", + "adjacent_spanset_value", + "adjacent_value_spanset", + "contained_value_set", + "contained_value_span", + "contained_value_spanset", + "contains_set_value", + "contains_span_value", + "contains_spanset_value", + "ovadj_span_span", + "left_set_value", + "left_span_value", + "left_spanset_value", + "left_value_set", + "left_value_span", + "left_value_spanset", + "lfnadj_span_span", + "overleft_set_value", + "overleft_span_value", + "overleft_spanset_value", + "overleft_value_set", + "overleft_value_span", + "overleft_value_spanset", + "overright_set_value", + "overright_span_value", + "overright_spanset_value", + "overright_value_set", + "overright_value_span", + "overright_value_spanset", + "right_value_set", + "right_set_value", + "right_value_span", + "right_value_spanset", + "right_span_value", + "right_spanset_value", + "bbox_union_span_span", + "inter_span_span", + "intersection_set_value", + "intersection_span_value", + "intersection_spanset_value", + "intersection_value_set", + "intersection_value_span", + "intersection_value_spanset", + "mi_span_span", + "minus_set_value", + "minus_span_value", + "minus_spanset_value", + "minus_value_set", + "minus_value_span", + "minus_value_spanset", + "super_union_span_span", + "union_set_value", + "union_span_value", + "union_spanset_value", + "union_value_set", + "union_value_span", + "union_value_spanset", + "distance_set_set", + "distance_set_value", + "distance_span_span", + "distance_span_value", + "distance_spanset_span", + "distance_spanset_spanset", + "distance_spanset_value", + "distance_value_value", + "spanbase_extent_transfn", + "value_union_transfn", + "number_tstzspan_to_tbox", + "number_timestamptz_to_tbox", + "tbox_set", + "float_set_tbox", + "int_set_tbox", + "number_set_tbox", + "number_tbox", + "numset_set_tbox", + "numspan_set_tbox", + "timestamptz_set_tbox", + "tstzset_set_tbox", + "tstzspan_set_tbox", + "tbox_shift_scale_value", + "tbox_expand", + "inter_tbox_tbox", + "tboolinst_in", + "tboolseq_in", + "tboolseqset_in", + "temporal_in", + "temporal_out", + "temparr_out", + "tfloatinst_in", + "tfloatseq_in", + "tfloatseqset_in", + "tinstant_in", + "tinstant_out", + "tintinst_in", + "tintseq_in", + "tintseqset_in", + "tsequence_in", + "tsequence_out", + "tsequenceset_in", + "tsequenceset_out", + "ttextinst_in", + "ttextseq_in", + "ttextseqset_in", + "temporal_from_mfjson", + "temporal_from_base_temp", + "tinstant_copy", + "tinstant_make", + "tinstant_make_free", + "tsequence_copy", + "tsequence_from_base_temp", + "tsequence_from_base_tstzset", + "tsequence_from_base_tstzspan", + "tsequence_make_exp", + "tsequence_make_free", + "tsequenceset_copy", + "tseqsetarr_to_tseqset", + "tsequenceset_from_base_temp", + "tsequenceset_from_base_tstzspanset", + "tsequenceset_make_exp", + "tsequenceset_make_free", + "temporal_set_tstzspan", + "tinstant_set_tstzspan", + "tnumber_set_tbox", + "tnumberinst_set_tbox", + "tnumberseq_set_tbox", + "tnumberseqset_set_tbox", + "tsequence_set_tstzspan", + "tsequenceset_set_tstzspan", + "temporal_end_inst", + "temporal_end_value", + "temporal_inst_n", + "temporal_instants_p", + "temporal_max_value", + "temporal_mem_size", + "temporal_min_value", + "temporal_sequences_p", + "temporal_set_bbox", + "temporal_start_inst", + "temporal_start_value", + "temporal_values_p", + "temporal_value_n", + "temporal_values", + "tinstant_hash", + "tinstant_insts", + "tinstant_set_bbox", + "tinstant_time", + "tinstant_timestamps", + "tinstant_value_p", + "tinstant_value", + "tinstant_value_at_timestamptz", + "tinstant_values_p", + "tnumber_set_span", + "tnumberinst_valuespans", + "tnumberseq_valuespans", + "tnumberseqset_valuespans", + "tsequence_duration", + "tsequence_end_timestamptz", + "tsequence_hash", + "tsequence_insts_p", + "tsequence_max_inst", + "tsequence_max_val", + "tsequence_min_inst", + "tsequence_min_val", + "tsequence_segments", + "tsequence_seqs", + "tsequence_start_timestamptz", + "tsequence_time", + "tsequence_timestamps", + "tsequence_value_at_timestamptz", + "tsequence_values_p", + "tsequenceset_duration", + "tsequenceset_end_timestamptz", + "tsequenceset_hash", + "tsequenceset_inst_n", + "tsequenceset_insts_p", + "tsequenceset_max_inst", + "tsequenceset_max_val", + "tsequenceset_min_inst", + "tsequenceset_min_val", + "tsequenceset_num_instants", + "tsequenceset_num_timestamps", + "tsequenceset_segments", + "tsequenceset_sequences_p", + "tsequenceset_start_timestamptz", + "tsequenceset_time", + "tsequenceset_timestamptz_n", + "tsequenceset_timestamps", + "tsequenceset_value_at_timestamptz", + "tsequenceset_value_n", + "tsequenceset_values_p", + "temporal_restart", + "temporal_tsequence", + "temporal_tsequenceset", + "tinstant_shift_time", + "tinstant_to_tsequence", + "tinstant_to_tsequence_free", + "tinstant_to_tsequenceset", + "tnumber_shift_scale_value", + "tnumberinst_shift_value", + "tnumberseq_shift_scale_value", + "tnumberseqset_shift_scale_value", + "tsequence_restart", + "tsequence_set_interp", + "tsequence_shift_scale_time", + "tsequence_subseq", + "tsequence_to_tinstant", + "tsequence_to_tsequenceset", + "tsequence_to_tsequenceset_free", + "tsequence_to_tsequenceset_interp", + "tsequenceset_restart", + "tsequenceset_set_interp", + "tsequenceset_shift_scale_time", + "tsequenceset_to_discrete", + "tsequenceset_to_linear", + "tsequenceset_to_step", + "tsequenceset_to_tinstant", + "tsequenceset_to_tsequence", + "tinstant_merge", + "tinstant_merge_array", + "tsequence_append_tinstant", + "tsequence_append_tsequence", + "tsequence_delete_timestamptz", + "tsequence_delete_tstzset", + "tsequence_delete_tstzspan", + "tsequence_delete_tstzspanset", + "tsequence_insert", + "tsequence_merge", + "tsequence_merge_array", + "tsequenceset_append_tinstant", + "tsequenceset_append_tsequence", + "tsequenceset_delete_timestamptz", + "tsequenceset_delete_tstzset", + "tsequenceset_delete_tstzspan", + "tsequenceset_delete_tstzspanset", + "tsequenceset_insert", + "tsequenceset_merge", + "tsequenceset_merge_array", + "tsequence_expand_bbox", + "tsequence_set_bbox", + "tsequenceset_expand_bbox", + "tsequenceset_set_bbox", + "tdiscseq_restrict_minmax", + "tcontseq_restrict_minmax", + "temporal_bbox_restrict_set", + "temporal_restrict_minmax", + "temporal_restrict_timestamptz", + "temporal_restrict_tstzset", + "temporal_restrict_tstzspan", + "temporal_restrict_tstzspanset", + "temporal_restrict_value", + "temporal_restrict_values", + "temporal_value_at_timestamptz", + "tinstant_restrict_tstzspan", + "tinstant_restrict_tstzspanset", + "tinstant_restrict_timestamptz", + "tinstant_restrict_tstzset", + "tinstant_restrict_value", + "tinstant_restrict_values", + "tnumber_restrict_span", + "tnumber_restrict_spanset", + "tnumberinst_restrict_span", + "tnumberinst_restrict_spanset", + "tnumberseqset_restrict_span", + "tnumberseqset_restrict_spanset", + "tsequence_at_timestamptz", + "tsequence_restrict_tstzspan", + "tsequence_restrict_tstzspanset", + "tsequenceset_restrict_minmax", + "tsequenceset_restrict_tstzspan", + "tsequenceset_restrict_tstzspanset", + "tsequenceset_restrict_timestamptz", + "tsequenceset_restrict_tstzset", + "tsequenceset_restrict_value", + "tsequenceset_restrict_values", + "tinstant_cmp", + "tinstant_eq", + "tsequence_cmp", + "tsequence_eq", + "tsequenceset_cmp", + "tsequenceset_eq", + "always_eq_base_temporal", + "always_eq_temporal_base", + "always_ne_base_temporal", + "always_ne_temporal_base", + "always_ge_base_temporal", + "always_ge_temporal_base", + "always_gt_base_temporal", + "always_gt_temporal_base", + "always_le_base_temporal", + "always_le_temporal_base", + "always_lt_base_temporal", + "always_lt_temporal_base", + "ever_eq_base_temporal", + "ever_eq_temporal_base", + "ever_ne_base_temporal", + "ever_ne_temporal_base", + "ever_ge_base_temporal", + "ever_ge_temporal_base", + "ever_gt_base_temporal", + "ever_gt_temporal_base", + "ever_le_base_temporal", + "ever_le_temporal_base", + "ever_lt_base_temporal", + "ever_lt_temporal_base", + "tnumberinst_abs", + "tnumberseq_abs", + "tnumberseq_angular_difference", + "tnumberseq_delta_value", + "tnumberseqset_abs", + "tnumberseqset_angular_difference", + "tnumberseqset_delta_value", + "tdistance_tnumber_number", + "nad_tbox_tbox", + "nad_tnumber_number", + "nad_tnumber_tbox", + "nad_tnumber_tnumber", + "tnumberseq_integral", + "tnumberseq_twavg", + "tnumberseqset_integral", + "tnumberseqset_twavg", + "temporal_compact", + "tsequence_compact", + "tsequenceset_compact", + "skiplist_free", + "temporal_app_tinst_transfn", + "temporal_app_tseq_transfn", + "span_bins", + "spanset_bins", + "tnumber_value_bins", + "tnumber_value_time_boxes", + "tnumber_value_split", + "tbox_get_value_time_tile", + "tnumber_value_time_split", + "proj_get_context", + "datum_geo_round", + "point_round", + "stbox_set", + "gbox_set_stbox", + "geo_set_stbox", + "geoarr_set_stbox", + "spatial_set_stbox", + "spatialset_set_stbox", + "stbox_set_box3d", + "stbox_set_gbox", + "tstzset_set_stbox", + "tstzspan_set_stbox", + "tstzspanset_set_stbox", + "stbox_expand", + "inter_stbox_stbox", + "stbox_geo", + "tgeogpointinst_in", + "tgeogpointseq_in", + "tgeogpointseqset_in", + "tgeompointinst_in", + "tgeompointseq_in", + "tgeompointseqset_in", + "tgeographyinst_in", + "tgeographyseq_in", + "tgeographyseqset_in", + "tgeometryinst_in", + "tgeometryseq_in", + "tgeometryseqset_in", + "tspatial_set_stbox", + "tgeoinst_set_stbox", + "tspatialseq_set_stbox", + "tspatialseqset_set_stbox", + "tgeo_restrict_geom", + "tgeo_restrict_stbox", + "tgeoinst_restrict_geom", + "tgeoinst_restrict_stbox", + "tgeoseq_restrict_geom", + "tgeoseq_restrict_stbox", + "tgeoseqset_restrict_geom", + "tgeoseqset_restrict_stbox", + "spatial_srid", + "spatial_set_srid", + "tspatialinst_srid", + "tpointseq_azimuth", + "tpointseq_cumulative_length", + "tpointseq_is_simple", + "tpointseq_length", + "tpointseq_linear_trajectory", + "tgeoseq_stboxes", + "tgeoseq_split_n_stboxes", + "tpointseqset_azimuth", + "tpointseqset_cumulative_length", + "tpointseqset_is_simple", + "tpointseqset_length", + "tgeoseqset_stboxes", + "tgeoseqset_split_n_stboxes", + "tpoint_get_coord", + "tgeominst_tgeoginst", + "tgeomseq_tgeogseq", + "tgeomseqset_tgeogseqset", + "tgeom_tgeog", + "tgeo_tpoint", + "tspatialinst_set_srid", + "tpointseq_make_simple", + "tspatialseq_set_srid", + "tpointseqset_make_simple", + "tspatialseqset_set_srid", + "tpointseq_twcentroid", + "tpointseqset_twcentroid", + "npoint_as_ewkt", + "npoint_as_hexwkb", + "npoint_as_text", + "npoint_as_wkb", + "npoint_from_hexwkb", + "npoint_from_wkb", + "npoint_in", + "npoint_out", + "nsegment_in", + "nsegment_out", + "npoint_make", + "nsegment_make", + "geompoint_to_npoint", + "geom_to_nsegment", + "npoint_to_geompoint", + "npoint_to_nsegment", + "npoint_to_stbox", + "nsegment_to_geom", + "nsegment_to_stbox", + "npoint_hash", + "npoint_hash_extended", + "npoint_position", + "npoint_route", + "nsegment_end_position", + "nsegment_route", + "nsegment_start_position", + "route_exists", + "route_geom", + "route_length", + "npoint_round", + "nsegment_round", + "get_srid_ways", + "npoint_srid", + "nsegment_srid", + "npoint_timestamptz_to_stbox", + "npoint_tstzspan_to_stbox", + "npoint_cmp", + "npoint_eq", + "npoint_ge", + "npoint_gt", + "npoint_le", + "npoint_lt", + "npoint_ne", + "npoint_same", + "nsegment_cmp", + "nsegment_eq", + "nsegment_ge", + "nsegment_gt", + "nsegment_le", + "nsegment_lt", + "nsegment_ne", + "npointset_in", + "npointset_out", + "npointset_make", + "npoint_to_set", + "npointset_end_value", + "npointset_routes", + "npointset_start_value", + "npointset_value_n", + "npointset_values", + "contained_npoint_set", + "contains_set_npoint", + "intersection_npoint_set", + "intersection_set_npoint", + "minus_npoint_set", + "minus_set_npoint", + "npoint_union_transfn", + "union_npoint_set", + "union_set_npoint", + "tnpoint_in", + "tnpoint_out", + "tnpointinst_make", + "tgeompoint_to_tnpoint", + "tnpoint_to_tgeompoint", + "tnpoint_cumulative_length", + "tnpoint_length", + "tnpoint_positions", + "tnpoint_route", + "tnpoint_routes", + "tnpoint_speed", + "tnpoint_trajectory", + "tnpoint_twcentroid", + "tnpoint_at_geom", + "tnpoint_at_npoint", + "tnpoint_at_npointset", + "tnpoint_at_stbox", + "tnpoint_minus_geom", + "tnpoint_minus_npoint", + "tnpoint_minus_npointset", + "tnpoint_minus_stbox", + "tdistance_tnpoint_npoint", + "tdistance_tnpoint_point", + "tdistance_tnpoint_tnpoint", + "nad_tnpoint_geo", + "nad_tnpoint_npoint", + "nad_tnpoint_stbox", + "nad_tnpoint_tnpoint", + "nai_tnpoint_geo", + "nai_tnpoint_npoint", + "nai_tnpoint_tnpoint", + "shortestline_tnpoint_geo", + "shortestline_tnpoint_npoint", + "shortestline_tnpoint_tnpoint", + "tnpoint_tcentroid_transfn", + "always_eq_npoint_tnpoint", + "always_eq_tnpoint_npoint", + "always_eq_tnpoint_tnpoint", + "always_ne_npoint_tnpoint", + "always_ne_tnpoint_npoint", + "always_ne_tnpoint_tnpoint", + "ever_eq_npoint_tnpoint", + "ever_eq_tnpoint_npoint", + "ever_eq_tnpoint_tnpoint", + "ever_ne_npoint_tnpoint", + "ever_ne_tnpoint_npoint", + "ever_ne_tnpoint_tnpoint", + "teq_tnpoint_npoint", + "tne_tnpoint_npoint", ] diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 6351f3b..c6c8e2b 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -143,41 +143,41 @@ def as_tsequenceset(temporal: "Temporal *") -> "TSequenceSet *": # ----------------------------------------------------------------------------- # ----------------------End of manually-defined functions---------------------- # ----------------------------------------------------------------------------- -def time_in(string: str, typmod: int) -> 'TimeADT': - string_converted = string.encode('utf-8') - typmod_converted = _ffi.cast('int32', typmod) +def time_in(string: str, typmod: int) -> "TimeADT": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) result = _lib.time_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def time_out(t: 'TimeADT') -> str: - t_converted = _ffi.cast('TimeADT', t) +def time_out(t: "TimeADT") -> str: + t_converted = _ffi.cast("TimeADT", t) result = _lib.time_out(t_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def meos_errno() -> 'int': +def meos_errno() -> "int": result = _lib.meos_errno() _check_error() return result if result != _ffi.NULL else None -def meos_errno_set(err: int) -> 'int': +def meos_errno_set(err: int) -> "int": result = _lib.meos_errno_set(err) _check_error() return result if result != _ffi.NULL else None -def meos_errno_restore(err: int) -> 'int': +def meos_errno_restore(err: int) -> "int": result = _lib.meos_errno_restore(err) _check_error() return result if result != _ffi.NULL else None -def meos_errno_reset() -> 'int': +def meos_errno_reset() -> "int": result = _lib.meos_errno_reset() _check_error() return result if result != _ffi.NULL else None @@ -193,16 +193,16 @@ def meos_finalize_ways() -> None: _check_error() -def meos_set_datestyle(newval: str, extra: 'void *') -> 'bool': - newval_converted = newval.encode('utf-8') - extra_converted = _ffi.cast('void *', extra) +def meos_set_datestyle(newval: str, extra: "void *") -> "bool": + newval_converted = newval.encode("utf-8") + extra_converted = _ffi.cast("void *", extra) result = _lib.meos_set_datestyle(newval_converted, extra_converted) _check_error() return result if result != _ffi.NULL else None -def meos_set_intervalstyle(newval: str, extra: 'Optional[int]') -> 'bool': - newval_converted = newval.encode('utf-8') +def meos_set_intervalstyle(newval: str, extra: "Optional[int]") -> "bool": + newval_converted = newval.encode("utf-8") extra_converted = extra if extra is not None else _ffi.NULL result = _lib.meos_set_intervalstyle(newval_converted, extra_converted) _check_error() @@ -212,17 +212,23 @@ def meos_set_intervalstyle(newval: str, extra: 'Optional[int]') -> 'bool': def meos_get_datestyle() -> str: result = _lib.meos_get_datestyle() _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None def meos_get_intervalstyle() -> str: result = _lib.meos_get_intervalstyle() _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None +def meos_set_spatial_ref_sys_csv(path: "const char*") -> None: + path_converted = _ffi.cast("const char*", path) + _lib.meos_set_spatial_ref_sys_csv(path_converted) + _check_error() + + def meos_initialize(tz_str: "Optional[str]") -> None: if "PROJ_DATA" not in os.environ and "PROJ_LIB" not in os.environ: proj_dir = os.path.join(os.path.dirname(__file__), "proj_data") @@ -230,9 +236,13 @@ def meos_initialize(tz_str: "Optional[str]") -> None: # Assume we are in a wheel and the PROJ data is in the package os.environ["PROJ_DATA"] = proj_dir os.environ["PROJ_LIB"] = proj_dir - + _lib.meos_set_spatial_ref_sys_csv( + os.path.join( + os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv" + ).encode("utf-8") + ) _lib.meos_initialize() - tz_str_converted = tz_str.encode('utf-8') if tz_str is not None else _ffi.NULL + tz_str_converted = tz_str.encode("utf-8") if tz_str is not None else _ffi.NULL _lib.meos_initialize_timezone(tz_str_converted) _lib.meos_initialize_error_handler(_lib.py_error_handler) @@ -242,32 +252,34 @@ def meos_finalize() -> None: _check_error() -def add_date_int(d: 'DateADT', days: int) -> 'DateADT': - d_converted = _ffi.cast('DateADT', d) - days_converted = _ffi.cast('int32', days) +def add_date_int(d: "DateADT", days: int) -> "DateADT": + d_converted = _ffi.cast("DateADT", d) + days_converted = _ffi.cast("int32", days) result = _lib.add_date_int(d_converted, days_converted) _check_error() return result if result != _ffi.NULL else None -def add_interval_interval(interv1: 'const Interval *', interv2: 'const Interval *') -> 'Interval *': - interv1_converted = _ffi.cast('const Interval *', interv1) - interv2_converted = _ffi.cast('const Interval *', interv2) +def add_interval_interval( + interv1: "const Interval *", interv2: "const Interval *" +) -> "Interval *": + interv1_converted = _ffi.cast("const Interval *", interv1) + interv2_converted = _ffi.cast("const Interval *", interv2) result = _lib.add_interval_interval(interv1_converted, interv2_converted) _check_error() return result if result != _ffi.NULL else None -def add_timestamptz_interval(t: int, interv: 'const Interval *') -> 'TimestampTz': - t_converted = _ffi.cast('TimestampTz', t) - interv_converted = _ffi.cast('const Interval *', interv) +def add_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.add_timestamptz_interval(t_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def bool_in(string: str) -> 'bool': - string_converted = string.encode('utf-8') +def bool_in(string: str) -> "bool": + string_converted = string.encode("utf-8") result = _lib.bool_in(string_converted) _check_error() return result if result != _ffi.NULL else None @@ -276,183 +288,193 @@ def bool_in(string: str) -> 'bool': def bool_out(b: bool) -> str: result = _lib.bool_out(b) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def cstring2text(cstring: str) -> 'text *': - cstring_converted = cstring.encode('utf-8') +def cstring2text(cstring: str) -> "text *": + cstring_converted = cstring.encode("utf-8") result = _lib.cstring2text(cstring_converted) return result -def date_to_timestamp(dateVal: 'DateADT') -> 'Timestamp': - dateVal_converted = _ffi.cast('DateADT', dateVal) +def date_to_timestamp(dateVal: "DateADT") -> "Timestamp": + dateVal_converted = _ffi.cast("DateADT", dateVal) result = _lib.date_to_timestamp(dateVal_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_timestamptz(d: 'DateADT') -> 'TimestampTz': - d_converted = _ffi.cast('DateADT', d) +def date_to_timestamptz(d: "DateADT") -> "TimestampTz": + d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_timestamptz(d_converted) _check_error() return result if result != _ffi.NULL else None -def float_exp(d: float) -> 'double': +def float_exp(d: float) -> "double": result = _lib.float_exp(d) _check_error() return result if result != _ffi.NULL else None -def float_ln(d: float) -> 'double': +def float_ln(d: float) -> "double": result = _lib.float_ln(d) _check_error() return result if result != _ffi.NULL else None -def float_log10(d: float) -> 'double': +def float_log10(d: float) -> "double": result = _lib.float_log10(d) _check_error() return result if result != _ffi.NULL else None -def float_round(d: float, maxdd: int) -> 'double': +def float_round(d: float, maxdd: int) -> "double": result = _lib.float_round(d, maxdd) _check_error() return result if result != _ffi.NULL else None -def interval_make(years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float) -> 'Interval *': - years_converted = _ffi.cast('int32', years) - months_converted = _ffi.cast('int32', months) - weeks_converted = _ffi.cast('int32', weeks) - days_converted = _ffi.cast('int32', days) - hours_converted = _ffi.cast('int32', hours) - mins_converted = _ffi.cast('int32', mins) - result = _lib.interval_make(years_converted, months_converted, weeks_converted, days_converted, hours_converted, mins_converted, secs) +def interval_make( + years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float +) -> "Interval *": + years_converted = _ffi.cast("int32", years) + months_converted = _ffi.cast("int32", months) + weeks_converted = _ffi.cast("int32", weeks) + days_converted = _ffi.cast("int32", days) + hours_converted = _ffi.cast("int32", hours) + mins_converted = _ffi.cast("int32", mins) + result = _lib.interval_make( + years_converted, + months_converted, + weeks_converted, + days_converted, + hours_converted, + mins_converted, + secs, + ) _check_error() return result if result != _ffi.NULL else None -def minus_date_date(d1: 'DateADT', d2: 'DateADT') -> 'Interval *': - d1_converted = _ffi.cast('DateADT', d1) - d2_converted = _ffi.cast('DateADT', d2) +def minus_date_date(d1: "DateADT", d2: "DateADT") -> "Interval *": + d1_converted = _ffi.cast("DateADT", d1) + d2_converted = _ffi.cast("DateADT", d2) result = _lib.minus_date_date(d1_converted, d2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_int(d: 'DateADT', days: int) -> 'DateADT': - d_converted = _ffi.cast('DateADT', d) - days_converted = _ffi.cast('int32', days) +def minus_date_int(d: "DateADT", days: int) -> "DateADT": + d_converted = _ffi.cast("DateADT", d) + days_converted = _ffi.cast("int32", days) result = _lib.minus_date_int(d_converted, days_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_interval(t: int, interv: 'const Interval *') -> 'TimestampTz': - t_converted = _ffi.cast('TimestampTz', t) - interv_converted = _ffi.cast('const Interval *', interv) +def minus_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.minus_timestamptz_interval(t_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_timestamptz(t1: int, t2: int) -> 'Interval *': - t1_converted = _ffi.cast('TimestampTz', t1) - t2_converted = _ffi.cast('TimestampTz', t2) +def minus_timestamptz_timestamptz(t1: int, t2: int) -> "Interval *": + t1_converted = _ffi.cast("TimestampTz", t1) + t2_converted = _ffi.cast("TimestampTz", t2) result = _lib.minus_timestamptz_timestamptz(t1_converted, t2_converted) _check_error() return result if result != _ffi.NULL else None -def mul_interval_double(interv: 'const Interval *', factor: float) -> 'Interval *': - interv_converted = _ffi.cast('const Interval *', interv) +def mul_interval_double(interv: "const Interval *", factor: float) -> "Interval *": + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.mul_interval_double(interv_converted, factor) _check_error() return result if result != _ffi.NULL else None -def pg_date_in(string: str) -> 'DateADT': - string_converted = string.encode('utf-8') +def pg_date_in(string: str) -> "DateADT": + string_converted = string.encode("utf-8") result = _lib.pg_date_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def pg_date_out(d: 'DateADT') -> str: - d_converted = _ffi.cast('DateADT', d) +def pg_date_out(d: "DateADT") -> str: + d_converted = _ffi.cast("DateADT", d) result = _lib.pg_date_out(d_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def pg_interval_cmp(interv1: 'const Interval *', interv2: 'const Interval *') -> 'int': - interv1_converted = _ffi.cast('const Interval *', interv1) - interv2_converted = _ffi.cast('const Interval *', interv2) +def pg_interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": + interv1_converted = _ffi.cast("const Interval *", interv1) + interv2_converted = _ffi.cast("const Interval *", interv2) result = _lib.pg_interval_cmp(interv1_converted, interv2_converted) _check_error() return result if result != _ffi.NULL else None -def pg_interval_in(string: str, typmod: int) -> 'Interval *': - string_converted = string.encode('utf-8') - typmod_converted = _ffi.cast('int32', typmod) +def pg_interval_in(string: str, typmod: int) -> "Interval *": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_interval_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def pg_interval_out(interv: 'const Interval *') -> str: - interv_converted = _ffi.cast('const Interval *', interv) +def pg_interval_out(interv: "const Interval *") -> str: + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.pg_interval_out(interv_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def pg_timestamp_in(string: str, typmod: int) -> 'Timestamp': - string_converted = string.encode('utf-8') - typmod_converted = _ffi.cast('int32', typmod) +def pg_timestamp_in(string: str, typmod: int) -> "Timestamp": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_timestamp_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None def pg_timestamp_out(t: int) -> str: - t_converted = _ffi.cast('Timestamp', t) + t_converted = _ffi.cast("Timestamp", t) result = _lib.pg_timestamp_out(t_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def pg_timestamptz_in(string: str, typmod: int) -> 'TimestampTz': - string_converted = string.encode('utf-8') - typmod_converted = _ffi.cast('int32', typmod) +def pg_timestamptz_in(string: str, typmod: int) -> "TimestampTz": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_timestamptz_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None def pg_timestamptz_out(t: int) -> str: - t_converted = _ffi.cast('TimestampTz', t) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.pg_timestamptz_out(t_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def text2cstring(textptr: 'text *') -> str: +def text2cstring(textptr: "text *") -> str: result = _lib.text2cstring(textptr) - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result -def text_cmp(txt1: str, txt2: str) -> 'int': +def text_cmp(txt1: str, txt2: str) -> "int": txt1_converted = cstring2text(txt1) txt2_converted = cstring2text(txt2) result = _lib.text_cmp(txt1_converted, txt2_converted) @@ -488,7 +510,7 @@ def text_out(txt: str) -> str: txt_converted = cstring2text(txt) result = _lib.text_out(txt_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None @@ -509,699 +531,713 @@ def textcat_text_text(txt1: str, txt2: str) -> str: return result if result != _ffi.NULL else None -def timestamptz_shift(t: int, interv: 'const Interval *') -> 'TimestampTz': - t_converted = _ffi.cast('TimestampTz', t) - interv_converted = _ffi.cast('const Interval *', interv) +def timestamptz_shift(t: int, interv: "const Interval *") -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.timestamptz_shift(t_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def timestamp_to_date(t: int) -> 'DateADT': - t_converted = _ffi.cast('Timestamp', t) +def timestamp_to_date(t: int) -> "DateADT": + t_converted = _ffi.cast("Timestamp", t) result = _lib.timestamp_to_date(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_date(t: int) -> 'DateADT': - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_to_date(t: int) -> "DateADT": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_date(t_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def bigintset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.bigintset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_out(set: 'const Set *') -> str: - set_converted = _ffi.cast('const Set *', set) +def bigintset_out(set: "const Set *") -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.bigintset_out(set_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def bigintspan_in(string: str) -> 'Span *': - string_converted = string.encode('utf-8') +def bigintspan_in(string: str) -> "Span *": + string_converted = string.encode("utf-8") result = _lib.bigintspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_out(s: 'const Span *') -> str: - s_converted = _ffi.cast('const Span *', s) +def bigintspan_out(s: "const Span *") -> str: + s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_out(s_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def bigintspanset_in(string: str) -> 'SpanSet *': - string_converted = string.encode('utf-8') +def bigintspanset_in(string: str) -> "SpanSet *": + string_converted = string.encode("utf-8") result = _lib.bigintspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_out(ss: 'const SpanSet *') -> str: - ss_converted = _ffi.cast('const SpanSet *', ss) +def bigintspanset_out(ss: "const SpanSet *") -> str: + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def dateset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def dateset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.dateset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_out(s: 'const Set *') -> str: - s_converted = _ffi.cast('const Set *', s) +def dateset_out(s: "const Set *") -> str: + s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_out(s_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def datespan_in(string: str) -> 'Span *': - string_converted = string.encode('utf-8') +def datespan_in(string: str) -> "Span *": + string_converted = string.encode("utf-8") result = _lib.datespan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_out(s: 'const Span *') -> str: - s_converted = _ffi.cast('const Span *', s) +def datespan_out(s: "const Span *") -> str: + s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_out(s_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def datespanset_in(string: str) -> 'SpanSet *': - string_converted = string.encode('utf-8') +def datespanset_in(string: str) -> "SpanSet *": + string_converted = string.encode("utf-8") result = _lib.datespanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_out(ss: 'const SpanSet *') -> str: - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_out(ss: "const SpanSet *") -> str: + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def floatset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def floatset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.floatset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_out(set: 'const Set *', maxdd: int) -> str: - set_converted = _ffi.cast('const Set *', set) +def floatset_out(set: "const Set *", maxdd: int) -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.floatset_out(set_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def floatspan_in(string: str) -> 'Span *': - string_converted = string.encode('utf-8') +def floatspan_in(string: str) -> "Span *": + string_converted = string.encode("utf-8") result = _lib.floatspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_out(s: 'const Span *', maxdd: int) -> str: - s_converted = _ffi.cast('const Span *', s) +def floatspan_out(s: "const Span *", maxdd: int) -> str: + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_out(s_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def floatspanset_in(string: str) -> 'SpanSet *': - string_converted = string.encode('utf-8') +def floatspanset_in(string: str) -> "SpanSet *": + string_converted = string.encode("utf-8") result = _lib.floatspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_out(ss: 'const SpanSet *', maxdd: int) -> str: - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_out(ss: "const SpanSet *", maxdd: int) -> str: + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_out(ss_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def intset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def intset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.intset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intset_out(set: 'const Set *') -> str: - set_converted = _ffi.cast('const Set *', set) +def intset_out(set: "const Set *") -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.intset_out(set_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def intspan_in(string: str) -> 'Span *': - string_converted = string.encode('utf-8') +def intspan_in(string: str) -> "Span *": + string_converted = string.encode("utf-8") result = _lib.intspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_out(s: 'const Span *') -> str: - s_converted = _ffi.cast('const Span *', s) +def intspan_out(s: "const Span *") -> str: + s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_out(s_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def intspanset_in(string: str) -> 'SpanSet *': - string_converted = string.encode('utf-8') +def intspanset_in(string: str) -> "SpanSet *": + string_converted = string.encode("utf-8") result = _lib.intspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_out(ss: 'const SpanSet *') -> str: - ss_converted = _ffi.cast('const SpanSet *', ss) +def intspanset_out(ss: "const SpanSet *") -> str: + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def set_as_hexwkb(s: 'const Set *', variant: int) -> "Tuple[str, 'size_t *']": - s_converted = _ffi.cast('const Set *', s) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def set_as_hexwkb(s: "const Set *", variant: int) -> "Tuple[str, 'size_t *']": + s_converted = _ffi.cast("const Set *", s) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.set_as_hexwkb(s_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size_out[0] -def set_as_wkb(s: 'const Set *', variant: int) -> bytes: - s_converted = _ffi.cast('const Set *', s) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def set_as_wkb(s: "const Set *", variant: int) -> bytes: + s_converted = _ffi.cast("const Set *", s) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.set_as_wkb(s_converted, variant_converted, size_out) _check_error() - result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) return result_converted -def set_from_hexwkb(hexwkb: str) -> 'Set *': - hexwkb_converted = hexwkb.encode('utf-8') +def set_from_hexwkb(hexwkb: str) -> "Set *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.set_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def set_from_wkb(wkb: bytes) -> 'Set *': - wkb_converted = _ffi.new('uint8_t []', wkb) +def set_from_wkb(wkb: bytes) -> "Set *": + wkb_converted = _ffi.new("uint8_t []", wkb) result = _lib.set_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def span_as_hexwkb(s: 'const Span *', variant: int) -> "Tuple[str, 'size_t *']": - s_converted = _ffi.cast('const Span *', s) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def span_as_hexwkb(s: "const Span *", variant: int) -> "Tuple[str, 'size_t *']": + s_converted = _ffi.cast("const Span *", s) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.span_as_hexwkb(s_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size_out[0] -def span_as_wkb(s: 'const Span *', variant: int) -> bytes: - s_converted = _ffi.cast('const Span *', s) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def span_as_wkb(s: "const Span *", variant: int) -> bytes: + s_converted = _ffi.cast("const Span *", s) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.span_as_wkb(s_converted, variant_converted, size_out) _check_error() - result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) return result_converted -def span_from_hexwkb(hexwkb: str) -> 'Span *': - hexwkb_converted = hexwkb.encode('utf-8') +def span_from_hexwkb(hexwkb: str) -> "Span *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.span_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def span_from_wkb(wkb: bytes) -> 'Span *': - wkb_converted = _ffi.new('uint8_t []', wkb) +def span_from_wkb(wkb: bytes) -> "Span *": + wkb_converted = _ffi.new("uint8_t []", wkb) result = _lib.span_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def spanset_as_hexwkb(ss: 'const SpanSet *', variant: int) -> "Tuple[str, 'size_t *']": - ss_converted = _ffi.cast('const SpanSet *', ss) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def spanset_as_hexwkb(ss: "const SpanSet *", variant: int) -> "Tuple[str, 'size_t *']": + ss_converted = _ffi.cast("const SpanSet *", ss) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.spanset_as_hexwkb(ss_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size_out[0] -def spanset_as_wkb(ss: 'const SpanSet *', variant: int) -> bytes: - ss_converted = _ffi.cast('const SpanSet *', ss) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def spanset_as_wkb(ss: "const SpanSet *", variant: int) -> bytes: + ss_converted = _ffi.cast("const SpanSet *", ss) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.spanset_as_wkb(ss_converted, variant_converted, size_out) _check_error() - result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) return result_converted -def spanset_from_hexwkb(hexwkb: str) -> 'SpanSet *': - hexwkb_converted = hexwkb.encode('utf-8') +def spanset_from_hexwkb(hexwkb: str) -> "SpanSet *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.spanset_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_from_wkb(wkb: bytes) -> 'SpanSet *': - wkb_converted = _ffi.new('uint8_t []', wkb) +def spanset_from_wkb(wkb: bytes) -> "SpanSet *": + wkb_converted = _ffi.new("uint8_t []", wkb) result = _lib.spanset_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def textset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def textset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.textset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def textset_out(set: 'const Set *') -> str: - set_converted = _ffi.cast('const Set *', set) +def textset_out(set: "const Set *") -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.textset_out(set_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tstzset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def tstzset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.tstzset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_out(set: 'const Set *') -> str: - set_converted = _ffi.cast('const Set *', set) +def tstzset_out(set: "const Set *") -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.tstzset_out(set_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tstzspan_in(string: str) -> 'Span *': - string_converted = string.encode('utf-8') +def tstzspan_in(string: str) -> "Span *": + string_converted = string.encode("utf-8") result = _lib.tstzspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_out(s: 'const Span *') -> str: - s_converted = _ffi.cast('const Span *', s) +def tstzspan_out(s: "const Span *") -> str: + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_out(s_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tstzspanset_in(string: str) -> 'SpanSet *': - string_converted = string.encode('utf-8') +def tstzspanset_in(string: str) -> "SpanSet *": + string_converted = string.encode("utf-8") result = _lib.tstzspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_out(ss: 'const SpanSet *') -> str: - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_out(ss: "const SpanSet *") -> str: + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_out(ss_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def bigintset_make(values: 'List[const int64]') -> 'Set *': - values_converted = _ffi.new('const int64 []', values) +def bigintset_make(values: "List[const int64]") -> "Set *": + values_converted = _ffi.new("const int64 []", values) result = _lib.bigintset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def bigintspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> 'Span *': - lower_converted = _ffi.cast('int64', lower) - upper_converted = _ffi.cast('int64', upper) - result = _lib.bigintspan_make(lower_converted, upper_converted, lower_inc, upper_inc) +def bigintspan_make( + lower: int, upper: int, lower_inc: bool, upper_inc: bool +) -> "Span *": + lower_converted = _ffi.cast("int64", lower) + upper_converted = _ffi.cast("int64", upper) + result = _lib.bigintspan_make( + lower_converted, upper_converted, lower_inc, upper_inc + ) _check_error() return result if result != _ffi.NULL else None -def dateset_make(values: 'List[const DateADT]') -> 'Set *': - values_converted = _ffi.new('const DateADT []', values) +def dateset_make(values: "List[const DateADT]") -> "Set *": + values_converted = _ffi.new("const DateADT []", values) result = _lib.dateset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def datespan_make(lower: 'DateADT', upper: 'DateADT', lower_inc: bool, upper_inc: bool) -> 'Span *': - lower_converted = _ffi.cast('DateADT', lower) - upper_converted = _ffi.cast('DateADT', upper) +def datespan_make( + lower: "DateADT", upper: "DateADT", lower_inc: bool, upper_inc: bool +) -> "Span *": + lower_converted = _ffi.cast("DateADT", lower) + upper_converted = _ffi.cast("DateADT", upper) result = _lib.datespan_make(lower_converted, upper_converted, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def floatset_make(values: 'List[const double]') -> 'Set *': - values_converted = _ffi.new('const double []', values) +def floatset_make(values: "List[const double]") -> "Set *": + values_converted = _ffi.new("const double []", values) result = _lib.floatset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def floatspan_make(lower: float, upper: float, lower_inc: bool, upper_inc: bool) -> 'Span *': +def floatspan_make( + lower: float, upper: float, lower_inc: bool, upper_inc: bool +) -> "Span *": result = _lib.floatspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def intset_make(values: 'List[const int]') -> 'Set *': - values_converted = _ffi.new('const int []', values) +def intset_make(values: "List[const int]") -> "Set *": + values_converted = _ffi.new("const int []", values) result = _lib.intset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> 'Span *': +def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> "Span *": result = _lib.intspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def set_copy(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def set_copy(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_copy(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def span_copy(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.span_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_copy(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_copy(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_copy(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_make(spans: 'List[Span *]') -> 'SpanSet *': - spans_converted = _ffi.new('Span []', spans) +def spanset_make(spans: "List[Span *]") -> "SpanSet *": + spans_converted = _ffi.new("Span []", spans) result = _lib.spanset_make(spans_converted, len(spans)) _check_error() return result if result != _ffi.NULL else None -def textset_make(values: List[str]) -> 'Set *': +def textset_make(values: List[str]) -> "Set *": values_converted = [cstring2text(x) for x in values] result = _lib.textset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzset_make(values: List[int]) -> 'Set *': - values_converted = [_ffi.cast('const TimestampTz', x) for x in values] +def tstzset_make(values: List[int]) -> "Set *": + values_converted = [_ffi.cast("const TimestampTz", x) for x in values] result = _lib.tstzset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> 'Span *': - lower_converted = _ffi.cast('TimestampTz', lower) - upper_converted = _ffi.cast('TimestampTz', upper) +def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> "Span *": + lower_converted = _ffi.cast("TimestampTz", lower) + upper_converted = _ffi.cast("TimestampTz", upper) result = _lib.tstzspan_make(lower_converted, upper_converted, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def bigint_to_set(i: int) -> 'Set *': - i_converted = _ffi.cast('int64', i) +def bigint_to_set(i: int) -> "Set *": + i_converted = _ffi.cast("int64", i) result = _lib.bigint_to_set(i_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_to_span(i: int) -> 'Span *': +def bigint_to_span(i: int) -> "Span *": result = _lib.bigint_to_span(i) _check_error() return result if result != _ffi.NULL else None -def bigint_to_spanset(i: int) -> 'SpanSet *': +def bigint_to_spanset(i: int) -> "SpanSet *": result = _lib.bigint_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def date_to_set(d: 'DateADT') -> 'Set *': - d_converted = _ffi.cast('DateADT', d) +def date_to_set(d: "DateADT") -> "Set *": + d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_set(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_span(d: 'DateADT') -> 'Span *': - d_converted = _ffi.cast('DateADT', d) +def date_to_span(d: "DateADT") -> "Span *": + d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_span(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_spanset(d: 'DateADT') -> 'SpanSet *': - d_converted = _ffi.cast('DateADT', d) +def date_to_spanset(d: "DateADT") -> "SpanSet *": + d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_spanset(d_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_to_tstzset(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def dateset_to_tstzset(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_to_tstzset(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_to_tstzspan(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def datespan_to_tstzspan(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_to_tstzspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_to_tstzspanset(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_to_tstzspanset(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_to_tstzspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def float_to_set(d: float) -> 'Set *': +def float_to_set(d: float) -> "Set *": result = _lib.float_to_set(d) _check_error() return result if result != _ffi.NULL else None -def float_to_span(d: float) -> 'Span *': +def float_to_span(d: float) -> "Span *": result = _lib.float_to_span(d) _check_error() return result if result != _ffi.NULL else None -def float_to_spanset(d: float) -> 'SpanSet *': +def float_to_spanset(d: float) -> "SpanSet *": result = _lib.float_to_spanset(d) _check_error() return result if result != _ffi.NULL else None -def floatset_to_intset(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def floatset_to_intset(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_to_intset(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_to_intspan(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_to_intspan(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_to_intspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_to_intspanset(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_to_intspanset(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_to_intspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def int_to_set(i: int) -> 'Set *': +def int_to_set(i: int) -> "Set *": result = _lib.int_to_set(i) _check_error() return result if result != _ffi.NULL else None -def int_to_span(i: int) -> 'Span *': +def int_to_span(i: int) -> "Span *": result = _lib.int_to_span(i) _check_error() return result if result != _ffi.NULL else None -def int_to_spanset(i: int) -> 'SpanSet *': +def int_to_spanset(i: int) -> "SpanSet *": result = _lib.int_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def intset_to_floatset(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intset_to_floatset(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intset_to_floatset(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_to_floatspan(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def intspan_to_floatspan(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_to_floatspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_to_floatspanset(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intspanset_to_floatspanset(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_to_floatspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_span(s: 'const Set *') -> 'Span *': - s_converted = _ffi.cast('const Set *', s) +def set_to_span(s: "const Set *") -> "Span *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_spanset(s: 'const Set *') -> 'SpanSet *': - s_converted = _ffi.cast('const Set *', s) +def set_to_spanset(s: "const Set *") -> "SpanSet *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_spanset(s: 'const Span *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def span_to_spanset(s: "const Span *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.span_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def text_to_set(txt: str) -> 'Set *': +def text_to_set(txt: str) -> "Set *": txt_converted = cstring2text(txt) result = _lib.text_to_set(txt_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_set(t: int) -> 'Set *': - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_to_set(t: int) -> "Set *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_set(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_span(t: int) -> 'Span *': - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_to_span(t: int) -> "Span *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_span(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_spanset(t: int) -> 'SpanSet *': - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_to_spanset(t: int) -> "SpanSet *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_spanset(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_dateset(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def tstzset_to_dateset(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_to_dateset(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_datespan(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def tstzspan_to_datespan(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_to_datespan(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_datespanset(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_to_datespanset(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_to_datespanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_end_value(s: 'const Set *') -> 'int64': - s_converted = _ffi.cast('const Set *', s) +def bigintset_end_value(s: "const Set *") -> "int64": + s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_start_value(s: 'const Set *') -> 'int64': - s_converted = _ffi.cast('const Set *', s) +def bigintset_start_value(s: "const Set *") -> "int64": + s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_value_n(s: 'const Set *', n: int) -> 'int64': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('int64 *') +def bigintset_value_n(s: "const Set *", n: int) -> "int64": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("int64 *") result = _lib.bigintset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1209,72 +1245,72 @@ def bigintset_value_n(s: 'const Set *', n: int) -> 'int64': return None -def bigintset_values(s: 'const Set *') -> 'int64 *': - s_converted = _ffi.cast('const Set *', s) +def bigintset_values(s: "const Set *") -> "int64 *": + s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_lower(s: 'const Span *') -> 'int64': - s_converted = _ffi.cast('const Span *', s) +def bigintspan_lower(s: "const Span *") -> "int64": + s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_upper(s: 'const Span *') -> 'int64': - s_converted = _ffi.cast('const Span *', s) +def bigintspan_upper(s: "const Span *") -> "int64": + s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_width(s: 'const Span *') -> 'int64': - s_converted = _ffi.cast('const Span *', s) +def bigintspan_width(s: "const Span *") -> "int64": + s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_lower(ss: 'const SpanSet *') -> 'int64': - ss_converted = _ffi.cast('const SpanSet *', ss) +def bigintspanset_lower(ss: "const SpanSet *") -> "int64": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_upper(ss: 'const SpanSet *') -> 'int64': - ss_converted = _ffi.cast('const SpanSet *', ss) +def bigintspanset_upper(ss: "const SpanSet *") -> "int64": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'int64': - ss_converted = _ffi.cast('const SpanSet *', ss) +def bigintspanset_width(ss: "const SpanSet *", boundspan: bool) -> "int64": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def dateset_end_value(s: 'const Set *') -> 'DateADT': - s_converted = _ffi.cast('const Set *', s) +def dateset_end_value(s: "const Set *") -> "DateADT": + s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_start_value(s: 'const Set *') -> 'DateADT': - s_converted = _ffi.cast('const Set *', s) +def dateset_start_value(s: "const Set *") -> "DateADT": + s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_value_n(s: 'const Set *', n: int) -> 'DateADT *': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('DateADT *') +def dateset_value_n(s: "const Set *", n: int) -> "DateADT *": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("DateADT *") result = _lib.dateset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1282,37 +1318,37 @@ def dateset_value_n(s: 'const Set *', n: int) -> 'DateADT *': return None -def dateset_values(s: 'const Set *') -> 'DateADT *': - s_converted = _ffi.cast('const Set *', s) +def dateset_values(s: "const Set *") -> "DateADT *": + s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_duration(s: 'const Span *') -> 'Interval *': - s_converted = _ffi.cast('const Span *', s) +def datespan_duration(s: "const Span *") -> "Interval *": + s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_lower(s: 'const Span *') -> 'DateADT': - s_converted = _ffi.cast('const Span *', s) +def datespan_lower(s: "const Span *") -> "DateADT": + s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_upper(s: 'const Span *') -> 'DateADT': - s_converted = _ffi.cast('const Span *', s) +def datespan_upper(s: "const Span *") -> "DateADT": + s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_date_n(ss: 'const SpanSet *', n: int) -> 'DateADT *': - ss_converted = _ffi.cast('const SpanSet *', ss) - out_result = _ffi.new('DateADT *') +def datespanset_date_n(ss: "const SpanSet *", n: int) -> "DateADT *": + ss_converted = _ffi.cast("const SpanSet *", ss) + out_result = _ffi.new("DateADT *") result = _lib.datespanset_date_n(ss_converted, n, out_result) _check_error() if result: @@ -1320,58 +1356,58 @@ def datespanset_date_n(ss: 'const SpanSet *', n: int) -> 'DateADT *': return None -def datespanset_dates(ss: 'const SpanSet *') -> 'Set *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_dates(ss: "const SpanSet *") -> "Set *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_duration(ss: 'const SpanSet *', boundspan: bool) -> 'Interval *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_duration(ss: "const SpanSet *", boundspan: bool) -> "Interval *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def datespanset_end_date(ss: 'const SpanSet *') -> 'DateADT': - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_end_date(ss: "const SpanSet *") -> "DateADT": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_end_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_num_dates(ss: 'const SpanSet *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_num_dates(ss: "const SpanSet *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_num_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_start_date(ss: 'const SpanSet *') -> 'DateADT': - ss_converted = _ffi.cast('const SpanSet *', ss) +def datespanset_start_date(ss: "const SpanSet *") -> "DateADT": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_start_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_end_value(s: 'const Set *') -> 'double': - s_converted = _ffi.cast('const Set *', s) +def floatset_end_value(s: "const Set *") -> "double": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_start_value(s: 'const Set *') -> 'double': - s_converted = _ffi.cast('const Set *', s) +def floatset_start_value(s: "const Set *") -> "double": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_value_n(s: 'const Set *', n: int) -> 'double': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('double *') +def floatset_value_n(s: "const Set *", n: int) -> "double": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("double *") result = _lib.floatset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1379,72 +1415,72 @@ def floatset_value_n(s: 'const Set *', n: int) -> 'double': return None -def floatset_values(s: 'const Set *') -> 'double *': - s_converted = _ffi.cast('const Set *', s) +def floatset_values(s: "const Set *") -> "double *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_lower(s: 'const Span *') -> 'double': - s_converted = _ffi.cast('const Span *', s) +def floatspan_lower(s: "const Span *") -> "double": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_upper(s: 'const Span *') -> 'double': - s_converted = _ffi.cast('const Span *', s) +def floatspan_upper(s: "const Span *") -> "double": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_width(s: 'const Span *') -> 'double': - s_converted = _ffi.cast('const Span *', s) +def floatspan_width(s: "const Span *") -> "double": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_lower(ss: 'const SpanSet *') -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_lower(ss: "const SpanSet *") -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_upper(ss: 'const SpanSet *') -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_upper(ss: "const SpanSet *") -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_width(ss: "const SpanSet *", boundspan: bool) -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def intset_end_value(s: 'const Set *') -> 'int': - s_converted = _ffi.cast('const Set *', s) +def intset_end_value(s: "const Set *") -> "int": + s_converted = _ffi.cast("const Set *", s) result = _lib.intset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_start_value(s: 'const Set *') -> 'int': - s_converted = _ffi.cast('const Set *', s) +def intset_start_value(s: "const Set *") -> "int": + s_converted = _ffi.cast("const Set *", s) result = _lib.intset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_value_n(s: 'const Set *', n: int) -> 'int': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('int *') +def intset_value_n(s: "const Set *", n: int) -> "int": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("int *") result = _lib.intset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1452,196 +1488,196 @@ def intset_value_n(s: 'const Set *', n: int) -> 'int': return None -def intset_values(s: 'const Set *') -> 'int *': - s_converted = _ffi.cast('const Set *', s) +def intset_values(s: "const Set *") -> "int *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_lower(s: 'const Span *') -> 'int': - s_converted = _ffi.cast('const Span *', s) +def intspan_lower(s: "const Span *") -> "int": + s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_upper(s: 'const Span *') -> 'int': - s_converted = _ffi.cast('const Span *', s) +def intspan_upper(s: "const Span *") -> "int": + s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_width(s: 'const Span *') -> 'int': - s_converted = _ffi.cast('const Span *', s) +def intspan_width(s: "const Span *") -> "int": + s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_lower(ss: 'const SpanSet *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intspanset_lower(ss: "const SpanSet *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_upper(ss: 'const SpanSet *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intspanset_upper(ss: "const SpanSet *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intspanset_width(ss: "const SpanSet *", boundspan: bool) -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_hash(s: 'const Set *') -> 'uint32': - s_converted = _ffi.cast('const Set *', s) +def set_hash(s: "const Set *") -> "uint32": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_hash_extended(s: 'const Set *', seed: int) -> 'uint64': - s_converted = _ffi.cast('const Set *', s) - seed_converted = _ffi.cast('uint64', seed) +def set_hash_extended(s: "const Set *", seed: int) -> "uint64": + s_converted = _ffi.cast("const Set *", s) + seed_converted = _ffi.cast("uint64", seed) result = _lib.set_hash_extended(s_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def set_num_values(s: 'const Set *') -> 'int': - s_converted = _ffi.cast('const Set *', s) +def set_num_values(s: "const Set *") -> "int": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_num_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash(s: 'const Span *') -> 'uint32': - s_converted = _ffi.cast('const Span *', s) +def span_hash(s: "const Span *") -> "uint32": + s_converted = _ffi.cast("const Span *", s) result = _lib.span_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash_extended(s: 'const Span *', seed: int) -> 'uint64': - s_converted = _ffi.cast('const Span *', s) - seed_converted = _ffi.cast('uint64', seed) +def span_hash_extended(s: "const Span *", seed: int) -> "uint64": + s_converted = _ffi.cast("const Span *", s) + seed_converted = _ffi.cast("uint64", seed) result = _lib.span_hash_extended(s_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def span_lower_inc(s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def span_lower_inc(s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.span_lower_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_upper_inc(s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def span_upper_inc(s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.span_upper_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_end_span(ss: 'const SpanSet *') -> 'Span *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_end_span(ss: "const SpanSet *") -> "Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_end_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash(ss: 'const SpanSet *') -> 'uint32': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_hash(ss: "const SpanSet *") -> "uint32": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash_extended(ss: 'const SpanSet *', seed: int) -> 'uint64': - ss_converted = _ffi.cast('const SpanSet *', ss) - seed_converted = _ffi.cast('uint64', seed) +def spanset_hash_extended(ss: "const SpanSet *", seed: int) -> "uint64": + ss_converted = _ffi.cast("const SpanSet *", ss) + seed_converted = _ffi.cast("uint64", seed) result = _lib.spanset_hash_extended(ss_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lower_inc(ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_lower_inc(ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_lower_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_num_spans(ss: 'const SpanSet *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_num_spans(ss: "const SpanSet *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_num_spans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span(ss: 'const SpanSet *') -> 'Span *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_span(ss: "const SpanSet *") -> "Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span_n(ss: 'const SpanSet *', i: int) -> 'Span *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_span_n(ss: "const SpanSet *", i: int) -> "Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_span_n(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def spanset_spanarr(ss: 'const SpanSet *') -> 'Span **': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_spanarr(ss: "const SpanSet *") -> "Span **": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_spanarr(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_start_span(ss: 'const SpanSet *') -> 'Span *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_start_span(ss: "const SpanSet *") -> "Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_start_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper_inc(ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_upper_inc(ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_upper_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def textset_end_value(s: 'const Set *') -> str: - s_converted = _ffi.cast('const Set *', s) +def textset_end_value(s: "const Set *") -> str: + s_converted = _ffi.cast("const Set *", s) result = _lib.textset_end_value(s_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def textset_start_value(s: 'const Set *') -> str: - s_converted = _ffi.cast('const Set *', s) +def textset_start_value(s: "const Set *") -> str: + s_converted = _ffi.cast("const Set *", s) result = _lib.textset_start_value(s_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def textset_value_n(s: 'const Set *', n: int) -> 'text **': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('text **') +def textset_value_n(s: "const Set *", n: int) -> "text **": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("text **") result = _lib.textset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1649,30 +1685,30 @@ def textset_value_n(s: 'const Set *', n: int) -> 'text **': return None -def textset_values(s: 'const Set *') -> 'text **': - s_converted = _ffi.cast('const Set *', s) +def textset_values(s: "const Set *") -> "text **": + s_converted = _ffi.cast("const Set *", s) result = _lib.textset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_end_value(s: 'const Set *') -> 'TimestampTz': - s_converted = _ffi.cast('const Set *', s) +def tstzset_end_value(s: "const Set *") -> "TimestampTz": + s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_start_value(s: 'const Set *') -> 'TimestampTz': - s_converted = _ffi.cast('const Set *', s) +def tstzset_start_value(s: "const Set *") -> "TimestampTz": + s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_value_n(s: 'const Set *', n: int) -> int: - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('TimestampTz *') +def tstzset_value_n(s: "const Set *", n: int) -> int: + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("TimestampTz *") result = _lib.tstzset_value_n(s_converted, n, out_result) _check_error() if result: @@ -1680,79 +1716,79 @@ def tstzset_value_n(s: 'const Set *', n: int) -> int: return None -def tstzset_values(s: 'const Set *') -> 'TimestampTz *': - s_converted = _ffi.cast('const Set *', s) +def tstzset_values(s: "const Set *") -> "TimestampTz *": + s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_duration(s: 'const Span *') -> 'Interval *': - s_converted = _ffi.cast('const Span *', s) +def tstzspan_duration(s: "const Span *") -> "Interval *": + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_lower(s: 'const Span *') -> 'TimestampTz': - s_converted = _ffi.cast('const Span *', s) +def tstzspan_lower(s: "const Span *") -> "TimestampTz": + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_upper(s: 'const Span *') -> 'TimestampTz': - s_converted = _ffi.cast('const Span *', s) +def tstzspan_upper(s: "const Span *") -> "TimestampTz": + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_duration(ss: 'const SpanSet *', boundspan: bool) -> 'Interval *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_duration(ss: "const SpanSet *", boundspan: bool) -> "Interval *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_end_timestamptz(ss: 'const SpanSet *') -> 'TimestampTz': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_end_timestamptz(ss: "const SpanSet *") -> "TimestampTz": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_lower(ss: 'const SpanSet *') -> 'TimestampTz': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_lower(ss: "const SpanSet *") -> "TimestampTz": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_num_timestamps(ss: 'const SpanSet *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_num_timestamps(ss: "const SpanSet *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_num_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_start_timestamptz(ss: 'const SpanSet *') -> 'TimestampTz': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_start_timestamptz(ss: "const SpanSet *") -> "TimestampTz": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamps(ss: 'const SpanSet *') -> 'Set *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_timestamps(ss: "const SpanSet *") -> "Set *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamptz_n(ss: 'const SpanSet *', n: int) -> int: - ss_converted = _ffi.cast('const SpanSet *', ss) - out_result = _ffi.new('TimestampTz *') +def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: + ss_converted = _ffi.cast("const SpanSet *", ss) + out_result = _ffi.new("TimestampTz *") result = _lib.tstzspanset_timestamptz_n(ss_converted, n, out_result) _check_error() if result: @@ -1760,3659 +1796,3799 @@ def tstzspanset_timestamptz_n(ss: 'const SpanSet *', n: int) -> int: return None -def tstzspanset_upper(ss: 'const SpanSet *') -> 'TimestampTz': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_upper(ss: "const SpanSet *") -> "TimestampTz": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_shift_scale(s: 'const Set *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - shift_converted = _ffi.cast('int64', shift) - width_converted = _ffi.cast('int64', width) - result = _lib.bigintset_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) +def bigintset_shift_scale( + s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + shift_converted = _ffi.cast("int64", shift) + width_converted = _ffi.cast("int64", width) + result = _lib.bigintset_shift_scale( + s_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def bigintspan_shift_scale(s: 'const Span *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - shift_converted = _ffi.cast('int64', shift) - width_converted = _ffi.cast('int64', width) - result = _lib.bigintspan_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) +def bigintspan_shift_scale( + s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + shift_converted = _ffi.cast("int64", shift) + width_converted = _ffi.cast("int64", width) + result = _lib.bigintspan_shift_scale( + s_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_shift_scale(ss: 'const SpanSet *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - shift_converted = _ffi.cast('int64', shift) - width_converted = _ffi.cast('int64', width) - result = _lib.bigintspanset_shift_scale(ss_converted, shift_converted, width_converted, hasshift, haswidth) +def bigintspanset_shift_scale( + ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + shift_converted = _ffi.cast("int64", shift) + width_converted = _ffi.cast("int64", width) + result = _lib.bigintspanset_shift_scale( + ss_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def dateset_shift_scale(s: 'const Set *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def dateset_shift_scale( + s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def datespan_shift_scale(s: 'const Span *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def datespan_shift_scale( + s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def datespanset_shift_scale(ss: 'const SpanSet *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - result = _lib.datespanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) +def datespanset_shift_scale( + ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.datespanset_shift_scale( + ss_converted, shift, width, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def floatset_ceil(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def floatset_ceil(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_degrees(s: 'const Set *', normalize: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def floatset_degrees(s: "const Set *", normalize: bool) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatset_floor(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def floatset_floor(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_radians(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def floatset_radians(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_radians(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_shift_scale(s: 'const Set *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def floatset_shift_scale( + s: "const Set *", shift: float, width: float, hasshift: bool, haswidth: bool +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspan_ceil(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_ceil(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_degrees(s: 'const Span *', normalize: bool) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_degrees(s: "const Span *", normalize: bool) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspan_floor(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_floor(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_radians(s: 'const Span *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_radians(s: "const Span *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_radians(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round(s: 'const Span *', maxdd: int) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_round(s: "const Span *", maxdd: int) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def floatspan_shift_scale(s: 'const Span *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def floatspan_shift_scale( + s: "const Span *", shift: float, width: float, hasshift: bool, haswidth: bool +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspanset_ceil(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_ceil(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_ceil(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_floor(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_floor(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_floor(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_degrees(ss: 'const SpanSet *', normalize: bool) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_degrees(ss: "const SpanSet *", normalize: bool) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_degrees(ss_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspanset_radians(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_radians(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_radians(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_round(ss: 'const SpanSet *', maxdd: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def floatspanset_round(ss: "const SpanSet *", maxdd: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_round(ss_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def floatspanset_shift_scale(ss: 'const SpanSet *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - result = _lib.floatspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) +def floatspanset_shift_scale( + ss: "const SpanSet *", shift: float, width: float, hasshift: bool, haswidth: bool +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + result = _lib.floatspanset_shift_scale( + ss_converted, shift, width, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def intset_shift_scale(s: 'const Set *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intset_shift_scale( + s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def intspan_shift_scale(s: 'const Span *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def intspan_shift_scale( + s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def intspanset_shift_scale(ss: 'const SpanSet *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intspanset_shift_scale( + ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def numspan_expand(s: 'const Span *', value: 'Datum') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.numspan_expand(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_expand(s: 'const Span *', interv: 'const Interval *') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - interv_converted = _ffi.cast('const Interval *', interv) +def tstzspan_expand(s: "const Span *", interv: "const Interval *") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tstzspan_expand(s_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def set_round(s: 'const Set *', maxdd: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def set_round(s: "const Set *", maxdd: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def textcat_text_textset(txt: str, s: 'const Set *') -> 'Set *': +def textcat_text_textset(txt: str, s: "const Set *") -> "Set *": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.textcat_text_textset(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_textset_text(s: 'const Set *', txt: str) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def textcat_textset_text(s: "const Set *", txt: str) -> "Set *": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def textset_initcap(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def textset_initcap(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.textset_initcap(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_lower(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def textset_lower(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.textset_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_upper(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def textset_upper(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.textset_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_tprecision(t: int, duration: 'const Interval *', torigin: int) -> 'TimestampTz': - t_converted = _ffi.cast('TimestampTz', t) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - result = _lib.timestamptz_tprecision(t_converted, duration_converted, torigin_converted) +def timestamptz_tprecision( + t: int, duration: "const Interval *", torigin: int +) -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.timestamptz_tprecision( + t_converted, duration_converted, torigin_converted + ) _check_error() return result if result != _ffi.NULL else None -def tstzset_shift_scale(s: 'const Set *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL +def tstzset_shift_scale( + s: "const Set *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) result = _lib.tstzset_shift_scale(s_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_tprecision(s: 'const Set *', duration: 'const Interval *', torigin: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) +def tstzset_tprecision( + s: "const Set *", duration: "const Interval *", torigin: int +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) result = _lib.tstzset_tprecision(s_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_shift_scale(s: 'const Span *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL +def tstzspan_shift_scale( + s: "const Span *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) result = _lib.tstzspan_shift_scale(s_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_tprecision(s: 'const Span *', duration: 'const Interval *', torigin: int) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - result = _lib.tstzspan_tprecision(s_converted, duration_converted, torigin_converted) +def tstzspan_tprecision( + s: "const Span *", duration: "const Interval *", torigin: int +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.tstzspan_tprecision( + s_converted, duration_converted, torigin_converted + ) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_shift_scale(ss: 'const SpanSet *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL - result = _lib.tstzspanset_shift_scale(ss_converted, shift_converted, duration_converted) +def tstzspanset_shift_scale( + ss: "const SpanSet *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) + result = _lib.tstzspanset_shift_scale( + ss_converted, shift_converted, duration_converted + ) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_tprecision(ss: 'const SpanSet *', duration: 'const Interval *', torigin: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - result = _lib.tstzspanset_tprecision(ss_converted, duration_converted, torigin_converted) +def tstzspanset_tprecision( + ss: "const SpanSet *", duration: "const Interval *", torigin: int +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.tstzspanset_tprecision( + ss_converted, duration_converted, torigin_converted + ) _check_error() return result if result != _ffi.NULL else None -def set_cmp(s1: 'const Set *', s2: 'const Set *') -> 'int': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_cmp(s1: "const Set *", s2: "const Set *") -> "int": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_cmp(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_eq(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_eq(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_eq(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_ge(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_ge(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_ge(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_gt(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_gt(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_gt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_le(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_le(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_le(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_lt(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_lt(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_lt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def set_ne(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def set_ne(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_ne(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_cmp(s1: 'const Span *', s2: 'const Span *') -> 'int': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_cmp(s1: "const Span *", s2: "const Span *") -> "int": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_cmp(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_eq(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_eq(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_eq(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_ge(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_ge(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_ge(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_gt(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_gt(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_gt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_le(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_le(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_le(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_lt(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_lt(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_lt(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def span_ne(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def span_ne(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_ne(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_cmp(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_cmp(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "int": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_cmp(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_eq(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_eq(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_eq(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_ge(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_ge(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_ge(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_gt(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_gt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_gt(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_le(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_le(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_le(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lt(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_lt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_lt(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_ne(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def spanset_ne(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_ne(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def set_spans(s: 'const Set *') -> 'Span *': - s_converted = _ffi.cast('const Set *', s) +def set_spans(s: "const Set *") -> "Span *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_spans(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_split_each_n_spans(s: 'const Set *', elems_per_span: int) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Set *', s) - count = _ffi.new('int *') +def set_split_each_n_spans( + s: "const Set *", elems_per_span: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Set *", s) + count = _ffi.new("int *") result = _lib.set_split_each_n_spans(s_converted, elems_per_span, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def set_split_n_spans(s: 'const Set *', span_count: int) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Set *', s) - count = _ffi.new('int *') +def set_split_n_spans(s: "const Set *", span_count: int) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Set *", s) + count = _ffi.new("int *") result = _lib.set_split_n_spans(s_converted, span_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def spanset_spans(ss: 'const SpanSet *') -> 'Span *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_spans(ss: "const SpanSet *") -> "Span *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_spans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_split_each_n_spans(ss: 'const SpanSet *', elems_per_span: int) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - count = _ffi.new('int *') +def spanset_split_each_n_spans( + ss: "const SpanSet *", elems_per_span: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") result = _lib.spanset_split_each_n_spans(ss_converted, elems_per_span, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def spanset_split_n_spans(ss: 'const SpanSet *', span_count: int) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - count = _ffi.new('int *') +def spanset_split_n_spans( + ss: "const SpanSet *", span_count: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") result = _lib.spanset_split_n_spans(ss_converted, span_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def adjacent_span_bigint(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def adjacent_span_bigint(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.adjacent_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def adjacent_span_date(s: "const Span *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.adjacent_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_float(s: 'const Span *', d: float) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def adjacent_span_float(s: "const Span *", d: float) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_int(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def adjacent_span_int(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def adjacent_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.adjacent_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def adjacent_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_timestamptz(s: 'const Span *', t: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def adjacent_span_timestamptz(s: "const Span *", t: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.adjacent_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def adjacent_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.adjacent_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def adjacent_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.adjacent_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def adjacent_spanset_float(ss: "const SpanSet *", d: float) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def adjacent_spanset_int(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def adjacent_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.adjacent_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def adjacent_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def adjacent_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.adjacent_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_bigint_set(i: int, s: 'const Set *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def contained_bigint_set(i: int, s: "const Set *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_bigint_span(i: int, s: 'const Span *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Span *', s) +def contained_bigint_span(i: int, s: "const Span *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def contained_date_set(d: "DateADT", s: "const Set *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Span *', s) +def contained_date_span(d: "DateADT", s: "const Span *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_set(d: float, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def contained_float_set(d: float, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_span(d: float, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def contained_float_span(d: float, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_float_spanset(d: float, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_set(i: int, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def contained_int_set(i: int, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_span(i: int, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def contained_int_span(i: int, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_int_spanset(i: int, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def contained_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.contained_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def contained_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.contained_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def contained_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def contained_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.contained_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_text_set(txt: str, s: 'const Set *') -> 'bool': +def contained_text_set(txt: str, s: "const Set *") -> "bool": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_timestamptz_set(t: int, s: 'const Set *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def contained_timestamptz_set(t: int, s: "const Set *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_timestamptz_span(t: int, s: 'const Span *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def contained_timestamptz_span(t: int, s: "const Span *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_bigint(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def contains_set_bigint(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.contains_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def contains_set_date(s: "const Set *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.contains_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_float(s: 'const Set *', d: float) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def contains_set_float(s: "const Set *", d: float) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_set_int(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def contains_set_int(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def contains_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.contains_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_text(s: 'const Set *', t: str) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def contains_set_text(s: "const Set *", t: str) -> "bool": + s_converted = _ffi.cast("const Set *", s) t_converted = cstring2text(t) result = _lib.contains_set_text(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_timestamptz(s: 'const Set *', t: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def contains_set_timestamptz(s: "const Set *", t: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_bigint(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def contains_span_bigint(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.contains_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def contains_span_date(s: "const Span *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.contains_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_float(s: 'const Span *', d: float) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def contains_span_float(s: "const Span *", d: float) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.contains_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_span_int(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def contains_span_int(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.contains_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def contains_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.contains_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def contains_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_timestamptz(s: 'const Span *', t: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def contains_span_timestamptz(s: "const Span *", t: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def contains_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.contains_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def contains_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.contains_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def contains_spanset_float(ss: "const SpanSet *", d: float) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def contains_spanset_int(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def contains_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.contains_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def contains_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.contains_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def contains_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def overlaps_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.overlaps_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def overlaps_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.overlaps_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overlaps_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overlaps_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def overlaps_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.overlaps_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def overlaps_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.overlaps_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def after_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def after_date_set(d: "DateADT", s: "const Set *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.after_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Span *', s) +def after_date_span(d: "DateADT", s: "const Span *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Span *", s) result = _lib.after_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('const SpanSet *', ss) +def after_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.after_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def after_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def after_set_date(s: "const Set *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.after_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def after_set_timestamptz(s: 'const Set *', t: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def after_set_timestamptz(s: "const Set *", t: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def after_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def after_span_date(s: "const Span *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.after_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def after_span_timestamptz(s: 'const Span *', t: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def after_span_timestamptz(s: "const Span *", t: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def after_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def after_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.after_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def after_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def after_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def after_timestamptz_set(t: int, s: 'const Set *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def after_timestamptz_set(t: int, s: "const Set *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.after_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_timestamptz_span(t: int, s: 'const Span *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def after_timestamptz_span(t: int, s: "const Span *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.after_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('const SpanSet *', ss) +def after_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.after_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def before_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def before_date_set(d: "DateADT", s: "const Set *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.before_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Span *', s) +def before_date_span(d: "DateADT", s: "const Span *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Span *", s) result = _lib.before_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('const SpanSet *', ss) +def before_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.before_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def before_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def before_set_date(s: "const Set *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.before_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def before_set_timestamptz(s: 'const Set *', t: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def before_set_timestamptz(s: "const Set *", t: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def before_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def before_span_date(s: "const Span *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.before_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def before_span_timestamptz(s: 'const Span *', t: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def before_span_timestamptz(s: "const Span *", t: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def before_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def before_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.before_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def before_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def before_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def before_timestamptz_set(t: int, s: 'const Set *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def before_timestamptz_set(t: int, s: "const Set *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.before_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_timestamptz_span(t: int, s: 'const Span *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def before_timestamptz_span(t: int, s: "const Span *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.before_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('const SpanSet *', ss) +def before_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.before_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_bigint_set(i: int, s: 'const Set *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def left_bigint_set(i: int, s: "const Set *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.left_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_bigint_span(i: int, s: 'const Span *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Span *', s) +def left_bigint_span(i: int, s: "const Span *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Span *", s) result = _lib.left_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_set(d: float, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def left_float_set(d: float, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.left_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_span(d: float, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def left_float_span(d: float, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.left_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_float_spanset(d: float, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_set(i: int, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def left_int_set(i: int, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.left_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_span(i: int, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def left_int_span(i: int, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.left_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_int_spanset(i: int, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_bigint(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def left_set_bigint(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.left_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_float(s: 'const Set *', d: float) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def left_set_float(s: "const Set *", d: float) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.left_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_set_int(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def left_set_int(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.left_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def left_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.left_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_text(s: 'const Set *', txt: str) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def left_set_text(s: "const Set *", txt: str) -> "bool": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.left_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_bigint(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def left_span_bigint(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.left_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_float(s: 'const Span *', d: float) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def left_span_float(s: "const Span *", d: float) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.left_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_span_int(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def left_span_int(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.left_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def left_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.left_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def left_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.left_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_spanset_float(ss: "const SpanSet *", d: float) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_spanset_int(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def left_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.left_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def left_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.left_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def left_text_set(txt: str, s: 'const Set *') -> 'bool': +def left_text_set(txt: str, s: "const Set *") -> "bool": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.left_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def overafter_date_set(d: "DateADT", s: "const Set *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.overafter_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Span *', s) +def overafter_date_span(d: "DateADT", s: "const Span *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overafter_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overafter_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def overafter_set_date(s: "const Set *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_set_timestamptz(s: 'const Set *', t: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def overafter_set_timestamptz(s: "const Set *", t: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def overafter_span_date(s: "const Span *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_span_timestamptz(s: 'const Span *', t: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def overafter_span_timestamptz(s: "const Span *", t: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def overafter_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def overafter_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_timestamptz_set(t: int, s: 'const Set *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def overafter_timestamptz_set(t: int, s: "const Set *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.overafter_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_timestamptz_span(t: int, s: 'const Span *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def overafter_timestamptz_span(t: int, s: "const Span *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overafter_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overafter_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_date_set(d: 'DateADT', s: 'const Set *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def overbefore_date_set(d: "DateADT", s: "const Set *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.overbefore_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_date_span(d: 'DateADT', s: 'const Span *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Span *', s) +def overbefore_date_span(d: "DateADT", s: "const Span *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'bool': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overbefore_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overbefore_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_set_date(s: 'const Set *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def overbefore_set_date(s: "const Set *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_set_timestamptz(s: 'const Set *', t: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def overbefore_set_timestamptz(s: "const Set *", t: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_span_date(s: 'const Span *', d: 'DateADT') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def overbefore_span_date(s: "const Span *", d: "DateADT") -> "bool": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_span_timestamptz(s: 'const Span *', t: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def overbefore_span_timestamptz(s: "const Span *", t: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def overbefore_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def overbefore_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_timestamptz_set(t: int, s: 'const Set *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def overbefore_timestamptz_set(t: int, s: "const Set *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.overbefore_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_timestamptz_span(t: int, s: 'const Span *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def overbefore_timestamptz_span(t: int, s: "const Span *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'bool': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overbefore_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overbefore_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_bigint_set(i: int, s: 'const Set *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def overleft_bigint_set(i: int, s: "const Set *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_bigint_span(i: int, s: 'const Span *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Span *', s) +def overleft_bigint_span(i: int, s: "const Span *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_set(d: float, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overleft_float_set(d: float, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_span(d: float, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overleft_float_span(d: float, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_float_spanset(d: float, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_set(i: int, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overleft_int_set(i: int, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_span(i: int, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overleft_int_span(i: int, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_int_spanset(i: int, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_bigint(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def overleft_set_bigint(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.overleft_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_float(s: 'const Set *', d: float) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overleft_set_float(s: "const Set *", d: float) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_set_int(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overleft_set_int(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def overleft_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.overleft_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_text(s: 'const Set *', txt: str) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overleft_set_text(s: "const Set *", txt: str) -> "bool": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.overleft_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_bigint(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def overleft_span_bigint(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.overleft_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_float(s: 'const Span *', d: float) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overleft_span_float(s: "const Span *", d: float) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_span_int(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overleft_span_int(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def overleft_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.overleft_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def overleft_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.overleft_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_spanset_float(ss: "const SpanSet *", d: float) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_spanset_int(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def overleft_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def overleft_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.overleft_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_text_set(txt: str, s: 'const Set *') -> 'bool': +def overleft_text_set(txt: str, s: "const Set *") -> "bool": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_bigint_set(i: int, s: 'const Set *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def overright_bigint_set(i: int, s: "const Set *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_bigint_span(i: int, s: 'const Span *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Span *', s) +def overright_bigint_span(i: int, s: "const Span *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_set(d: float, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overright_float_set(d: float, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_span(d: float, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overright_float_span(d: float, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_float_spanset(d: float, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_set(i: int, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overright_int_set(i: int, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_span(i: int, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overright_int_span(i: int, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_int_spanset(i: int, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_bigint(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def overright_set_bigint(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.overright_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_float(s: 'const Set *', d: float) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overright_set_float(s: "const Set *", d: float) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_set_int(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overright_set_int(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def overright_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.overright_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_text(s: 'const Set *', txt: str) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def overright_set_text(s: "const Set *", txt: str) -> "bool": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.overright_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_bigint(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def overright_span_bigint(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.overright_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_float(s: 'const Span *', d: float) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overright_span_float(s: "const Span *", d: float) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_span_int(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def overright_span_int(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def overright_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.overright_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def overright_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.overright_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_spanset_float(ss: "const SpanSet *", d: float) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_spanset_int(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def overright_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def overright_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.overright_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_text_set(txt: str, s: 'const Set *') -> 'bool': +def overright_text_set(txt: str, s: "const Set *") -> "bool": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_bigint_set(i: int, s: 'const Set *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def right_bigint_set(i: int, s: "const Set *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.right_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_bigint_span(i: int, s: 'const Span *') -> 'bool': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Span *', s) +def right_bigint_span(i: int, s: "const Span *") -> "bool": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Span *", s) result = _lib.right_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_set(d: float, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def right_float_set(d: float, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.right_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_span(d: float, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def right_float_span(d: float, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.right_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_spanset(d: float, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_float_spanset(d: float, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_set(i: int, s: 'const Set *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def right_int_set(i: int, s: "const Set *") -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.right_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_span(i: int, s: 'const Span *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def right_int_span(i: int, s: "const Span *") -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.right_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_spanset(i: int, ss: 'const SpanSet *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_int_spanset(i: int, ss: "const SpanSet *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_bigint(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def right_set_bigint(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.right_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_float(s: 'const Set *', d: float) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def right_set_float(s: "const Set *", d: float) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.right_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_set_int(s: 'const Set *', i: int) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def right_set_int(s: "const Set *", i: int) -> "bool": + s_converted = _ffi.cast("const Set *", s) result = _lib.right_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_set_set(s1: 'const Set *', s2: 'const Set *') -> 'bool': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def right_set_set(s1: "const Set *", s2: "const Set *") -> "bool": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.right_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_text(s: 'const Set *', txt: str) -> 'bool': - s_converted = _ffi.cast('const Set *', s) +def right_set_text(s: "const Set *", txt: str) -> "bool": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.right_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_bigint(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def right_span_bigint(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.right_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_float(s: 'const Span *', d: float) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def right_span_float(s: "const Span *", d: float) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.right_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_span_int(s: 'const Span *', i: int) -> 'bool': - s_converted = _ffi.cast('const Span *', s) +def right_span_int(s: "const Span *", i: int) -> "bool": + s_converted = _ffi.cast("const Span *", s) result = _lib.right_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def right_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.right_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def right_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.right_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_float(ss: 'const SpanSet *', d: float) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_spanset_float(ss: "const SpanSet *", d: float) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_spanset_int(ss: 'const SpanSet *', i: int) -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_spanset_int(ss: "const SpanSet *", i: int) -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def right_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.right_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'bool': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def right_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.right_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def right_text_set(txt: str, s: 'const Set *') -> 'bool': +def right_text_set(txt: str, s: "const Set *") -> "bool": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.right_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_bigint_set(i: int, s: 'const Set *') -> 'Set *': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def intersection_bigint_set(i: int, s: "const Set *") -> "Set *": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_date_set(d: 'DateADT', s: 'const Set *') -> 'Set *': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def intersection_date_set(d: "DateADT", s: "const Set *") -> "Set *": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_float_set(d: float, s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intersection_float_set(d: float, s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_int_set(i: int, s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intersection_int_set(i: int, s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_bigint(s: 'const Set *', i: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def intersection_set_bigint(s: "const Set *", i: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.intersection_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_date(s: 'const Set *', d: 'DateADT') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def intersection_set_date(s: "const Set *", d: "DateADT") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_float(s: 'const Set *', d: float) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intersection_set_float(s: "const Set *", d: float) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_set_int(s: 'const Set *', i: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intersection_set_int(s: "const Set *", i: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Set *': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def intersection_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.intersection_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_text(s: 'const Set *', txt: str) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def intersection_set_text(s: "const Set *", txt: str) -> "Set *": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.intersection_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_timestamptz(s: 'const Set *', t: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def intersection_set_timestamptz(s: "const Set *", t: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_bigint(s: 'const Span *', i: int) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def intersection_span_bigint(s: "const Span *", i: int) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.intersection_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_date(s: 'const Span *', d: 'DateADT') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def intersection_span_date(s: "const Span *", d: "DateADT") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_float(s: 'const Span *', d: float) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def intersection_span_float(s: "const Span *", d: float) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_span_int(s: 'const Span *', i: int) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) +def intersection_span_int(s: "const Span *", i: int) -> "Span *": + s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def intersection_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.intersection_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def intersection_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_timestamptz(s: 'const Span *', t: int) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def intersection_span_timestamptz(s: "const Span *", t: int) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def intersection_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.intersection_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def intersection_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_float(ss: 'const SpanSet *', d: float) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intersection_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_int(ss: 'const SpanSet *', i: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def intersection_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def intersection_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'SpanSet *': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def intersection_spanset_spanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "SpanSet *": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.intersection_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def intersection_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_text_set(txt: str, s: 'const Set *') -> 'Set *': +def intersection_text_set(txt: str, s: "const Set *") -> "Set *": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_timestamptz_set(t: int, s: 'const Set *') -> 'Set *': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def intersection_timestamptz_set(t: int, s: "const Set *") -> "Set *": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_bigint_set(i: int, s: 'const Set *') -> 'Set *': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def minus_bigint_set(i: int, s: "const Set *") -> "Set *": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_bigint_span(i: int, s: 'const Span *') -> 'SpanSet *': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Span *', s) +def minus_bigint_span(i: int, s: "const Span *") -> "SpanSet *": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_bigint_span(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_bigint_spanset(i: int, ss: 'const SpanSet *') -> 'SpanSet *': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_bigint_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_set(d: 'DateADT', s: 'const Set *') -> 'Set *': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def minus_date_set(d: "DateADT", s: "const Set *") -> "Set *": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_span(d: 'DateADT', s: 'const Span *') -> 'SpanSet *': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Span *', s) +def minus_date_span(d: "DateADT", s: "const Span *") -> "SpanSet *": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_date_span(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_date_spanset(d: 'DateADT', ss: 'const SpanSet *') -> 'SpanSet *': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "SpanSet *": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_set(d: float, s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def minus_float_set(d: float, s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_span(d: float, s: 'const Span *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def minus_float_span(d: float, s: "const Span *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_spanset(d: float, ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_float_spanset(d: float, ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_set(i: int, s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def minus_int_set(i: int, s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_span(i: int, s: 'const Span *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def minus_int_span(i: int, s: "const Span *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_spanset(i: int, ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_int_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_bigint(s: 'const Set *', i: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def minus_set_bigint(s: "const Set *", i: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.minus_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_date(s: 'const Set *', d: 'DateADT') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def minus_set_date(s: "const Set *", d: "DateADT") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.minus_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_float(s: 'const Set *', d: float) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def minus_set_float(s: "const Set *", d: float) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_set_int(s: 'const Set *', i: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def minus_set_int(s: "const Set *", i: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Set *': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def minus_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.minus_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_text(s: 'const Set *', txt: str) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def minus_set_text(s: "const Set *", txt: str) -> "Set *": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.minus_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_timestamptz(s: 'const Set *', t: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def minus_set_timestamptz(s: "const Set *", t: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_bigint(s: 'const Span *', i: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def minus_span_bigint(s: "const Span *", i: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.minus_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_date(s: 'const Span *', d: 'DateADT') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def minus_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.minus_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_float(s: 'const Span *', d: float) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def minus_span_float(s: "const Span *", d: float) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_span_int(s: 'const Span *', i: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def minus_span_int(s: "const Span *", i: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_span_span(s1: 'const Span *', s2: 'const Span *') -> 'SpanSet *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def minus_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.minus_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_timestamptz(s: 'const Span *', t: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def minus_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def minus_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.minus_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def minus_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.minus_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_float(ss: 'const SpanSet *', d: float) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_int(ss: 'const SpanSet *', i: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def minus_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'SpanSet *': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def minus_spanset_spanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "SpanSet *": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.minus_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def minus_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def minus_text_set(txt: str, s: 'const Set *') -> 'Set *': +def minus_text_set(txt: str, s: "const Set *") -> "Set *": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_set(t: int, s: 'const Set *') -> 'Set *': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def minus_timestamptz_set(t: int, s: "const Set *") -> "Set *": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_span(t: int, s: 'const Span *') -> 'SpanSet *': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def minus_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_timestamptz_spanset(t: int, ss: 'const SpanSet *') -> 'SpanSet *': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "SpanSet *": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_bigint_set(i: int, s: 'const Set *') -> 'Set *': - i_converted = _ffi.cast('int64', i) - s_converted = _ffi.cast('const Set *', s) +def union_bigint_set(i: int, s: "const Set *") -> "Set *": + i_converted = _ffi.cast("int64", i) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_bigint_set(i_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_bigint_span(s: 'const Span *', i: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def union_bigint_span(s: "const Span *", i: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.union_bigint_span(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_bigint_spanset(i: int, ss: 'SpanSet *') -> 'SpanSet *': - i_converted = _ffi.cast('int64', i) - ss_converted = _ffi.cast('SpanSet *', ss) +def union_bigint_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": + i_converted = _ffi.cast("int64", i) + ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_bigint_spanset(i_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_date_set(d: 'DateADT', s: 'const Set *') -> 'Set *': - d_converted = _ffi.cast('DateADT', d) - s_converted = _ffi.cast('const Set *', s) +def union_date_set(d: "DateADT", s: "const Set *") -> "Set *": + d_converted = _ffi.cast("DateADT", d) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_date_set(d_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_date_span(s: 'const Span *', d: 'DateADT') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def union_date_span(s: "const Span *", d: "DateADT") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.union_date_span(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_date_spanset(d: 'DateADT', ss: 'SpanSet *') -> 'SpanSet *': - d_converted = _ffi.cast('DateADT', d) - ss_converted = _ffi.cast('SpanSet *', ss) +def union_date_spanset(d: "DateADT", ss: "SpanSet *") -> "SpanSet *": + d_converted = _ffi.cast("DateADT", d) + ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_date_spanset(d_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_float_set(d: float, s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def union_float_set(d: float, s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.union_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_float_span(s: 'const Span *', d: float) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def union_float_span(s: "const Span *", d: float) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.union_float_span(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_float_spanset(d: float, ss: 'SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('SpanSet *', ss) +def union_float_spanset(d: float, ss: "SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_set(i: int, s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def union_int_set(i: int, s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.union_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_span(i: int, s: 'const Span *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def union_int_span(i: int, s: "const Span *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.union_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_spanset(i: int, ss: 'SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('SpanSet *', ss) +def union_int_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_bigint(s: 'const Set *', i: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def union_set_bigint(s: "const Set *", i: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.union_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_date(s: 'const Set *', d: 'DateADT') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def union_set_date(s: "const Set *", d: "DateADT") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.union_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_float(s: 'const Set *', d: float) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def union_set_float(s: "const Set *", d: float) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_set_int(s: 'const Set *', i: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def union_set_int(s: "const Set *", i: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Set *': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def union_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.union_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_text(s: 'const Set *', txt: str) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def union_set_text(s: "const Set *", txt: str) -> "Set *": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.union_set_text(s_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_timestamptz(s: 'const Set *', t: int) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def union_set_timestamptz(s: "const Set *", t: int) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_bigint(s: 'const Span *', i: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def union_span_bigint(s: "const Span *", i: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.union_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_date(s: 'const Span *', d: 'DateADT') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def union_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.union_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_float(s: 'const Span *', d: float) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def union_span_float(s: "const Span *", d: float) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.union_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_span_int(s: 'const Span *', i: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) +def union_span_int(s: "const Span *", i: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) result = _lib.union_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_span_span(s1: 'const Span *', s2: 'const Span *') -> 'SpanSet *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def union_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.union_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_spanset(s: 'const Span *', ss: 'const SpanSet *') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - ss_converted = _ffi.cast('const SpanSet *', ss) +def union_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_span_spanset(s_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_timestamptz(s: 'const Span *', t: int) -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def union_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def union_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.union_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def union_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.union_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_float(ss: 'const SpanSet *', d: float) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def union_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_spanset_int(ss: 'const SpanSet *', i: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def union_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def union_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.union_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'SpanSet *': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def union_spanset_spanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "SpanSet *": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.union_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def union_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def union_text_set(txt: str, s: 'const Set *') -> 'Set *': +def union_text_set(txt: str, s: "const Set *") -> "Set *": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_text_set(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_timestamptz_set(t: int, s: 'const Set *') -> 'Set *': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Set *', s) +def union_timestamptz_set(t: int, s: "const Set *") -> "Set *": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_timestamptz_set(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_timestamptz_span(t: int, s: 'const Span *') -> 'SpanSet *': - t_converted = _ffi.cast('TimestampTz', t) - s_converted = _ffi.cast('const Span *', s) +def union_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": + t_converted = _ffi.cast("TimestampTz", t) + s_converted = _ffi.cast("const Span *", s) result = _lib.union_timestamptz_span(t_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_timestamptz_spanset(t: int, ss: 'SpanSet *') -> 'SpanSet *': - t_converted = _ffi.cast('TimestampTz', t) - ss_converted = _ffi.cast('SpanSet *', ss) +def union_timestamptz_spanset(t: int, ss: "SpanSet *") -> "SpanSet *": + t_converted = _ffi.cast("TimestampTz", t) + ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_timestamptz_spanset(t_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintset_bigintset(s1: 'const Set *', s2: 'const Set *') -> 'int64': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def distance_bigintset_bigintset(s1: "const Set *", s2: "const Set *") -> "int64": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_bigintset_bigintset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintspan_bigintspan(s1: 'const Span *', s2: 'const Span *') -> 'int64': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def distance_bigintspan_bigintspan(s1: "const Span *", s2: "const Span *") -> "int64": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_bigintspan_bigintspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintspanset_bigintspan(ss: 'const SpanSet *', s: 'const Span *') -> 'int64': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def distance_bigintspanset_bigintspan( + ss: "const SpanSet *", s: "const Span *" +) -> "int64": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_bigintspanset_bigintspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_bigintspanset_bigintspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int64': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def distance_bigintspanset_bigintspanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "int64": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_bigintspanset_bigintspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_dateset_dateset(s1: 'const Set *', s2: 'const Set *') -> 'int': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def distance_dateset_dateset(s1: "const Set *", s2: "const Set *") -> "int": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_dateset_dateset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_datespan_datespan(s1: 'const Span *', s2: 'const Span *') -> 'int': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def distance_datespan_datespan(s1: "const Span *", s2: "const Span *") -> "int": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_datespan_datespan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_datespanset_datespan(ss: 'const SpanSet *', s: 'const Span *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def distance_datespanset_datespan(ss: "const SpanSet *", s: "const Span *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_datespanset_datespan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_datespanset_datespanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def distance_datespanset_datespanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "int": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_datespanset_datespanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatset_floatset(s1: 'const Set *', s2: 'const Set *') -> 'double': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def distance_floatset_floatset(s1: "const Set *", s2: "const Set *") -> "double": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_floatset_floatset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatspan_floatspan(s1: 'const Span *', s2: 'const Span *') -> 'double': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def distance_floatspan_floatspan(s1: "const Span *", s2: "const Span *") -> "double": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_floatspan_floatspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatspanset_floatspan(ss: 'const SpanSet *', s: 'const Span *') -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def distance_floatspanset_floatspan( + ss: "const SpanSet *", s: "const Span *" +) -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_floatspanset_floatspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_floatspanset_floatspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'double': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def distance_floatspanset_floatspanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "double": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_floatspanset_floatspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intset_intset(s1: 'const Set *', s2: 'const Set *') -> 'int': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def distance_intset_intset(s1: "const Set *", s2: "const Set *") -> "int": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_intset_intset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intspan_intspan(s1: 'const Span *', s2: 'const Span *') -> 'int': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def distance_intspan_intspan(s1: "const Span *", s2: "const Span *") -> "int": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_intspan_intspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intspanset_intspan(ss: 'const SpanSet *', s: 'const Span *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def distance_intspanset_intspan(ss: "const SpanSet *", s: "const Span *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_intspanset_intspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_intspanset_intspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'int': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def distance_intspanset_intspanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "int": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_intspanset_intspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_bigint(s: 'const Set *', i: int) -> 'int64': - s_converted = _ffi.cast('const Set *', s) - i_converted = _ffi.cast('int64', i) +def distance_set_bigint(s: "const Set *", i: int) -> "int64": + s_converted = _ffi.cast("const Set *", s) + i_converted = _ffi.cast("int64", i) result = _lib.distance_set_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_date(s: 'const Set *', d: 'DateADT') -> 'int': - s_converted = _ffi.cast('const Set *', s) - d_converted = _ffi.cast('DateADT', d) +def distance_set_date(s: "const Set *", d: "DateADT") -> "int": + s_converted = _ffi.cast("const Set *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.distance_set_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_float(s: 'const Set *', d: float) -> 'double': - s_converted = _ffi.cast('const Set *', s) +def distance_set_float(s: "const Set *", d: float) -> "double": + s_converted = _ffi.cast("const Set *", s) result = _lib.distance_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_set_int(s: 'const Set *', i: int) -> 'int': - s_converted = _ffi.cast('const Set *', s) +def distance_set_int(s: "const Set *", i: int) -> "int": + s_converted = _ffi.cast("const Set *", s) result = _lib.distance_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_set_timestamptz(s: 'const Set *', t: int) -> 'double': - s_converted = _ffi.cast('const Set *', s) - t_converted = _ffi.cast('TimestampTz', t) +def distance_set_timestamptz(s: "const Set *", t: int) -> "double": + s_converted = _ffi.cast("const Set *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_set_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_bigint(s: 'const Span *', i: int) -> 'int64': - s_converted = _ffi.cast('const Span *', s) - i_converted = _ffi.cast('int64', i) +def distance_span_bigint(s: "const Span *", i: int) -> "int64": + s_converted = _ffi.cast("const Span *", s) + i_converted = _ffi.cast("int64", i) result = _lib.distance_span_bigint(s_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_date(s: 'const Span *', d: 'DateADT') -> 'int': - s_converted = _ffi.cast('const Span *', s) - d_converted = _ffi.cast('DateADT', d) +def distance_span_date(s: "const Span *", d: "DateADT") -> "int": + s_converted = _ffi.cast("const Span *", s) + d_converted = _ffi.cast("DateADT", d) result = _lib.distance_span_date(s_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_float(s: 'const Span *', d: float) -> 'double': - s_converted = _ffi.cast('const Span *', s) +def distance_span_float(s: "const Span *", d: float) -> "double": + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_span_int(s: 'const Span *', i: int) -> 'int': - s_converted = _ffi.cast('const Span *', s) +def distance_span_int(s: "const Span *", i: int) -> "int": + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_span_timestamptz(s: 'const Span *', t: int) -> 'double': - s_converted = _ffi.cast('const Span *', s) - t_converted = _ffi.cast('TimestampTz', t) +def distance_span_timestamptz(s: "const Span *", t: int) -> "double": + s_converted = _ffi.cast("const Span *", s) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_span_timestamptz(s_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_bigint(ss: 'const SpanSet *', i: int) -> 'int64': - ss_converted = _ffi.cast('const SpanSet *', ss) - i_converted = _ffi.cast('int64', i) +def distance_spanset_bigint(ss: "const SpanSet *", i: int) -> "int64": + ss_converted = _ffi.cast("const SpanSet *", ss) + i_converted = _ffi.cast("int64", i) result = _lib.distance_spanset_bigint(ss_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_date(ss: 'const SpanSet *', d: 'DateADT') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) - d_converted = _ffi.cast('DateADT', d) +def distance_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) + d_converted = _ffi.cast("DateADT", d) result = _lib.distance_spanset_date(ss_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_float(ss: 'const SpanSet *', d: float) -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) +def distance_spanset_float(ss: "const SpanSet *", d: float) -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.distance_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_int(ss: 'const SpanSet *', i: int) -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def distance_spanset_int(ss: "const SpanSet *", i: int) -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.distance_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_timestamptz(ss: 'const SpanSet *', t: int) -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def distance_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_spanset_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzset_tstzset(s1: 'const Set *', s2: 'const Set *') -> 'double': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def distance_tstzset_tstzset(s1: "const Set *", s2: "const Set *") -> "double": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_tstzset_tstzset(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzspan_tstzspan(s1: 'const Span *', s2: 'const Span *') -> 'double': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def distance_tstzspan_tstzspan(s1: "const Span *", s2: "const Span *") -> "double": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_tstzspan_tstzspan(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzspanset_tstzspan(ss: 'const SpanSet *', s: 'const Span *') -> 'double': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def distance_tstzspanset_tstzspan(ss: "const SpanSet *", s: "const Span *") -> "double": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_tstzspanset_tstzspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_tstzspanset_tstzspanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'double': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def distance_tstzspanset_tstzspanset( + ss1: "const SpanSet *", ss2: "const SpanSet *" +) -> "double": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_tstzspanset_tstzspanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_extent_transfn(state: 'Span *', i: int) -> 'Span *': - state_converted = _ffi.cast('Span *', state) - i_converted = _ffi.cast('int64', i) +def bigint_extent_transfn(state: "Span *", i: int) -> "Span *": + state_converted = _ffi.cast("Span *", state) + i_converted = _ffi.cast("int64", i) result = _lib.bigint_extent_transfn(state_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_union_transfn(state: 'Set *', i: int) -> 'Set *': - state_converted = _ffi.cast('Set *', state) - i_converted = _ffi.cast('int64', i) +def bigint_union_transfn(state: "Set *", i: int) -> "Set *": + state_converted = _ffi.cast("Set *", state) + i_converted = _ffi.cast("int64", i) result = _lib.bigint_union_transfn(state_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def date_extent_transfn(state: 'Span *', d: 'DateADT') -> 'Span *': - state_converted = _ffi.cast('Span *', state) - d_converted = _ffi.cast('DateADT', d) +def date_extent_transfn(state: "Span *", d: "DateADT") -> "Span *": + state_converted = _ffi.cast("Span *", state) + d_converted = _ffi.cast("DateADT", d) result = _lib.date_extent_transfn(state_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def date_union_transfn(state: 'Set *', d: 'DateADT') -> 'Set *': - state_converted = _ffi.cast('Set *', state) - d_converted = _ffi.cast('DateADT', d) +def date_union_transfn(state: "Set *", d: "DateADT") -> "Set *": + state_converted = _ffi.cast("Set *", state) + d_converted = _ffi.cast("DateADT", d) result = _lib.date_union_transfn(state_converted, d_converted) _check_error() return result if result != _ffi.NULL else None -def float_extent_transfn(state: 'Span *', d: float) -> 'Span *': - state_converted = _ffi.cast('Span *', state) +def float_extent_transfn(state: "Span *", d: float) -> "Span *": + state_converted = _ffi.cast("Span *", state) result = _lib.float_extent_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def float_union_transfn(state: 'Set *', d: float) -> 'Set *': - state_converted = _ffi.cast('Set *', state) +def float_union_transfn(state: "Set *", d: float) -> "Set *": + state_converted = _ffi.cast("Set *", state) result = _lib.float_union_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def int_extent_transfn(state: 'Span *', i: int) -> 'Span *': - state_converted = _ffi.cast('Span *', state) +def int_extent_transfn(state: "Span *", i: int) -> "Span *": + state_converted = _ffi.cast("Span *", state) result = _lib.int_extent_transfn(state_converted, i) _check_error() return result if result != _ffi.NULL else None -def int_union_transfn(state: 'Set *', i: int) -> 'Set *': - state_converted = _ffi.cast('Set *', state) - i_converted = _ffi.cast('int32', i) +def int_union_transfn(state: "Set *", i: int) -> "Set *": + state_converted = _ffi.cast("Set *", state) + i_converted = _ffi.cast("int32", i) result = _lib.int_union_transfn(state_converted, i_converted) _check_error() return result if result != _ffi.NULL else None -def set_extent_transfn(state: 'Span *', s: 'const Set *') -> 'Span *': - state_converted = _ffi.cast('Span *', state) - s_converted = _ffi.cast('const Set *', s) +def set_extent_transfn(state: "Span *", s: "const Set *") -> "Span *": + state_converted = _ffi.cast("Span *", state) + s_converted = _ffi.cast("const Set *", s) result = _lib.set_extent_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def set_union_finalfn(state: 'Set *') -> 'Set *': - state_converted = _ffi.cast('Set *', state) +def set_union_finalfn(state: "Set *") -> "Set *": + state_converted = _ffi.cast("Set *", state) result = _lib.set_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def set_union_transfn(state: 'Set *', s: 'Set *') -> 'Set *': - state_converted = _ffi.cast('Set *', state) - s_converted = _ffi.cast('Set *', s) +def set_union_transfn(state: "Set *", s: "Set *") -> "Set *": + state_converted = _ffi.cast("Set *", state) + s_converted = _ffi.cast("Set *", s) result = _lib.set_union_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def span_extent_transfn(state: 'Span *', s: 'const Span *') -> 'Span *': - state_converted = _ffi.cast('Span *', state) - s_converted = _ffi.cast('const Span *', s) +def span_extent_transfn(state: "Span *", s: "const Span *") -> "Span *": + state_converted = _ffi.cast("Span *", state) + s_converted = _ffi.cast("const Span *", s) result = _lib.span_extent_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def span_union_transfn(state: 'SpanSet *', s: 'const Span *') -> 'SpanSet *': - state_converted = _ffi.cast('SpanSet *', state) - s_converted = _ffi.cast('const Span *', s) +def span_union_transfn(state: "SpanSet *", s: "const Span *") -> "SpanSet *": + state_converted = _ffi.cast("SpanSet *", state) + s_converted = _ffi.cast("const Span *", s) result = _lib.span_union_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_extent_transfn(state: 'Span *', ss: 'const SpanSet *') -> 'Span *': - state_converted = _ffi.cast('Span *', state) - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_extent_transfn(state: "Span *", ss: "const SpanSet *") -> "Span *": + state_converted = _ffi.cast("Span *", state) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_extent_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_union_finalfn(state: 'SpanSet *') -> 'SpanSet *': - state_converted = _ffi.cast('SpanSet *', state) +def spanset_union_finalfn(state: "SpanSet *") -> "SpanSet *": + state_converted = _ffi.cast("SpanSet *", state) result = _lib.spanset_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_union_transfn(state: 'SpanSet *', ss: 'const SpanSet *') -> 'SpanSet *': - state_converted = _ffi.cast('SpanSet *', state) - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_union_transfn(state: "SpanSet *", ss: "const SpanSet *") -> "SpanSet *": + state_converted = _ffi.cast("SpanSet *", state) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_union_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def text_union_transfn(state: 'Set *', txt: str) -> 'Set *': - state_converted = _ffi.cast('Set *', state) +def text_union_transfn(state: "Set *", txt: str) -> "Set *": + state_converted = _ffi.cast("Set *", state) txt_converted = cstring2text(txt) result = _lib.text_union_transfn(state_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_extent_transfn(state: 'Span *', t: int) -> 'Span *': - state_converted = _ffi.cast('Span *', state) - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_extent_transfn(state: "Span *", t: int) -> "Span *": + state_converted = _ffi.cast("Span *", state) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_extent_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_union_transfn(state: 'Set *', t: int) -> 'Set *': - state_converted = _ffi.cast('Set *', state) - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_union_transfn(state: "Set *", t: int) -> "Set *": + state_converted = _ffi.cast("Set *", state) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_union_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_get_bin(value: int, vsize: int, vorigin: int) -> 'int64': - value_converted = _ffi.cast('int64', value) - vsize_converted = _ffi.cast('int64', vsize) - vorigin_converted = _ffi.cast('int64', vorigin) +def bigint_get_bin(value: int, vsize: int, vorigin: int) -> "int64": + value_converted = _ffi.cast("int64", value) + vsize_converted = _ffi.cast("int64", vsize) + vorigin_converted = _ffi.cast("int64", vorigin) result = _lib.bigint_get_bin(value_converted, vsize_converted, vorigin_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_bins(s: 'const Span *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Span *', s) - vsize_converted = _ffi.cast('int64', vsize) - vorigin_converted = _ffi.cast('int64', vorigin) - count = _ffi.new('int *') - result = _lib.bigintspan_bins(s_converted, vsize_converted, vorigin_converted, count) +def bigintspan_bins( + s: "const Span *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + vsize_converted = _ffi.cast("int64", vsize) + vorigin_converted = _ffi.cast("int64", vorigin) + count = _ffi.new("int *") + result = _lib.bigintspan_bins( + s_converted, vsize_converted, vorigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def bigintspanset_bins(ss: 'const SpanSet *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - vsize_converted = _ffi.cast('int64', vsize) - vorigin_converted = _ffi.cast('int64', vorigin) - count = _ffi.new('int *') - result = _lib.bigintspanset_bins(ss_converted, vsize_converted, vorigin_converted, count) +def bigintspanset_bins( + ss: "const SpanSet *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + vsize_converted = _ffi.cast("int64", vsize) + vorigin_converted = _ffi.cast("int64", vorigin) + count = _ffi.new("int *") + result = _lib.bigintspanset_bins( + ss_converted, vsize_converted, vorigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def date_get_bin(d: 'DateADT', duration: 'const Interval *', torigin: 'DateADT') -> 'DateADT': - d_converted = _ffi.cast('DateADT', d) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('DateADT', torigin) +def date_get_bin( + d: "DateADT", duration: "const Interval *", torigin: "DateADT" +) -> "DateADT": + d_converted = _ffi.cast("DateADT", d) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("DateADT", torigin) result = _lib.date_get_bin(d_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_bins(s: 'const Span *', duration: 'const Interval *', torigin: 'DateADT') -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Span *', s) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('DateADT', torigin) - count = _ffi.new('int *') - result = _lib.datespan_bins(s_converted, duration_converted, torigin_converted, count) +def datespan_bins( + s: "const Span *", duration: "const Interval *", torigin: "DateADT" +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("DateADT", torigin) + count = _ffi.new("int *") + result = _lib.datespan_bins( + s_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def datespanset_bins(ss: 'const SpanSet *', duration: 'const Interval *', torigin: 'DateADT') -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('DateADT', torigin) - count = _ffi.new('int *') - result = _lib.datespanset_bins(ss_converted, duration_converted, torigin_converted, count) +def datespanset_bins( + ss: "const SpanSet *", duration: "const Interval *", torigin: "DateADT" +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("DateADT", torigin) + count = _ffi.new("int *") + result = _lib.datespanset_bins( + ss_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def float_get_bin(value: float, vsize: float, vorigin: float) -> 'double': +def float_get_bin(value: float, vsize: float, vorigin: float) -> "double": result = _lib.float_get_bin(value, vsize, vorigin) _check_error() return result if result != _ffi.NULL else None -def floatspan_bins(s: 'const Span *', vsize: float, vorigin: float) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Span *', s) - count = _ffi.new('int *') +def floatspan_bins( + s: "const Span *", vsize: float, vorigin: float +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + count = _ffi.new("int *") result = _lib.floatspan_bins(s_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def floatspanset_bins(ss: 'const SpanSet *', vsize: float, vorigin: float) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - count = _ffi.new('int *') +def floatspanset_bins( + ss: "const SpanSet *", vsize: float, vorigin: float +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def int_get_bin(value: int, vsize: int, vorigin: int) -> 'int': +def int_get_bin(value: int, vsize: int, vorigin: int) -> "int": result = _lib.int_get_bin(value, vsize, vorigin) _check_error() return result if result != _ffi.NULL else None -def intspan_bins(s: 'const Span *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Span *', s) - count = _ffi.new('int *') +def intspan_bins( + s: "const Span *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + count = _ffi.new("int *") result = _lib.intspan_bins(s_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def intspanset_bins(ss: 'const SpanSet *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - count = _ffi.new('int *') +def intspanset_bins( + ss: "const SpanSet *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + count = _ffi.new("int *") result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def timestamptz_get_bin(t: int, duration: 'const Interval *', torigin: int) -> 'TimestampTz': - t_converted = _ffi.cast('TimestampTz', t) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - result = _lib.timestamptz_get_bin(t_converted, duration_converted, torigin_converted) +def timestamptz_get_bin( + t: int, duration: "const Interval *", torigin: int +) -> "TimestampTz": + t_converted = _ffi.cast("TimestampTz", t) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.timestamptz_get_bin( + t_converted, duration_converted, torigin_converted + ) _check_error() return result if result != _ffi.NULL else None -def tstzspan_bins(s: 'const Span *', duration: 'const Interval *', origin: int) -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Span *', s) - duration_converted = _ffi.cast('const Interval *', duration) - origin_converted = _ffi.cast('TimestampTz', origin) - count = _ffi.new('int *') - result = _lib.tstzspan_bins(s_converted, duration_converted, origin_converted, count) +def tstzspan_bins( + s: "const Span *", duration: "const Interval *", origin: int +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + count = _ffi.new("int *") + result = _lib.tstzspan_bins( + s_converted, duration_converted, origin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tstzspanset_bins(ss: 'const SpanSet *', duration: 'const Interval *', torigin: int) -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tstzspanset_bins(ss_converted, duration_converted, torigin_converted, count) +def tstzspanset_bins( + ss: "const SpanSet *", duration: "const Interval *", torigin: int +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tstzspanset_bins( + ss_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tbox_as_hexwkb(box: 'const TBox *', variant: int) -> "Tuple[str, 'size_t *']": - box_converted = _ffi.cast('const TBox *', box) - variant_converted = _ffi.cast('uint8_t', variant) - size = _ffi.new('size_t *') +def tbox_as_hexwkb(box: "const TBox *", variant: int) -> "Tuple[str, 'size_t *']": + box_converted = _ffi.cast("const TBox *", box) + variant_converted = _ffi.cast("uint8_t", variant) + size = _ffi.new("size_t *") result = _lib.tbox_as_hexwkb(box_converted, variant_converted, size) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size[0] -def tbox_as_wkb(box: 'const TBox *', variant: int) -> bytes: - box_converted = _ffi.cast('const TBox *', box) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def tbox_as_wkb(box: "const TBox *", variant: int) -> bytes: + box_converted = _ffi.cast("const TBox *", box) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.tbox_as_wkb(box_converted, variant_converted, size_out) _check_error() - result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) return result_converted -def tbox_from_hexwkb(hexwkb: str) -> 'TBox *': - hexwkb_converted = hexwkb.encode('utf-8') +def tbox_from_hexwkb(hexwkb: str) -> "TBox *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.tbox_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_from_wkb(wkb: bytes) -> 'TBOX *': - wkb_converted = _ffi.new('uint8_t []', wkb) +def tbox_from_wkb(wkb: bytes) -> "TBOX *": + wkb_converted = _ffi.new("uint8_t []", wkb) result = _lib.tbox_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def tbox_in(string: str) -> 'TBox *': - string_converted = string.encode('utf-8') +def tbox_in(string: str) -> "TBox *": + string_converted = string.encode("utf-8") result = _lib.tbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_out(box: 'const TBox *', maxdd: int) -> str: - box_converted = _ffi.cast('const TBox *', box) +def tbox_out(box: "const TBox *", maxdd: int) -> str: + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_out(box_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def float_timestamptz_to_tbox(d: float, t: int) -> 'TBox *': - t_converted = _ffi.cast('TimestampTz', t) +def float_timestamptz_to_tbox(d: float, t: int) -> "TBox *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.float_timestamptz_to_tbox(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def float_tstzspan_to_tbox(d: float, s: 'const Span *') -> 'TBox *': - s_converted = _ffi.cast('const Span *', s) +def float_tstzspan_to_tbox(d: float, s: "const Span *") -> "TBox *": + s_converted = _ffi.cast("const Span *", s) result = _lib.float_tstzspan_to_tbox(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def int_timestamptz_to_tbox(i: int, t: int) -> 'TBox *': - t_converted = _ffi.cast('TimestampTz', t) +def int_timestamptz_to_tbox(i: int, t: int) -> "TBox *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.int_timestamptz_to_tbox(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def int_tstzspan_to_tbox(i: int, s: 'const Span *') -> 'TBox *': - s_converted = _ffi.cast('const Span *', s) +def int_tstzspan_to_tbox(i: int, s: "const Span *") -> "TBox *": + s_converted = _ffi.cast("const Span *", s) result = _lib.int_tstzspan_to_tbox(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_tstzspan_to_tbox(span: 'const Span *', s: 'const Span *') -> 'TBox *': - span_converted = _ffi.cast('const Span *', span) - s_converted = _ffi.cast('const Span *', s) +def numspan_tstzspan_to_tbox(span: "const Span *", s: "const Span *") -> "TBox *": + span_converted = _ffi.cast("const Span *", span) + s_converted = _ffi.cast("const Span *", s) result = _lib.numspan_tstzspan_to_tbox(span_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_timestamptz_to_tbox(span: 'const Span *', t: int) -> 'TBox *': - span_converted = _ffi.cast('const Span *', span) - t_converted = _ffi.cast('TimestampTz', t) +def numspan_timestamptz_to_tbox(span: "const Span *", t: int) -> "TBox *": + span_converted = _ffi.cast("const Span *", span) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.numspan_timestamptz_to_tbox(span_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_copy(box: 'const TBox *') -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_copy(box: "const TBox *") -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_copy(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_make(s: "Optional['const Span *']", p: "Optional['const Span *']") -> 'TBox *': - s_converted = _ffi.cast('const Span *', s) if s is not None else _ffi.NULL - p_converted = _ffi.cast('const Span *', p) if p is not None else _ffi.NULL +def tbox_make(s: "Optional['const Span *']", p: "Optional['const Span *']") -> "TBox *": + s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL + p_converted = _ffi.cast("const Span *", p) if p is not None else _ffi.NULL result = _lib.tbox_make(s_converted, p_converted) _check_error() return result if result != _ffi.NULL else None -def float_to_tbox(d: float) -> 'TBox *': +def float_to_tbox(d: float) -> "TBox *": result = _lib.float_to_tbox(d) _check_error() return result if result != _ffi.NULL else None -def int_to_tbox(i: int) -> 'TBox *': +def int_to_tbox(i: int) -> "TBox *": result = _lib.int_to_tbox(i) _check_error() return result if result != _ffi.NULL else None -def set_to_tbox(s: 'const Set *') -> 'TBox *': - s_converted = _ffi.cast('const Set *', s) +def set_to_tbox(s: "const Set *") -> "TBox *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_tbox(s: 'const Span *') -> 'TBox *': - s_converted = _ffi.cast('const Span *', s) +def span_to_tbox(s: "const Span *") -> "TBox *": + s_converted = _ffi.cast("const Span *", s) result = _lib.span_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_to_tbox(ss: 'const SpanSet *') -> 'TBox *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_to_tbox(ss: "const SpanSet *") -> "TBox *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_to_tbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_intspan(box: 'const TBox *') -> 'Span *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_to_intspan(box: "const TBox *") -> "Span *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_intspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_floatspan(box: 'const TBox *') -> 'Span *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_to_floatspan(box: "const TBox *") -> "Span *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_floatspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_tstzspan(box: 'const TBox *') -> 'Span *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_to_tstzspan(box: "const TBox *") -> "Span *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_tbox(t: int) -> 'TBox *': - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_to_tbox(t: int) -> "TBox *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_tbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hast(box: 'const TBox *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) +def tbox_hast(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hasx(box: 'const TBox *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) +def tbox_hasx(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_tmax(box: 'const TBox *') -> int: - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('TimestampTz *') +def tbox_tmax(box: "const TBox *") -> int: + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("TimestampTz *") result = _lib.tbox_tmax(box_converted, out_result) _check_error() if result: @@ -5420,9 +5596,9 @@ def tbox_tmax(box: 'const TBox *') -> int: return None -def tbox_tmax_inc(box: 'const TBox *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('bool *') +def tbox_tmax_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") result = _lib.tbox_tmax_inc(box_converted, out_result) _check_error() if result: @@ -5430,9 +5606,9 @@ def tbox_tmax_inc(box: 'const TBox *') -> 'bool': return None -def tbox_tmin(box: 'const TBox *') -> int: - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('TimestampTz *') +def tbox_tmin(box: "const TBox *") -> int: + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("TimestampTz *") result = _lib.tbox_tmin(box_converted, out_result) _check_error() if result: @@ -5440,9 +5616,9 @@ def tbox_tmin(box: 'const TBox *') -> int: return None -def tbox_tmin_inc(box: 'const TBox *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('bool *') +def tbox_tmin_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") result = _lib.tbox_tmin_inc(box_converted, out_result) _check_error() if result: @@ -5450,9 +5626,9 @@ def tbox_tmin_inc(box: 'const TBox *') -> 'bool': return None -def tbox_xmax(box: 'const TBox *') -> 'double': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('double *') +def tbox_xmax(box: "const TBox *") -> "double": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("double *") result = _lib.tbox_xmax(box_converted, out_result) _check_error() if result: @@ -5460,9 +5636,9 @@ def tbox_xmax(box: 'const TBox *') -> 'double': return None -def tbox_xmax_inc(box: 'const TBox *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('bool *') +def tbox_xmax_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") result = _lib.tbox_xmax_inc(box_converted, out_result) _check_error() if result: @@ -5470,9 +5646,9 @@ def tbox_xmax_inc(box: 'const TBox *') -> 'bool': return None -def tbox_xmin(box: 'const TBox *') -> 'double': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('double *') +def tbox_xmin(box: "const TBox *") -> "double": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("double *") result = _lib.tbox_xmin(box_converted, out_result) _check_error() if result: @@ -5480,9 +5656,9 @@ def tbox_xmin(box: 'const TBox *') -> 'double': return None -def tbox_xmin_inc(box: 'const TBox *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('bool *') +def tbox_xmin_inc(box: "const TBox *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("bool *") result = _lib.tbox_xmin_inc(box_converted, out_result) _check_error() if result: @@ -5490,9 +5666,9 @@ def tbox_xmin_inc(box: 'const TBox *') -> 'bool': return None -def tboxfloat_xmax(box: 'const TBox *') -> 'double': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('double *') +def tboxfloat_xmax(box: "const TBox *") -> "double": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("double *") result = _lib.tboxfloat_xmax(box_converted, out_result) _check_error() if result: @@ -5500,9 +5676,9 @@ def tboxfloat_xmax(box: 'const TBox *') -> 'double': return None -def tboxfloat_xmin(box: 'const TBox *') -> 'double': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('double *') +def tboxfloat_xmin(box: "const TBox *") -> "double": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("double *") result = _lib.tboxfloat_xmin(box_converted, out_result) _check_error() if result: @@ -5510,9 +5686,9 @@ def tboxfloat_xmin(box: 'const TBox *') -> 'double': return None -def tboxint_xmax(box: 'const TBox *') -> 'int': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('int *') +def tboxint_xmax(box: "const TBox *") -> "int": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("int *") result = _lib.tboxint_xmax(box_converted, out_result) _check_error() if result: @@ -5520,9 +5696,9 @@ def tboxint_xmax(box: 'const TBox *') -> 'int': return None -def tboxint_xmin(box: 'const TBox *') -> 'int': - box_converted = _ffi.cast('const TBox *', box) - out_result = _ffi.new('int *') +def tboxint_xmin(box: "const TBox *") -> "int": + box_converted = _ffi.cast("const TBox *", box) + out_result = _ffi.new("int *") result = _lib.tboxint_xmin(box_converted, out_result) _check_error() if result: @@ -5530,605 +5706,667 @@ def tboxint_xmin(box: 'const TBox *') -> 'int': return None -def tbox_expand_float(box: 'const TBox *', d: float) -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_expand_float(box: "const TBox *", d: float) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_expand_float(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_int(box: 'const TBox *', i: int) -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_expand_int(box: "const TBox *", i: int) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_expand_int(box_converted, i) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_time(box: 'const TBox *', interv: 'const Interval *') -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) - interv_converted = _ffi.cast('const Interval *', interv) +def tbox_expand_time(box: "const TBox *", interv: "const Interval *") -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tbox_expand_time(box_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_round(box: 'const TBox *', maxdd: int) -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_round(box: "const TBox *", maxdd: int) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_round(box_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def tbox_shift_scale_float(box: 'const TBox *', shift: float, width: float, hasshift: bool, haswidth: bool) -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) - result = _lib.tbox_shift_scale_float(box_converted, shift, width, hasshift, haswidth) +def tbox_shift_scale_float( + box: "const TBox *", shift: float, width: float, hasshift: bool, haswidth: bool +) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + result = _lib.tbox_shift_scale_float( + box_converted, shift, width, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def tbox_shift_scale_int(box: 'const TBox *', shift: int, width: int, hasshift: bool, haswidth: bool) -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) +def tbox_shift_scale_int( + box: "const TBox *", shift: int, width: int, hasshift: bool, haswidth: bool +) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_shift_scale_int(box_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def tbox_shift_scale_time(box: 'const TBox *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) - shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL - result = _lib.tbox_shift_scale_time(box_converted, shift_converted, duration_converted) +def tbox_shift_scale_time( + box: "const TBox *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) + result = _lib.tbox_shift_scale_time( + box_converted, shift_converted, duration_converted + ) _check_error() return result if result != _ffi.NULL else None -def union_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *', strict: bool) -> 'TBox *': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def union_tbox_tbox( + box1: "const TBox *", box2: "const TBox *", strict: bool +) -> "TBox *": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.union_tbox_tbox(box1_converted, box2_converted, strict) _check_error() return result if result != _ffi.NULL else None -def intersection_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'TBox *': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def intersection_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.intersection_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def adjacent_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.adjacent_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def contained_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.contained_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def contains_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.contains_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def overlaps_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overlaps_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def same_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def same_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.same_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def after_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.after_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def before_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.before_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def left_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def left_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.left_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def overafter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overafter_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def overbefore_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overbefore_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def overleft_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overleft_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def overright_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overright_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def right_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def right_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.right_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_cmp(box1: 'const TBox *', box2: 'const TBox *') -> 'int': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_cmp(box1: "const TBox *", box2: "const TBox *") -> "int": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_cmp(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_eq(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_eq(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_eq(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_ge(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_ge(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_ge(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_gt(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_gt(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_gt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_le(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_le(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_le(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_lt(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_lt(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_lt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_ne(box1: 'const TBox *', box2: 'const TBox *') -> 'bool': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def tbox_ne(box1: "const TBox *", box2: "const TBox *") -> "bool": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_ne(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tbool_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tbool_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tbool_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tbool_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_out(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_out(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_out(temp_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_as_hexwkb(temp: 'const Temporal *', variant: int) -> "Tuple[str, 'size_t *']": - temp_converted = _ffi.cast('const Temporal *', temp) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def temporal_as_hexwkb( + temp: "const Temporal *", variant: int +) -> "Tuple[str, 'size_t *']": + temp_converted = _ffi.cast("const Temporal *", temp) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.temporal_as_hexwkb(temp_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size_out[0] -def temporal_as_mfjson(temp: 'const Temporal *', with_bbox: bool, flags: int, precision: int, srs: "Optional[str]") -> str: - temp_converted = _ffi.cast('const Temporal *', temp) - srs_converted = srs.encode('utf-8') if srs is not None else _ffi.NULL - result = _lib.temporal_as_mfjson(temp_converted, with_bbox, flags, precision, srs_converted) +def temporal_as_mfjson( + temp: "const Temporal *", + with_bbox: bool, + flags: int, + precision: int, + srs: "Optional[str]", +) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) + srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL + result = _lib.temporal_as_mfjson( + temp_converted, with_bbox, flags, precision, srs_converted + ) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_as_wkb(temp: 'const Temporal *', variant: int) -> bytes: - temp_converted = _ffi.cast('const Temporal *', temp) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def temporal_as_wkb(temp: "const Temporal *", variant: int) -> bytes: + temp_converted = _ffi.cast("const Temporal *", temp) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.temporal_as_wkb(temp_converted, variant_converted, size_out) _check_error() - result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) return result_converted -def temporal_from_hexwkb(hexwkb: str) -> 'Temporal *': - hexwkb_converted = hexwkb.encode('utf-8') +def temporal_from_hexwkb(hexwkb: str) -> "Temporal *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.temporal_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_wkb(wkb: bytes) -> 'Temporal *': - wkb_converted = _ffi.new('uint8_t []', wkb) +def temporal_from_wkb(wkb: bytes) -> "Temporal *": + wkb_converted = _ffi.new("uint8_t []", wkb) result = _lib.temporal_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def tfloat_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tfloat_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tfloat_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tfloat_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tfloat_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_out(temp: 'const Temporal *', maxdd: int) -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_out(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_out(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tint_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tint_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tint_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_out(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_out(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_out(temp_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def ttext_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def ttext_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.ttext_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def ttext_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.ttext_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_out(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_out(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_out(temp_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tbool_from_base_temp(b: bool, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_from_base_temp(b: bool, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_from_base_temp(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tboolinst_make(b: bool, t: int) -> 'TInstant *': - t_converted = _ffi.cast('TimestampTz', t) +def tboolinst_make(b: bool, t: int) -> "TInstant *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tboolinst_make(b, t_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzset(b: bool, s: 'const Set *') -> 'TSequence *': - s_converted = _ffi.cast('const Set *', s) +def tboolseq_from_base_tstzset(b: bool, s: "const Set *") -> "TSequence *": + s_converted = _ffi.cast("const Set *", s) result = _lib.tboolseq_from_base_tstzset(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzspan(b: bool, s: 'const Span *') -> 'TSequence *': - s_converted = _ffi.cast('const Span *', s) +def tboolseq_from_base_tstzspan(b: bool, s: "const Span *") -> "TSequence *": + s_converted = _ffi.cast("const Span *", s) result = _lib.tboolseq_from_base_tstzspan(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_from_base_tstzspanset(b: bool, ss: 'const SpanSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tboolseqset_from_base_tstzspanset( + b: bool, ss: "const SpanSet *" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tboolseqset_from_base_tstzspanset(b, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_copy(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_copy(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_copy(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_from_base_temp(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_from_base_temp(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_from_base_temp(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_make(d: float, t: int) -> 'TInstant *': - t_converted = _ffi.cast('TimestampTz', t) +def tfloatinst_make(d: float, t: int) -> "TInstant *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tfloatinst_make(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzset(d: float, s: 'const Set *') -> 'TSequence *': - s_converted = _ffi.cast('const Set *', s) +def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": + s_converted = _ffi.cast("const Set *", s) result = _lib.tfloatseq_from_base_tstzset(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzspan(d: float, s: 'const Span *', interp: 'interpType') -> 'TSequence *': - s_converted = _ffi.cast('const Span *', s) - interp_converted = _ffi.cast('interpType', interp) +def tfloatseq_from_base_tstzspan( + d: float, s: "const Span *", interp: "interpType" +) -> "TSequence *": + s_converted = _ffi.cast("const Span *", s) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_from_base_tstzspanset(d: float, ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - interp_converted = _ffi.cast('interpType', interp) +def tfloatseqset_from_base_tstzspanset( + d: float, ss: "const SpanSet *", interp: "interpType" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_from_base_temp(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_from_base_temp(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_from_base_temp(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintinst_make(i: int, t: int) -> 'TInstant *': - t_converted = _ffi.cast('TimestampTz', t) +def tintinst_make(i: int, t: int) -> "TInstant *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tintinst_make(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzset(i: int, s: 'const Set *') -> 'TSequence *': - s_converted = _ffi.cast('const Set *', s) +def tintseq_from_base_tstzset(i: int, s: "const Set *") -> "TSequence *": + s_converted = _ffi.cast("const Set *", s) result = _lib.tintseq_from_base_tstzset(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzspan(i: int, s: 'const Span *') -> 'TSequence *': - s_converted = _ffi.cast('const Span *', s) +def tintseq_from_base_tstzspan(i: int, s: "const Span *") -> "TSequence *": + s_converted = _ffi.cast("const Span *", s) result = _lib.tintseq_from_base_tstzspan(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_from_base_tstzspanset(i: int, ss: 'const SpanSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tintseqset_from_base_tstzspanset(i: int, ss: "const SpanSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tintseqset_from_base_tstzspanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_make(instants: 'const TInstant **', count: int, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': - instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tsequence_make(instants_converted, count, lower_inc, upper_inc, interp_converted, normalize) +def tsequence_make( + instants: "const TInstant **", + count: int, + lower_inc: bool, + upper_inc: bool, + interp: "interpType", + normalize: bool, +) -> "TSequence *": + instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequence_make( + instants_converted, count, lower_inc, upper_inc, interp_converted, normalize + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make(sequences: 'const TSequence **', count: int, normalize: bool) -> 'TSequenceSet *': - sequences_converted = [_ffi.cast('const TSequence *', x) for x in sequences] +def tsequenceset_make( + sequences: "const TSequence **", count: int, normalize: bool +) -> "TSequenceSet *": + sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequenceset_make(sequences_converted, count, normalize) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_gaps(instants: 'const TInstant **', interp: 'interpType', maxt: "Optional['const Interval *']", maxdist: float) -> 'TSequenceSet *': - instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] - interp_converted = _ffi.cast('interpType', interp) - maxt_converted = _ffi.cast('const Interval *', maxt) if maxt is not None else _ffi.NULL - result = _lib.tsequenceset_make_gaps(instants_converted, len(instants), interp_converted, maxt_converted, maxdist) +def tsequenceset_make_gaps( + instants: "const TInstant **", + interp: "interpType", + maxt: "Optional['const Interval *']", + maxdist: float, +) -> "TSequenceSet *": + instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] + interp_converted = _ffi.cast("interpType", interp) + maxt_converted = ( + _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL + ) + result = _lib.tsequenceset_make_gaps( + instants_converted, len(instants), interp_converted, maxt_converted, maxdist + ) _check_error() return result if result != _ffi.NULL else None -def ttext_from_base_temp(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def ttext_from_base_temp(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_from_base_temp(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttextinst_make(txt: str, t: int) -> 'TInstant *': +def ttextinst_make(txt: str, t: int) -> "TInstant *": txt_converted = cstring2text(txt) - t_converted = _ffi.cast('TimestampTz', t) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.ttextinst_make(txt_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzset(txt: str, s: 'const Set *') -> 'TSequence *': +def ttextseq_from_base_tstzset(txt: str, s: "const Set *") -> "TSequence *": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Set *', s) + s_converted = _ffi.cast("const Set *", s) result = _lib.ttextseq_from_base_tstzset(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzspan(txt: str, s: 'const Span *') -> 'TSequence *': +def ttextseq_from_base_tstzspan(txt: str, s: "const Span *") -> "TSequence *": txt_converted = cstring2text(txt) - s_converted = _ffi.cast('const Span *', s) + s_converted = _ffi.cast("const Span *", s) result = _lib.ttextseq_from_base_tstzspan(txt_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_from_base_tstzspanset(txt: str, ss: 'const SpanSet *') -> 'TSequenceSet *': +def ttextseqset_from_base_tstzspanset( + txt: str, ss: "const SpanSet *" +) -> "TSequenceSet *": txt_converted = cstring2text(txt) - ss_converted = _ffi.cast('const SpanSet *', ss) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.ttextseqset_from_base_tstzspanset(txt_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_to_tint(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_to_tint(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tstzspan(temp: 'const Temporal *') -> 'Span *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_to_tstzspan(temp: "const Temporal *") -> "Span *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tstzspan(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_to_tint(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_to_tint(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_to_tfloat(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_to_tfloat(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_to_tfloat(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_span(temp: 'const Temporal *') -> 'Span *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_to_span(temp: "const Temporal *") -> "Span *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_to_span(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_end_value(temp: 'const Temporal *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_end_value(temp: "const Temporal *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_start_value(temp: 'const Temporal *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_start_value(temp: "const Temporal *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('bool *') - result = _lib.tbool_value_at_timestamptz(temp_converted, t_converted, strict, out_result) +def tbool_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool +) -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("bool *") + result = _lib.tbool_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tbool_value_n(temp: 'const Temporal *', n: int) -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('bool *') +def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("bool *") result = _lib.tbool_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6136,192 +6374,194 @@ def tbool_value_n(temp: 'const Temporal *', n: int) -> 'bool': return None -def tbool_values(temp: 'const Temporal *') -> "Tuple['bool *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tbool_values(temp: "const Temporal *") -> "Tuple['bool *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tbool_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_duration(temp: 'const Temporal *', boundspan: bool) -> 'Interval *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_duration(temp: "const Temporal *", boundspan: bool) -> "Interval *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_duration(temp_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def temporal_end_instant(temp: 'const Temporal *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_end_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_sequence(temp: 'const Temporal *') -> 'TSequence *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_end_sequence(temp: "const Temporal *") -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_timestamptz(temp: 'const Temporal *') -> 'TimestampTz': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_end_timestamptz(temp: "const Temporal *") -> "TimestampTz": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_hash(temp: 'const Temporal *') -> 'uint32': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_hash(temp: "const Temporal *") -> "uint32": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_hash(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_instant_n(temp: 'const Temporal *', n: int) -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_instant_n(temp: "const Temporal *", n: int) -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_instant_n(temp_converted, n) _check_error() return result if result != _ffi.NULL else None -def temporal_instants(temp: 'const Temporal *') -> "Tuple['TInstant **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_instants(temp: "const Temporal *") -> "Tuple['TInstant **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_instants(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_interp(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_interp(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_interp(temp_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_lower_inc(temp: 'const Temporal *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_lower_inc(temp: "const Temporal *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_lower_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_max_instant(temp: 'const Temporal *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_max_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_max_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_instant(temp: 'const Temporal *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_min_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_min_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_instants(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_num_instants(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_instants(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_sequences(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_num_sequences(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_sequences(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_timestamps(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_num_timestamps(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_timestamps(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_segments(temp: 'const Temporal *') -> "Tuple['TSequence **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_segments(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_segments(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_sequence_n(temp: 'const Temporal *', i: int) -> 'TSequence *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_sequence_n(temp: "const Temporal *", i: int) -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_sequence_n(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def temporal_sequences(temp: 'const Temporal *') -> "Tuple['TSequence **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_sequences(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_sequences(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_start_instant(temp: 'const Temporal *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_start_instant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_sequence(temp: 'const Temporal *') -> 'TSequence *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_start_sequence(temp: "const Temporal *") -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_timestamptz(temp: 'const Temporal *') -> 'TimestampTz': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_start_timestamptz(temp: "const Temporal *") -> "TimestampTz": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_stops(temp: 'const Temporal *', maxdist: float, minduration: 'const Interval *') -> 'TSequenceSet *': - temp_converted = _ffi.cast('const Temporal *', temp) - minduration_converted = _ffi.cast('const Interval *', minduration) +def temporal_stops( + temp: "const Temporal *", maxdist: float, minduration: "const Interval *" +) -> "TSequenceSet *": + temp_converted = _ffi.cast("const Temporal *", temp) + minduration_converted = _ffi.cast("const Interval *", minduration) result = _lib.temporal_stops(temp_converted, maxdist, minduration_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_subtype(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_subtype(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_subtype(temp_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_time(temp: 'const Temporal *') -> 'SpanSet *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_time(temp: "const Temporal *") -> "SpanSet *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_time(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_timestamps(temp: 'const Temporal *') -> "Tuple['TimestampTz *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_timestamps(temp: "const Temporal *") -> "Tuple['TimestampTz *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_timestamps(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_timestamptz_n(temp: 'const Temporal *', n: int) -> int: - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('TimestampTz *') +def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("TimestampTz *") result = _lib.temporal_timestamptz_n(temp_converted, n, out_result) _check_error() if result: @@ -6329,55 +6569,59 @@ def temporal_timestamptz_n(temp: 'const Temporal *', n: int) -> int: return None -def temporal_upper_inc(temp: 'const Temporal *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_upper_inc(temp: "const Temporal *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_upper_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_end_value(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_end_value(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_max_value(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_max_value(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_min_value(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_min_value(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_start_value(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_start_value(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('double *') - result = _lib.tfloat_value_at_timestamptz(temp_converted, t_converted, strict, out_result) +def tfloat_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool +) -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("double *") + result = _lib.tfloat_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tfloat_value_n(temp: 'const Temporal *', n: int) -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('double *') +def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("double *") result = _lib.tfloat_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6385,56 +6629,58 @@ def tfloat_value_n(temp: 'const Temporal *', n: int) -> 'double': return None -def tfloat_values(temp: 'const Temporal *') -> "Tuple['double *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tfloat_values(temp: "const Temporal *") -> "Tuple['double *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tfloat_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_end_value(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_end_value(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_max_value(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_max_value(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_min_value(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_min_value(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_start_value(temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_start_value(temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('int *') - result = _lib.tint_value_at_timestamptz(temp_converted, t_converted, strict, out_result) +def tint_value_at_timestamptz(temp: "const Temporal *", t: int, strict: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("int *") + result = _lib.tint_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tint_value_n(temp: 'const Temporal *', n: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('int *') +def tint_value_n(temp: "const Temporal *", n: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("int *") result = _lib.tint_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6442,81 +6688,85 @@ def tint_value_n(temp: 'const Temporal *', n: int) -> 'int': return None -def tint_values(temp: 'const Temporal *') -> "Tuple['int *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tint_values(temp: "const Temporal *") -> "Tuple['int *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tint_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_integral(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_integral(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_integral(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_twavg(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_twavg(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_twavg(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_valuespans(temp: 'const Temporal *') -> 'SpanSet *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_valuespans(temp: "const Temporal *") -> "SpanSet *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_valuespans(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_end_value(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_end_value(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_end_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_max_value(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_max_value(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_max_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_min_value(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_min_value(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_min_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_start_value(temp: 'const Temporal *') -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_start_value(temp: "const Temporal *") -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_start_value(temp_converted) _check_error() result = text2cstring(result) return result if result != _ffi.NULL else None -def ttext_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'text **': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('text **') - result = _lib.ttext_value_at_timestamptz(temp_converted, t_converted, strict, out_result) +def ttext_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool +) -> "text **": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("text **") + result = _lib.ttext_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def ttext_value_n(temp: 'const Temporal *', n: int) -> 'text **': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('text **') +def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("text **") result = _lib.ttext_value_n(temp_converted, n, out_result) _check_error() if result: @@ -6524,3770 +6774,4140 @@ def ttext_value_n(temp: 'const Temporal *', n: int) -> 'text **': return None -def ttext_values(temp: 'const Temporal *') -> "Tuple['text **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def ttext_values(temp: "const Temporal *") -> "Tuple['text **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.ttext_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def float_degrees(value: float, normalize: bool) -> 'double': +def float_degrees(value: float, normalize: bool) -> "double": result = _lib.float_degrees(value, normalize) _check_error() return result if result != _ffi.NULL else None -def temparr_round(temp: 'const Temporal **', count: int, maxdd: int) -> 'Temporal **': - temp_converted = [_ffi.cast('const Temporal *', x) for x in temp] +def temparr_round(temp: "const Temporal **", count: int, maxdd: int) -> "Temporal **": + temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] result = _lib.temparr_round(temp_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_round(temp: 'const Temporal *', maxdd: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_round(temp_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_scale_time(temp: 'const Temporal *', duration: 'const Interval *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) +def temporal_scale_time( + temp: "const Temporal *", duration: "const Interval *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) result = _lib.temporal_scale_time(temp_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_set_interp(temp: 'const Temporal *', interp: 'interpType') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - interp_converted = _ffi.cast('interpType', interp) +def temporal_set_interp(temp: "const Temporal *", interp: "interpType") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + interp_converted = _ffi.cast("interpType", interp) result = _lib.temporal_set_interp(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_shift_scale_time(temp: 'const Temporal *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL - result = _lib.temporal_shift_scale_time(temp_converted, shift_converted, duration_converted) +def temporal_shift_scale_time( + temp: "const Temporal *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) + result = _lib.temporal_shift_scale_time( + temp_converted, shift_converted, duration_converted + ) _check_error() return result if result != _ffi.NULL else None -def temporal_shift_time(temp: 'const Temporal *', shift: 'const Interval *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - shift_converted = _ffi.cast('const Interval *', shift) +def temporal_shift_time( + temp: "const Temporal *", shift: "const Interval *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + shift_converted = _ffi.cast("const Interval *", shift) result = _lib.temporal_shift_time(temp_converted, shift_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tinstant(temp: 'const Temporal *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tinstant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tsequence(temp: 'const Temporal *', interp: 'interpType') -> 'TSequence *': - temp_converted = _ffi.cast('const Temporal *', temp) - interp_converted = _ffi.cast('interpType', interp) +def temporal_to_tsequence( + temp: "const Temporal *", interp: "interpType" +) -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) + interp_converted = _ffi.cast("interpType", interp) result = _lib.temporal_to_tsequence(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tsequenceset(temp: 'const Temporal *', interp: 'interpType') -> 'TSequenceSet *': - temp_converted = _ffi.cast('const Temporal *', temp) - interp_converted = _ffi.cast('interpType', interp) +def temporal_to_tsequenceset( + temp: "const Temporal *", interp: "interpType" +) -> "TSequenceSet *": + temp_converted = _ffi.cast("const Temporal *", temp) + interp_converted = _ffi.cast("interpType", interp) result = _lib.temporal_to_tsequenceset(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ceil(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_ceil(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_ceil(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_degrees(temp: 'const Temporal *', normalize: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_degrees(temp: "const Temporal *", normalize: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_degrees(temp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def tfloat_floor(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_floor(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_floor(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_radians(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_radians(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_radians(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_scale_value(temp: 'const Temporal *', width: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_scale_value(temp: "const Temporal *", width: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_scale_value(temp_converted, width) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_scale_value(temp: 'const Temporal *', shift: float, width: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_shift_scale_value( + temp: "const Temporal *", shift: float, width: float +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_value(temp: 'const Temporal *', shift: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_shift_value(temp: "const Temporal *", shift: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def tint_scale_value(temp: 'const Temporal *', width: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_scale_value(temp: "const Temporal *", width: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_scale_value(temp_converted, width) _check_error() return result if result != _ffi.NULL else None -def tint_shift_scale_value(temp: 'const Temporal *', shift: int, width: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_shift_scale_value( + temp: "const Temporal *", shift: int, width: int +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tint_shift_value(temp: 'const Temporal *', shift: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def temporal_append_tinstant(temp: 'Temporal *', inst: 'const TInstant *', interp: 'interpType', maxdist: float, maxt: "Optional['const Interval *']", expand: bool) -> 'Temporal *': - temp_converted = _ffi.cast('Temporal *', temp) - inst_converted = _ffi.cast('const TInstant *', inst) - interp_converted = _ffi.cast('interpType', interp) - maxt_converted = _ffi.cast('const Interval *', maxt) if maxt is not None else _ffi.NULL - result = _lib.temporal_append_tinstant(temp_converted, inst_converted, interp_converted, maxdist, maxt_converted, expand) +def temporal_append_tinstant( + temp: "Temporal *", + inst: "const TInstant *", + interp: "interpType", + maxdist: float, + maxt: "Optional['const Interval *']", + expand: bool, +) -> "Temporal *": + temp_converted = _ffi.cast("Temporal *", temp) + inst_converted = _ffi.cast("const TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) + maxt_converted = ( + _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL + ) + result = _lib.temporal_append_tinstant( + temp_converted, + inst_converted, + interp_converted, + maxdist, + maxt_converted, + expand, + ) _check_error() return result if result != _ffi.NULL else None -def temporal_append_tsequence(temp: 'Temporal *', seq: 'const TSequence *', expand: bool) -> 'Temporal *': - temp_converted = _ffi.cast('Temporal *', temp) - seq_converted = _ffi.cast('const TSequence *', seq) +def temporal_append_tsequence( + temp: "Temporal *", seq: "const TSequence *", expand: bool +) -> "Temporal *": + temp_converted = _ffi.cast("Temporal *", temp) + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.temporal_append_tsequence(temp_converted, seq_converted, expand) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_timestamptz(temp: 'const Temporal *', t: int, connect: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) +def temporal_delete_timestamptz( + temp: "const Temporal *", t: int, connect: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_delete_timestamptz(temp_converted, t_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzset(temp: 'const Temporal *', s: 'const Set *', connect: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Set *', s) +def temporal_delete_tstzset( + temp: "const Temporal *", s: "const Set *", connect: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_delete_tstzset(temp_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzspan(temp: 'const Temporal *', s: 'const Span *', connect: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def temporal_delete_tstzspan( + temp: "const Temporal *", s: "const Span *", connect: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_delete_tstzspan(temp_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_delete_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *', connect: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def temporal_delete_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *", connect: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_delete_tstzspanset(temp_converted, ss_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_insert(temp1: 'const Temporal *', temp2: 'const Temporal *', connect: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_insert( + temp1: "const Temporal *", temp2: "const Temporal *", connect: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_insert(temp1_converted, temp2_converted, connect) _check_error() return result if result != _ffi.NULL else None -def temporal_merge(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_merge( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_merge(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_merge_array(temparr: 'const Temporal **', count: int) -> 'Temporal *': - temparr_converted = [_ffi.cast('const Temporal *', x) for x in temparr] +def temporal_merge_array(temparr: "const Temporal **", count: int) -> "Temporal *": + temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] result = _lib.temporal_merge_array(temparr_converted, count) _check_error() return result if result != _ffi.NULL else None -def temporal_update(temp1: 'const Temporal *', temp2: 'const Temporal *', connect: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_update( + temp1: "const Temporal *", temp2: "const Temporal *", connect: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_update(temp1_converted, temp2_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tbool_at_value(temp: 'const Temporal *', b: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_at_value(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_at_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tbool_minus_value(temp: 'const Temporal *', b: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_minus_value(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_minus_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def temporal_at_max(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_at_max(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_at_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_min(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_at_min(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_at_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_timestamptz(temp: 'const Temporal *', t: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) +def temporal_at_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_at_timestamptz(temp_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Set *', s) +def temporal_at_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_at_tstzset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def temporal_at_tstzspan(temp: "const Temporal *", s: "const Span *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_at_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def temporal_at_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_at_tstzspanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_values(temp: 'const Temporal *', set: 'const Set *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - set_converted = _ffi.cast('const Set *', set) +def temporal_at_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_at_values(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_max(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_minus_max(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_minus_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_min(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_minus_min(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_minus_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_timestamptz(temp: 'const Temporal *', t: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) +def temporal_minus_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_minus_timestamptz(temp_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Set *', s) +def temporal_minus_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_minus_tstzset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def temporal_minus_tstzspan( + temp: "const Temporal *", s: "const Span *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_minus_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def temporal_minus_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_minus_tstzspanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_values(temp: 'const Temporal *', set: 'const Set *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - set_converted = _ffi.cast('const Set *', set) +def temporal_minus_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_minus_values(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_at_value(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_at_value(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_at_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tfloat_minus_value(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_minus_value(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_minus_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tint_at_value(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_at_value(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_at_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tint_minus_value(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_minus_value(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_minus_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_span(temp: 'const Temporal *', span: 'const Span *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - span_converted = _ffi.cast('const Span *', span) +def tnumber_at_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_at_span(temp_converted, span_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_spanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tnumber_at_spanset(temp: "const Temporal *", ss: "const SpanSet *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_at_spanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def tnumber_at_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.tnumber_at_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_span(temp: 'const Temporal *', span: 'const Span *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - span_converted = _ffi.cast('const Span *', span) +def tnumber_minus_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_minus_span(temp_converted, span_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_spanset(temp: 'const Temporal *', ss: 'const SpanSet *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tnumber_minus_spanset( + temp: "const Temporal *", ss: "const SpanSet *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_minus_spanset(temp_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_minus_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def tnumber_minus_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.tnumber_minus_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_at_value(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_at_value(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ttext_at_value(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_minus_value(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_minus_value(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ttext_minus_value(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_cmp(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_cmp(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_cmp(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_eq(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_eq(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_eq(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_ge(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_ge(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_ge(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_gt(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_gt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_gt(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_le(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_le(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_le(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_lt(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_lt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_lt(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_ne(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_ne(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_ne(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def always_eq_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_eq_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_eq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def always_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_eq_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_eq_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_eq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ge_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_ge_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def always_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ge_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ge_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ge_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_ge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_gt_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_gt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_gt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def always_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_gt_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_gt_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_gt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_gt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_le_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_le_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_le_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def always_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_le_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_le_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_le_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_le_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_lt_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_lt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_lt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def always_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_lt_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_lt_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_lt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_lt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def always_ne_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_ne_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def always_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ne_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ne_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_ne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def ever_eq_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_eq_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_eq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def ever_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_eq_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_eq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ge_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_ge_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def ever_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ge_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ge_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_ge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_gt_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_gt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_gt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def ever_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_gt_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_gt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_gt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_le_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_le_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_le_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def ever_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_le_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_le_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_le_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_le_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_lt_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_lt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_lt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def ever_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_lt_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_lt_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_lt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_bool_tbool(b: bool, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_float_tfloat(d: float, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_int_tint(i: int, temp: 'const Temporal *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_int_tint(i: int, temp: "const Temporal *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tbool_bool(temp: 'const Temporal *', b: bool) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def ever_ne_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_ne_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_text_ttext(txt: str, temp: 'const Temporal *') -> 'int': +def ever_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tfloat_float(temp: 'const Temporal *', d: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ne_ttext_text(temp: 'const Temporal *', txt: str) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_ne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def teq_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def teq_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def teq_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.teq_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def teq_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def teq_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def teq_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def teq_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.teq_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tge_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tge_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tge_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tge_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tge_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tge_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def tge_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tge_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tge_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tge_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tge_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tge_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tge_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tgt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tgt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def tgt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tgt_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tgt_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tgt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tle_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tle_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tle_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tle_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tle_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tle_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def tle_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tle_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tle_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tle_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tle_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tle_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tle_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tlt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tlt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tlt_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tlt_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def tlt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tlt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tlt_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tlt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tlt_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tlt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tlt_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def tne_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_float_tfloat(d: float, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_int_tint(i: int, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tne_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tne_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tne_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tne_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def tne_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tne_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tne_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tne_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_spans(temp: 'const Temporal *') -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_spans(temp: "const Temporal *") -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_spans(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_split_each_n_spans(temp: 'const Temporal *', elem_count: int) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_split_each_n_spans( + temp: "const Temporal *", elem_count: int +) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_split_n_spans(temp: 'const Temporal *', span_count: int) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_split_n_spans( + temp: "const Temporal *", span_count: int +) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_split_n_spans(temp_converted, span_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_split_each_n_tboxes(temp: 'const Temporal *', elem_count: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tnumber_split_each_n_tboxes( + temp: "const Temporal *", elem_count: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_split_n_tboxes(temp: 'const Temporal *', box_count: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tnumber_split_n_tboxes( + temp: "const Temporal *", box_count: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_tboxes(temp: 'const Temporal *') -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tnumber_tboxes(temp: "const Temporal *") -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tnumber_tboxes(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def adjacent_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def adjacent_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def adjacent_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def adjacent_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adjacent_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def adjacent_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def adjacent_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def adjacent_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.adjacent_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def adjacent_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adjacent_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def adjacent_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def contained_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def contained_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def contained_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contained_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def contained_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def contained_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def contained_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.contained_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def contained_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contained_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def contained_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def contains_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def contains_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def contains_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.contains_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def contains_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contains_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def contains_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.contains_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def contains_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.contains_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def contains_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contains_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def contains_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def overlaps_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overlaps_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overlaps_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overlaps_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def overlaps_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.overlaps_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def overlaps_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.overlaps_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def overlaps_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.overlaps_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overlaps_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overlaps_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def overlaps_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def same_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def same_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def same_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.same_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def same_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def same_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.same_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def same_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.same_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def same_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.same_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def same_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def same_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.same_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def same_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def same_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def after_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.after_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def after_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.after_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def after_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def after_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.after_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def after_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.after_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def after_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def after_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.after_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def after_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.after_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def before_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.before_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def before_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.before_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def before_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def before_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.before_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def before_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.before_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def before_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def before_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.before_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def before_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def before_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.before_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def left_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.left_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def left_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.left_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def left_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.left_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def left_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.left_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def left_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def left_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.left_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overafter_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overafter_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def overafter_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overafter_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overafter_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def overafter_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.overafter_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overafter_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overafter_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def overafter_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overafter_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overbefore_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbefore_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_temporal_tstzspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def overbefore_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_temporal_tstzspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_temporal_temporal(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overbefore_temporal_temporal( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbefore_temporal_temporal(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def overbefore_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.overbefore_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overbefore_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbefore_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tstzspan_temporal(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def overbefore_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbefore_tstzspan_temporal(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def overleft_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overleft_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overleft_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overleft_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def overleft_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def overleft_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.overleft_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overleft_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overleft_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def overright_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overright_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overright_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overright_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def overright_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def overright_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.overright_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overright_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overright_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def right_numspan_tnumber(s: 'const Span *', temp: 'const Temporal *') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def right_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": + s_converted = _ffi.cast("const Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.right_numspan_tnumber(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def right_tbox_tnumber(box: 'const TBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const TBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def right_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const TBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.right_tbox_tnumber(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def right_tnumber_numspan(temp: 'const Temporal *', s: 'const Span *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def right_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.right_tnumber_numspan(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def right_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.right_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def right_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def right_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.right_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tand_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tand_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tand_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tand_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tand_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tand_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tand_tbool_tbool(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tand_tbool_tbool( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tand_tbool_tbool(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_when_true(temp: 'const Temporal *') -> 'SpanSet *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_when_true(temp: "const Temporal *") -> "SpanSet *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_when_true(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnot_tbool(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnot_tbool(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnot_tbool(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_bool_tbool(b: bool, temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tor_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tor_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_tbool_bool(temp: 'const Temporal *', b: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tor_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tor_tbool_bool(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tor_tbool_tbool(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tor_tbool_tbool( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tor_tbool_tbool(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def add_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def add_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def add_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def add_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def add_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def add_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def add_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': - tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) - tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) +def add_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.add_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def div_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def div_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def div_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def div_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def div_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def div_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def div_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': - tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) - tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) +def div_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.div_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def mult_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def mult_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def mult_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def mult_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def mult_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def mult_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def mult_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': - tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) - tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) +def mult_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.mult_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def sub_float_tfloat(d: float, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def sub_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_int_tint(i: int, tnumber: 'const Temporal *') -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def sub_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_tfloat_float(tnumber: 'const Temporal *', d: float) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def sub_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def sub_tint_int(tnumber: 'const Temporal *', i: int) -> 'Temporal *': - tnumber_converted = _ffi.cast('const Temporal *', tnumber) +def sub_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": + tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_tint_int(tnumber_converted, i) _check_error() return result if result != _ffi.NULL else None -def sub_tnumber_tnumber(tnumber1: 'const Temporal *', tnumber2: 'const Temporal *') -> 'Temporal *': - tnumber1_converted = _ffi.cast('const Temporal *', tnumber1) - tnumber2_converted = _ffi.cast('const Temporal *', tnumber2) +def sub_tnumber_tnumber( + tnumber1: "const Temporal *", tnumber2: "const Temporal *" +) -> "Temporal *": + tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) + tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.sub_tnumber_tnumber(tnumber1_converted, tnumber2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_derivative(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_derivative(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_derivative(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_exp(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_exp(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_exp(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ln(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_ln(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_ln(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_log10(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_log10(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_log10(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_abs(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_abs(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_abs(temp_converted) _check_error() return result if result != _ffi.NULL else None -def float_angular_difference(degrees1: float, degrees2: float) -> 'double': +def float_angular_difference(degrees1: float, degrees2: float) -> "double": result = _lib.float_angular_difference(degrees1, degrees2) _check_error() return result if result != _ffi.NULL else None -def tnumber_angular_difference(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_angular_difference(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_delta_value(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_delta_value(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_delta_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_text_ttext(txt: str, temp: 'const Temporal *') -> 'Temporal *': +def textcat_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": txt_converted = cstring2text(txt) - temp_converted = _ffi.cast('const Temporal *', temp) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.textcat_text_ttext(txt_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_ttext_text(temp: 'const Temporal *', txt: str) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def textcat_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.textcat_ttext_text(temp_converted, txt_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_ttext_ttext(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def textcat_ttext_ttext( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.textcat_ttext_ttext(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_initcap(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_initcap(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_initcap(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_upper(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_upper(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_upper(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_lower(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_lower(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_lower(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tfloat_float(temp: 'const Temporal *', d: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tdistance_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdistance_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tdistance_tint_int(temp: 'const Temporal *', i: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tdistance_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdistance_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tdistance_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tboxfloat_tboxfloat(box1: 'const TBox *', box2: 'const TBox *') -> 'double': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def nad_tboxfloat_tboxfloat(box1: "const TBox *", box2: "const TBox *") -> "double": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tboxfloat_tboxfloat(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tboxint_tboxint(box1: 'const TBox *', box2: 'const TBox *') -> 'int': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def nad_tboxint_tboxint(box1: "const TBox *", box2: "const TBox *") -> "int": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tboxint_tboxint(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_float(temp: 'const Temporal *', d: float) -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def nad_tfloat_float(temp: "const Temporal *", d: float) -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.nad_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_tfloat(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nad_tfloat_tfloat(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tfloat_tfloat(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def nad_tfloat_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tfloat_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tint_int(temp: 'const Temporal *', i: int) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) +def nad_tint_int(temp: "const Temporal *", i: int) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.nad_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def nad_tint_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def nad_tint_tbox(temp: "const Temporal *", box: "const TBox *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tint_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tint_tint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nad_tint_tint(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tint_tint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_tand_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_tand_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_tand_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_tor_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tbool_tor_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_tor_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_extent_transfn(s: 'Span *', temp: 'const Temporal *') -> 'Span *': - s_converted = _ffi.cast('Span *', s) - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_extent_transfn(s: "Span *", temp: "const Temporal *") -> "Span *": + s_converted = _ffi.cast("Span *", s) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_extent_transfn(s_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tagg_finalfn(state: 'SkipList *') -> 'Temporal *': - state_converted = _ffi.cast('SkipList *', state) +def temporal_tagg_finalfn(state: "SkipList *") -> "Temporal *": + state_converted = _ffi.cast("SkipList *", state) result = _lib.temporal_tagg_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tcount_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_tcount_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tcount_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_tmax_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_tmax_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_tmin_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_tmin_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_tsum_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tfloat_tsum_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tsum_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_wmax_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) +def tfloat_wmax_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tfloat_wmax_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_wmin_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) +def tfloat_wmin_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tfloat_wmin_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_wsum_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) +def tfloat_wsum_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tfloat_wsum_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_tcount_transfn(state_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tint_tmax_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_tmax_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_tmin_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_tmin_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_tsum_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tint_tsum_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tsum_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_wmax_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) +def tint_wmax_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tint_wmax_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tint_wmin_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) +def tint_wmin_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tint_wmin_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tint_wsum_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) +def tint_wsum_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tint_wsum_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_extent_transfn(box: "Optional['TBox *']", temp: 'const Temporal *') -> 'TBox *': - box_converted = _ffi.cast('TBox *', box) if box is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_extent_transfn( + box: "Optional['TBox *']", temp: "const Temporal *" +) -> "TBox *": + box_converted = _ffi.cast("TBox *", box) if box is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_extent_transfn(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_tavg_finalfn(state: 'SkipList *') -> 'Temporal *': - state_converted = _ffi.cast('SkipList *', state) +def tnumber_tavg_finalfn(state: "SkipList *") -> "Temporal *": + state_converted = _ffi.cast("SkipList *", state) result = _lib.tnumber_tavg_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_tavg_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def tnumber_tavg_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_tavg_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_wavg_transfn(state: 'SkipList *', temp: 'const Temporal *', interv: 'const Interval *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('const Temporal *', temp) - interv_converted = _ffi.cast('const Interval *', interv) - result = _lib.tnumber_wavg_transfn(state_converted, temp_converted, interv_converted) +def tnumber_wavg_transfn( + state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("const Temporal *", temp) + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.tnumber_wavg_transfn( + state_converted, temp_converted, interv_converted + ) _check_error() return result if result != _ffi.NULL else None -def tstzset_tcount_transfn(state: "Optional['SkipList *']", s: 'const Set *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - s_converted = _ffi.cast('const Set *', s) +def tstzset_tcount_transfn( + state: "Optional['SkipList *']", s: "const Set *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_tcount_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_tcount_transfn(state: "Optional['SkipList *']", s: 'const Span *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - s_converted = _ffi.cast('const Span *', s) +def tstzspan_tcount_transfn( + state: "Optional['SkipList *']", s: "const Span *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_tcount_transfn(state_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_tcount_transfn(state: "Optional['SkipList *']", ss: 'const SpanSet *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_tcount_transfn( + state: "Optional['SkipList *']", ss: "const SpanSet *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_tcount_transfn(state_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_tmax_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_tmax_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_tmax_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_tmin_transfn(state: "Optional['SkipList *']", temp: 'const Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) if state is not None else _ffi.NULL - temp_converted = _ffi.cast('const Temporal *', temp) +def ttext_tmin_transfn( + state: "Optional['SkipList *']", temp: "const Temporal *" +) -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_tmin_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_dp(temp: 'const Temporal *', eps_dist: float, synchronized: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_simplify_dp( + temp: "const Temporal *", eps_dist: float, synchronized: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_dp(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_max_dist(temp: 'const Temporal *', eps_dist: float, synchronized: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_simplify_max_dist( + temp: "const Temporal *", eps_dist: float, synchronized: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_max_dist(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_min_dist(temp: 'const Temporal *', dist: float) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_simplify_min_dist(temp: "const Temporal *", dist: float) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_min_dist(temp_converted, dist) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_min_tdelta(temp: 'const Temporal *', mint: 'const Interval *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - mint_converted = _ffi.cast('const Interval *', mint) +def temporal_simplify_min_tdelta( + temp: "const Temporal *", mint: "const Interval *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + mint_converted = _ffi.cast("const Interval *", mint) result = _lib.temporal_simplify_min_tdelta(temp_converted, mint_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tprecision(temp: 'const Temporal *', duration: 'const Interval *', origin: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - origin_converted = _ffi.cast('TimestampTz', origin) - result = _lib.temporal_tprecision(temp_converted, duration_converted, origin_converted) +def temporal_tprecision( + temp: "const Temporal *", duration: "const Interval *", origin: int +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + result = _lib.temporal_tprecision( + temp_converted, duration_converted, origin_converted + ) _check_error() return result if result != _ffi.NULL else None -def temporal_tsample(temp: 'const Temporal *', duration: 'const Interval *', origin: int, interp: 'interpType') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - origin_converted = _ffi.cast('TimestampTz', origin) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.temporal_tsample(temp_converted, duration_converted, origin_converted, interp_converted) +def temporal_tsample( + temp: "const Temporal *", + duration: "const Interval *", + origin: int, + interp: "interpType", +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.temporal_tsample( + temp_converted, duration_converted, origin_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def temporal_dyntimewarp_distance(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_dyntimewarp_distance( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_dyntimewarp_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_dyntimewarp_path(temp1: 'const Temporal *', temp2: 'const Temporal *') -> "Tuple['Match *', 'int']": - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) - count = _ffi.new('int *') +def temporal_dyntimewarp_path( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Tuple['Match *', 'int']": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + count = _ffi.new("int *") result = _lib.temporal_dyntimewarp_path(temp1_converted, temp2_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_frechet_distance(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_frechet_distance( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_frechet_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_frechet_path(temp1: 'const Temporal *', temp2: 'const Temporal *') -> "Tuple['Match *', 'int']": - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) - count = _ffi.new('int *') +def temporal_frechet_path( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Tuple['Match *', 'int']": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + count = _ffi.new("int *") result = _lib.temporal_frechet_path(temp1_converted, temp2_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_hausdorff_distance(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def temporal_hausdorff_distance( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_hausdorff_distance(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_time_bins(temp: 'const Temporal *', duration: 'const Interval *', origin: int) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - origin_converted = _ffi.cast('TimestampTz', origin) - count = _ffi.new('int *') - result = _lib.temporal_time_bins(temp_converted, duration_converted, origin_converted, count) +def temporal_time_bins( + temp: "const Temporal *", duration: "const Interval *", origin: int +) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + origin_converted = _ffi.cast("TimestampTz", origin) + count = _ffi.new("int *") + result = _lib.temporal_time_bins( + temp_converted, duration_converted, origin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_time_split(temp: 'const Temporal *', duration: 'const Interval *', torigin: int) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - time_bins = _ffi.new('TimestampTz **') - count = _ffi.new('int *') - result = _lib.temporal_time_split(temp_converted, duration_converted, torigin_converted, time_bins, count) +def temporal_time_split( + temp: "const Temporal *", duration: "const Interval *", torigin: int +) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + time_bins = _ffi.new("TimestampTz **") + count = _ffi.new("int *") + result = _lib.temporal_time_split( + temp_converted, duration_converted, torigin_converted, time_bins, count + ) _check_error() return result if result != _ffi.NULL else None, time_bins[0], count[0] -def tfloat_time_boxes(temp: 'const Temporal *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tfloat_time_boxes(temp_converted, duration_converted, torigin_converted, count) +def tfloat_time_boxes( + temp: "const Temporal *", duration: "const Interval *", torigin: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tfloat_time_boxes( + temp_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_bins(temp: 'const Temporal *', vsize: float, vorigin: float) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tfloat_value_bins( + temp: "const Temporal *", vsize: float, vorigin: float +) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tfloat_value_bins(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_boxes(temp: 'const Temporal *', vsize: float, vorigin: float) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tfloat_value_boxes( + temp: "const Temporal *", vsize: float, vorigin: float +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tfloat_value_boxes(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_split(temp: 'const Temporal *', size: float, origin: float, bins: 'double **') -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - bins_converted = [_ffi.cast('double *', x) for x in bins] - count = _ffi.new('int *') - result = _lib.tfloat_value_split(temp_converted, size, origin, bins_converted, count) +def tfloat_value_split( + temp: "const Temporal *", size: float, origin: float, bins: "double **" +) -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + bins_converted = [_ffi.cast("double *", x) for x in bins] + count = _ffi.new("int *") + result = _lib.tfloat_value_split( + temp_converted, size, origin, bins_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_time_boxes(temp: 'const Temporal *', vsize: float, duration: 'const Interval *', vorigin: float, torigin: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tfloat_value_time_boxes(temp_converted, vsize, duration_converted, vorigin, torigin_converted, count) +def tfloat_value_time_boxes( + temp: "const Temporal *", + vsize: float, + duration: "const Interval *", + vorigin: float, + torigin: int, +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tfloat_value_time_boxes( + temp_converted, vsize, duration_converted, vorigin, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloat_value_time_split(temp: 'const Temporal *', vsize: float, duration: 'const Interval *', vorigin: float, torigin: int) -> "Tuple['Temporal **', 'double *', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - value_bins = _ffi.new('double **') - time_bins = _ffi.new('TimestampTz **') - count = _ffi.new('int *') - result = _lib.tfloat_value_time_split(temp_converted, vsize, duration_converted, vorigin, torigin_converted, value_bins, time_bins, count) +def tfloat_value_time_split( + temp: "const Temporal *", + vsize: float, + duration: "const Interval *", + vorigin: float, + torigin: int, +) -> "Tuple['Temporal **', 'double *', 'TimestampTz *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + value_bins = _ffi.new("double **") + time_bins = _ffi.new("TimestampTz **") + count = _ffi.new("int *") + result = _lib.tfloat_value_time_split( + temp_converted, + vsize, + duration_converted, + vorigin, + torigin_converted, + value_bins, + time_bins, + count, + ) _check_error() - return result if result != _ffi.NULL else None, value_bins[0], time_bins[0], count[0] + return ( + result if result != _ffi.NULL else None, + value_bins[0], + time_bins[0], + count[0], + ) -def tfloatbox_time_tiles(box: 'const TBox *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast('const TBox *', box) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tfloatbox_time_tiles(box_converted, duration_converted, torigin_converted, count) +def tfloatbox_time_tiles( + box: "const TBox *", duration: "const Interval *", torigin: int +) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast("const TBox *", box) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tfloatbox_time_tiles( + box_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloatbox_value_tiles(box: 'const TBox *', vsize: float, vorigin: float) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast('const TBox *', box) - count = _ffi.new('int *') +def tfloatbox_value_tiles( + box: "const TBox *", vsize: float, vorigin: float +) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast("const TBox *", box) + count = _ffi.new("int *") result = _lib.tfloatbox_value_tiles(box_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tfloatbox_value_time_tiles(box: 'const TBox *', vsize: float, duration: 'const Interval *', vorigin: float, torigin: "Optional[int]") -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast('const TBox *', box) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) if torigin is not None else _ffi.NULL - count = _ffi.new('int *') - result = _lib.tfloatbox_value_time_tiles(box_converted, vsize, duration_converted, vorigin, torigin_converted, count) +def tfloatbox_value_time_tiles( + box: "const TBox *", + vsize: float, + duration: "const Interval *", + vorigin: float, + torigin: "Optional[int]", +) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast("const TBox *", box) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = ( + _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL + ) + count = _ffi.new("int *") + result = _lib.tfloatbox_value_time_tiles( + box_converted, vsize, duration_converted, vorigin, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_time_boxes(temp: 'const Temporal *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tint_time_boxes(temp_converted, duration_converted, torigin_converted, count) +def tint_time_boxes( + temp: "const Temporal *", duration: "const Interval *", torigin: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tint_time_boxes( + temp_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_bins(temp: 'const Temporal *', vsize: int, vorigin: int) -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tint_value_bins( + temp: "const Temporal *", vsize: int, vorigin: int +) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tint_value_bins(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_boxes(temp: 'const Temporal *', vsize: int, vorigin: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tint_value_boxes( + temp: "const Temporal *", vsize: int, vorigin: int +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tint_value_boxes(temp_converted, vsize, vorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_split(temp: 'const Temporal *', vsize: int, vorigin: int) -> "Tuple['Temporal **', 'int *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - value_bins = _ffi.new('int **') - count = _ffi.new('int *') +def tint_value_split( + temp: "const Temporal *", vsize: int, vorigin: int +) -> "Tuple['Temporal **', 'int *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + value_bins = _ffi.new("int **") + count = _ffi.new("int *") result = _lib.tint_value_split(temp_converted, vsize, vorigin, value_bins, count) _check_error() return result if result != _ffi.NULL else None, value_bins[0], count[0] -def tint_value_time_boxes(temp: 'const Temporal *', vsize: int, duration: 'const Interval *', vorigin: int, torigin: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tint_value_time_boxes(temp_converted, vsize, duration_converted, vorigin, torigin_converted, count) +def tint_value_time_boxes( + temp: "const Temporal *", + vsize: int, + duration: "const Interval *", + vorigin: int, + torigin: int, +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tint_value_time_boxes( + temp_converted, vsize, duration_converted, vorigin, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tint_value_time_split(temp: 'const Temporal *', size: int, duration: 'const Interval *', vorigin: int, torigin: int) -> "Tuple['Temporal **', 'int *', 'TimestampTz *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - value_bins = _ffi.new('int **') - time_bins = _ffi.new('TimestampTz **') - count = _ffi.new('int *') - result = _lib.tint_value_time_split(temp_converted, size, duration_converted, vorigin, torigin_converted, value_bins, time_bins, count) +def tint_value_time_split( + temp: "const Temporal *", + size: int, + duration: "const Interval *", + vorigin: int, + torigin: int, +) -> "Tuple['Temporal **', 'int *', 'TimestampTz *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + value_bins = _ffi.new("int **") + time_bins = _ffi.new("TimestampTz **") + count = _ffi.new("int *") + result = _lib.tint_value_time_split( + temp_converted, + size, + duration_converted, + vorigin, + torigin_converted, + value_bins, + time_bins, + count, + ) _check_error() - return result if result != _ffi.NULL else None, value_bins[0], time_bins[0], count[0] + return ( + result if result != _ffi.NULL else None, + value_bins[0], + time_bins[0], + count[0], + ) -def tintbox_time_tiles(box: 'const TBox *', duration: 'const Interval *', torigin: int) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast('const TBox *', box) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tintbox_time_tiles(box_converted, duration_converted, torigin_converted, count) +def tintbox_time_tiles( + box: "const TBox *", duration: "const Interval *", torigin: int +) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast("const TBox *", box) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tintbox_time_tiles( + box_converted, duration_converted, torigin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tintbox_value_tiles(box: 'const TBox *', xsize: int, xorigin: int) -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast('const TBox *', box) - count = _ffi.new('int *') +def tintbox_value_tiles( + box: "const TBox *", xsize: int, xorigin: int +) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast("const TBox *", box) + count = _ffi.new("int *") result = _lib.tintbox_value_tiles(box_converted, xsize, xorigin, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tintbox_value_time_tiles(box: 'const TBox *', xsize: int, duration: 'const Interval *', xorigin: 'Optional[int]', torigin: "Optional[int]") -> "Tuple['TBox *', 'int']": - box_converted = _ffi.cast('const TBox *', box) - duration_converted = _ffi.cast('const Interval *', duration) +def tintbox_value_time_tiles( + box: "const TBox *", + xsize: int, + duration: "const Interval *", + xorigin: "Optional[int]", + torigin: "Optional[int]", +) -> "Tuple['TBox *', 'int']": + box_converted = _ffi.cast("const TBox *", box) + duration_converted = _ffi.cast("const Interval *", duration) xorigin_converted = xorigin if xorigin is not None else _ffi.NULL - torigin_converted = _ffi.cast('TimestampTz', torigin) if torigin is not None else _ffi.NULL - count = _ffi.new('int *') - result = _lib.tintbox_value_time_tiles(box_converted, xsize, duration_converted, xorigin_converted, torigin_converted, count) + torigin_converted = ( + _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL + ) + count = _ffi.new("int *") + result = _lib.tintbox_value_time_tiles( + box_converted, + xsize, + duration_converted, + xorigin_converted, + torigin_converted, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tempsubtype_name(subtype: 'tempSubtype') -> str: - subtype_converted = _ffi.cast('tempSubtype', subtype) +def tempsubtype_name(subtype: "tempSubtype") -> str: + subtype_converted = _ffi.cast("tempSubtype", subtype) result = _lib.tempsubtype_name(subtype_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tempsubtype_from_string(string: str, subtype: 'int16 *') -> 'bool': - string_converted = string.encode('utf-8') - subtype_converted = _ffi.cast('int16 *', subtype) +def tempsubtype_from_string(string: str, subtype: "int16 *") -> "bool": + string_converted = string.encode("utf-8") + subtype_converted = _ffi.cast("int16 *", subtype) result = _lib.tempsubtype_from_string(string_converted, subtype_converted) _check_error() return result if result != _ffi.NULL else None -def meosoper_name(oper: 'meosOper') -> str: - oper_converted = _ffi.cast('meosOper', oper) +def meosoper_name(oper: "meosOper") -> str: + oper_converted = _ffi.cast("meosOper", oper) result = _lib.meosoper_name(oper_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def meosoper_from_string(name: str) -> 'meosOper': - name_converted = name.encode('utf-8') +def meosoper_from_string(name: str) -> "meosOper": + name_converted = name.encode("utf-8") result = _lib.meosoper_from_string(name_converted) _check_error() return result if result != _ffi.NULL else None -def interptype_name(interp: 'interpType') -> str: - interp_converted = _ffi.cast('interpType', interp) +def interptype_name(interp: "interpType") -> str: + interp_converted = _ffi.cast("interpType", interp) result = _lib.interptype_name(interp_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def interptype_from_string(interp_str: str) -> 'interpType': - interp_str_converted = interp_str.encode('utf-8') +def interptype_from_string(interp_str: str) -> "interpType": + interp_str_converted = interp_str.encode("utf-8") result = _lib.interptype_from_string(interp_str_converted) _check_error() return result if result != _ffi.NULL else None -def meostype_name(type: 'meosType') -> str: - type_converted = _ffi.cast('meosType', type) +def meostype_name(type: "meosType") -> str: + type_converted = _ffi.cast("meosType", type) result = _lib.meostype_name(type_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temptype_basetype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def temptype_basetype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.temptype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def settype_basetype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def settype_basetype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.settype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_basetype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def spantype_basetype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.spantype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_spansettype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def spantype_spansettype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.spantype_spansettype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spansettype_spantype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def spansettype_spantype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.spansettype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_spantype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def basetype_spantype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.basetype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_settype(type: 'meosType') -> 'meosType': - type_converted = _ffi.cast('meosType', type) +def basetype_settype(type: "meosType") -> "meosType": + type_converted = _ffi.cast("meosType", type) result = _lib.basetype_settype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tnumber_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def geo_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def geo_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.geo_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def time_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def time_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.time_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def set_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.set_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def numset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_numset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timeset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def timeset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.timeset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_spantype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def set_spantype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_set_spantype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_set_spantype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def alphanumset_type(settype: 'meosType') -> 'bool': - settype_converted = _ffi.cast('meosType', settype) +def alphanumset_type(settype: "meosType") -> "bool": + settype_converted = _ffi.cast("meosType", settype) result = _lib.alphanumset_type(settype_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def geoset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_geoset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_geoset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def spatialset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_spatialset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_spatialset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def span_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.span_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_canon_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def span_canon_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.span_canon_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def span_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.span_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def type_span_bbox(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def type_span_bbox(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.type_span_bbox(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_tbox_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def span_tbox_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_span_tbox_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_span_tbox_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def numspan_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.numspan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def numspan_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numspan_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_numspan_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def timespan_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.timespan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def timespan_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.timespan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def spanset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.spanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespanset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def timespanset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_timespanset_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_timespanset_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def temporal_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.temporal_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temptype_continuous(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def temptype_continuous(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.temptype_continuous(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_byvalue(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def basetype_byvalue(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.basetype_byvalue(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_varlength(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def basetype_varlength(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.basetype_varlength(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_length(type: 'meosType') -> 'int16': - type_converted = _ffi.cast('meosType', type) +def basetype_length(type: "meosType") -> "int16": + type_converted = _ffi.cast("meosType", type) result = _lib.basetype_length(type_converted) _check_error() return result if result != _ffi.NULL else None -def talpha_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def talpha_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.talpha_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tnumber_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tnumber_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tnumber_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_spantype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tnumber_spantype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatial_basetype(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def spatial_basetype(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.spatial_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tspatial_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tspatial_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tspatial_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tpoint_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tpoint_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tpoint_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tgeo_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tgeo_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type_all(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tgeo_type_all(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type_all(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tgeo_type_all(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tgeometry_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeometry_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tgeometry_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeodetic_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def tgeodetic_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeodetic_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tgeodetic_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_tpoint_type(type: 'meosType') -> 'bool': - type_converted = _ffi.cast('meosType', type) +def ensure_tnumber_tpoint_type(type: "meosType") -> "bool": + type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def geo_as_ewkb(gs: 'const GSERIALIZED *', endian: str, size: 'size_t *') -> 'uint8_t *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - endian_converted = endian.encode('utf-8') - size_converted = _ffi.cast('size_t *', size) +def geo_as_ewkb( + gs: "const GSERIALIZED *", endian: str, size: "size_t *" +) -> "uint8_t *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + endian_converted = endian.encode("utf-8") + size_converted = _ffi.cast("size_t *", size) result = _lib.geo_as_ewkb(gs_converted, endian_converted, size_converted) _check_error() return result if result != _ffi.NULL else None -def geo_as_ewkt(gs: 'const GSERIALIZED *', precision: int) -> str: - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_as_ewkt(gs: "const GSERIALIZED *", precision: int) -> str: + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_as_ewkt(gs_converted, precision) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geo_as_geojson(gs: 'const GSERIALIZED *', option: int, precision: int, srs: str) -> str: - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - srs_converted = srs.encode('utf-8') +def geo_as_geojson( + gs: "const GSERIALIZED *", option: int, precision: int, srs: str +) -> str: + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + srs_converted = srs.encode("utf-8") result = _lib.geo_as_geojson(gs_converted, option, precision, srs_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geo_as_hexewkb(gs: 'const GSERIALIZED *', endian: str) -> str: - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - endian_converted = endian.encode('utf-8') +def geo_as_hexewkb(gs: "const GSERIALIZED *", endian: str) -> str: + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + endian_converted = endian.encode("utf-8") result = _lib.geo_as_hexewkb(gs_converted, endian_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geo_as_text(gs: 'const GSERIALIZED *', precision: int) -> str: - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_as_text(gs: "const GSERIALIZED *", precision: int) -> str: + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_as_text(gs_converted, precision) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geo_from_ewkb(wkb: 'const uint8_t *', wkb_size: 'size_t', srid: int) -> 'GSERIALIZED *': - wkb_converted = _ffi.cast('const uint8_t *', wkb) - wkb_size_converted = _ffi.cast('size_t', wkb_size) - srid_converted = _ffi.cast('int32', srid) +def geo_from_ewkb( + wkb: "const uint8_t *", wkb_size: "size_t", srid: int +) -> "GSERIALIZED *": + wkb_converted = _ffi.cast("const uint8_t *", wkb) + wkb_size_converted = _ffi.cast("size_t", wkb_size) + srid_converted = _ffi.cast("int32", srid) result = _lib.geo_from_ewkb(wkb_converted, wkb_size_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def geo_from_geojson(geojson: str) -> 'GSERIALIZED *': - geojson_converted = geojson.encode('utf-8') +def geo_from_geojson(geojson: str) -> "GSERIALIZED *": + geojson_converted = geojson.encode("utf-8") result = _lib.geo_from_geojson(geojson_converted) _check_error() return result if result != _ffi.NULL else None -def geo_from_text(wkt: str, srid: 'int32_t') -> 'GSERIALIZED *': - wkt_converted = wkt.encode('utf-8') - srid_converted = _ffi.cast('int32_t', srid) +def geo_from_text(wkt: str, srid: "int32_t") -> "GSERIALIZED *": + wkt_converted = wkt.encode("utf-8") + srid_converted = _ffi.cast("int32_t", srid) result = _lib.geo_from_text(wkt_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def geo_out(gs: 'const GSERIALIZED *') -> str: - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_out(gs: "const GSERIALIZED *") -> str: + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_out(gs_converted) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geog_from_binary(wkb_bytea: str) -> 'GSERIALIZED *': - wkb_bytea_converted = wkb_bytea.encode('utf-8') +def geog_from_binary(wkb_bytea: str) -> "GSERIALIZED *": + wkb_bytea_converted = wkb_bytea.encode("utf-8") result = _lib.geog_from_binary(wkb_bytea_converted) _check_error() return result if result != _ffi.NULL else None -def geog_from_hexewkb(wkt: str) -> 'GSERIALIZED *': - wkt_converted = wkt.encode('utf-8') +def geog_from_hexewkb(wkt: str) -> "GSERIALIZED *": + wkt_converted = wkt.encode("utf-8") result = _lib.geog_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def geog_in(string: str, typmod: int) -> 'GSERIALIZED *': - string_converted = string.encode('utf-8') - typmod_converted = _ffi.cast('int32', typmod) +def geog_in(string: str, typmod: int) -> "GSERIALIZED *": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) result = _lib.geog_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def geom_from_hexewkb(wkt: str) -> 'GSERIALIZED *': - wkt_converted = wkt.encode('utf-8') +def geom_from_hexewkb(wkt: str) -> "GSERIALIZED *": + wkt_converted = wkt.encode("utf-8") result = _lib.geom_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def geom_in(string: str, typmod: int) -> 'GSERIALIZED *': - string_converted = string.encode('utf-8') - typmod_converted = _ffi.cast('int32', typmod) +def geom_in(string: str, typmod: int) -> "GSERIALIZED *": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) result = _lib.geom_in(string_converted, typmod_converted) _check_error() return result if result != _ffi.NULL else None -def geo_copy(g: 'const GSERIALIZED *') -> 'GSERIALIZED *': - g_converted = _ffi.cast('const GSERIALIZED *', g) +def geo_copy(g: "const GSERIALIZED *") -> "GSERIALIZED *": + g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geo_copy(g_converted) _check_error() return result if result != _ffi.NULL else None -def geogpoint_make2d(srid: 'int32_t', x: float, y: float) -> 'GSERIALIZED *': - srid_converted = _ffi.cast('int32_t', srid) +def geogpoint_make2d(srid: "int32_t", x: float, y: float) -> "GSERIALIZED *": + srid_converted = _ffi.cast("int32_t", srid) result = _lib.geogpoint_make2d(srid_converted, x, y) _check_error() return result if result != _ffi.NULL else None -def geogpoint_make3dz(srid: 'int32_t', x: float, y: float, z: float) -> 'GSERIALIZED *': - srid_converted = _ffi.cast('int32_t', srid) +def geogpoint_make3dz(srid: "int32_t", x: float, y: float, z: float) -> "GSERIALIZED *": + srid_converted = _ffi.cast("int32_t", srid) result = _lib.geogpoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def geompoint_make2d(srid: 'int32_t', x: float, y: float) -> 'GSERIALIZED *': - srid_converted = _ffi.cast('int32_t', srid) +def geompoint_make2d(srid: "int32_t", x: float, y: float) -> "GSERIALIZED *": + srid_converted = _ffi.cast("int32_t", srid) result = _lib.geompoint_make2d(srid_converted, x, y) _check_error() return result if result != _ffi.NULL else None -def geompoint_make3dz(srid: 'int32_t', x: float, y: float, z: float) -> 'GSERIALIZED *': - srid_converted = _ffi.cast('int32_t', srid) +def geompoint_make3dz(srid: "int32_t", x: float, y: float, z: float) -> "GSERIALIZED *": + srid_converted = _ffi.cast("int32_t", srid) result = _lib.geompoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def geom_to_geog(geom: 'const GSERIALIZED *') -> 'GSERIALIZED *': - geom_converted = _ffi.cast('const GSERIALIZED *', geom) +def geom_to_geog(geom: "const GSERIALIZED *") -> "GSERIALIZED *": + geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.geom_to_geog(geom_converted) _check_error() return result if result != _ffi.NULL else None -def geog_to_geom(geog: 'const GSERIALIZED *') -> 'GSERIALIZED *': - geog_converted = _ffi.cast('const GSERIALIZED *', geog) +def geog_to_geom(geog: "const GSERIALIZED *") -> "GSERIALIZED *": + geog_converted = _ffi.cast("const GSERIALIZED *", geog) result = _lib.geog_to_geom(geog_converted) _check_error() return result if result != _ffi.NULL else None -def geo_is_empty(g: 'const GSERIALIZED *') -> 'bool': - g_converted = _ffi.cast('const GSERIALIZED *', g) +def geo_is_empty(g: "const GSERIALIZED *") -> "bool": + g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geo_is_empty(g_converted) _check_error() return result if result != _ffi.NULL else None @@ -10296,42 +10916,42 @@ def geo_is_empty(g: 'const GSERIALIZED *') -> 'bool': def geo_typename(type: int) -> str: result = _lib.geo_typename(type) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geog_area(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'double': - g_converted = _ffi.cast('const GSERIALIZED *', g) +def geog_area(g: "const GSERIALIZED *", use_spheroid: bool) -> "double": + g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_area(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_centroid(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'GSERIALIZED *': - g_converted = _ffi.cast('const GSERIALIZED *', g) +def geog_centroid(g: "const GSERIALIZED *", use_spheroid: bool) -> "GSERIALIZED *": + g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_centroid(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_length(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'double': - g_converted = _ffi.cast('const GSERIALIZED *', g) +def geog_length(g: "const GSERIALIZED *", use_spheroid: bool) -> "double": + g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_length(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_perimeter(g: 'const GSERIALIZED *', use_spheroid: bool) -> 'double': - g_converted = _ffi.cast('const GSERIALIZED *', g) +def geog_perimeter(g: "const GSERIALIZED *", use_spheroid: bool) -> "double": + g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_perimeter(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geom_azimuth(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) - out_result = _ffi.new('double *') +def geom_azimuth(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "double": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) + out_result = _ffi.new("double *") result = _lib.geom_azimuth(gs1_converted, gs2_converted, out_result) _check_error() if result: @@ -10339,426 +10959,461 @@ def geom_azimuth(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'dou return None -def geom_length(gs: 'const GSERIALIZED *') -> 'double': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geom_length(gs: "const GSERIALIZED *") -> "double": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_length(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_perimeter(gs: 'const GSERIALIZED *') -> 'double': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geom_perimeter(gs: "const GSERIALIZED *") -> "double": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_perimeter(gs_converted) _check_error() return result if result != _ffi.NULL else None -def line_numpoints(gs: 'const GSERIALIZED *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def line_numpoints(gs: "const GSERIALIZED *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.line_numpoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def line_point_n(geom: 'const GSERIALIZED *', n: int) -> 'GSERIALIZED *': - geom_converted = _ffi.cast('const GSERIALIZED *', geom) +def line_point_n(geom: "const GSERIALIZED *", n: int) -> "GSERIALIZED *": + geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.line_point_n(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def geo_reverse(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_reverse(gs: "const GSERIALIZED *") -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_reverse(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_round(gs: 'const GSERIALIZED *', maxdd: int) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_round(gs: "const GSERIALIZED *", maxdd: int) -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_round(gs_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def geo_set_srid(gs: 'const GSERIALIZED *', srid: 'int32_t') -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - srid_converted = _ffi.cast('int32_t', srid) +def geo_set_srid(gs: "const GSERIALIZED *", srid: "int32_t") -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.geo_set_srid(gs_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def geo_srid(gs: 'const GSERIALIZED *') -> 'int32_t': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_srid(gs: "const GSERIALIZED *") -> "int32_t": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_srid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_transform(geom: 'GSERIALIZED *', srid_to: 'int32_t') -> 'GSERIALIZED *': - geom_converted = _ffi.cast('GSERIALIZED *', geom) - srid_to_converted = _ffi.cast('int32_t', srid_to) +def geo_transform(geom: "GSERIALIZED *", srid_to: "int32_t") -> "GSERIALIZED *": + geom_converted = _ffi.cast("GSERIALIZED *", geom) + srid_to_converted = _ffi.cast("int32_t", srid_to) result = _lib.geo_transform(geom_converted, srid_to_converted) _check_error() return result if result != _ffi.NULL else None -def geo_transform_pipeline(gs: 'const GSERIALIZED *', pipeline: str, srid_to: 'int32_t', is_forward: bool) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - pipeline_converted = pipeline.encode('utf-8') - srid_to_converted = _ffi.cast('int32_t', srid_to) - result = _lib.geo_transform_pipeline(gs_converted, pipeline_converted, srid_to_converted, is_forward) +def geo_transform_pipeline( + gs: "const GSERIALIZED *", pipeline: str, srid_to: "int32_t", is_forward: bool +) -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + pipeline_converted = pipeline.encode("utf-8") + srid_to_converted = _ffi.cast("int32_t", srid_to) + result = _lib.geo_transform_pipeline( + gs_converted, pipeline_converted, srid_to_converted, is_forward + ) _check_error() return result if result != _ffi.NULL else None -def geo_collect_garray(gsarr: 'GSERIALIZED **', count: int) -> 'GSERIALIZED *': - gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] +def geo_collect_garray(gsarr: "GSERIALIZED **", count: int) -> "GSERIALIZED *": + gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geo_collect_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geo_makeline_garray(gsarr: 'GSERIALIZED **', count: int) -> 'GSERIALIZED *': - gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] +def geo_makeline_garray(gsarr: "GSERIALIZED **", count: int) -> "GSERIALIZED *": + gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geo_makeline_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geo_npoints(gs: 'const GSERIALIZED *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_npoints(gs: "const GSERIALIZED *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_npoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_ngeos(gs: 'const GSERIALIZED *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_ngeos(gs: "const GSERIALIZED *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_ngeos(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_geoN(geom: 'const GSERIALIZED *', n: int) -> 'GSERIALIZED *': - geom_converted = _ffi.cast('const GSERIALIZED *', geom) +def geo_geoN(geom: "const GSERIALIZED *", n: int) -> "GSERIALIZED *": + geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.geo_geoN(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def geom_array_union(gsarr: 'GSERIALIZED **', count: int) -> 'GSERIALIZED *': - gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] +def geom_array_union(gsarr: "GSERIALIZED **", count: int) -> "GSERIALIZED *": + gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geom_array_union(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geom_boundary(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geom_boundary(gs: "const GSERIALIZED *") -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_boundary(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_buffer(gs: 'const GSERIALIZED *', size: float, params: str) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - params_converted = params.encode('utf-8') +def geom_buffer(gs: "const GSERIALIZED *", size: float, params: str) -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + params_converted = params.encode("utf-8") result = _lib.geom_buffer(gs_converted, size, params_converted) _check_error() return result if result != _ffi.NULL else None -def geom_centroid(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geom_centroid(gs: "const GSERIALIZED *") -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_centroid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_convex_hull(gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geom_convex_hull(gs: "const GSERIALIZED *") -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_convex_hull(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_difference2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_difference2d( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" +) -> "GSERIALIZED *": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_difference2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_intersection2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_intersection2d( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" +) -> "GSERIALIZED *": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersection2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_shortestline2d(gs1: 'const GSERIALIZED *', s2: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - s2_converted = _ffi.cast('const GSERIALIZED *', s2) +def geom_shortestline2d( + gs1: "const GSERIALIZED *", s2: "const GSERIALIZED *" +) -> "GSERIALIZED *": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + s2_converted = _ffi.cast("const GSERIALIZED *", s2) result = _lib.geom_shortestline2d(gs1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_shortestline3d(gs1: 'const GSERIALIZED *', s2: 'const GSERIALIZED *') -> 'GSERIALIZED *': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - s2_converted = _ffi.cast('const GSERIALIZED *', s2) +def geom_shortestline3d( + gs1: "const GSERIALIZED *", s2: "const GSERIALIZED *" +) -> "GSERIALIZED *": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + s2_converted = _ffi.cast("const GSERIALIZED *", s2) result = _lib.geom_shortestline3d(gs1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_unary_union(gs: 'GSERIALIZED *', prec: float) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def geom_unary_union(gs: "GSERIALIZED *", prec: float) -> "GSERIALIZED *": + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.geom_unary_union(gs_converted, prec) _check_error() return result if result != _ffi.NULL else None -def line_interpolate_point(gs: 'GSERIALIZED *', distance_fraction: float, repeat: bool) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def line_interpolate_point( + gs: "GSERIALIZED *", distance_fraction: float, repeat: bool +) -> "GSERIALIZED *": + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.line_interpolate_point(gs_converted, distance_fraction, repeat) _check_error() return result if result != _ffi.NULL else None -def line_locate_point(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def line_locate_point( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" +) -> "double": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.line_locate_point(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def line_substring(gs: 'const GSERIALIZED *', from_: float, to: float) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def line_substring( + gs: "const GSERIALIZED *", from_: float, to: float +) -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.line_substring(gs_converted, from_, to) _check_error() return result if result != _ffi.NULL else None -def geog_dwithin(g1: 'const GSERIALIZED *', g2: 'const GSERIALIZED *', tolerance: float, use_spheroid: bool) -> 'bool': - g1_converted = _ffi.cast('const GSERIALIZED *', g1) - g2_converted = _ffi.cast('const GSERIALIZED *', g2) +def geog_dwithin( + g1: "const GSERIALIZED *", + g2: "const GSERIALIZED *", + tolerance: float, + use_spheroid: bool, +) -> "bool": + g1_converted = _ffi.cast("const GSERIALIZED *", g1) + g2_converted = _ffi.cast("const GSERIALIZED *", g2) result = _lib.geog_dwithin(g1_converted, g2_converted, tolerance, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_intersects(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', use_spheroid: bool) -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geog_intersects( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", use_spheroid: bool +) -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geog_intersects(gs1_converted, gs2_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geom_contains(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_contains(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_contains(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_covers(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_covers(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_covers(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_disjoint2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_disjoint2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_disjoint2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_dwithin2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', tolerance: float) -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_dwithin2d( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", tolerance: float +) -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_dwithin2d(gs1_converted, gs2_converted, tolerance) _check_error() return result if result != _ffi.NULL else None -def geom_dwithin3d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', tolerance: float) -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_dwithin3d( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", tolerance: float +) -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_dwithin3d(gs1_converted, gs2_converted, tolerance) _check_error() return result if result != _ffi.NULL else None -def geom_intersects2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_intersects2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersects2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_intersects3d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_intersects3d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersects3d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_relate_pattern(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *', patt: str) -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) - patt_converted = patt.encode('utf-8') +def geom_relate_pattern( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", patt: str +) -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) + patt_converted = patt.encode("utf-8") result = _lib.geom_relate_pattern(gs1_converted, gs2_converted, patt_converted) _check_error() return result if result != _ffi.NULL else None -def geom_touches(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_touches(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_touches(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geo_stboxes(gs: 'const GSERIALIZED *') -> "Tuple['STBox *', 'int']": - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - count = _ffi.new('int *') +def geo_stboxes(gs: "const GSERIALIZED *") -> "Tuple['STBox *', 'int']": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + count = _ffi.new("int *") result = _lib.geo_stboxes(gs_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def geo_split_each_n_stboxes(gs: 'const GSERIALIZED *', elem_count: int) -> "Tuple['STBox *', 'int']": - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - count = _ffi.new('int *') +def geo_split_each_n_stboxes( + gs: "const GSERIALIZED *", elem_count: int +) -> "Tuple['STBox *', 'int']": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + count = _ffi.new("int *") result = _lib.geo_split_each_n_stboxes(gs_converted, elem_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def geo_split_n_stboxes(gs: 'const GSERIALIZED *', box_count: int) -> "Tuple['STBox *', 'int']": - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - count = _ffi.new('int *') +def geo_split_n_stboxes( + gs: "const GSERIALIZED *", box_count: int +) -> "Tuple['STBox *', 'int']": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + count = _ffi.new("int *") result = _lib.geo_split_n_stboxes(gs_converted, box_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def geog_distance(g1: 'const GSERIALIZED *', g2: 'const GSERIALIZED *') -> 'double': - g1_converted = _ffi.cast('const GSERIALIZED *', g1) - g2_converted = _ffi.cast('const GSERIALIZED *', g2) +def geog_distance(g1: "const GSERIALIZED *", g2: "const GSERIALIZED *") -> "double": + g1_converted = _ffi.cast("const GSERIALIZED *", g1) + g2_converted = _ffi.cast("const GSERIALIZED *", g2) result = _lib.geog_distance(g1_converted, g2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_distance2d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_distance2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "double": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_distance2d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geom_distance3d(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geom_distance3d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "double": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_distance3d(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geo_equals(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'int': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geo_equals(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "int": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geo_equals(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geo_same(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'bool': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) +def geo_same(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geo_same(gs1_converted, gs2_converted) _check_error() return result if result != _ffi.NULL else None -def geogset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def geogset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.geogset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def geomset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def geomset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.geomset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_as_text(set: 'const Set *', maxdd: int) -> str: - set_converted = _ffi.cast('const Set *', set) +def spatialset_as_text(set: "const Set *", maxdd: int) -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.spatialset_as_text(set_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def spatialset_as_ewkt(set: 'const Set *', maxdd: int) -> str: - set_converted = _ffi.cast('const Set *', set) +def spatialset_as_ewkt(set: "const Set *", maxdd: int) -> str: + set_converted = _ffi.cast("const Set *", set) result = _lib.spatialset_as_ewkt(set_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geoset_make(values: 'const GSERIALIZED **') -> 'Set *': - values_converted = [_ffi.cast('const GSERIALIZED *', x) for x in values] +def geoset_make(values: "const GSERIALIZED **") -> "Set *": + values_converted = [_ffi.cast("const GSERIALIZED *", x) for x in values] result = _lib.geoset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def geo_to_set(gs: 'const GSERIALIZED *') -> 'Set *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_to_set(gs: "const GSERIALIZED *") -> "Set *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_to_set(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_end_value(s: 'const Set *') -> 'GSERIALIZED *': - s_converted = _ffi.cast('const Set *', s) +def geoset_end_value(s: "const Set *") -> "GSERIALIZED *": + s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_start_value(s: 'const Set *') -> 'GSERIALIZED *': - s_converted = _ffi.cast('const Set *', s) +def geoset_start_value(s: "const Set *") -> "GSERIALIZED *": + s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_value_n(s: 'const Set *', n: int) -> 'GSERIALIZED **': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('GSERIALIZED **') +def geoset_value_n(s: "const Set *", n: int) -> "GSERIALIZED **": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("GSERIALIZED **") result = _lib.geoset_value_n(s_converted, n, out_result) _check_error() if result: @@ -10766,311 +11421,341 @@ def geoset_value_n(s: 'const Set *', n: int) -> 'GSERIALIZED **': return None -def geoset_values(s: 'const Set *') -> 'GSERIALIZED **': - s_converted = _ffi.cast('const Set *', s) +def geoset_values(s: "const Set *") -> "GSERIALIZED **": + s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'bool': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Set *', s) +def contained_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "bool": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_geo(s: 'const Set *', gs: 'GSERIALIZED *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def contains_set_geo(s: "const Set *", gs: "GSERIALIZED *") -> "bool": + s_converted = _ffi.cast("const Set *", s) + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.contains_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_union_transfn(state: 'Set *', gs: 'const GSERIALIZED *') -> 'Set *': - state_converted = _ffi.cast('Set *', state) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_union_transfn(state: "Set *", gs: "const GSERIALIZED *") -> "Set *": + state_converted = _ffi.cast("Set *", state) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_union_transfn(state_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'Set *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Set *', s) +def intersection_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_geo(s: 'const Set *', gs: 'const GSERIALIZED *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def intersection_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.intersection_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def minus_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'Set *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Set *', s) +def minus_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_geo(s: 'const Set *', gs: 'const GSERIALIZED *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def minus_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.minus_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def union_geo_set(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'Set *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Set *', s) +def union_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_geo_set(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_geo(s: 'const Set *', gs: 'const GSERIALIZED *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def union_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.union_set_geo(s_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_set_srid(s: 'const Set *', srid: 'int32_t') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - srid_converted = _ffi.cast('int32_t', srid) +def spatialset_set_srid(s: "const Set *", srid: "int32_t") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatialset_set_srid(s_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_srid(s: 'const Set *') -> 'int32_t': - s_converted = _ffi.cast('const Set *', s) +def spatialset_srid(s: "const Set *") -> "int32_t": + s_converted = _ffi.cast("const Set *", s) result = _lib.spatialset_srid(s_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_transform(s: 'const Set *', srid: 'int32_t') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - srid_converted = _ffi.cast('int32_t', srid) +def spatialset_transform(s: "const Set *", srid: "int32_t") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatialset_transform(s_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_transform_pipeline(s: 'const Set *', pipelinestr: str, srid: 'int32_t', is_forward: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - pipelinestr_converted = pipelinestr.encode('utf-8') - srid_converted = _ffi.cast('int32_t', srid) - result = _lib.spatialset_transform_pipeline(s_converted, pipelinestr_converted, srid_converted, is_forward) +def spatialset_transform_pipeline( + s: "const Set *", pipelinestr: str, srid: "int32_t", is_forward: bool +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + pipelinestr_converted = pipelinestr.encode("utf-8") + srid_converted = _ffi.cast("int32_t", srid) + result = _lib.spatialset_transform_pipeline( + s_converted, pipelinestr_converted, srid_converted, is_forward + ) _check_error() return result if result != _ffi.NULL else None -def stbox_as_hexwkb(box: 'const STBox *', variant: int) -> "Tuple[str, 'size_t *']": - box_converted = _ffi.cast('const STBox *', box) - variant_converted = _ffi.cast('uint8_t', variant) - size = _ffi.new('size_t *') +def stbox_as_hexwkb(box: "const STBox *", variant: int) -> "Tuple[str, 'size_t *']": + box_converted = _ffi.cast("const STBox *", box) + variant_converted = _ffi.cast("uint8_t", variant) + size = _ffi.new("size_t *") result = _lib.stbox_as_hexwkb(box_converted, variant_converted, size) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size[0] -def stbox_as_wkb(box: 'const STBox *', variant: int) -> bytes: - box_converted = _ffi.cast('const STBox *', box) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def stbox_as_wkb(box: "const STBox *", variant: int) -> bytes: + box_converted = _ffi.cast("const STBox *", box) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.stbox_as_wkb(box_converted, variant_converted, size_out) _check_error() - result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + result_converted = ( + bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None + ) return result_converted -def stbox_from_hexwkb(hexwkb: str) -> 'STBox *': - hexwkb_converted = hexwkb.encode('utf-8') +def stbox_from_hexwkb(hexwkb: str) -> "STBox *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.stbox_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_from_wkb(wkb: bytes) -> 'STBOX *': - wkb_converted = _ffi.new('uint8_t []', wkb) +def stbox_from_wkb(wkb: bytes) -> "STBOX *": + wkb_converted = _ffi.new("uint8_t []", wkb) result = _lib.stbox_from_wkb(wkb_converted, len(wkb)) return result if result != _ffi.NULL else None -def stbox_in(string: str) -> 'STBox *': - string_converted = string.encode('utf-8') +def stbox_in(string: str) -> "STBox *": + string_converted = string.encode("utf-8") result = _lib.stbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_out(box: 'const STBox *', maxdd: int) -> str: - box_converted = _ffi.cast('const STBox *', box) +def stbox_out(box: "const STBox *", maxdd: int) -> str: + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_out(box_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geo_timestamptz_to_stbox(gs: 'const GSERIALIZED *', t: int) -> 'STBox *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - t_converted = _ffi.cast('TimestampTz', t) +def geo_timestamptz_to_stbox(gs: "const GSERIALIZED *", t: int) -> "STBox *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.geo_timestamptz_to_stbox(gs_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def geo_tstzspan_to_stbox(gs: 'const GSERIALIZED *', s: 'const Span *') -> 'STBox *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Span *', s) +def geo_tstzspan_to_stbox(gs: "const GSERIALIZED *", s: "const Span *") -> "STBox *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Span *", s) result = _lib.geo_tstzspan_to_stbox(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_copy(box: 'const STBox *') -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_copy(box: "const STBox *") -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_copy(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_make(hasx: bool, hasz: bool, geodetic: bool, srid: int, xmin: float, xmax: float, ymin: float, ymax: float, zmin: float, zmax: float, s: "Optional['const Span *']") -> 'STBox *': - srid_converted = _ffi.cast('int32', srid) - s_converted = _ffi.cast('const Span *', s) if s is not None else _ffi.NULL - result = _lib.stbox_make(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted) +def stbox_make( + hasx: bool, + hasz: bool, + geodetic: bool, + srid: int, + xmin: float, + xmax: float, + ymin: float, + ymax: float, + zmin: float, + zmax: float, + s: "Optional['const Span *']", +) -> "STBox *": + srid_converted = _ffi.cast("int32", srid) + s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL + result = _lib.stbox_make( + hasx, + hasz, + geodetic, + srid_converted, + xmin, + xmax, + ymin, + ymax, + zmin, + zmax, + s_converted, + ) _check_error() return result if result != _ffi.NULL else None -def geo_to_stbox(gs: 'const GSERIALIZED *') -> 'STBox *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geo_to_stbox(gs: "const GSERIALIZED *") -> "STBox *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_to_stbox(gs_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_to_stbox(s: 'const Set *') -> 'STBox *': - s_converted = _ffi.cast('const Set *', s) +def spatialset_to_stbox(s: "const Set *") -> "STBox *": + s_converted = _ffi.cast("const Set *", s) result = _lib.spatialset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_box3d(box: 'const STBox *') -> 'BOX3D *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_to_box3d(box: "const STBox *") -> "BOX3D *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_box3d(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_gbox(box: 'const STBox *') -> 'GBOX *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_to_gbox(box: "const STBox *") -> "GBOX *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_gbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_geo(box: 'const STBox *') -> 'GSERIALIZED *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_to_geo(box: "const STBox *") -> "GSERIALIZED *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_tstzspan(box: 'const STBox *') -> 'Span *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_to_tstzspan(box: "const STBox *") -> "Span *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_stbox(t: int) -> 'STBox *': - t_converted = _ffi.cast('TimestampTz', t) +def timestamptz_to_stbox(t: int) -> "STBox *": + t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_stbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_stbox(s: 'const Set *') -> 'STBox *': - s_converted = _ffi.cast('const Set *', s) +def tstzset_to_stbox(s: "const Set *") -> "STBox *": + s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_stbox(s: 'const Span *') -> 'STBox *': - s_converted = _ffi.cast('const Span *', s) +def tstzspan_to_stbox(s: "const Span *") -> "STBox *": + s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_stbox(ss: 'const SpanSet *') -> 'STBox *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def tstzspanset_to_stbox(ss: "const SpanSet *") -> "STBox *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_to_stbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_area(box: 'const STBox *', spheroid: bool) -> 'double': - box_converted = _ffi.cast('const STBox *', box) +def stbox_area(box: "const STBox *", spheroid: bool) -> "double": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_area(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def stbox_hast(box: 'const STBox *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) +def stbox_hast(box: "const STBox *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_hasx(box: 'const STBox *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) +def stbox_hasx(box: "const STBox *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_hasz(box: 'const STBox *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) +def stbox_hasz(box: "const STBox *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hasz(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_isgeodetic(box: 'const STBox *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) +def stbox_isgeodetic(box: "const STBox *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_isgeodetic(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_perimeter(box: 'const STBox *', spheroid: bool) -> 'double': - box_converted = _ffi.cast('const STBox *', box) +def stbox_perimeter(box: "const STBox *", spheroid: bool) -> "double": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_perimeter(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def stbox_tmax(box: 'const STBox *') -> int: - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('TimestampTz *') +def stbox_tmax(box: "const STBox *") -> int: + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("TimestampTz *") result = _lib.stbox_tmax(box_converted, out_result) _check_error() if result: @@ -11078,9 +11763,9 @@ def stbox_tmax(box: 'const STBox *') -> int: return None -def stbox_tmax_inc(box: 'const STBox *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('bool *') +def stbox_tmax_inc(box: "const STBox *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("bool *") result = _lib.stbox_tmax_inc(box_converted, out_result) _check_error() if result: @@ -11088,9 +11773,9 @@ def stbox_tmax_inc(box: 'const STBox *') -> 'bool': return None -def stbox_tmin(box: 'const STBox *') -> int: - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('TimestampTz *') +def stbox_tmin(box: "const STBox *") -> int: + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("TimestampTz *") result = _lib.stbox_tmin(box_converted, out_result) _check_error() if result: @@ -11098,9 +11783,9 @@ def stbox_tmin(box: 'const STBox *') -> int: return None -def stbox_tmin_inc(box: 'const STBox *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('bool *') +def stbox_tmin_inc(box: "const STBox *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("bool *") result = _lib.stbox_tmin_inc(box_converted, out_result) _check_error() if result: @@ -11108,16 +11793,16 @@ def stbox_tmin_inc(box: 'const STBox *') -> 'bool': return None -def stbox_volume(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) +def stbox_volume(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_volume(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_xmax(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('double *') +def stbox_xmax(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("double *") result = _lib.stbox_xmax(box_converted, out_result) _check_error() if result: @@ -11125,9 +11810,9 @@ def stbox_xmax(box: 'const STBox *') -> 'double': return None -def stbox_xmin(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('double *') +def stbox_xmin(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("double *") result = _lib.stbox_xmin(box_converted, out_result) _check_error() if result: @@ -11135,9 +11820,9 @@ def stbox_xmin(box: 'const STBox *') -> 'double': return None -def stbox_ymax(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('double *') +def stbox_ymax(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("double *") result = _lib.stbox_ymax(box_converted, out_result) _check_error() if result: @@ -11145,9 +11830,9 @@ def stbox_ymax(box: 'const STBox *') -> 'double': return None -def stbox_ymin(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('double *') +def stbox_ymin(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("double *") result = _lib.stbox_ymin(box_converted, out_result) _check_error() if result: @@ -11155,9 +11840,9 @@ def stbox_ymin(box: 'const STBox *') -> 'double': return None -def stbox_zmax(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('double *') +def stbox_zmax(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("double *") result = _lib.stbox_zmax(box_converted, out_result) _check_error() if result: @@ -11165,9 +11850,9 @@ def stbox_zmax(box: 'const STBox *') -> 'double': return None -def stbox_zmin(box: 'const STBox *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - out_result = _ffi.new('double *') +def stbox_zmin(box: "const STBox *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + out_result = _ffi.new("double *") result = _lib.stbox_zmin(box_converted, out_result) _check_error() if result: @@ -11175,634 +11860,723 @@ def stbox_zmin(box: 'const STBox *') -> 'double': return None -def stbox_expand_space(box: 'const STBox *', d: float) -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_expand_space(box: "const STBox *", d: float) -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_expand_space(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def stbox_expand_time(box: 'const STBox *', interv: 'const Interval *') -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) - interv_converted = _ffi.cast('const Interval *', interv) +def stbox_expand_time(box: "const STBox *", interv: "const Interval *") -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.stbox_expand_time(box_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_get_space(box: 'const STBox *') -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_get_space(box: "const STBox *") -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_get_space(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_quad_split(box: 'const STBox *') -> "Tuple['STBox *', 'int']": - box_converted = _ffi.cast('const STBox *', box) - count = _ffi.new('int *') +def stbox_quad_split(box: "const STBox *") -> "Tuple['STBox *', 'int']": + box_converted = _ffi.cast("const STBox *", box) + count = _ffi.new("int *") result = _lib.stbox_quad_split(box_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def stbox_round(box: 'const STBox *', maxdd: int) -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_round(box: "const STBox *", maxdd: int) -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_round(box_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def stbox_shift_scale_time(box: 'const STBox *', shift: "Optional['const Interval *']", duration: "Optional['const Interval *']") -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) - shift_converted = _ffi.cast('const Interval *', shift) if shift is not None else _ffi.NULL - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL - result = _lib.stbox_shift_scale_time(box_converted, shift_converted, duration_converted) +def stbox_shift_scale_time( + box: "const STBox *", + shift: "Optional['const Interval *']", + duration: "Optional['const Interval *']", +) -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) + shift_converted = ( + _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + ) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) + result = _lib.stbox_shift_scale_time( + box_converted, shift_converted, duration_converted + ) _check_error() return result if result != _ffi.NULL else None -def stboxarr_round(boxarr: 'const STBox *', count: int, maxdd: int) -> 'STBox *': - boxarr_converted = _ffi.cast('const STBox *', boxarr) +def stboxarr_round(boxarr: "const STBox *", count: int, maxdd: int) -> "STBox *": + boxarr_converted = _ffi.cast("const STBox *", boxarr) result = _lib.stboxarr_round(boxarr_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def stbox_set_srid(box: 'const STBox *', srid: 'int32_t') -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) - srid_converted = _ffi.cast('int32_t', srid) +def stbox_set_srid(box: "const STBox *", srid: "int32_t") -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.stbox_set_srid(box_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_srid(box: 'const STBox *') -> 'int32_t': - box_converted = _ffi.cast('const STBox *', box) +def stbox_srid(box: "const STBox *") -> "int32_t": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_srid(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_transform(box: 'const STBox *', srid: 'int32_t') -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) - srid_converted = _ffi.cast('int32_t', srid) +def stbox_transform(box: "const STBox *", srid: "int32_t") -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.stbox_transform(box_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_transform_pipeline(box: 'const STBox *', pipelinestr: str, srid: 'int32_t', is_forward: bool) -> 'STBox *': - box_converted = _ffi.cast('const STBox *', box) - pipelinestr_converted = pipelinestr.encode('utf-8') - srid_converted = _ffi.cast('int32_t', srid) - result = _lib.stbox_transform_pipeline(box_converted, pipelinestr_converted, srid_converted, is_forward) +def stbox_transform_pipeline( + box: "const STBox *", pipelinestr: str, srid: "int32_t", is_forward: bool +) -> "STBox *": + box_converted = _ffi.cast("const STBox *", box) + pipelinestr_converted = pipelinestr.encode("utf-8") + srid_converted = _ffi.cast("int32_t", srid) + result = _lib.stbox_transform_pipeline( + box_converted, pipelinestr_converted, srid_converted, is_forward + ) _check_error() return result if result != _ffi.NULL else None -def adjacent_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def adjacent_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.adjacent_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def contained_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.contained_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def contains_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.contains_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overlaps_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overlaps_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def same_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def same_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.same_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def above_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def above_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.above_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def after_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def after_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.after_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def back_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def back_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.back_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def before_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def before_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.before_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def below_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def below_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.below_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def front_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def front_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.front_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def left_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def left_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.left_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overabove_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overabove_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overafter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overafter_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overback_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overback_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overback_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overbefore_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overbefore_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overbelow_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overbelow_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overbelow_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overfront_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overfront_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overfront_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overleft_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overleft_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def overright_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overright_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def right_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def right_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.right_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def union_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *', strict: bool) -> 'STBox *': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def union_stbox_stbox( + box1: "const STBox *", box2: "const STBox *", strict: bool +) -> "STBox *": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.union_stbox_stbox(box1_converted, box2_converted, strict) _check_error() return result if result != _ffi.NULL else None -def intersection_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'STBox *': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def intersection_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.intersection_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_cmp(box1: 'const STBox *', box2: 'const STBox *') -> 'int': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_cmp(box1: "const STBox *", box2: "const STBox *") -> "int": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_cmp(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_eq(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_eq(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_eq(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_ge(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_ge(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_ge(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_gt(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_gt(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_gt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_le(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_le(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_le(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_lt(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_lt(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_lt(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_ne(box1: 'const STBox *', box2: 'const STBox *') -> 'bool': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def stbox_ne(box1: "const STBox *", box2: "const STBox *") -> "bool": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_ne(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def rtree_create_stbox() -> 'RTree *': +def rtree_create_stbox() -> "RTree *": result = _lib.rtree_create_stbox() _check_error() return result if result != _ffi.NULL else None -def rtree_free(rtree: 'RTree *') -> None: - rtree_converted = _ffi.cast('RTree *', rtree) +def rtree_free(rtree: "RTree *") -> None: + rtree_converted = _ffi.cast("RTree *", rtree) _lib.rtree_free(rtree_converted) _check_error() -def rtree_insert(rtree: 'RTree *', box: 'STBox *', id: int) -> None: - rtree_converted = _ffi.cast('RTree *', rtree) - box_converted = _ffi.cast('STBox *', box) - id_converted = _ffi.cast('int64', id) +def rtree_insert(rtree: "RTree *", box: "STBox *", id: int) -> None: + rtree_converted = _ffi.cast("RTree *", rtree) + box_converted = _ffi.cast("STBox *", box) + id_converted = _ffi.cast("int64", id) _lib.rtree_insert(rtree_converted, box_converted, id_converted) _check_error() -def rtree_search(rtree: 'const RTree *', query: 'const STBox *') -> "Tuple['int *', 'int']": - rtree_converted = _ffi.cast('const RTree *', rtree) - query_converted = _ffi.cast('const STBox *', query) - count = _ffi.new('int *') +def rtree_search( + rtree: "const RTree *", query: "const STBox *" +) -> "Tuple['int *', 'int']": + rtree_converted = _ffi.cast("const RTree *", rtree) + query_converted = _ffi.cast("const STBox *", query) + count = _ffi.new("int *") result = _lib.rtree_search(rtree_converted, query_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_out(temp: 'const Temporal *', maxdd: int) -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_out(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_out(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tgeogpoint_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeogpoint_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeogpoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeogpoint_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeogpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_from_mfjson(mfjson: str) -> 'Temporal *': - mfjson_converted = mfjson.encode('utf-8') +def tgeography_from_mfjson(mfjson: str) -> "Temporal *": + mfjson_converted = mfjson.encode("utf-8") result = _lib.tgeography_from_mfjson(mfjson_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeography_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeography_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeometry_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeometry_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeometry_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeometry_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_from_mfjson(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeompoint_from_mfjson(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeompoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tgeompoint_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tgeompoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_as_ewkt(temp: 'const Temporal *', maxdd: int) -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tspatial_as_ewkt(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_as_ewkt(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tspatial_as_text(temp: 'const Temporal *', maxdd: int) -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tspatial_as_text(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_as_text(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tgeo_from_base_temp(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_from_base_temp( + gs: "const GSERIALIZED *", temp: "const Temporal *" +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_from_base_temp(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeoinst_make(gs: 'const GSERIALIZED *', t: int) -> 'TInstant *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - t_converted = _ffi.cast('TimestampTz', t) +def tgeoinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tgeoinst_make(gs_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tgeoseq_from_base_tstzset(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'TSequence *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Set *', s) +def tgeoseq_from_base_tstzset( + gs: "const GSERIALIZED *", s: "const Set *" +) -> "TSequence *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Set *", s) result = _lib.tgeoseq_from_base_tstzset(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tgeoseq_from_base_tstzspan(gs: 'const GSERIALIZED *', s: 'const Span *', interp: 'interpType') -> 'TSequence *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Span *', s) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tgeoseq_from_base_tstzspan(gs_converted, s_converted, interp_converted) +def tgeoseq_from_base_tstzspan( + gs: "const GSERIALIZED *", s: "const Span *", interp: "interpType" +) -> "TSequence *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Span *", s) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tgeoseq_from_base_tstzspan( + gs_converted, s_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tgeoseqset_from_base_tstzspanset(gs: 'const GSERIALIZED *', ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - ss_converted = _ffi.cast('const SpanSet *', ss) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tgeoseqset_from_base_tstzspanset(gs_converted, ss_converted, interp_converted) +def tgeoseqset_from_base_tstzspanset( + gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: "interpType" +) -> "TSequenceSet *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + ss_converted = _ffi.cast("const SpanSet *", ss) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tgeoseqset_from_base_tstzspanset( + gs_converted, ss_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tpoint_from_base_temp(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_from_base_temp( + gs: "const GSERIALIZED *", temp: "const Temporal *" +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_from_base_temp(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpointinst_make(gs: 'const GSERIALIZED *', t: int) -> 'TInstant *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - t_converted = _ffi.cast('TimestampTz', t) +def tpointinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tpointinst_make(gs_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_from_base_tstzset(gs: 'const GSERIALIZED *', s: 'const Set *') -> 'TSequence *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Set *', s) +def tpointseq_from_base_tstzset( + gs: "const GSERIALIZED *", s: "const Set *" +) -> "TSequence *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Set *", s) result = _lib.tpointseq_from_base_tstzset(gs_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_from_base_tstzspan(gs: 'const GSERIALIZED *', s: 'const Span *', interp: 'interpType') -> 'TSequence *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - s_converted = _ffi.cast('const Span *', s) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tpointseq_from_base_tstzspan(gs_converted, s_converted, interp_converted) +def tpointseq_from_base_tstzspan( + gs: "const GSERIALIZED *", s: "const Span *", interp: "interpType" +) -> "TSequence *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + s_converted = _ffi.cast("const Span *", s) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tpointseq_from_base_tstzspan( + gs_converted, s_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tpointseq_make_coords(xcoords: 'const double *', ycoords: 'const double *', zcoords: 'const double *', times: int, count: int, srid: int, geodetic: bool, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': - xcoords_converted = _ffi.cast('const double *', xcoords) - ycoords_converted = _ffi.cast('const double *', ycoords) - zcoords_converted = _ffi.cast('const double *', zcoords) - times_converted = _ffi.cast('const TimestampTz *', times) - srid_converted = _ffi.cast('int32', srid) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tpointseq_make_coords(xcoords_converted, ycoords_converted, zcoords_converted, times_converted, count, srid_converted, geodetic, lower_inc, upper_inc, interp_converted, normalize) +def tpointseq_make_coords( + xcoords: "const double *", + ycoords: "const double *", + zcoords: "const double *", + times: int, + count: int, + srid: int, + geodetic: bool, + lower_inc: bool, + upper_inc: bool, + interp: "interpType", + normalize: bool, +) -> "TSequence *": + xcoords_converted = _ffi.cast("const double *", xcoords) + ycoords_converted = _ffi.cast("const double *", ycoords) + zcoords_converted = _ffi.cast("const double *", zcoords) + times_converted = _ffi.cast("const TimestampTz *", times) + srid_converted = _ffi.cast("int32", srid) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tpointseq_make_coords( + xcoords_converted, + ycoords_converted, + zcoords_converted, + times_converted, + count, + srid_converted, + geodetic, + lower_inc, + upper_inc, + interp_converted, + normalize, + ) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_from_base_tstzspanset(gs: 'const GSERIALIZED *', ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - ss_converted = _ffi.cast('const SpanSet *', ss) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tpointseqset_from_base_tstzspanset(gs_converted, ss_converted, interp_converted) +def tpointseqset_from_base_tstzspanset( + gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: "interpType" +) -> "TSequenceSet *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + ss_converted = _ffi.cast("const SpanSet *", ss) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tpointseqset_from_base_tstzspanset( + gs_converted, ss_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def box3d_to_stbox(box: 'const BOX3D *') -> 'STBox *': - box_converted = _ffi.cast('const BOX3D *', box) +def box3d_to_stbox(box: "const BOX3D *") -> "STBox *": + box_converted = _ffi.cast("const BOX3D *", box) result = _lib.box3d_to_stbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def gbox_to_stbox(box: 'const GBOX *') -> 'STBox *': - box_converted = _ffi.cast('const GBOX *', box) +def gbox_to_stbox(box: "const GBOX *") -> "STBox *": + box_converted = _ffi.cast("const GBOX *", box) result = _lib.gbox_to_stbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def geomeas_to_tpoint(gs: 'const GSERIALIZED *') -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geomeas_to_tpoint(gs: "const GSERIALIZED *") -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geomeas_to_tpoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_to_tgeography(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeogpoint_to_tgeography(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeogpoint_to_tgeography(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_to_tgeogpoint(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeography_to_tgeogpoint(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeography_to_tgeogpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_to_tgeometry(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeography_to_tgeometry(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeography_to_tgeometry(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_to_tgeography(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeometry_to_tgeography(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeometry_to_tgeography(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_to_tgeompoint(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeometry_to_tgeompoint(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeometry_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_to_tgeometry(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeompoint_to_tgeometry(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeompoint_to_tgeometry(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_as_mvtgeom(temp: 'const Temporal *', bounds: 'const STBox *', extent: 'int32_t', buffer: 'int32_t', clip_geom: bool, gsarr: 'GSERIALIZED **', timesarr: 'int64 **') -> "Tuple['bool', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - bounds_converted = _ffi.cast('const STBox *', bounds) - extent_converted = _ffi.cast('int32_t', extent) - buffer_converted = _ffi.cast('int32_t', buffer) - gsarr_converted = [_ffi.cast('GSERIALIZED *', x) for x in gsarr] - timesarr_converted = [_ffi.cast('int64 *', x) for x in timesarr] - count = _ffi.new('int *') - result = _lib.tpoint_as_mvtgeom(temp_converted, bounds_converted, extent_converted, buffer_converted, clip_geom, gsarr_converted, timesarr_converted, count) +def tpoint_as_mvtgeom( + temp: "const Temporal *", + bounds: "const STBox *", + extent: "int32_t", + buffer: "int32_t", + clip_geom: bool, + gsarr: "GSERIALIZED **", + timesarr: "int64 **", +) -> "Tuple['bool', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + bounds_converted = _ffi.cast("const STBox *", bounds) + extent_converted = _ffi.cast("int32_t", extent) + buffer_converted = _ffi.cast("int32_t", buffer) + gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] + timesarr_converted = [_ffi.cast("int64 *", x) for x in timesarr] + count = _ffi.new("int *") + result = _lib.tpoint_as_mvtgeom( + temp_converted, + bounds_converted, + extent_converted, + buffer_converted, + clip_geom, + gsarr_converted, + timesarr_converted, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tpoint_tfloat_to_geomeas(tpoint: 'const Temporal *', measure: 'const Temporal *', segmentize: bool) -> 'GSERIALIZED **': - tpoint_converted = _ffi.cast('const Temporal *', tpoint) - measure_converted = _ffi.cast('const Temporal *', measure) - out_result = _ffi.new('GSERIALIZED **') - result = _lib.tpoint_tfloat_to_geomeas(tpoint_converted, measure_converted, segmentize, out_result) +def tpoint_tfloat_to_geomeas( + tpoint: "const Temporal *", measure: "const Temporal *", segmentize: bool +) -> "GSERIALIZED **": + tpoint_converted = _ffi.cast("const Temporal *", tpoint) + measure_converted = _ffi.cast("const Temporal *", measure) + out_result = _ffi.new("GSERIALIZED **") + result = _lib.tpoint_tfloat_to_geomeas( + tpoint_converted, measure_converted, segmentize, out_result + ) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tspatial_to_stbox(temp: 'const Temporal *') -> 'STBox *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tspatial_to_stbox(temp: "const Temporal *") -> "STBox *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_to_stbox(temp_converted) _check_error() return result if result != _ffi.NULL else None -def bearing_point_point(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') -> 'double': - gs1_converted = _ffi.cast('const GSERIALIZED *', gs1) - gs2_converted = _ffi.cast('const GSERIALIZED *', gs2) - out_result = _ffi.new('double *') +def bearing_point_point( + gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" +) -> "double": + gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) + gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) + out_result = _ffi.new("double *") result = _lib.bearing_point_point(gs1_converted, gs2_converted, out_result) _check_error() if result: @@ -11810,69 +12584,77 @@ def bearing_point_point(gs1: 'const GSERIALIZED *', gs2: 'const GSERIALIZED *') return None -def bearing_tpoint_point(temp: 'const Temporal *', gs: 'const GSERIALIZED *', invert: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def bearing_tpoint_point( + temp: "const Temporal *", gs: "const GSERIALIZED *", invert: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.bearing_tpoint_point(temp_converted, gs_converted, invert) _check_error() return result if result != _ffi.NULL else None -def bearing_tpoint_tpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def bearing_tpoint_tpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.bearing_tpoint_tpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_centroid(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_centroid(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_centroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_convex_hull(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_convex_hull(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_convex_hull(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_end_value(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_end_value(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_start_value(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_start_value(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_traversed_area(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_traversed_area(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_traversed_area(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool, value: 'GSERIALIZED **') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) - value_converted = [_ffi.cast('GSERIALIZED *', x) for x in value] - result = _lib.tgeo_value_at_timestamptz(temp_converted, t_converted, strict, value_converted) +def tgeo_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool, value: "GSERIALIZED **" +) -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) + value_converted = [_ffi.cast("GSERIALIZED *", x) for x in value] + result = _lib.tgeo_value_at_timestamptz( + temp_converted, t_converted, strict, value_converted + ) _check_error() return result if result != _ffi.NULL else None -def tgeo_value_n(temp: 'const Temporal *', n: int) -> 'GSERIALIZED **': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('GSERIALIZED **') +def tgeo_value_n(temp: "const Temporal *", n: int) -> "GSERIALIZED **": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("GSERIALIZED **") result = _lib.tgeo_value_n(temp_converted, n, out_result) _check_error() if result: @@ -11880,38 +12662,38 @@ def tgeo_value_n(temp: 'const Temporal *', n: int) -> 'GSERIALIZED **': return None -def tgeo_values(temp: 'const Temporal *') -> "Tuple['GSERIALIZED **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tgeo_values(temp: "const Temporal *") -> "Tuple['GSERIALIZED **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tgeo_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tpoint_angular_difference(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_angular_difference(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_azimuth(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_azimuth(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_azimuth(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_cumulative_length(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_cumulative_length(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_direction(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('double *') +def tpoint_direction(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("double *") result = _lib.tpoint_direction(temp_converted, out_result) _check_error() if result: @@ -11919,1739 +12701,2073 @@ def tpoint_direction(temp: 'const Temporal *') -> 'double': return None -def tpoint_get_x(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_get_x(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_x(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_get_y(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_get_y(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_y(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_get_z(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_get_z(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_z(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_is_simple(temp: 'const Temporal *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_is_simple(temp: "const Temporal *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_is_simple(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_length(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_length(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_trajectory(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_trajectory(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_trajectory(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_twcentroid(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_twcentroid(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_twcentroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_affine(temp: 'const Temporal *', a: 'const AFFINE *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - a_converted = _ffi.cast('const AFFINE *', a) +def tgeo_affine(temp: "const Temporal *", a: "const AFFINE *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + a_converted = _ffi.cast("const AFFINE *", a) result = _lib.tgeo_affine(temp_converted, a_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_scale(temp: 'const Temporal *', scale: 'const GSERIALIZED *', sorigin: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - scale_converted = _ffi.cast('const GSERIALIZED *', scale) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) +def tgeo_scale( + temp: "const Temporal *", + scale: "const GSERIALIZED *", + sorigin: "const GSERIALIZED *", +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + scale_converted = _ffi.cast("const GSERIALIZED *", scale) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) result = _lib.tgeo_scale(temp_converted, scale_converted, sorigin_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_make_simple(temp: 'const Temporal *') -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tpoint_make_simple(temp: "const Temporal *") -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tpoint_make_simple(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tspatial_srid(temp: 'const Temporal *') -> 'int32_t': - temp_converted = _ffi.cast('const Temporal *', temp) +def tspatial_srid(temp: "const Temporal *") -> "int32_t": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_srid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_set_srid(temp: 'const Temporal *', srid: 'int32_t') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - srid_converted = _ffi.cast('int32_t', srid) +def tspatial_set_srid(temp: "const Temporal *", srid: "int32_t") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.tspatial_set_srid(temp_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_transform(temp: 'const Temporal *', srid: 'int32_t') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - srid_converted = _ffi.cast('int32_t', srid) +def tspatial_transform(temp: "const Temporal *", srid: "int32_t") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.tspatial_transform(temp_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_transform_pipeline(temp: 'const Temporal *', pipelinestr: str, srid: 'int32_t', is_forward: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - pipelinestr_converted = pipelinestr.encode('utf-8') - srid_converted = _ffi.cast('int32_t', srid) - result = _lib.tspatial_transform_pipeline(temp_converted, pipelinestr_converted, srid_converted, is_forward) +def tspatial_transform_pipeline( + temp: "const Temporal *", pipelinestr: str, srid: "int32_t", is_forward: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + pipelinestr_converted = pipelinestr.encode("utf-8") + srid_converted = _ffi.cast("int32_t", srid) + result = _lib.tspatial_transform_pipeline( + temp_converted, pipelinestr_converted, srid_converted, is_forward + ) _check_error() return result if result != _ffi.NULL else None -def tgeo_at_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tgeo_at_geom(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tgeo_at_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_at_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def tgeo_at_stbox( + temp: "const Temporal *", box: "const STBox *", border_inc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_at_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def tgeo_at_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def tgeo_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tgeo_at_value(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_minus_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tgeo_minus_geom( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tgeo_minus_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_minus_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def tgeo_minus_stbox( + temp: "const Temporal *", box: "const STBox *", border_inc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_minus_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def tgeo_minus_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def tgeo_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tgeo_minus_value(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_at_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *', zspan: 'const Span *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - zspan_converted = _ffi.cast('const Span *', zspan) +def tpoint_at_geom( + temp: "const Temporal *", gs: "const GSERIALIZED *", zspan: "const Span *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + zspan_converted = _ffi.cast("const Span *", zspan) result = _lib.tpoint_at_geom(temp_converted, gs_converted, zspan_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_at_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def tpoint_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tpoint_at_value(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_minus_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *', zspan: 'const Span *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - zspan_converted = _ffi.cast('const Span *', zspan) +def tpoint_minus_geom( + temp: "const Temporal *", gs: "const GSERIALIZED *", zspan: "const Span *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + zspan_converted = _ffi.cast("const Span *", zspan) result = _lib.tpoint_minus_geom(temp_converted, gs_converted, zspan_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_minus_value(temp: 'const Temporal *', gs: 'GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('GSERIALIZED *', gs) +def tpoint_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tpoint_minus_value(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def always_eq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.always_eq_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_eq_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_eq_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def always_ne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.always_ne_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_ne_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ne_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def ever_eq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ever_eq_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_eq_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_eq_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def ever_ne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ever_ne_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_ne_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ne_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def teq_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def teq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def teq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.teq_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tne_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tne_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_stboxes(temp: 'const Temporal *') -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tgeo_stboxes(temp: "const Temporal *") -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tgeo_stboxes(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_space_boxes(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *', bitmatrix: bool, border_inc: bool) -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - count = _ffi.new('int *') - result = _lib.tgeo_space_boxes(temp_converted, xsize, ysize, zsize, sorigin_converted, bitmatrix, border_inc, count) +def tgeo_space_boxes( + temp: "const Temporal *", + xsize: float, + ysize: float, + zsize: float, + sorigin: "const GSERIALIZED *", + bitmatrix: bool, + border_inc: bool, +) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + count = _ffi.new("int *") + result = _lib.tgeo_space_boxes( + temp_converted, + xsize, + ysize, + zsize, + sorigin_converted, + bitmatrix, + border_inc, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_space_time_boxes(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, duration: 'const Interval *', sorigin: 'const GSERIALIZED *', torigin: int, bitmatrix: bool, border_inc: bool) -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tgeo_space_time_boxes(temp_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted, bitmatrix, border_inc, count) +def tgeo_space_time_boxes( + temp: "const Temporal *", + xsize: float, + ysize: float, + zsize: float, + duration: "const Interval *", + sorigin: "const GSERIALIZED *", + torigin: int, + bitmatrix: bool, + border_inc: bool, +) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tgeo_space_time_boxes( + temp_converted, + xsize, + ysize, + zsize, + duration_converted, + sorigin_converted, + torigin_converted, + bitmatrix, + border_inc, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_split_each_n_stboxes(temp: 'const Temporal *', elem_count: int) -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tgeo_split_each_n_stboxes( + temp: "const Temporal *", elem_count: int +) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tgeo_split_each_n_stboxes(temp_converted, elem_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_split_n_stboxes(temp: 'const Temporal *', box_count: int) -> "Tuple['STBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tgeo_split_n_stboxes( + temp: "const Temporal *", box_count: int +) -> "Tuple['STBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tgeo_split_n_stboxes(temp_converted, box_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def adjacent_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def adjacent_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def adjacent_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.adjacent_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def adjacent_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adjacent_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contained_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def contained_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def contained_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.contained_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contained_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def contained_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contained_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def contains_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def contains_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def contains_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.contains_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def contains_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def contains_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contains_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overlaps_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overlaps_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overlaps_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overlaps_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overlaps_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overlaps_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def same_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def same_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def same_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def same_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.same_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def same_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def same_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.same_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def above_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def above_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.above_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def above_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def above_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.above_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def above_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def above_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.above_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def after_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def after_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.after_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def after_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def after_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.after_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def after_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def after_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.after_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def back_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def back_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.back_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def back_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def back_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.back_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def back_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def back_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.back_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def before_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def before_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.before_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def before_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def before_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.before_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def before_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def before_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.before_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def below_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def below_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.below_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def below_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def below_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.below_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def below_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def below_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.below_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def front_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def front_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.front_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def front_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def front_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.front_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def front_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def front_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.front_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def left_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def left_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.left_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def left_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def left_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.left_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def left_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def left_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.left_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overabove_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overabove_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overabove_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overabove_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overabove_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overabove_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overabove_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overafter_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overafter_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overafter_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overafter_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overafter_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overafter_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overafter_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overback_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overback_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overback_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overback_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overback_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overback_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overback_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overback_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overback_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overbefore_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbefore_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overbefore_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overbefore_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overbefore_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overbefore_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbefore_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overbelow_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overbelow_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbelow_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overbelow_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overbelow_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overbelow_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overbelow_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overbelow_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbelow_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overfront_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overfront_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overfront_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overfront_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overfront_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overfront_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overfront_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overfront_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overfront_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overleft_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overleft_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overleft_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overleft_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overleft_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overleft_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def overright_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def overright_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overright_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def overright_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.overright_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def overright_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def overright_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overright_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def right_stbox_tspatial(box: 'const STBox *', temp: 'const Temporal *') -> 'bool': - box_converted = _ffi.cast('const STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def right_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": + box_converted = _ffi.cast("const STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.right_stbox_tspatial(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def right_tspatial_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def right_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.right_tspatial_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def right_tspatial_tspatial(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'bool': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def right_tspatial_tspatial( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "bool": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.right_tspatial_tspatial(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def acontains_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def acontains_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.acontains_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def acontains_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def acontains_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.acontains_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def acontains_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def acontains_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.acontains_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adisjoint_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def adisjoint_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.adisjoint_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def adisjoint_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def adisjoint_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adisjoint_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def adwithin_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', dist: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def adwithin_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", dist: float +) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.adwithin_tgeo_geo(temp_converted, gs_converted, dist) _check_error() return result if result != _ffi.NULL else None -def adwithin_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', dist: float) -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def adwithin_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", dist: float +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist) _check_error() return result if result != _ffi.NULL else None -def aintersects_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def aintersects_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.aintersects_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def aintersects_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def aintersects_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.aintersects_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def atouches_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def atouches_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.atouches_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def atouches_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def atouches_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.atouches_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def atouches_tpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def atouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.atouches_tpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def econtains_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def econtains_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.econtains_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def econtains_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def econtains_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.econtains_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def econtains_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def econtains_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.econtains_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ecovers_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *') -> 'int': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def ecovers_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ecovers_geo_tgeo(gs_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ecovers_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def ecovers_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ecovers_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def ecovers_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ecovers_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ecovers_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def edisjoint_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def edisjoint_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.edisjoint_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def edisjoint_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def edisjoint_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.edisjoint_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def edwithin_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', dist: float) -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def edwithin_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", dist: float +) -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.edwithin_tgeo_geo(temp_converted, gs_converted, dist) _check_error() return result if result != _ffi.NULL else None -def edwithin_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', dist: float) -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def edwithin_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", dist: float +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.edwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist) _check_error() return result if result != _ffi.NULL else None -def eintersects_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def eintersects_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.eintersects_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def eintersects_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def eintersects_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.eintersects_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def etouches_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def etouches_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.etouches_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def etouches_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def etouches_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.etouches_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def etouches_tpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def etouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.etouches_tpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tcontains_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tcontains_geo_tgeo( + gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tcontains_geo_tgeo(gs_converted, temp_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tcontains_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tcontains_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tcontains_tgeo_geo(temp_converted, gs_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tcontains_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tcontains_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tcontains_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tcovers_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tcovers_geo_tgeo( + gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tcovers_geo_tgeo(gs_converted, temp_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tcovers_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tcovers_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tcovers_tgeo_geo(temp_converted, gs_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tcovers_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tcovers_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tcovers_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdisjoint_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tdisjoint_geo_tgeo( + gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdisjoint_geo_tgeo(gs_converted, temp_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdisjoint_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tdisjoint_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdisjoint_tgeo_geo(temp_converted, gs_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdisjoint_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tdisjoint_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdisjoint_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdwithin_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', dist: float, restr: bool, atvalue: bool) -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tdwithin_geo_tgeo( + gs: "const GSERIALIZED *", + temp: "const Temporal *", + dist: float, + restr: bool, + atvalue: bool, +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdwithin_geo_tgeo(gs_converted, temp_converted, dist, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdwithin_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', dist: float, restr: bool, atvalue: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tdwithin_tgeo_geo( + temp: "const Temporal *", + gs: "const GSERIALIZED *", + dist: float, + restr: bool, + atvalue: bool, +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdwithin_tgeo_geo(temp_converted, gs_converted, dist, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdwithin_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', dist: float, restr: bool, atvalue: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) - result = _lib.tdwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist, restr, atvalue) +def tdwithin_tgeo_tgeo( + temp1: "const Temporal *", + temp2: "const Temporal *", + dist: float, + restr: bool, + atvalue: bool, +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.tdwithin_tgeo_tgeo( + temp1_converted, temp2_converted, dist, restr, atvalue + ) _check_error() return result if result != _ffi.NULL else None -def tintersects_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def tintersects_geo_tgeo( + gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tintersects_geo_tgeo(gs_converted, temp_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tintersects_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tintersects_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tintersects_tgeo_geo(temp_converted, gs_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tintersects_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) - result = _lib.tintersects_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) +def tintersects_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) + result = _lib.tintersects_tgeo_tgeo( + temp1_converted, temp2_converted, restr, atvalue + ) _check_error() return result if result != _ffi.NULL else None -def ttouches_geo_tgeo(gs: 'const GSERIALIZED *', temp: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - temp_converted = _ffi.cast('const Temporal *', temp) +def ttouches_geo_tgeo( + gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttouches_geo_tgeo(gs_converted, temp_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def ttouches_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *', restr: bool, atvalue: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def ttouches_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ttouches_tgeo_geo(temp_converted, gs_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def ttouches_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *', restr: bool, atvalue: bool) -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ttouches_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ttouches_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None -def tdistance_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tdistance_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdistance_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tdistance_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_stbox_geo(box: 'const STBox *', gs: 'const GSERIALIZED *') -> 'double': - box_converted = _ffi.cast('const STBox *', box) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def nad_stbox_geo(box: "const STBox *", gs: "const GSERIALIZED *") -> "double": + box_converted = _ffi.cast("const STBox *", box) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nad_stbox_geo(box_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nad_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'double': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) +def nad_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "double": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) result = _lib.nad_stbox_stbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def nad_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nad_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tgeo_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def nad_tgeo_stbox(temp: "const Temporal *", box: "const STBox *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.nad_tgeo_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nad_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nai_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def nai_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nai_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nai_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'TInstant *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nai_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "TInstant *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nai_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def shortestline_tgeo_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def shortestline_tgeo_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.shortestline_tgeo_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def shortestline_tgeo_tgeo(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'GSERIALIZED *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def shortestline_tgeo_tgeo( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "GSERIALIZED *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.shortestline_tgeo_tgeo(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_tcentroid_finalfn(state: 'SkipList *') -> 'Temporal *': - state_converted = _ffi.cast('SkipList *', state) +def tpoint_tcentroid_finalfn(state: "SkipList *") -> "Temporal *": + state_converted = _ffi.cast("SkipList *", state) result = _lib.tpoint_tcentroid_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_tcentroid_transfn(state: 'SkipList *', temp: 'Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('Temporal *', temp) +def tpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("Temporal *", temp) result = _lib.tpoint_tcentroid_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_extent_transfn(box: 'STBox *', temp: 'const Temporal *') -> 'STBox *': - box_converted = _ffi.cast('STBox *', box) - temp_converted = _ffi.cast('const Temporal *', temp) +def tspatial_extent_transfn(box: "STBox *", temp: "const Temporal *") -> "STBox *": + box_converted = _ffi.cast("STBox *", box) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_extent_transfn(box_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_get_space_tile(point: 'const GSERIALIZED *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *') -> 'STBox *': - point_converted = _ffi.cast('const GSERIALIZED *', point) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - result = _lib.stbox_get_space_tile(point_converted, xsize, ysize, zsize, sorigin_converted) +def stbox_get_space_tile( + point: "const GSERIALIZED *", + xsize: float, + ysize: float, + zsize: float, + sorigin: "const GSERIALIZED *", +) -> "STBox *": + point_converted = _ffi.cast("const GSERIALIZED *", point) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + result = _lib.stbox_get_space_tile( + point_converted, xsize, ysize, zsize, sorigin_converted + ) _check_error() return result if result != _ffi.NULL else None -def stbox_get_space_time_tile(point: 'const GSERIALIZED *', t: int, xsize: float, ysize: float, zsize: float, duration: 'const Interval *', sorigin: 'const GSERIALIZED *', torigin: int) -> 'STBox *': - point_converted = _ffi.cast('const GSERIALIZED *', point) - t_converted = _ffi.cast('TimestampTz', t) - duration_converted = _ffi.cast('const Interval *', duration) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - result = _lib.stbox_get_space_time_tile(point_converted, t_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted) +def stbox_get_space_time_tile( + point: "const GSERIALIZED *", + t: int, + xsize: float, + ysize: float, + zsize: float, + duration: "const Interval *", + sorigin: "const GSERIALIZED *", + torigin: int, +) -> "STBox *": + point_converted = _ffi.cast("const GSERIALIZED *", point) + t_converted = _ffi.cast("TimestampTz", t) + duration_converted = _ffi.cast("const Interval *", duration) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.stbox_get_space_time_tile( + point_converted, + t_converted, + xsize, + ysize, + zsize, + duration_converted, + sorigin_converted, + torigin_converted, + ) _check_error() return result if result != _ffi.NULL else None -def stbox_get_time_tile(t: int, duration: 'const Interval *', torigin: int) -> 'STBox *': - t_converted = _ffi.cast('TimestampTz', t) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - result = _lib.stbox_get_time_tile(t_converted, duration_converted, torigin_converted) +def stbox_get_time_tile( + t: int, duration: "const Interval *", torigin: int +) -> "STBox *": + t_converted = _ffi.cast("TimestampTz", t) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + result = _lib.stbox_get_time_tile( + t_converted, duration_converted, torigin_converted + ) _check_error() return result if result != _ffi.NULL else None -def stbox_space_tiles(bounds: 'const STBox *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *', border_inc: bool) -> "Tuple['STBox *', 'int']": - bounds_converted = _ffi.cast('const STBox *', bounds) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - count = _ffi.new('int *') - result = _lib.stbox_space_tiles(bounds_converted, xsize, ysize, zsize, sorigin_converted, border_inc, count) +def stbox_space_tiles( + bounds: "const STBox *", + xsize: float, + ysize: float, + zsize: float, + sorigin: "const GSERIALIZED *", + border_inc: bool, +) -> "Tuple['STBox *', 'int']": + bounds_converted = _ffi.cast("const STBox *", bounds) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + count = _ffi.new("int *") + result = _lib.stbox_space_tiles( + bounds_converted, xsize, ysize, zsize, sorigin_converted, border_inc, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def stbox_space_time_tiles(bounds: 'const STBox *', xsize: float, ysize: float, zsize: float, duration: "Optional['const Interval *']", sorigin: 'const GSERIALIZED *', torigin: int, border_inc: bool) -> "Tuple['STBox *', 'int']": - bounds_converted = _ffi.cast('const STBox *', bounds) - duration_converted = _ffi.cast('const Interval *', duration) if duration is not None else _ffi.NULL - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.stbox_space_time_tiles(bounds_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted, border_inc, count) +def stbox_space_time_tiles( + bounds: "const STBox *", + xsize: float, + ysize: float, + zsize: float, + duration: "Optional['const Interval *']", + sorigin: "const GSERIALIZED *", + torigin: int, + border_inc: bool, +) -> "Tuple['STBox *', 'int']": + bounds_converted = _ffi.cast("const STBox *", bounds) + duration_converted = ( + _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + ) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.stbox_space_time_tiles( + bounds_converted, + xsize, + ysize, + zsize, + duration_converted, + sorigin_converted, + torigin_converted, + border_inc, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def stbox_time_tiles(bounds: 'const STBox *', duration: 'const Interval *', torigin: int, border_inc: bool) -> "Tuple['STBox *', 'int']": - bounds_converted = _ffi.cast('const STBox *', bounds) - duration_converted = _ffi.cast('const Interval *', duration) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.stbox_time_tiles(bounds_converted, duration_converted, torigin_converted, border_inc, count) +def stbox_time_tiles( + bounds: "const STBox *", + duration: "const Interval *", + torigin: int, + border_inc: bool, +) -> "Tuple['STBox *', 'int']": + bounds_converted = _ffi.cast("const STBox *", bounds) + duration_converted = _ffi.cast("const Interval *", duration) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.stbox_time_tiles( + bounds_converted, duration_converted, torigin_converted, border_inc, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_space_split(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, sorigin: 'const GSERIALIZED *', bitmatrix: bool, border_inc: bool, space_bins: 'GSERIALIZED ***') -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - space_bins_converted = [_ffi.cast('GSERIALIZED **', x) for x in space_bins] - count = _ffi.new('int *') - result = _lib.tgeo_space_split(temp_converted, xsize, ysize, zsize, sorigin_converted, bitmatrix, border_inc, space_bins_converted, count) +def tgeo_space_split( + temp: "const Temporal *", + xsize: float, + ysize: float, + zsize: float, + sorigin: "const GSERIALIZED *", + bitmatrix: bool, + border_inc: bool, + space_bins: "GSERIALIZED ***", +) -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + space_bins_converted = [_ffi.cast("GSERIALIZED **", x) for x in space_bins] + count = _ffi.new("int *") + result = _lib.tgeo_space_split( + temp_converted, + xsize, + ysize, + zsize, + sorigin_converted, + bitmatrix, + border_inc, + space_bins_converted, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeo_space_time_split(temp: 'const Temporal *', xsize: float, ysize: float, zsize: float, duration: 'const Interval *', sorigin: 'const GSERIALIZED *', torigin: int, bitmatrix: bool, border_inc: bool, space_bins: 'GSERIALIZED ***', time_bins: 'TimestampTz **') -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - duration_converted = _ffi.cast('const Interval *', duration) - sorigin_converted = _ffi.cast('const GSERIALIZED *', sorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - space_bins_converted = [_ffi.cast('GSERIALIZED **', x) for x in space_bins] - time_bins_converted = [_ffi.cast('TimestampTz *', x) for x in time_bins] - count = _ffi.new('int *') - result = _lib.tgeo_space_time_split(temp_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted, bitmatrix, border_inc, space_bins_converted, time_bins_converted, count) +def tgeo_space_time_split( + temp: "const Temporal *", + xsize: float, + ysize: float, + zsize: float, + duration: "const Interval *", + sorigin: "const GSERIALIZED *", + torigin: int, + bitmatrix: bool, + border_inc: bool, + space_bins: "GSERIALIZED ***", + time_bins: "TimestampTz **", +) -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + duration_converted = _ffi.cast("const Interval *", duration) + sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + space_bins_converted = [_ffi.cast("GSERIALIZED **", x) for x in space_bins] + time_bins_converted = [_ffi.cast("TimestampTz *", x) for x in time_bins] + count = _ffi.new("int *") + result = _lib.tgeo_space_time_split( + temp_converted, + xsize, + ysize, + zsize, + duration_converted, + sorigin_converted, + torigin_converted, + bitmatrix, + border_inc, + space_bins_converted, + time_bins_converted, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def geo_cluster_kmeans(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t', k: 'uint32_t') -> 'int *': - geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] - ngeoms_converted = _ffi.cast('uint32_t', ngeoms) - k_converted = _ffi.cast('uint32_t', k) +def geo_cluster_kmeans( + geoms: "const GSERIALIZED **", ngeoms: "uint32_t", k: "uint32_t" +) -> "int *": + geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] + ngeoms_converted = _ffi.cast("uint32_t", ngeoms) + k_converted = _ffi.cast("uint32_t", k) result = _lib.geo_cluster_kmeans(geoms_converted, ngeoms_converted, k_converted) _check_error() return result if result != _ffi.NULL else None -def geo_cluster_dbscan(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t', tolerance: float, minpoints: int) -> 'uint32_t *': - geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] - ngeoms_converted = _ffi.cast('uint32_t', ngeoms) - result = _lib.geo_cluster_dbscan(geoms_converted, ngeoms_converted, tolerance, minpoints) +def geo_cluster_dbscan( + geoms: "const GSERIALIZED **", ngeoms: "uint32_t", tolerance: float, minpoints: int +) -> "uint32_t *": + geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] + ngeoms_converted = _ffi.cast("uint32_t", ngeoms) + result = _lib.geo_cluster_dbscan( + geoms_converted, ngeoms_converted, tolerance, minpoints + ) _check_error() return result if result != _ffi.NULL else None -def geo_cluster_intersecting(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t') -> "Tuple['GSERIALIZED **', 'int']": - geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] - ngeoms_converted = _ffi.cast('uint32_t', ngeoms) - count = _ffi.new('int *') +def geo_cluster_intersecting( + geoms: "const GSERIALIZED **", ngeoms: "uint32_t" +) -> "Tuple['GSERIALIZED **', 'int']": + geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] + ngeoms_converted = _ffi.cast("uint32_t", ngeoms) + count = _ffi.new("int *") result = _lib.geo_cluster_intersecting(geoms_converted, ngeoms_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def geo_cluster_within(geoms: 'const GSERIALIZED **', ngeoms: 'uint32_t', tolerance: float) -> "Tuple['GSERIALIZED **', 'int']": - geoms_converted = [_ffi.cast('const GSERIALIZED *', x) for x in geoms] - ngeoms_converted = _ffi.cast('uint32_t', ngeoms) - count = _ffi.new('int *') - result = _lib.geo_cluster_within(geoms_converted, ngeoms_converted, tolerance, count) +def geo_cluster_within( + geoms: "const GSERIALIZED **", ngeoms: "uint32_t", tolerance: float +) -> "Tuple['GSERIALIZED **', 'int']": + geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] + ngeoms_converted = _ffi.cast("uint32_t", ngeoms) + count = _ffi.new("int *") + result = _lib.geo_cluster_within( + geoms_converted, ngeoms_converted, tolerance, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def gsl_get_generation_rng() -> 'gsl_rng *': +def gsl_get_generation_rng() -> "gsl_rng *": result = _lib.gsl_get_generation_rng() _check_error() return result if result != _ffi.NULL else None -def gsl_get_aggregation_rng() -> 'gsl_rng *': +def gsl_get_aggregation_rng() -> "gsl_rng *": result = _lib.gsl_get_aggregation_rng() _check_error() return result if result != _ffi.NULL else None -def datum_ceil(d: 'Datum') -> 'Datum': - d_converted = _ffi.cast('Datum', d) +def datum_ceil(d: "Datum") -> "Datum": + d_converted = _ffi.cast("Datum", d) result = _lib.datum_ceil(d_converted) _check_error() return result if result != _ffi.NULL else None -def datum_degrees(d: 'Datum', normalize: 'Datum') -> 'Datum': - d_converted = _ffi.cast('Datum', d) - normalize_converted = _ffi.cast('Datum', normalize) +def datum_degrees(d: "Datum", normalize: "Datum") -> "Datum": + d_converted = _ffi.cast("Datum", d) + normalize_converted = _ffi.cast("Datum", normalize) result = _lib.datum_degrees(d_converted, normalize_converted) _check_error() return result if result != _ffi.NULL else None -def datum_float_round(value: 'Datum', size: 'Datum') -> 'Datum': - value_converted = _ffi.cast('Datum', value) - size_converted = _ffi.cast('Datum', size) +def datum_float_round(value: "Datum", size: "Datum") -> "Datum": + value_converted = _ffi.cast("Datum", value) + size_converted = _ffi.cast("Datum", size) result = _lib.datum_float_round(value_converted, size_converted) _check_error() return result if result != _ffi.NULL else None -def datum_floor(d: 'Datum') -> 'Datum': - d_converted = _ffi.cast('Datum', d) +def datum_floor(d: "Datum") -> "Datum": + d_converted = _ffi.cast("Datum", d) result = _lib.datum_floor(d_converted) _check_error() return result if result != _ffi.NULL else None -def datum_hash(d: 'Datum', basetype: 'meosType') -> 'uint32': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) +def datum_hash(d: "Datum", basetype: "meosType") -> "uint32": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.datum_hash(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def datum_hash_extended(d: 'Datum', basetype: 'meosType', seed: int) -> 'uint64': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) - seed_converted = _ffi.cast('uint64', seed) +def datum_hash_extended(d: "Datum", basetype: "meosType", seed: int) -> "uint64": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) + seed_converted = _ffi.cast("uint64", seed) result = _lib.datum_hash_extended(d_converted, basetype_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def datum_radians(d: 'Datum') -> 'Datum': - d_converted = _ffi.cast('Datum', d) +def datum_radians(d: "Datum") -> "Datum": + d_converted = _ffi.cast("Datum", d) result = _lib.datum_radians(d_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round_set(s: 'const Span *', maxdd: int) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - out_result = _ffi.new('Span *') +def floatspan_round_set(s: "const Span *", maxdd: int) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + out_result = _ffi.new("Span *") _lib.floatspan_round_set(s_converted, maxdd, out_result) _check_error() - return out_result if out_result!= _ffi.NULL else None + return out_result if out_result != _ffi.NULL else None - -def set_in(string: str, basetype: 'meosType') -> 'Set *': - string_converted = string.encode('utf-8') - basetype_converted = _ffi.cast('meosType', basetype) +def set_in(string: str, basetype: "meosType") -> "Set *": + string_converted = string.encode("utf-8") + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_in(string_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def set_out(s: 'const Set *', maxdd: int) -> str: - s_converted = _ffi.cast('const Set *', s) +def set_out(s: "const Set *", maxdd: int) -> str: + s_converted = _ffi.cast("const Set *", s) result = _lib.set_out(s_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def span_in(string: str, spantype: 'meosType') -> 'Span *': - string_converted = string.encode('utf-8') - spantype_converted = _ffi.cast('meosType', spantype) +def span_in(string: str, spantype: "meosType") -> "Span *": + string_converted = string.encode("utf-8") + spantype_converted = _ffi.cast("meosType", spantype) result = _lib.span_in(string_converted, spantype_converted) _check_error() return result if result != _ffi.NULL else None -def span_out(s: 'const Span *', maxdd: int) -> str: - s_converted = _ffi.cast('const Span *', s) +def span_out(s: "const Span *", maxdd: int) -> str: + s_converted = _ffi.cast("const Span *", s) result = _lib.span_out(s_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def spanset_in(string: str, spantype: 'meosType') -> 'SpanSet *': - string_converted = string.encode('utf-8') - spantype_converted = _ffi.cast('meosType', spantype) +def spanset_in(string: str, spantype: "meosType") -> "SpanSet *": + string_converted = string.encode("utf-8") + spantype_converted = _ffi.cast("meosType", spantype) result = _lib.spanset_in(string_converted, spantype_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_out(ss: 'const SpanSet *', maxdd: int) -> str: - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_out(ss: "const SpanSet *", maxdd: int) -> str: + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_out(ss_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def set_make(values: 'const Datum *', count: int, basetype: 'meosType', order: bool) -> 'Set *': - values_converted = _ffi.cast('const Datum *', values) - basetype_converted = _ffi.cast('meosType', basetype) +def set_make( + values: "const Datum *", count: int, basetype: "meosType", order: bool +) -> "Set *": + values_converted = _ffi.cast("const Datum *", values) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make(values_converted, count, basetype_converted, order) _check_error() return result if result != _ffi.NULL else None -def set_make_exp(values: 'const Datum *', count: int, maxcount: int, basetype: 'meosType', order: bool) -> 'Set *': - values_converted = _ffi.cast('const Datum *', values) - basetype_converted = _ffi.cast('meosType', basetype) - result = _lib.set_make_exp(values_converted, count, maxcount, basetype_converted, order) +def set_make_exp( + values: "const Datum *", + count: int, + maxcount: int, + basetype: "meosType", + order: bool, +) -> "Set *": + values_converted = _ffi.cast("const Datum *", values) + basetype_converted = _ffi.cast("meosType", basetype) + result = _lib.set_make_exp( + values_converted, count, maxcount, basetype_converted, order + ) _check_error() return result if result != _ffi.NULL else None -def set_make_free(values: 'Datum *', count: int, basetype: 'meosType', order: bool) -> 'Set *': - values_converted = _ffi.cast('Datum *', values) - basetype_converted = _ffi.cast('meosType', basetype) +def set_make_free( + values: "Datum *", count: int, basetype: "meosType", order: bool +) -> "Set *": + values_converted = _ffi.cast("Datum *", values) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make_free(values_converted, count, basetype_converted, order) _check_error() return result if result != _ffi.NULL else None -def span_make(lower: 'Datum', upper: 'Datum', lower_inc: bool, upper_inc: bool, basetype: 'meosType') -> 'Span *': - lower_converted = _ffi.cast('Datum', lower) - upper_converted = _ffi.cast('Datum', upper) - basetype_converted = _ffi.cast('meosType', basetype) - result = _lib.span_make(lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted) +def span_make( + lower: "Datum", + upper: "Datum", + lower_inc: bool, + upper_inc: bool, + basetype: "meosType", +) -> "Span *": + lower_converted = _ffi.cast("Datum", lower) + upper_converted = _ffi.cast("Datum", upper) + basetype_converted = _ffi.cast("meosType", basetype) + result = _lib.span_make( + lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted + ) _check_error() return result if result != _ffi.NULL else None -def span_set(lower: 'Datum', upper: 'Datum', lower_inc: bool, upper_inc: bool, basetype: 'meosType', spantype: 'meosType', s: 'Span *') -> None: - lower_converted = _ffi.cast('Datum', lower) - upper_converted = _ffi.cast('Datum', upper) - basetype_converted = _ffi.cast('meosType', basetype) - spantype_converted = _ffi.cast('meosType', spantype) - s_converted = _ffi.cast('Span *', s) - _lib.span_set(lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted, spantype_converted, s_converted) +def span_set( + lower: "Datum", + upper: "Datum", + lower_inc: bool, + upper_inc: bool, + basetype: "meosType", + spantype: "meosType", + s: "Span *", +) -> None: + lower_converted = _ffi.cast("Datum", lower) + upper_converted = _ffi.cast("Datum", upper) + basetype_converted = _ffi.cast("meosType", basetype) + spantype_converted = _ffi.cast("meosType", spantype) + s_converted = _ffi.cast("Span *", s) + _lib.span_set( + lower_converted, + upper_converted, + lower_inc, + upper_inc, + basetype_converted, + spantype_converted, + s_converted, + ) _check_error() -def spanset_make_exp(spans: 'Span *', count: int, maxcount: int, normalize: bool, order: bool) -> 'SpanSet *': - spans_converted = _ffi.cast('Span *', spans) +def spanset_make_exp( + spans: "Span *", count: int, maxcount: int, normalize: bool, order: bool +) -> "SpanSet *": + spans_converted = _ffi.cast("Span *", spans) result = _lib.spanset_make_exp(spans_converted, count, maxcount, normalize, order) _check_error() return result if result != _ffi.NULL else None -def spanset_make_free(spans: 'Span *', count: int, normalize: bool, order: bool) -> 'SpanSet *': - spans_converted = _ffi.cast('Span *', spans) +def spanset_make_free( + spans: "Span *", count: int, normalize: bool, order: bool +) -> "SpanSet *": + spans_converted = _ffi.cast("Span *", spans) result = _lib.spanset_make_free(spans_converted, count, normalize, order) _check_error() return result if result != _ffi.NULL else None -def set_span(s: 'const Set *') -> 'Span *': - s_converted = _ffi.cast('const Set *', s) +def set_span(s: "const Set *") -> "Span *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_spanset(s: 'const Set *') -> 'SpanSet *': - s_converted = _ffi.cast('const Set *', s) +def set_spanset(s: "const Set *") -> "SpanSet *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def value_set_span(value: 'Datum', basetype: 'meosType', s: 'Span *') -> None: - value_converted = _ffi.cast('Datum', value) - basetype_converted = _ffi.cast('meosType', basetype) - s_converted = _ffi.cast('Span *', s) +def value_set_span(value: "Datum", basetype: "meosType", s: "Span *") -> None: + value_converted = _ffi.cast("Datum", value) + basetype_converted = _ffi.cast("meosType", basetype) + s_converted = _ffi.cast("Span *", s) _lib.value_set_span(value_converted, basetype_converted, s_converted) _check_error() -def value_set(d: 'Datum', basetype: 'meosType') -> 'Set *': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) +def value_set(d: "Datum", basetype: "meosType") -> "Set *": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_set(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def value_span(d: 'Datum', basetype: 'meosType') -> 'Span *': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) +def value_span(d: "Datum", basetype: "meosType") -> "Span *": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_span(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def value_spanset(d: 'Datum', basetype: 'meosType') -> 'SpanSet *': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) +def value_spanset(d: "Datum", basetype: "meosType") -> "SpanSet *": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_spanset(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_width(s: 'const Span *') -> 'Datum': - s_converted = _ffi.cast('const Span *', s) +def numspan_width(s: "const Span *") -> "Datum": + s_converted = _ffi.cast("const Span *", s) result = _lib.numspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def numspanset_width(ss: 'const SpanSet *', boundspan: bool) -> 'Datum': - ss_converted = _ffi.cast('const SpanSet *', ss) +def numspanset_width(ss: "const SpanSet *", boundspan: bool) -> "Datum": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.numspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_end_value(s: 'const Set *') -> 'Datum': - s_converted = _ffi.cast('const Set *', s) +def set_end_value(s: "const Set *") -> "Datum": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_mem_size(s: 'const Set *') -> 'int': - s_converted = _ffi.cast('const Set *', s) +def set_mem_size(s: "const Set *") -> "int": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_mem_size(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_set_subspan(s: 'const Set *', minidx: int, maxidx: int) -> 'Span *': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('Span *') +def set_set_subspan(s: "const Set *", minidx: int, maxidx: int) -> "Span *": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("Span *") _lib.set_set_subspan(s_converted, minidx, maxidx, out_result) _check_error() - return out_result if out_result!= _ffi.NULL else None - + return out_result if out_result != _ffi.NULL else None -def set_set_span(s: 'const Set *') -> 'Span *': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('Span *') +def set_set_span(s: "const Set *") -> "Span *": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("Span *") _lib.set_set_span(s_converted, out_result) _check_error() - return out_result if out_result!= _ffi.NULL else None + return out_result if out_result != _ffi.NULL else None - -def set_start_value(s: 'const Set *') -> 'Datum': - s_converted = _ffi.cast('const Set *', s) +def set_start_value(s: "const Set *") -> "Datum": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_value_n(s: 'const Set *', n: int) -> 'Datum *': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('Datum *') +def set_value_n(s: "const Set *", n: int) -> "Datum *": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("Datum *") result = _lib.set_value_n(s_converted, n, out_result) _check_error() if result: @@ -13659,435 +14775,452 @@ def set_value_n(s: 'const Set *', n: int) -> 'Datum *': return None -def set_vals(s: 'const Set *') -> 'Datum *': - s_converted = _ffi.cast('const Set *', s) +def set_vals(s: "const Set *") -> "Datum *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_vals(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_values(s: 'const Set *') -> 'Datum *': - s_converted = _ffi.cast('const Set *', s) +def set_values(s: "const Set *") -> "Datum *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lower(ss: 'const SpanSet *') -> 'Datum': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_lower(ss: "const SpanSet *") -> "Datum": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_mem_size(ss: 'const SpanSet *') -> 'int': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_mem_size(ss: "const SpanSet *") -> "int": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_mem_size(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_sps(ss: 'const SpanSet *') -> 'const Span **': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_sps(ss: "const SpanSet *") -> "const Span **": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_sps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper(ss: 'const SpanSet *') -> 'Datum': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_upper(ss: "const SpanSet *") -> "Datum": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_set_tstzspan(s1: 'const Span *', s2: 'Span *') -> None: - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('Span *', s2) +def datespan_set_tstzspan(s1: "const Span *", s2: "Span *") -> None: + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("Span *", s2) _lib.datespan_set_tstzspan(s1_converted, s2_converted) _check_error() -def floatspan_set_intspan(s1: 'const Span *', s2: 'Span *') -> None: - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('Span *', s2) +def floatspan_set_intspan(s1: "const Span *", s2: "Span *") -> None: + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("Span *", s2) _lib.floatspan_set_intspan(s1_converted, s2_converted) _check_error() -def intspan_set_floatspan(s1: 'const Span *', s2: 'Span *') -> None: - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('Span *', s2) +def intspan_set_floatspan(s1: "const Span *", s2: "Span *") -> None: + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("Span *", s2) _lib.intspan_set_floatspan(s1_converted, s2_converted) _check_error() -def numset_shift_scale(s: 'const Set *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - shift_converted = _ffi.cast('Datum', shift) - width_converted = _ffi.cast('Datum', width) - result = _lib.numset_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) +def numset_shift_scale( + s: "const Set *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool +) -> "Set *": + s_converted = _ffi.cast("const Set *", s) + shift_converted = _ffi.cast("Datum", shift) + width_converted = _ffi.cast("Datum", width) + result = _lib.numset_shift_scale( + s_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def numspan_shift_scale(s: 'const Span *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - shift_converted = _ffi.cast('Datum', shift) - width_converted = _ffi.cast('Datum', width) - result = _lib.numspan_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) +def numspan_shift_scale( + s: "const Span *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool +) -> "Span *": + s_converted = _ffi.cast("const Span *", s) + shift_converted = _ffi.cast("Datum", shift) + width_converted = _ffi.cast("Datum", width) + result = _lib.numspan_shift_scale( + s_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def numspanset_shift_scale(ss: 'const SpanSet *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - shift_converted = _ffi.cast('Datum', shift) - width_converted = _ffi.cast('Datum', width) - result = _lib.numspanset_shift_scale(ss_converted, shift_converted, width_converted, hasshift, haswidth) +def numspanset_shift_scale( + ss: "const SpanSet *", + shift: "Datum", + width: "Datum", + hasshift: bool, + haswidth: bool, +) -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + shift_converted = _ffi.cast("Datum", shift) + width_converted = _ffi.cast("Datum", width) + result = _lib.numspanset_shift_scale( + ss_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def set_compact(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def set_compact(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.set_compact(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_expand(s1: 'const Span *', s2: 'Span *') -> None: - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('Span *', s2) +def span_expand(s1: "const Span *", s2: "Span *") -> None: + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("Span *", s2) _lib.span_expand(s1_converted, s2_converted) _check_error() -def spanset_compact(ss: 'const SpanSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) +def spanset_compact(ss: "const SpanSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_compact(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_value(box: 'const TBox *', value: 'Datum', basetyp: 'meosType') -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) - value_converted = _ffi.cast('Datum', value) - basetyp_converted = _ffi.cast('meosType', basetyp) +def tbox_expand_value( + box: "const TBox *", value: "Datum", basetyp: "meosType" +) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + value_converted = _ffi.cast("Datum", value) + basetyp_converted = _ffi.cast("meosType", basetyp) result = _lib.tbox_expand_value(box_converted, value_converted, basetyp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_textset_text_int(s: 'const Set *', txt: str, invert: bool) -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def textcat_textset_text_int(s: "const Set *", txt: str, invert: bool) -> "Set *": + s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text_int(s_converted, txt_converted, invert) _check_error() return result if result != _ffi.NULL else None -def tstzspan_set_datespan(s1: 'const Span *', s2: 'Span *') -> None: - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('Span *', s2) +def tstzspan_set_datespan(s1: "const Span *", s2: "Span *") -> None: + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("Span *", s2) _lib.tstzspan_set_datespan(s1_converted, s2_converted) _check_error() -def adjacent_span_value(s: 'const Span *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def adjacent_span_value(s: "const Span *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.adjacent_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def adjacent_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.adjacent_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def adjacent_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def adjacent_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_value_set(value: 'Datum', s: 'const Set *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def contained_value_set(value: "Datum", s: "const Set *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_value_span(value: 'Datum', s: 'const Span *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def contained_value_span(value: "Datum", s: "const Span *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.contained_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def contained_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_value(s: 'const Set *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def contains_set_value(s: "const Set *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.contains_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def contains_span_value(s: 'const Span *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def contains_span_value(s: "const Span *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.contains_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def contains_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.contains_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ovadj_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def ovadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.ovadj_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_value(s: 'const Set *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def left_set_value(s: "const Set *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.left_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def left_span_value(s: 'const Span *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def left_span_value(s: "const Span *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.left_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def left_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def left_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.left_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def left_value_set(value: 'Datum', s: 'const Set *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def left_value_set(value: "Datum", s: "const Set *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.left_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_value_span(value: 'Datum', s: 'const Span *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def left_value_span(value: "Datum", s: "const Span *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.left_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def left_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def lfnadj_span_span(s1: 'const Span *', s2: 'const Span *') -> 'bool': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def lfnadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.lfnadj_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_value(s: 'const Set *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def overleft_set_value(s: "const Set *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.overleft_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_span_value(s: 'const Span *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def overleft_span_value(s: "const Span *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.overleft_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def overleft_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.overleft_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_value_set(value: 'Datum', s: 'const Set *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def overleft_value_set(value: "Datum", s: "const Set *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_value_span(value: 'Datum', s: 'const Span *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def overleft_value_span(value: "Datum", s: "const Span *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overleft_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_value(s: 'const Set *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def overright_set_value(s: "const Set *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.overright_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def overright_span_value(s: 'const Span *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def overright_span_value(s: "const Span *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.overright_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def overright_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.overright_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def overright_value_set(value: 'Datum', s: 'const Set *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def overright_value_set(value: "Datum", s: "const Set *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.overright_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_value_span(value: 'Datum', s: 'const Span *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def overright_value_span(value: "Datum", s: "const Span *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.overright_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def overright_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_value_set(value: 'Datum', s: 'const Set *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def right_value_set(value: "Datum", s: "const Set *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.right_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_value(s: 'const Set *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def right_set_value(s: "const Set *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.right_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def right_value_span(value: 'Datum', s: 'const Span *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def right_value_span(value: "Datum", s: "const Span *") -> "bool": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.right_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'bool': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def right_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_span_value(s: 'const Span *', value: 'Datum') -> 'bool': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def right_span_value(s: "const Span *", value: "Datum") -> "bool": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.right_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def right_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'bool': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def right_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.right_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def bbox_union_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) - out_result = _ffi.new('Span *') +def bbox_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) + out_result = _ffi.new("Span *") _lib.bbox_union_span_span(s1_converted, s2_converted, out_result) _check_error() - return out_result if out_result!= _ffi.NULL else None - + return out_result if out_result != _ffi.NULL else None -def inter_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) - out_result = _ffi.new('Span *') +def inter_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) + out_result = _ffi.new("Span *") result = _lib.inter_span_span(s1_converted, s2_converted, out_result) _check_error() if result: @@ -14095,360 +15228,375 @@ def inter_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': return None -def intersection_set_value(s: 'const Set *', value: 'Datum') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def intersection_set_value(s: "const Set *", value: "Datum") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.intersection_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_span_value(s: 'const Span *', value: 'Datum') -> 'Span *': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def intersection_span_value(s: "const Span *", value: "Datum") -> "Span *": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.intersection_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def intersection_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.intersection_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_value_set(value: 'Datum', s: 'const Set *') -> 'Set *': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def intersection_value_set(value: "Datum", s: "const Set *") -> "Set *": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_value_span(value: 'Datum', s: 'const Span *') -> 'Span *': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def intersection_value_span(value: "Datum", s: "const Span *") -> "Span *": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'SpanSet *': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def intersection_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def mi_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) - out_result = _ffi.new('Span *') +def mi_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) + out_result = _ffi.new("Span *") result = _lib.mi_span_span(s1_converted, s2_converted, out_result) _check_error() - return out_result if out_result!= _ffi.NULL else None + return out_result if out_result != _ffi.NULL else None - -def minus_set_value(s: 'const Set *', value: 'Datum') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def minus_set_value(s: "const Set *", value: "Datum") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.minus_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def minus_span_value(s: 'const Span *', value: 'Datum') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def minus_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.minus_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def minus_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.minus_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def minus_value_set(value: 'Datum', s: 'const Set *') -> 'Set *': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def minus_value_set(value: "Datum", s: "const Set *") -> "Set *": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_value_span(value: 'Datum', s: 'const Span *') -> 'SpanSet *': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def minus_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.minus_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'SpanSet *': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def minus_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def super_union_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Span *': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def super_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.super_union_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_value(s: 'const Set *', value: 'Datum') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def union_set_value(s: "const Set *", value: "Datum") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.union_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def union_span_value(s: 'const Span *', value: 'Datum') -> 'SpanSet *': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def union_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.union_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def union_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'SpanSet *': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def union_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.union_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def union_value_set(value: 'Datum', s: 'const Set *') -> 'Set *': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Set *', s) +def union_value_set(value: "Datum", s: "const Set *") -> "Set *": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_value_set(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_value_span(value: 'Datum', s: 'const Span *') -> 'SpanSet *': - value_converted = _ffi.cast('Datum', value) - s_converted = _ffi.cast('const Span *', s) +def union_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": + value_converted = _ffi.cast("Datum", value) + s_converted = _ffi.cast("const Span *", s) result = _lib.union_value_span(value_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_value_spanset(value: 'Datum', ss: 'const SpanSet *') -> 'SpanSet *': - value_converted = _ffi.cast('Datum', value) - ss_converted = _ffi.cast('const SpanSet *', ss) +def union_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": + value_converted = _ffi.cast("Datum", value) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_value_spanset(value_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_set(s1: 'const Set *', s2: 'const Set *') -> 'Datum': - s1_converted = _ffi.cast('const Set *', s1) - s2_converted = _ffi.cast('const Set *', s2) +def distance_set_set(s1: "const Set *", s2: "const Set *") -> "Datum": + s1_converted = _ffi.cast("const Set *", s1) + s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_set_set(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_set_value(s: 'const Set *', value: 'Datum') -> 'Datum': - s_converted = _ffi.cast('const Set *', s) - value_converted = _ffi.cast('Datum', value) +def distance_set_value(s: "const Set *", value: "Datum") -> "Datum": + s_converted = _ffi.cast("const Set *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.distance_set_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_span(s1: 'const Span *', s2: 'const Span *') -> 'Datum': - s1_converted = _ffi.cast('const Span *', s1) - s2_converted = _ffi.cast('const Span *', s2) +def distance_span_span(s1: "const Span *", s2: "const Span *") -> "Datum": + s1_converted = _ffi.cast("const Span *", s1) + s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_span_span(s1_converted, s2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_span_value(s: 'const Span *', value: 'Datum') -> 'Datum': - s_converted = _ffi.cast('const Span *', s) - value_converted = _ffi.cast('Datum', value) +def distance_span_value(s: "const Span *", value: "Datum") -> "Datum": + s_converted = _ffi.cast("const Span *", s) + value_converted = _ffi.cast("Datum", value) result = _lib.distance_span_value(s_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_span(ss: 'const SpanSet *', s: 'const Span *') -> 'Datum': - ss_converted = _ffi.cast('const SpanSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def distance_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "Datum": + ss_converted = _ffi.cast("const SpanSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.distance_spanset_span(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_spanset(ss1: 'const SpanSet *', ss2: 'const SpanSet *') -> 'Datum': - ss1_converted = _ffi.cast('const SpanSet *', ss1) - ss2_converted = _ffi.cast('const SpanSet *', ss2) +def distance_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "Datum": + ss1_converted = _ffi.cast("const SpanSet *", ss1) + ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_spanset_spanset(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_value(ss: 'const SpanSet *', value: 'Datum') -> 'Datum': - ss_converted = _ffi.cast('const SpanSet *', ss) - value_converted = _ffi.cast('Datum', value) +def distance_spanset_value(ss: "const SpanSet *", value: "Datum") -> "Datum": + ss_converted = _ffi.cast("const SpanSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.distance_spanset_value(ss_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def distance_value_value(l: 'Datum', r: 'Datum', basetype: 'meosType') -> 'Datum': - l_converted = _ffi.cast('Datum', l) - r_converted = _ffi.cast('Datum', r) - basetype_converted = _ffi.cast('meosType', basetype) +def distance_value_value(l: "Datum", r: "Datum", basetype: "meosType") -> "Datum": + l_converted = _ffi.cast("Datum", l) + r_converted = _ffi.cast("Datum", r) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.distance_value_value(l_converted, r_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def spanbase_extent_transfn(state: 'Span *', value: 'Datum', basetype: 'meosType') -> 'Span *': - state_converted = _ffi.cast('Span *', state) - value_converted = _ffi.cast('Datum', value) - basetype_converted = _ffi.cast('meosType', basetype) - result = _lib.spanbase_extent_transfn(state_converted, value_converted, basetype_converted) +def spanbase_extent_transfn( + state: "Span *", value: "Datum", basetype: "meosType" +) -> "Span *": + state_converted = _ffi.cast("Span *", state) + value_converted = _ffi.cast("Datum", value) + basetype_converted = _ffi.cast("meosType", basetype) + result = _lib.spanbase_extent_transfn( + state_converted, value_converted, basetype_converted + ) _check_error() return result if result != _ffi.NULL else None -def value_union_transfn(state: 'Set *', value: 'Datum', basetype: 'meosType') -> 'Set *': - state_converted = _ffi.cast('Set *', state) - value_converted = _ffi.cast('Datum', value) - basetype_converted = _ffi.cast('meosType', basetype) - result = _lib.value_union_transfn(state_converted, value_converted, basetype_converted) +def value_union_transfn( + state: "Set *", value: "Datum", basetype: "meosType" +) -> "Set *": + state_converted = _ffi.cast("Set *", state) + value_converted = _ffi.cast("Datum", value) + basetype_converted = _ffi.cast("meosType", basetype) + result = _lib.value_union_transfn( + state_converted, value_converted, basetype_converted + ) _check_error() return result if result != _ffi.NULL else None -def number_tstzspan_to_tbox(d: 'Datum', basetype: 'meosType', s: 'const Span *') -> 'TBox *': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) - s_converted = _ffi.cast('const Span *', s) +def number_tstzspan_to_tbox( + d: "Datum", basetype: "meosType", s: "const Span *" +) -> "TBox *": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) + s_converted = _ffi.cast("const Span *", s) result = _lib.number_tstzspan_to_tbox(d_converted, basetype_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def number_timestamptz_to_tbox(d: 'Datum', basetype: 'meosType', t: int) -> 'TBox *': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) - t_converted = _ffi.cast('TimestampTz', t) - result = _lib.number_timestamptz_to_tbox(d_converted, basetype_converted, t_converted) +def number_timestamptz_to_tbox(d: "Datum", basetype: "meosType", t: int) -> "TBox *": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.number_timestamptz_to_tbox( + d_converted, basetype_converted, t_converted + ) _check_error() return result if result != _ffi.NULL else None -def tbox_set(s: 'const Span *', p: 'const Span *', box: 'TBox *') -> None: - s_converted = _ffi.cast('const Span *', s) - p_converted = _ffi.cast('const Span *', p) - box_converted = _ffi.cast('TBox *', box) +def tbox_set(s: "const Span *", p: "const Span *", box: "TBox *") -> None: + s_converted = _ffi.cast("const Span *", s) + p_converted = _ffi.cast("const Span *", p) + box_converted = _ffi.cast("TBox *", box) _lib.tbox_set(s_converted, p_converted, box_converted) _check_error() -def float_set_tbox(d: float, box: 'TBox *') -> None: - box_converted = _ffi.cast('TBox *', box) +def float_set_tbox(d: float, box: "TBox *") -> None: + box_converted = _ffi.cast("TBox *", box) _lib.float_set_tbox(d, box_converted) _check_error() -def int_set_tbox(i: int, box: 'TBox *') -> None: - box_converted = _ffi.cast('TBox *', box) +def int_set_tbox(i: int, box: "TBox *") -> None: + box_converted = _ffi.cast("TBox *", box) _lib.int_set_tbox(i, box_converted) _check_error() -def number_set_tbox(d: 'Datum', basetype: 'meosType', box: 'TBox *') -> None: - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) - box_converted = _ffi.cast('TBox *', box) +def number_set_tbox(d: "Datum", basetype: "meosType", box: "TBox *") -> None: + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) + box_converted = _ffi.cast("TBox *", box) _lib.number_set_tbox(d_converted, basetype_converted, box_converted) _check_error() -def number_tbox(value: 'Datum', basetype: 'meosType') -> 'TBox *': - value_converted = _ffi.cast('Datum', value) - basetype_converted = _ffi.cast('meosType', basetype) +def number_tbox(value: "Datum", basetype: "meosType") -> "TBox *": + value_converted = _ffi.cast("Datum", value) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.number_tbox(value_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def numset_set_tbox(s: 'const Set *', box: 'TBox *') -> None: - s_converted = _ffi.cast('const Set *', s) - box_converted = _ffi.cast('TBox *', box) +def numset_set_tbox(s: "const Set *", box: "TBox *") -> None: + s_converted = _ffi.cast("const Set *", s) + box_converted = _ffi.cast("TBox *", box) _lib.numset_set_tbox(s_converted, box_converted) _check_error() -def numspan_set_tbox(span: 'const Span *', box: 'TBox *') -> None: - span_converted = _ffi.cast('const Span *', span) - box_converted = _ffi.cast('TBox *', box) +def numspan_set_tbox(span: "const Span *", box: "TBox *") -> None: + span_converted = _ffi.cast("const Span *", span) + box_converted = _ffi.cast("TBox *", box) _lib.numspan_set_tbox(span_converted, box_converted) _check_error() -def timestamptz_set_tbox(t: int, box: 'TBox *') -> None: - t_converted = _ffi.cast('TimestampTz', t) - box_converted = _ffi.cast('TBox *', box) +def timestamptz_set_tbox(t: int, box: "TBox *") -> None: + t_converted = _ffi.cast("TimestampTz", t) + box_converted = _ffi.cast("TBox *", box) _lib.timestamptz_set_tbox(t_converted, box_converted) _check_error() -def tstzset_set_tbox(s: 'const Set *', box: 'TBox *') -> None: - s_converted = _ffi.cast('const Set *', s) - box_converted = _ffi.cast('TBox *', box) +def tstzset_set_tbox(s: "const Set *", box: "TBox *") -> None: + s_converted = _ffi.cast("const Set *", s) + box_converted = _ffi.cast("TBox *", box) _lib.tstzset_set_tbox(s_converted, box_converted) _check_error() -def tstzspan_set_tbox(s: 'const Span *', box: 'TBox *') -> None: - s_converted = _ffi.cast('const Span *', s) - box_converted = _ffi.cast('TBox *', box) +def tstzspan_set_tbox(s: "const Span *", box: "TBox *") -> None: + s_converted = _ffi.cast("const Span *", s) + box_converted = _ffi.cast("TBox *", box) _lib.tstzspan_set_tbox(s_converted, box_converted) _check_error() -def tbox_shift_scale_value(box: 'const TBox *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'TBox *': - box_converted = _ffi.cast('const TBox *', box) - shift_converted = _ffi.cast('Datum', shift) - width_converted = _ffi.cast('Datum', width) - result = _lib.tbox_shift_scale_value(box_converted, shift_converted, width_converted, hasshift, haswidth) +def tbox_shift_scale_value( + box: "const TBox *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool +) -> "TBox *": + box_converted = _ffi.cast("const TBox *", box) + shift_converted = _ffi.cast("Datum", shift) + width_converted = _ffi.cast("Datum", width) + result = _lib.tbox_shift_scale_value( + box_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def tbox_expand(box1: 'const TBox *', box2: 'TBox *') -> None: - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('TBox *', box2) +def tbox_expand(box1: "const TBox *", box2: "TBox *") -> None: + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("TBox *", box2) _lib.tbox_expand(box1_converted, box2_converted) _check_error() -def inter_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'TBox *': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) - out_result = _ffi.new('TBox *') +def inter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) + out_result = _ffi.new("TBox *") result = _lib.inter_tbox_tbox(box1_converted, box2_converted, out_result) _check_error() if result: @@ -14456,453 +15604,518 @@ def inter_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'TBox *': return None -def tboolinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tboolinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tboolinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tboolseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tboolseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tboolseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tboolseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_in(string: str, temptype: 'meosType') -> 'Temporal *': - string_converted = string.encode('utf-8') - temptype_converted = _ffi.cast('meosType', temptype) +def temporal_in(string: str, temptype: "meosType") -> "Temporal *": + string_converted = string.encode("utf-8") + temptype_converted = _ffi.cast("meosType", temptype) result = _lib.temporal_in(string_converted, temptype_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_out(temp: 'const Temporal *', maxdd: int) -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_out(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_out(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temparr_out(temparr: 'const Temporal **', count: int, maxdd: int) -> 'char **': - temparr_converted = [_ffi.cast('const Temporal *', x) for x in temparr] +def temparr_out(temparr: "const Temporal **", count: int, maxdd: int) -> "char **": + temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] result = _lib.temparr_out(temparr_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tfloatinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tfloatinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tfloatseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tfloatseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tfloatseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tfloatseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_in(string: str, temptype: 'meosType') -> 'TInstant *': - string_converted = string.encode('utf-8') - temptype_converted = _ffi.cast('meosType', temptype) +def tinstant_in(string: str, temptype: "meosType") -> "TInstant *": + string_converted = string.encode("utf-8") + temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tinstant_in(string_converted, temptype_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_out(inst: 'const TInstant *', maxdd: int) -> str: - inst_converted = _ffi.cast('const TInstant *', inst) +def tinstant_out(inst: "const TInstant *", maxdd: int) -> str: + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_out(inst_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tintinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tintinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tintinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tintseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tintseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tintseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tintseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_in(string: str, temptype: 'meosType', interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - temptype_converted = _ffi.cast('meosType', temptype) - interp_converted = _ffi.cast('interpType', interp) +def tsequence_in( + string: str, temptype: "meosType", interp: "interpType" +) -> "TSequence *": + string_converted = string.encode("utf-8") + temptype_converted = _ffi.cast("meosType", temptype) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_in(string_converted, temptype_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_out(seq: 'const TSequence *', maxdd: int) -> str: - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_out(seq: "const TSequence *", maxdd: int) -> str: + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_out(seq_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tsequenceset_in(string: str, temptype: 'meosType', interp: 'interpType') -> 'TSequenceSet *': - string_converted = string.encode('utf-8') - temptype_converted = _ffi.cast('meosType', temptype) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tsequenceset_in(string_converted, temptype_converted, interp_converted) +def tsequenceset_in( + string: str, temptype: "meosType", interp: "interpType" +) -> "TSequenceSet *": + string_converted = string.encode("utf-8") + temptype_converted = _ffi.cast("meosType", temptype) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequenceset_in( + string_converted, temptype_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_out(ss: 'const TSequenceSet *', maxdd: int) -> str: - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_out(ss: "const TSequenceSet *", maxdd: int) -> str: + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_out(ss_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def ttextinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def ttextinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.ttextinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def ttextseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.ttextseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def ttextseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.ttextseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_mfjson(mfjson: str, temptype: 'meosType') -> 'Temporal *': - mfjson_converted = mfjson.encode('utf-8') - temptype_converted = _ffi.cast('meosType', temptype) +def temporal_from_mfjson(mfjson: str, temptype: "meosType") -> "Temporal *": + mfjson_converted = mfjson.encode("utf-8") + temptype_converted = _ffi.cast("meosType", temptype) result = _lib.temporal_from_mfjson(mfjson_converted, temptype_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_base_temp(value: 'Datum', temptype: 'meosType', temp: 'const Temporal *') -> 'Temporal *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - temp_converted = _ffi.cast('const Temporal *', temp) - result = _lib.temporal_from_base_temp(value_converted, temptype_converted, temp_converted) +def temporal_from_base_temp( + value: "Datum", temptype: "meosType", temp: "const Temporal *" +) -> "Temporal *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.temporal_from_base_temp( + value_converted, temptype_converted, temp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tinstant_copy(inst: 'const TInstant *') -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) +def tinstant_copy(inst: "const TInstant *") -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_copy(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_make(value: 'Datum', temptype: 'meosType', t: int) -> 'TInstant *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - t_converted = _ffi.cast('TimestampTz', t) +def tinstant_make(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tinstant_make(value_converted, temptype_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_make_free(value: 'Datum', temptype: 'meosType', t: int) -> 'TInstant *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - t_converted = _ffi.cast('TimestampTz', t) +def tinstant_make_free(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tinstant_make_free(value_converted, temptype_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_copy(seq: 'const TSequence *') -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_copy(seq: "const TSequence *") -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_copy(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_from_base_temp(value: 'Datum', temptype: 'meosType', seq: 'const TSequence *') -> 'TSequence *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - seq_converted = _ffi.cast('const TSequence *', seq) - result = _lib.tsequence_from_base_temp(value_converted, temptype_converted, seq_converted) +def tsequence_from_base_temp( + value: "Datum", temptype: "meosType", seq: "const TSequence *" +) -> "TSequence *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + seq_converted = _ffi.cast("const TSequence *", seq) + result = _lib.tsequence_from_base_temp( + value_converted, temptype_converted, seq_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_from_base_tstzset(value: 'Datum', temptype: 'meosType', s: 'const Set *') -> 'TSequence *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - s_converted = _ffi.cast('const Set *', s) - result = _lib.tsequence_from_base_tstzset(value_converted, temptype_converted, s_converted) +def tsequence_from_base_tstzset( + value: "Datum", temptype: "meosType", s: "const Set *" +) -> "TSequence *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + s_converted = _ffi.cast("const Set *", s) + result = _lib.tsequence_from_base_tstzset( + value_converted, temptype_converted, s_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_from_base_tstzspan(value: 'Datum', temptype: 'meosType', s: 'const Span *', interp: 'interpType') -> 'TSequence *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - s_converted = _ffi.cast('const Span *', s) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tsequence_from_base_tstzspan(value_converted, temptype_converted, s_converted, interp_converted) +def tsequence_from_base_tstzspan( + value: "Datum", temptype: "meosType", s: "const Span *", interp: "interpType" +) -> "TSequence *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + s_converted = _ffi.cast("const Span *", s) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequence_from_base_tstzspan( + value_converted, temptype_converted, s_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_make_exp(instants: 'const TInstant **', count: int, maxcount: int, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': - instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tsequence_make_exp(instants_converted, count, maxcount, lower_inc, upper_inc, interp_converted, normalize) +def tsequence_make_exp( + instants: "const TInstant **", + count: int, + maxcount: int, + lower_inc: bool, + upper_inc: bool, + interp: "interpType", + normalize: bool, +) -> "TSequence *": + instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequence_make_exp( + instants_converted, + count, + maxcount, + lower_inc, + upper_inc, + interp_converted, + normalize, + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_make_free(instants: 'TInstant **', count: int, lower_inc: bool, upper_inc: bool, interp: 'interpType', normalize: bool) -> 'TSequence *': - instants_converted = [_ffi.cast('TInstant *', x) for x in instants] - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tsequence_make_free(instants_converted, count, lower_inc, upper_inc, interp_converted, normalize) +def tsequence_make_free( + instants: "TInstant **", + count: int, + lower_inc: bool, + upper_inc: bool, + interp: "interpType", + normalize: bool, +) -> "TSequence *": + instants_converted = [_ffi.cast("TInstant *", x) for x in instants] + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequence_make_free( + instants_converted, count, lower_inc, upper_inc, interp_converted, normalize + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_copy(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_copy(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_copy(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tseqsetarr_to_tseqset(seqsets: 'TSequenceSet **', count: int, totalseqs: int) -> 'TSequenceSet *': - seqsets_converted = [_ffi.cast('TSequenceSet *', x) for x in seqsets] +def tseqsetarr_to_tseqset( + seqsets: "TSequenceSet **", count: int, totalseqs: int +) -> "TSequenceSet *": + seqsets_converted = [_ffi.cast("TSequenceSet *", x) for x in seqsets] result = _lib.tseqsetarr_to_tseqset(seqsets_converted, count, totalseqs) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_from_base_temp(value: 'Datum', temptype: 'meosType', ss: 'const TSequenceSet *') -> 'TSequenceSet *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - ss_converted = _ffi.cast('const TSequenceSet *', ss) - result = _lib.tsequenceset_from_base_temp(value_converted, temptype_converted, ss_converted) +def tsequenceset_from_base_temp( + value: "Datum", temptype: "meosType", ss: "const TSequenceSet *" +) -> "TSequenceSet *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + ss_converted = _ffi.cast("const TSequenceSet *", ss) + result = _lib.tsequenceset_from_base_temp( + value_converted, temptype_converted, ss_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_from_base_tstzspanset(value: 'Datum', temptype: 'meosType', ss: 'const SpanSet *', interp: 'interpType') -> 'TSequenceSet *': - value_converted = _ffi.cast('Datum', value) - temptype_converted = _ffi.cast('meosType', temptype) - ss_converted = _ffi.cast('const SpanSet *', ss) - interp_converted = _ffi.cast('interpType', interp) - result = _lib.tsequenceset_from_base_tstzspanset(value_converted, temptype_converted, ss_converted, interp_converted) +def tsequenceset_from_base_tstzspanset( + value: "Datum", temptype: "meosType", ss: "const SpanSet *", interp: "interpType" +) -> "TSequenceSet *": + value_converted = _ffi.cast("Datum", value) + temptype_converted = _ffi.cast("meosType", temptype) + ss_converted = _ffi.cast("const SpanSet *", ss) + interp_converted = _ffi.cast("interpType", interp) + result = _lib.tsequenceset_from_base_tstzspanset( + value_converted, temptype_converted, ss_converted, interp_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_exp(sequences: 'const TSequence **', count: int, maxcount: int, normalize: bool) -> 'TSequenceSet *': - sequences_converted = [_ffi.cast('const TSequence *', x) for x in sequences] +def tsequenceset_make_exp( + sequences: "const TSequence **", count: int, maxcount: int, normalize: bool +) -> "TSequenceSet *": + sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequenceset_make_exp(sequences_converted, count, maxcount, normalize) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_make_free(sequences: 'TSequence **', count: int, normalize: bool) -> 'TSequenceSet *': - sequences_converted = [_ffi.cast('TSequence *', x) for x in sequences] +def tsequenceset_make_free( + sequences: "TSequence **", count: int, normalize: bool +) -> "TSequenceSet *": + sequences_converted = [_ffi.cast("TSequence *", x) for x in sequences] result = _lib.tsequenceset_make_free(sequences_converted, count, normalize) _check_error() return result if result != _ffi.NULL else None -def temporal_set_tstzspan(temp: 'const Temporal *', s: 'Span *') -> None: - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('Span *', s) +def temporal_set_tstzspan(temp: "const Temporal *", s: "Span *") -> None: + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("Span *", s) _lib.temporal_set_tstzspan(temp_converted, s_converted) _check_error() -def tinstant_set_tstzspan(inst: 'const TInstant *', s: 'Span *') -> None: - inst_converted = _ffi.cast('const TInstant *', inst) - s_converted = _ffi.cast('Span *', s) +def tinstant_set_tstzspan(inst: "const TInstant *", s: "Span *") -> None: + inst_converted = _ffi.cast("const TInstant *", inst) + s_converted = _ffi.cast("Span *", s) _lib.tinstant_set_tstzspan(inst_converted, s_converted) _check_error() -def tnumber_set_tbox(temp: 'const Temporal *', box: 'TBox *') -> None: - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('TBox *', box) +def tnumber_set_tbox(temp: "const Temporal *", box: "TBox *") -> None: + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("TBox *", box) _lib.tnumber_set_tbox(temp_converted, box_converted) _check_error() -def tnumberinst_set_tbox(inst: 'const TInstant *', box: 'TBox *') -> None: - inst_converted = _ffi.cast('const TInstant *', inst) - box_converted = _ffi.cast('TBox *', box) +def tnumberinst_set_tbox(inst: "const TInstant *", box: "TBox *") -> None: + inst_converted = _ffi.cast("const TInstant *", inst) + box_converted = _ffi.cast("TBox *", box) _lib.tnumberinst_set_tbox(inst_converted, box_converted) _check_error() -def tnumberseq_set_tbox(seq: 'const TSequence *', box: 'TBox *') -> None: - seq_converted = _ffi.cast('const TSequence *', seq) - box_converted = _ffi.cast('TBox *', box) +def tnumberseq_set_tbox(seq: "const TSequence *", box: "TBox *") -> None: + seq_converted = _ffi.cast("const TSequence *", seq) + box_converted = _ffi.cast("TBox *", box) _lib.tnumberseq_set_tbox(seq_converted, box_converted) _check_error() -def tnumberseqset_set_tbox(ss: 'const TSequenceSet *', box: 'TBox *') -> None: - ss_converted = _ffi.cast('const TSequenceSet *', ss) - box_converted = _ffi.cast('TBox *', box) +def tnumberseqset_set_tbox(ss: "const TSequenceSet *", box: "TBox *") -> None: + ss_converted = _ffi.cast("const TSequenceSet *", ss) + box_converted = _ffi.cast("TBox *", box) _lib.tnumberseqset_set_tbox(ss_converted, box_converted) _check_error() -def tsequence_set_tstzspan(seq: 'const TSequence *', s: 'Span *') -> None: - seq_converted = _ffi.cast('const TSequence *', seq) - s_converted = _ffi.cast('Span *', s) +def tsequence_set_tstzspan(seq: "const TSequence *", s: "Span *") -> None: + seq_converted = _ffi.cast("const TSequence *", seq) + s_converted = _ffi.cast("Span *", s) _lib.tsequence_set_tstzspan(seq_converted, s_converted) _check_error() -def tsequenceset_set_tstzspan(ss: 'const TSequenceSet *', s: 'Span *') -> None: - ss_converted = _ffi.cast('const TSequenceSet *', ss) - s_converted = _ffi.cast('Span *', s) +def tsequenceset_set_tstzspan(ss: "const TSequenceSet *", s: "Span *") -> None: + ss_converted = _ffi.cast("const TSequenceSet *", ss) + s_converted = _ffi.cast("Span *", s) _lib.tsequenceset_set_tstzspan(ss_converted, s_converted) _check_error() -def temporal_end_inst(temp: 'const Temporal *') -> 'const TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_end_inst(temp: "const Temporal *") -> "const TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_inst(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_value(temp: 'const Temporal *') -> 'Datum': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_end_value(temp: "const Temporal *") -> "Datum": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_inst_n(temp: 'const Temporal *', n: int) -> 'const TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_inst_n(temp: "const Temporal *", n: int) -> "const TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_inst_n(temp_converted, n) _check_error() return result if result != _ffi.NULL else None -def temporal_instants_p(temp: 'const Temporal *') -> "Tuple['const TInstant **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_instants_p( + temp: "const Temporal *", +) -> "Tuple['const TInstant **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_instants_p(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_max_value(temp: 'const Temporal *') -> 'Datum': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_max_value(temp: "const Temporal *") -> "Datum": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_mem_size(temp: 'const Temporal *') -> 'size_t': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_mem_size(temp: "const Temporal *") -> "size_t": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_mem_size(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_value(temp: 'const Temporal *') -> 'Datum': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_min_value(temp: "const Temporal *") -> "Datum": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_sequences_p(temp: 'const Temporal *') -> "Tuple['const TSequence **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_sequences_p( + temp: "const Temporal *", +) -> "Tuple['const TSequence **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_sequences_p(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_set_bbox(temp: 'const Temporal *', box: 'void *') -> None: - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('void *', box) +def temporal_set_bbox(temp: "const Temporal *", box: "void *") -> None: + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("void *", box) _lib.temporal_set_bbox(temp_converted, box_converted) _check_error() -def temporal_start_inst(temp: 'const Temporal *') -> 'const TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_start_inst(temp: "const Temporal *") -> "const TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_inst(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_value(temp: 'const Temporal *') -> 'Datum': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_start_value(temp: "const Temporal *") -> "Datum": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_values_p(temp: 'const Temporal *') -> "Tuple['Datum *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_values_p(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_values_p(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_value_n(temp: 'const Temporal *', n: int) -> 'Datum *': - temp_converted = _ffi.cast('const Temporal *', temp) - out_result = _ffi.new('Datum *') +def temporal_value_n(temp: "const Temporal *", n: int) -> "Datum *": + temp_converted = _ffi.cast("const Temporal *", temp) + out_result = _ffi.new("Datum *") result = _lib.temporal_value_n(temp_converted, n, out_result) _check_error() if result: @@ -14910,69 +16123,69 @@ def temporal_value_n(temp: 'const Temporal *', n: int) -> 'Datum *': return None -def temporal_values(temp: 'const Temporal *') -> "Tuple['Datum *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def temporal_values(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.temporal_values(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tinstant_hash(inst: 'const TInstant *') -> 'uint32': - inst_converted = _ffi.cast('const TInstant *', inst) +def tinstant_hash(inst: "const TInstant *") -> "uint32": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_hash(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_insts(inst: 'const TInstant *') -> "Tuple['const TInstant **', 'int']": - inst_converted = _ffi.cast('const TInstant *', inst) - count = _ffi.new('int *') +def tinstant_insts(inst: "const TInstant *") -> "Tuple['const TInstant **', 'int']": + inst_converted = _ffi.cast("const TInstant *", inst) + count = _ffi.new("int *") result = _lib.tinstant_insts(inst_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tinstant_set_bbox(inst: 'const TInstant *', box: 'void *') -> None: - inst_converted = _ffi.cast('const TInstant *', inst) - box_converted = _ffi.cast('void *', box) +def tinstant_set_bbox(inst: "const TInstant *", box: "void *") -> None: + inst_converted = _ffi.cast("const TInstant *", inst) + box_converted = _ffi.cast("void *", box) _lib.tinstant_set_bbox(inst_converted, box_converted) _check_error() -def tinstant_time(inst: 'const TInstant *') -> 'SpanSet *': - inst_converted = _ffi.cast('const TInstant *', inst) +def tinstant_time(inst: "const TInstant *") -> "SpanSet *": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_time(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_timestamps(inst: 'const TInstant *') -> "Tuple['TimestampTz *', 'int']": - inst_converted = _ffi.cast('const TInstant *', inst) - count = _ffi.new('int *') +def tinstant_timestamps(inst: "const TInstant *") -> "Tuple['TimestampTz *', 'int']": + inst_converted = _ffi.cast("const TInstant *", inst) + count = _ffi.new("int *") result = _lib.tinstant_timestamps(inst_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tinstant_value_p(inst: 'const TInstant *') -> 'Datum': - inst_converted = _ffi.cast('const TInstant *', inst) +def tinstant_value_p(inst: "const TInstant *") -> "Datum": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_value_p(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value(inst: 'const TInstant *') -> 'Datum': - inst_converted = _ffi.cast('const TInstant *', inst) +def tinstant_value(inst: "const TInstant *") -> "Datum": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_value(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value_at_timestamptz(inst: 'const TInstant *', t: int) -> 'Datum *': - inst_converted = _ffi.cast('const TInstant *', inst) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('Datum *') +def tinstant_value_at_timestamptz(inst: "const TInstant *", t: int) -> "Datum *": + inst_converted = _ffi.cast("const TInstant *", inst) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("Datum *") result = _lib.tinstant_value_at_timestamptz(inst_converted, t_converted, out_result) _check_error() if result: @@ -14980,264 +16193,268 @@ def tinstant_value_at_timestamptz(inst: 'const TInstant *', t: int) -> 'Datum *' return None -def tinstant_values_p(inst: 'const TInstant *') -> "Tuple['Datum *', 'int']": - inst_converted = _ffi.cast('const TInstant *', inst) - count = _ffi.new('int *') +def tinstant_values_p(inst: "const TInstant *") -> "Tuple['Datum *', 'int']": + inst_converted = _ffi.cast("const TInstant *", inst) + count = _ffi.new("int *") result = _lib.tinstant_values_p(inst_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_set_span(temp: 'const Temporal *', span: 'Span *') -> None: - temp_converted = _ffi.cast('const Temporal *', temp) - span_converted = _ffi.cast('Span *', span) +def tnumber_set_span(temp: "const Temporal *", span: "Span *") -> None: + temp_converted = _ffi.cast("const Temporal *", temp) + span_converted = _ffi.cast("Span *", span) _lib.tnumber_set_span(temp_converted, span_converted) _check_error() -def tnumberinst_valuespans(inst: 'const TInstant *') -> 'SpanSet *': - inst_converted = _ffi.cast('const TInstant *', inst) +def tnumberinst_valuespans(inst: "const TInstant *") -> "SpanSet *": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tnumberinst_valuespans(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_valuespans(seq: 'const TSequence *') -> 'SpanSet *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tnumberseq_valuespans(seq: "const TSequence *") -> "SpanSet *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_valuespans(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_valuespans(ss: 'const TSequenceSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tnumberseqset_valuespans(ss: "const TSequenceSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_valuespans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_duration(seq: 'const TSequence *') -> 'Interval *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_duration(seq: "const TSequence *") -> "Interval *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_duration(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_end_timestamptz(seq: 'const TSequence *') -> 'TimestampTz': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_end_timestamptz(seq: "const TSequence *") -> "TimestampTz": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_end_timestamptz(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_hash(seq: 'const TSequence *') -> 'uint32': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_hash(seq: "const TSequence *") -> "uint32": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_hash(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_insts_p(seq: 'const TSequence *') -> 'const TInstant **': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_insts_p(seq: "const TSequence *") -> "const TInstant **": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_insts_p(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_inst(seq: 'const TSequence *') -> 'const TInstant *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_max_inst(seq: "const TSequence *") -> "const TInstant *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_max_inst(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_val(seq: 'const TSequence *') -> 'Datum': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_max_val(seq: "const TSequence *") -> "Datum": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_max_val(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_min_inst(seq: 'const TSequence *') -> 'const TInstant *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_min_inst(seq: "const TSequence *") -> "const TInstant *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_min_inst(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_min_val(seq: 'const TSequence *') -> 'Datum': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_min_val(seq: "const TSequence *") -> "Datum": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_min_val(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_segments(seq: 'const TSequence *') -> "Tuple['TSequence **', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tsequence_segments(seq: "const TSequence *") -> "Tuple['TSequence **', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tsequence_segments(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tsequence_seqs(seq: 'const TSequence *') -> "Tuple['const TSequence **', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tsequence_seqs(seq: "const TSequence *") -> "Tuple['const TSequence **', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tsequence_seqs(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tsequence_start_timestamptz(seq: 'const TSequence *') -> 'TimestampTz': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_start_timestamptz(seq: "const TSequence *") -> "TimestampTz": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_start_timestamptz(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_time(seq: 'const TSequence *') -> 'SpanSet *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_time(seq: "const TSequence *") -> "SpanSet *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_time(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_timestamps(seq: 'const TSequence *') -> "Tuple['TimestampTz *', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tsequence_timestamps(seq: "const TSequence *") -> "Tuple['TimestampTz *', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tsequence_timestamps(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tsequence_value_at_timestamptz(seq: 'const TSequence *', t: int, strict: bool) -> 'Datum *': - seq_converted = _ffi.cast('const TSequence *', seq) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('Datum *') - result = _lib.tsequence_value_at_timestamptz(seq_converted, t_converted, strict, out_result) +def tsequence_value_at_timestamptz( + seq: "const TSequence *", t: int, strict: bool +) -> "Datum *": + seq_converted = _ffi.cast("const TSequence *", seq) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("Datum *") + result = _lib.tsequence_value_at_timestamptz( + seq_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tsequence_values_p(seq: 'const TSequence *') -> "Tuple['Datum *', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tsequence_values_p(seq: "const TSequence *") -> "Tuple['Datum *', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tsequence_values_p(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tsequenceset_duration(ss: 'const TSequenceSet *', boundspan: bool) -> 'Interval *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_duration(ss: "const TSequenceSet *", boundspan: bool) -> "Interval *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_end_timestamptz(ss: 'const TSequenceSet *') -> 'TimestampTz': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_end_timestamptz(ss: "const TSequenceSet *") -> "TimestampTz": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_hash(ss: 'const TSequenceSet *') -> 'uint32': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_hash(ss: "const TSequenceSet *") -> "uint32": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_inst_n(ss: 'const TSequenceSet *', n: int) -> 'const TInstant *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_inst_n(ss: "const TSequenceSet *", n: int) -> "const TInstant *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_inst_n(ss_converted, n) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_insts_p(ss: 'const TSequenceSet *') -> 'const TInstant **': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_insts_p(ss: "const TSequenceSet *") -> "const TInstant **": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_insts_p(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_inst(ss: 'const TSequenceSet *') -> 'const TInstant *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_max_inst(ss: "const TSequenceSet *") -> "const TInstant *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_max_inst(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_val(ss: 'const TSequenceSet *') -> 'Datum': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_max_val(ss: "const TSequenceSet *") -> "Datum": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_max_val(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_min_inst(ss: 'const TSequenceSet *') -> 'const TInstant *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_min_inst(ss: "const TSequenceSet *") -> "const TInstant *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_min_inst(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_min_val(ss: 'const TSequenceSet *') -> 'Datum': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_min_val(ss: "const TSequenceSet *") -> "Datum": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_min_val(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_instants(ss: 'const TSequenceSet *') -> 'int': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_num_instants(ss: "const TSequenceSet *") -> "int": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_num_instants(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_timestamps(ss: 'const TSequenceSet *') -> 'int': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_num_timestamps(ss: "const TSequenceSet *") -> "int": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_num_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_segments(ss: 'const TSequenceSet *') -> "Tuple['TSequence **', 'int']": - ss_converted = _ffi.cast('const TSequenceSet *', ss) - count = _ffi.new('int *') +def tsequenceset_segments(ss: "const TSequenceSet *") -> "Tuple['TSequence **', 'int']": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + count = _ffi.new("int *") result = _lib.tsequenceset_segments(ss_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tsequenceset_sequences_p(ss: 'const TSequenceSet *') -> 'const TSequence **': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_sequences_p(ss: "const TSequenceSet *") -> "const TSequence **": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_sequences_p(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_start_timestamptz(ss: 'const TSequenceSet *') -> 'TimestampTz': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_start_timestamptz(ss: "const TSequenceSet *") -> "TimestampTz": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_time(ss: 'const TSequenceSet *') -> 'SpanSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_time(ss: "const TSequenceSet *") -> "SpanSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_time(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_timestamptz_n(ss: 'const TSequenceSet *', n: int) -> int: - ss_converted = _ffi.cast('const TSequenceSet *', ss) - out_result = _ffi.new('TimestampTz *') +def tsequenceset_timestamptz_n(ss: "const TSequenceSet *", n: int) -> int: + ss_converted = _ffi.cast("const TSequenceSet *", ss) + out_result = _ffi.new("TimestampTz *") result = _lib.tsequenceset_timestamptz_n(ss_converted, n, out_result) _check_error() if result: @@ -15245,28 +16462,34 @@ def tsequenceset_timestamptz_n(ss: 'const TSequenceSet *', n: int) -> int: return None -def tsequenceset_timestamps(ss: 'const TSequenceSet *') -> "Tuple['TimestampTz *', 'int']": - ss_converted = _ffi.cast('const TSequenceSet *', ss) - count = _ffi.new('int *') +def tsequenceset_timestamps( + ss: "const TSequenceSet *", +) -> "Tuple['TimestampTz *', 'int']": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + count = _ffi.new("int *") result = _lib.tsequenceset_timestamps(ss_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tsequenceset_value_at_timestamptz(ss: 'const TSequenceSet *', t: int, strict: bool) -> 'Datum *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('Datum *') - result = _lib.tsequenceset_value_at_timestamptz(ss_converted, t_converted, strict, out_result) +def tsequenceset_value_at_timestamptz( + ss: "const TSequenceSet *", t: int, strict: bool +) -> "Datum *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("Datum *") + result = _lib.tsequenceset_value_at_timestamptz( + ss_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tsequenceset_value_n(ss: 'const TSequenceSet *', n: int) -> 'Datum *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - out_result = _ffi.new('Datum *') +def tsequenceset_value_n(ss: "const TSequenceSet *", n: int) -> "Datum *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + out_result = _ffi.new("Datum *") result = _lib.tsequenceset_value_n(ss_converted, n, out_result) _check_error() if result: @@ -15274,1269 +16497,1530 @@ def tsequenceset_value_n(ss: 'const TSequenceSet *', n: int) -> 'Datum *': return None -def tsequenceset_values_p(ss: 'const TSequenceSet *') -> "Tuple['Datum *', 'int']": - ss_converted = _ffi.cast('const TSequenceSet *', ss) - count = _ffi.new('int *') +def tsequenceset_values_p(ss: "const TSequenceSet *") -> "Tuple['Datum *', 'int']": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + count = _ffi.new("int *") result = _lib.tsequenceset_values_p(ss_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def temporal_restart(temp: 'Temporal *', count: int) -> None: - temp_converted = _ffi.cast('Temporal *', temp) +def temporal_restart(temp: "Temporal *", count: int) -> None: + temp_converted = _ffi.cast("Temporal *", temp) _lib.temporal_restart(temp_converted, count) _check_error() -def temporal_tsequence(temp: 'const Temporal *', interp: 'interpType') -> 'TSequence *': - temp_converted = _ffi.cast('const Temporal *', temp) - interp_converted = _ffi.cast('interpType', interp) +def temporal_tsequence(temp: "const Temporal *", interp: "interpType") -> "TSequence *": + temp_converted = _ffi.cast("const Temporal *", temp) + interp_converted = _ffi.cast("interpType", interp) result = _lib.temporal_tsequence(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_tsequenceset(temp: 'const Temporal *', interp: 'interpType') -> 'TSequenceSet *': - temp_converted = _ffi.cast('const Temporal *', temp) - interp_converted = _ffi.cast('interpType', interp) +def temporal_tsequenceset( + temp: "const Temporal *", interp: "interpType" +) -> "TSequenceSet *": + temp_converted = _ffi.cast("const Temporal *", temp) + interp_converted = _ffi.cast("interpType", interp) result = _lib.temporal_tsequenceset(temp_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_shift_time(inst: 'const TInstant *', interv: 'const Interval *') -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - interv_converted = _ffi.cast('const Interval *', interv) +def tinstant_shift_time( + inst: "const TInstant *", interv: "const Interval *" +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tinstant_shift_time(inst_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_to_tsequence(inst: 'const TInstant *', interp: 'interpType') -> 'TSequence *': - inst_converted = _ffi.cast('const TInstant *', inst) - interp_converted = _ffi.cast('interpType', interp) +def tinstant_to_tsequence( + inst: "const TInstant *", interp: "interpType" +) -> "TSequence *": + inst_converted = _ffi.cast("const TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tinstant_to_tsequence(inst_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_to_tsequence_free(inst: 'TInstant *', interp: 'interpType') -> 'TSequence *': - inst_converted = _ffi.cast('TInstant *', inst) - interp_converted = _ffi.cast('interpType', interp) +def tinstant_to_tsequence_free( + inst: "TInstant *", interp: "interpType" +) -> "TSequence *": + inst_converted = _ffi.cast("TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tinstant_to_tsequence_free(inst_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_to_tsequenceset(inst: 'const TInstant *', interp: 'interpType') -> 'TSequenceSet *': - inst_converted = _ffi.cast('const TInstant *', inst) - interp_converted = _ffi.cast('interpType', interp) +def tinstant_to_tsequenceset( + inst: "const TInstant *", interp: "interpType" +) -> "TSequenceSet *": + inst_converted = _ffi.cast("const TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tinstant_to_tsequenceset(inst_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_shift_scale_value(temp: 'const Temporal *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - shift_converted = _ffi.cast('Datum', shift) - width_converted = _ffi.cast('Datum', width) - result = _lib.tnumber_shift_scale_value(temp_converted, shift_converted, width_converted, hasshift, haswidth) +def tnumber_shift_scale_value( + temp: "const Temporal *", + shift: "Datum", + width: "Datum", + hasshift: bool, + haswidth: bool, +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + shift_converted = _ffi.cast("Datum", shift) + width_converted = _ffi.cast("Datum", width) + result = _lib.tnumber_shift_scale_value( + temp_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_shift_value(inst: 'const TInstant *', shift: 'Datum') -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - shift_converted = _ffi.cast('Datum', shift) +def tnumberinst_shift_value(inst: "const TInstant *", shift: "Datum") -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + shift_converted = _ffi.cast("Datum", shift) result = _lib.tnumberinst_shift_value(inst_converted, shift_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_shift_scale_value(seq: 'const TSequence *', shift: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) - shift_converted = _ffi.cast('Datum', shift) - width_converted = _ffi.cast('Datum', width) - result = _lib.tnumberseq_shift_scale_value(seq_converted, shift_converted, width_converted, hasshift, haswidth) +def tnumberseq_shift_scale_value( + seq: "const TSequence *", + shift: "Datum", + width: "Datum", + hasshift: bool, + haswidth: bool, +) -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) + shift_converted = _ffi.cast("Datum", shift) + width_converted = _ffi.cast("Datum", width) + result = _lib.tnumberseq_shift_scale_value( + seq_converted, shift_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_shift_scale_value(ss: 'const TSequenceSet *', start: 'Datum', width: 'Datum', hasshift: bool, haswidth: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - start_converted = _ffi.cast('Datum', start) - width_converted = _ffi.cast('Datum', width) - result = _lib.tnumberseqset_shift_scale_value(ss_converted, start_converted, width_converted, hasshift, haswidth) +def tnumberseqset_shift_scale_value( + ss: "const TSequenceSet *", + start: "Datum", + width: "Datum", + hasshift: bool, + haswidth: bool, +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + start_converted = _ffi.cast("Datum", start) + width_converted = _ffi.cast("Datum", width) + result = _lib.tnumberseqset_shift_scale_value( + ss_converted, start_converted, width_converted, hasshift, haswidth + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_restart(seq: 'TSequence *', count: int) -> None: - seq_converted = _ffi.cast('TSequence *', seq) +def tsequence_restart(seq: "TSequence *", count: int) -> None: + seq_converted = _ffi.cast("TSequence *", seq) _lib.tsequence_restart(seq_converted, count) _check_error() -def tsequence_set_interp(seq: 'const TSequence *', interp: 'interpType') -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - interp_converted = _ffi.cast('interpType', interp) +def tsequence_set_interp( + seq: "const TSequence *", interp: "interpType" +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_set_interp(seq_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_shift_scale_time(seq: 'const TSequence *', shift: 'const Interval *', duration: 'const Interval *') -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) - shift_converted = _ffi.cast('const Interval *', shift) - duration_converted = _ffi.cast('const Interval *', duration) - result = _lib.tsequence_shift_scale_time(seq_converted, shift_converted, duration_converted) +def tsequence_shift_scale_time( + seq: "const TSequence *", shift: "const Interval *", duration: "const Interval *" +) -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) + shift_converted = _ffi.cast("const Interval *", shift) + duration_converted = _ffi.cast("const Interval *", duration) + result = _lib.tsequence_shift_scale_time( + seq_converted, shift_converted, duration_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_subseq(seq: 'const TSequence *', from_: int, to: int, lower_inc: bool, upper_inc: bool) -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_subseq( + seq: "const TSequence *", from_: int, to: int, lower_inc: bool, upper_inc: bool +) -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_subseq(seq_converted, from_, to, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tinstant(seq: 'const TSequence *') -> 'TInstant *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_to_tinstant(seq: "const TSequence *") -> "TInstant *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tinstant(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset(seq: 'const TSequence *') -> 'TSequenceSet *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_to_tsequenceset(seq: "const TSequence *") -> "TSequenceSet *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tsequenceset(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset_free(seq: 'TSequence *') -> 'TSequenceSet *': - seq_converted = _ffi.cast('TSequence *', seq) +def tsequence_to_tsequenceset_free(seq: "TSequence *") -> "TSequenceSet *": + seq_converted = _ffi.cast("TSequence *", seq) result = _lib.tsequence_to_tsequenceset_free(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset_interp(seq: 'const TSequence *', interp: 'interpType') -> 'TSequenceSet *': - seq_converted = _ffi.cast('const TSequence *', seq) - interp_converted = _ffi.cast('interpType', interp) +def tsequence_to_tsequenceset_interp( + seq: "const TSequence *", interp: "interpType" +) -> "TSequenceSet *": + seq_converted = _ffi.cast("const TSequence *", seq) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restart(ss: 'TSequenceSet *', count: int) -> None: - ss_converted = _ffi.cast('TSequenceSet *', ss) +def tsequenceset_restart(ss: "TSequenceSet *", count: int) -> None: + ss_converted = _ffi.cast("TSequenceSet *", ss) _lib.tsequenceset_restart(ss_converted, count) _check_error() -def tsequenceset_set_interp(ss: 'const TSequenceSet *', interp: 'interpType') -> 'Temporal *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - interp_converted = _ffi.cast('interpType', interp) +def tsequenceset_set_interp( + ss: "const TSequenceSet *", interp: "interpType" +) -> "Temporal *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequenceset_set_interp(ss_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_shift_scale_time(ss: 'const TSequenceSet *', start: 'const Interval *', duration: 'const Interval *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - start_converted = _ffi.cast('const Interval *', start) - duration_converted = _ffi.cast('const Interval *', duration) - result = _lib.tsequenceset_shift_scale_time(ss_converted, start_converted, duration_converted) +def tsequenceset_shift_scale_time( + ss: "const TSequenceSet *", start: "const Interval *", duration: "const Interval *" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + start_converted = _ffi.cast("const Interval *", start) + duration_converted = _ffi.cast("const Interval *", duration) + result = _lib.tsequenceset_shift_scale_time( + ss_converted, start_converted, duration_converted + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_discrete(ss: 'const TSequenceSet *') -> 'TSequence *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_to_discrete(ss: "const TSequenceSet *") -> "TSequence *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_discrete(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_linear(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_to_linear(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_linear(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_step(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_to_step(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_step(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tinstant(ss: 'const TSequenceSet *') -> 'TInstant *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_to_tinstant(ss: "const TSequenceSet *") -> "TInstant *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_tinstant(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tsequence(ss: 'const TSequenceSet *') -> 'TSequence *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_to_tsequence(ss: "const TSequenceSet *") -> "TSequence *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_tsequence(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_merge(inst1: 'const TInstant *', inst2: 'const TInstant *') -> 'Temporal *': - inst1_converted = _ffi.cast('const TInstant *', inst1) - inst2_converted = _ffi.cast('const TInstant *', inst2) +def tinstant_merge( + inst1: "const TInstant *", inst2: "const TInstant *" +) -> "Temporal *": + inst1_converted = _ffi.cast("const TInstant *", inst1) + inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_merge(inst1_converted, inst2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_merge_array(instants: 'const TInstant **', count: int) -> 'Temporal *': - instants_converted = [_ffi.cast('const TInstant *', x) for x in instants] +def tinstant_merge_array(instants: "const TInstant **", count: int) -> "Temporal *": + instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] result = _lib.tinstant_merge_array(instants_converted, count) _check_error() return result if result != _ffi.NULL else None -def tsequence_append_tinstant(seq: 'TSequence *', inst: 'const TInstant *', maxdist: float, maxt: 'const Interval *', expand: bool) -> 'Temporal *': - seq_converted = _ffi.cast('TSequence *', seq) - inst_converted = _ffi.cast('const TInstant *', inst) - maxt_converted = _ffi.cast('const Interval *', maxt) - result = _lib.tsequence_append_tinstant(seq_converted, inst_converted, maxdist, maxt_converted, expand) +def tsequence_append_tinstant( + seq: "TSequence *", + inst: "const TInstant *", + maxdist: float, + maxt: "const Interval *", + expand: bool, +) -> "Temporal *": + seq_converted = _ffi.cast("TSequence *", seq) + inst_converted = _ffi.cast("const TInstant *", inst) + maxt_converted = _ffi.cast("const Interval *", maxt) + result = _lib.tsequence_append_tinstant( + seq_converted, inst_converted, maxdist, maxt_converted, expand + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_append_tsequence(seq1: 'const TSequence *', seq2: 'const TSequence *', expand: bool) -> 'Temporal *': - seq1_converted = _ffi.cast('const TSequence *', seq1) - seq2_converted = _ffi.cast('const TSequence *', seq2) +def tsequence_append_tsequence( + seq1: "const TSequence *", seq2: "const TSequence *", expand: bool +) -> "Temporal *": + seq1_converted = _ffi.cast("const TSequence *", seq1) + seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_append_tsequence(seq1_converted, seq2_converted, expand) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_timestamptz(seq: 'const TSequence *', t: int, connect: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - t_converted = _ffi.cast('TimestampTz', t) +def tsequence_delete_timestamptz( + seq: "const TSequence *", t: int, connect: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequence_delete_timestamptz(seq_converted, t_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_tstzset(seq: 'const TSequence *', s: 'const Set *', connect: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - s_converted = _ffi.cast('const Set *', s) +def tsequence_delete_tstzset( + seq: "const TSequence *", s: "const Set *", connect: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + s_converted = _ffi.cast("const Set *", s) result = _lib.tsequence_delete_tstzset(seq_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_tstzspan(seq: 'const TSequence *', s: 'const Span *', connect: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - s_converted = _ffi.cast('const Span *', s) +def tsequence_delete_tstzspan( + seq: "const TSequence *", s: "const Span *", connect: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + s_converted = _ffi.cast("const Span *", s) result = _lib.tsequence_delete_tstzspan(seq_converted, s_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tsequence_delete_tstzspanset(seq: 'const TSequence *', ss: 'const SpanSet *', connect: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tsequence_delete_tstzspanset( + seq: "const TSequence *", ss: "const SpanSet *", connect: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tsequence_delete_tstzspanset(seq_converted, ss_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tsequence_insert(seq1: 'const TSequence *', seq2: 'const TSequence *', connect: bool) -> 'Temporal *': - seq1_converted = _ffi.cast('const TSequence *', seq1) - seq2_converted = _ffi.cast('const TSequence *', seq2) +def tsequence_insert( + seq1: "const TSequence *", seq2: "const TSequence *", connect: bool +) -> "Temporal *": + seq1_converted = _ffi.cast("const TSequence *", seq1) + seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_insert(seq1_converted, seq2_converted, connect) _check_error() return result if result != _ffi.NULL else None -def tsequence_merge(seq1: 'const TSequence *', seq2: 'const TSequence *') -> 'Temporal *': - seq1_converted = _ffi.cast('const TSequence *', seq1) - seq2_converted = _ffi.cast('const TSequence *', seq2) +def tsequence_merge( + seq1: "const TSequence *", seq2: "const TSequence *" +) -> "Temporal *": + seq1_converted = _ffi.cast("const TSequence *", seq1) + seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_merge(seq1_converted, seq2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_merge_array(sequences: 'const TSequence **', count: int) -> 'Temporal *': - sequences_converted = [_ffi.cast('const TSequence *', x) for x in sequences] +def tsequence_merge_array(sequences: "const TSequence **", count: int) -> "Temporal *": + sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequence_merge_array(sequences_converted, count) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_append_tinstant(ss: 'TSequenceSet *', inst: 'const TInstant *', maxdist: float, maxt: 'const Interval *', expand: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('TSequenceSet *', ss) - inst_converted = _ffi.cast('const TInstant *', inst) - maxt_converted = _ffi.cast('const Interval *', maxt) - result = _lib.tsequenceset_append_tinstant(ss_converted, inst_converted, maxdist, maxt_converted, expand) +def tsequenceset_append_tinstant( + ss: "TSequenceSet *", + inst: "const TInstant *", + maxdist: float, + maxt: "const Interval *", + expand: bool, +) -> "TSequenceSet *": + ss_converted = _ffi.cast("TSequenceSet *", ss) + inst_converted = _ffi.cast("const TInstant *", inst) + maxt_converted = _ffi.cast("const Interval *", maxt) + result = _lib.tsequenceset_append_tinstant( + ss_converted, inst_converted, maxdist, maxt_converted, expand + ) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_append_tsequence(ss: 'TSequenceSet *', seq: 'const TSequence *', expand: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('TSequenceSet *', ss) - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequenceset_append_tsequence( + ss: "TSequenceSet *", seq: "const TSequence *", expand: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("TSequenceSet *", ss) + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequenceset_append_tsequence(ss_converted, seq_converted, expand) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_timestamptz(ss: 'const TSequenceSet *', t: int) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def tsequenceset_delete_timestamptz( + ss: "const TSequenceSet *", t: int +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequenceset_delete_timestamptz(ss_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_tstzset(ss: 'const TSequenceSet *', s: 'const Set *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - s_converted = _ffi.cast('const Set *', s) +def tsequenceset_delete_tstzset( + ss: "const TSequenceSet *", s: "const Set *" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_delete_tstzset(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_tstzspan(ss: 'const TSequenceSet *', s: 'const Span *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def tsequenceset_delete_tstzspan( + ss: "const TSequenceSet *", s: "const Span *" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.tsequenceset_delete_tstzspan(ss_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_delete_tstzspanset(ss: 'const TSequenceSet *', ps: 'const SpanSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - ps_converted = _ffi.cast('const SpanSet *', ps) +def tsequenceset_delete_tstzspanset( + ss: "const TSequenceSet *", ps: "const SpanSet *" +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + ps_converted = _ffi.cast("const SpanSet *", ps) result = _lib.tsequenceset_delete_tstzspanset(ss_converted, ps_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_insert(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'TSequenceSet *': - ss1_converted = _ffi.cast('const TSequenceSet *', ss1) - ss2_converted = _ffi.cast('const TSequenceSet *', ss2) +def tsequenceset_insert( + ss1: "const TSequenceSet *", ss2: "const TSequenceSet *" +) -> "TSequenceSet *": + ss1_converted = _ffi.cast("const TSequenceSet *", ss1) + ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_insert(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_merge(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'TSequenceSet *': - ss1_converted = _ffi.cast('const TSequenceSet *', ss1) - ss2_converted = _ffi.cast('const TSequenceSet *', ss2) +def tsequenceset_merge( + ss1: "const TSequenceSet *", ss2: "const TSequenceSet *" +) -> "TSequenceSet *": + ss1_converted = _ffi.cast("const TSequenceSet *", ss1) + ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_merge(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_merge_array(seqsets: 'const TSequenceSet **', count: int) -> 'TSequenceSet *': - seqsets_converted = [_ffi.cast('const TSequenceSet *', x) for x in seqsets] +def tsequenceset_merge_array( + seqsets: "const TSequenceSet **", count: int +) -> "TSequenceSet *": + seqsets_converted = [_ffi.cast("const TSequenceSet *", x) for x in seqsets] result = _lib.tsequenceset_merge_array(seqsets_converted, count) _check_error() return result if result != _ffi.NULL else None -def tsequence_expand_bbox(seq: 'TSequence *', inst: 'const TInstant *') -> None: - seq_converted = _ffi.cast('TSequence *', seq) - inst_converted = _ffi.cast('const TInstant *', inst) +def tsequence_expand_bbox(seq: "TSequence *", inst: "const TInstant *") -> None: + seq_converted = _ffi.cast("TSequence *", seq) + inst_converted = _ffi.cast("const TInstant *", inst) _lib.tsequence_expand_bbox(seq_converted, inst_converted) _check_error() -def tsequence_set_bbox(seq: 'const TSequence *', box: 'void *') -> None: - seq_converted = _ffi.cast('const TSequence *', seq) - box_converted = _ffi.cast('void *', box) +def tsequence_set_bbox(seq: "const TSequence *", box: "void *") -> None: + seq_converted = _ffi.cast("const TSequence *", seq) + box_converted = _ffi.cast("void *", box) _lib.tsequence_set_bbox(seq_converted, box_converted) _check_error() -def tsequenceset_expand_bbox(ss: 'TSequenceSet *', seq: 'const TSequence *') -> None: - ss_converted = _ffi.cast('TSequenceSet *', ss) - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequenceset_expand_bbox(ss: "TSequenceSet *", seq: "const TSequence *") -> None: + ss_converted = _ffi.cast("TSequenceSet *", ss) + seq_converted = _ffi.cast("const TSequence *", seq) _lib.tsequenceset_expand_bbox(ss_converted, seq_converted) _check_error() -def tsequenceset_set_bbox(ss: 'const TSequenceSet *', box: 'void *') -> None: - ss_converted = _ffi.cast('const TSequenceSet *', ss) - box_converted = _ffi.cast('void *', box) +def tsequenceset_set_bbox(ss: "const TSequenceSet *", box: "void *") -> None: + ss_converted = _ffi.cast("const TSequenceSet *", ss) + box_converted = _ffi.cast("void *", box) _lib.tsequenceset_set_bbox(ss_converted, box_converted) _check_error() -def tdiscseq_restrict_minmax(seq: 'const TSequence *', min: bool, atfunc: bool) -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tdiscseq_restrict_minmax( + seq: "const TSequence *", min: bool, atfunc: bool +) -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tdiscseq_restrict_minmax(seq_converted, min, atfunc) _check_error() return result if result != _ffi.NULL else None -def tcontseq_restrict_minmax(seq: 'const TSequence *', min: bool, atfunc: bool) -> 'TSequenceSet *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tcontseq_restrict_minmax( + seq: "const TSequence *", min: bool, atfunc: bool +) -> "TSequenceSet *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tcontseq_restrict_minmax(seq_converted, min, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_bbox_restrict_set(temp: 'const Temporal *', set: 'const Set *') -> 'bool': - temp_converted = _ffi.cast('const Temporal *', temp) - set_converted = _ffi.cast('const Set *', set) +def temporal_bbox_restrict_set(temp: "const Temporal *", set: "const Set *") -> "bool": + temp_converted = _ffi.cast("const Temporal *", temp) + set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_bbox_restrict_set(temp_converted, set_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_minmax(temp: 'const Temporal *', min: bool, atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_restrict_minmax( + temp: "const Temporal *", min: bool, atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_restrict_minmax(temp_converted, min, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_timestamptz(temp: 'const Temporal *', t: int, atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) +def temporal_restrict_timestamptz( + temp: "const Temporal *", t: int, atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_restrict_timestamptz(temp_converted, t_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_tstzset(temp: 'const Temporal *', s: 'const Set *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Set *', s) +def temporal_restrict_tstzset( + temp: "const Temporal *", s: "const Set *", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_restrict_tstzset(temp_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_tstzspan(temp: 'const Temporal *', s: 'const Span *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Span *', s) +def temporal_restrict_tstzspan( + temp: "const Temporal *", s: "const Span *", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_restrict_tstzspan(temp_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_tstzspanset(temp: 'const Temporal *', ss: 'const SpanSet *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def temporal_restrict_tstzspanset( + temp: "const Temporal *", ss: "const SpanSet *", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_restrict_tstzspanset(temp_converted, ss_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_value(temp: 'const Temporal *', value: 'Datum', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def temporal_restrict_value( + temp: "const Temporal *", value: "Datum", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.temporal_restrict_value(temp_converted, value_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_restrict_values(temp: 'const Temporal *', set: 'const Set *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - set_converted = _ffi.cast('const Set *', set) +def temporal_restrict_values( + temp: "const Temporal *", set: "const Set *", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_restrict_values(temp_converted, set_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_value_at_timestamptz(temp: 'const Temporal *', t: int, strict: bool) -> 'Datum *': - temp_converted = _ffi.cast('const Temporal *', temp) - t_converted = _ffi.cast('TimestampTz', t) - out_result = _ffi.new('Datum *') - result = _lib.temporal_value_at_timestamptz(temp_converted, t_converted, strict, out_result) +def temporal_value_at_timestamptz( + temp: "const Temporal *", t: int, strict: bool +) -> "Datum *": + temp_converted = _ffi.cast("const Temporal *", temp) + t_converted = _ffi.cast("TimestampTz", t) + out_result = _ffi.new("Datum *") + result = _lib.temporal_value_at_timestamptz( + temp_converted, t_converted, strict, out_result + ) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tinstant_restrict_tstzspan(inst: 'const TInstant *', period: 'const Span *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - period_converted = _ffi.cast('const Span *', period) +def tinstant_restrict_tstzspan( + inst: "const TInstant *", period: "const Span *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + period_converted = _ffi.cast("const Span *", period) result = _lib.tinstant_restrict_tstzspan(inst_converted, period_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_tstzspanset(inst: 'const TInstant *', ss: 'const SpanSet *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tinstant_restrict_tstzspanset( + inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tinstant_restrict_tstzspanset(inst_converted, ss_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_timestamptz(inst: 'const TInstant *', t: int, atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - t_converted = _ffi.cast('TimestampTz', t) +def tinstant_restrict_timestamptz( + inst: "const TInstant *", t: int, atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tinstant_restrict_timestamptz(inst_converted, t_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_tstzset(inst: 'const TInstant *', s: 'const Set *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - s_converted = _ffi.cast('const Set *', s) +def tinstant_restrict_tstzset( + inst: "const TInstant *", s: "const Set *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + s_converted = _ffi.cast("const Set *", s) result = _lib.tinstant_restrict_tstzset(inst_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_value(inst: 'const TInstant *', value: 'Datum', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - value_converted = _ffi.cast('Datum', value) +def tinstant_restrict_value( + inst: "const TInstant *", value: "Datum", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + value_converted = _ffi.cast("Datum", value) result = _lib.tinstant_restrict_value(inst_converted, value_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tinstant_restrict_values(inst: 'const TInstant *', set: 'const Set *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - set_converted = _ffi.cast('const Set *', set) +def tinstant_restrict_values( + inst: "const TInstant *", set: "const Set *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + set_converted = _ffi.cast("const Set *", set) result = _lib.tinstant_restrict_values(inst_converted, set_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tnumber_restrict_span(temp: 'const Temporal *', span: 'const Span *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - span_converted = _ffi.cast('const Span *', span) +def tnumber_restrict_span( + temp: "const Temporal *", span: "const Span *", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_restrict_span(temp_converted, span_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tnumber_restrict_spanset(temp: 'const Temporal *', ss: 'const SpanSet *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tnumber_restrict_spanset( + temp: "const Temporal *", ss: "const SpanSet *", atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_restrict_spanset(temp_converted, ss_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_restrict_span(inst: 'const TInstant *', span: 'const Span *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - span_converted = _ffi.cast('const Span *', span) +def tnumberinst_restrict_span( + inst: "const TInstant *", span: "const Span *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + span_converted = _ffi.cast("const Span *", span) result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_restrict_spanset(inst: 'const TInstant *', ss: 'const SpanSet *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tnumberinst_restrict_spanset( + inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_restrict_span(ss: 'const TSequenceSet *', span: 'const Span *', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - span_converted = _ffi.cast('const Span *', span) +def tnumberseqset_restrict_span( + ss: "const TSequenceSet *", span: "const Span *", atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + span_converted = _ffi.cast("const Span *", span) result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_restrict_spanset(ss: 'const TSequenceSet *', spanset: 'const SpanSet *', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - spanset_converted = _ffi.cast('const SpanSet *', spanset) - result = _lib.tnumberseqset_restrict_spanset(ss_converted, spanset_converted, atfunc) +def tnumberseqset_restrict_spanset( + ss: "const TSequenceSet *", spanset: "const SpanSet *", atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + spanset_converted = _ffi.cast("const SpanSet *", spanset) + result = _lib.tnumberseqset_restrict_spanset( + ss_converted, spanset_converted, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tsequence_at_timestamptz(seq: 'const TSequence *', t: int) -> 'TInstant *': - seq_converted = _ffi.cast('const TSequence *', seq) - t_converted = _ffi.cast('TimestampTz', t) +def tsequence_at_timestamptz(seq: "const TSequence *", t: int) -> "TInstant *": + seq_converted = _ffi.cast("const TSequence *", seq) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequence_at_timestamptz(seq_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_restrict_tstzspan(seq: 'const TSequence *', s: 'const Span *', atfunc: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - s_converted = _ffi.cast('const Span *', s) +def tsequence_restrict_tstzspan( + seq: "const TSequence *", s: "const Span *", atfunc: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + s_converted = _ffi.cast("const Span *", s) result = _lib.tsequence_restrict_tstzspan(seq_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequence_restrict_tstzspanset(seq: 'const TSequence *', ss: 'const SpanSet *', atfunc: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - ss_converted = _ffi.cast('const SpanSet *', ss) +def tsequence_restrict_tstzspanset( + seq: "const TSequence *", ss: "const SpanSet *", atfunc: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tsequence_restrict_tstzspanset(seq_converted, ss_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_minmax(ss: 'const TSequenceSet *', min: bool, atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_restrict_minmax( + ss: "const TSequenceSet *", min: bool, atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_restrict_minmax(ss_converted, min, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_tstzspan(ss: 'const TSequenceSet *', s: 'const Span *', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - s_converted = _ffi.cast('const Span *', s) +def tsequenceset_restrict_tstzspan( + ss: "const TSequenceSet *", s: "const Span *", atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + s_converted = _ffi.cast("const Span *", s) result = _lib.tsequenceset_restrict_tstzspan(ss_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_tstzspanset(ss: 'const TSequenceSet *', ps: 'const SpanSet *', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - ps_converted = _ffi.cast('const SpanSet *', ps) +def tsequenceset_restrict_tstzspanset( + ss: "const TSequenceSet *", ps: "const SpanSet *", atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + ps_converted = _ffi.cast("const SpanSet *", ps) result = _lib.tsequenceset_restrict_tstzspanset(ss_converted, ps_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_timestamptz(ss: 'const TSequenceSet *', t: int, atfunc: bool) -> 'Temporal *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - t_converted = _ffi.cast('TimestampTz', t) +def tsequenceset_restrict_timestamptz( + ss: "const TSequenceSet *", t: int, atfunc: bool +) -> "Temporal *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequenceset_restrict_timestamptz(ss_converted, t_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_tstzset(ss: 'const TSequenceSet *', s: 'const Set *', atfunc: bool) -> 'Temporal *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - s_converted = _ffi.cast('const Set *', s) +def tsequenceset_restrict_tstzset( + ss: "const TSequenceSet *", s: "const Set *", atfunc: bool +) -> "Temporal *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_restrict_tstzset(ss_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_value(ss: 'const TSequenceSet *', value: 'Datum', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - value_converted = _ffi.cast('Datum', value) +def tsequenceset_restrict_value( + ss: "const TSequenceSet *", value: "Datum", atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + value_converted = _ffi.cast("Datum", value) result = _lib.tsequenceset_restrict_value(ss_converted, value_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restrict_values(ss: 'const TSequenceSet *', s: 'const Set *', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - s_converted = _ffi.cast('const Set *', s) +def tsequenceset_restrict_values( + ss: "const TSequenceSet *", s: "const Set *", atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_restrict_values(ss_converted, s_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tinstant_cmp(inst1: 'const TInstant *', inst2: 'const TInstant *') -> 'int': - inst1_converted = _ffi.cast('const TInstant *', inst1) - inst2_converted = _ffi.cast('const TInstant *', inst2) +def tinstant_cmp(inst1: "const TInstant *", inst2: "const TInstant *") -> "int": + inst1_converted = _ffi.cast("const TInstant *", inst1) + inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_cmp(inst1_converted, inst2_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_eq(inst1: 'const TInstant *', inst2: 'const TInstant *') -> 'bool': - inst1_converted = _ffi.cast('const TInstant *', inst1) - inst2_converted = _ffi.cast('const TInstant *', inst2) +def tinstant_eq(inst1: "const TInstant *", inst2: "const TInstant *") -> "bool": + inst1_converted = _ffi.cast("const TInstant *", inst1) + inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_eq(inst1_converted, inst2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_cmp(seq1: 'const TSequence *', seq2: 'const TSequence *') -> 'int': - seq1_converted = _ffi.cast('const TSequence *', seq1) - seq2_converted = _ffi.cast('const TSequence *', seq2) +def tsequence_cmp(seq1: "const TSequence *", seq2: "const TSequence *") -> "int": + seq1_converted = _ffi.cast("const TSequence *", seq1) + seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_cmp(seq1_converted, seq2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_eq(seq1: 'const TSequence *', seq2: 'const TSequence *') -> 'bool': - seq1_converted = _ffi.cast('const TSequence *', seq1) - seq2_converted = _ffi.cast('const TSequence *', seq2) +def tsequence_eq(seq1: "const TSequence *", seq2: "const TSequence *") -> "bool": + seq1_converted = _ffi.cast("const TSequence *", seq1) + seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_eq(seq1_converted, seq2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_cmp(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'int': - ss1_converted = _ffi.cast('const TSequenceSet *', ss1) - ss2_converted = _ffi.cast('const TSequenceSet *', ss2) +def tsequenceset_cmp(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> "int": + ss1_converted = _ffi.cast("const TSequenceSet *", ss1) + ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_cmp(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_eq(ss1: 'const TSequenceSet *', ss2: 'const TSequenceSet *') -> 'bool': - ss1_converted = _ffi.cast('const TSequenceSet *', ss1) - ss2_converted = _ffi.cast('const TSequenceSet *', ss2) +def tsequenceset_eq(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> "bool": + ss1_converted = _ffi.cast("const TSequenceSet *", ss1) + ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_eq(ss1_converted, ss2_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def always_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.always_eq_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def always_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.always_ne_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def always_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.always_ge_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def always_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.always_gt_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def always_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.always_le_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def always_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.always_lt_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def ever_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.ever_eq_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def ever_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.ever_ne_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def ever_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.ever_ge_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def ever_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.ever_gt_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def ever_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.ever_le_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_base_temporal(value: 'Datum', temp: 'const Temporal *') -> 'int': - value_converted = _ffi.cast('Datum', value) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": + value_converted = _ffi.cast("Datum", value) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_base_temporal(value_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_temporal_base(temp: 'const Temporal *', value: 'Datum') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def ever_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.ever_lt_temporal_base(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_abs(inst: 'const TInstant *') -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) +def tnumberinst_abs(inst: "const TInstant *") -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tnumberinst_abs(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_abs(seq: 'const TSequence *') -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tnumberseq_abs(seq: "const TSequence *") -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_abs(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_angular_difference(seq: 'const TSequence *') -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tnumberseq_angular_difference(seq: "const TSequence *") -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_angular_difference(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_delta_value(seq: 'const TSequence *') -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tnumberseq_delta_value(seq: "const TSequence *") -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_delta_value(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_abs(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tnumberseqset_abs(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_abs(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_angular_difference(ss: 'const TSequenceSet *') -> 'TSequence *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tnumberseqset_angular_difference(ss: "const TSequenceSet *") -> "TSequence *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_angular_difference(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_delta_value(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tnumberseqset_delta_value(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_delta_value(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnumber_number(temp: 'const Temporal *', value: 'Datum') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def tdistance_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.tdistance_tnumber_number(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tbox_tbox(box1: 'const TBox *', box2: 'const TBox *') -> 'double': - box1_converted = _ffi.cast('const TBox *', box1) - box2_converted = _ffi.cast('const TBox *', box2) +def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "double": + box1_converted = _ffi.cast("const TBox *", box1) + box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tbox_tbox(box1_converted, box2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnumber_number(temp: 'const Temporal *', value: 'Datum') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - value_converted = _ffi.cast('Datum', value) +def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + value_converted = _ffi.cast("Datum", value) result = _lib.nad_tnumber_number(temp_converted, value_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnumber_tbox(temp: 'const Temporal *', box: 'const TBox *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const TBox *', box) +def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tnumber_tbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnumber_tnumber(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nad_tnumber_tnumber( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tnumber_tnumber(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_integral(seq: 'const TSequence *') -> 'double': - seq_converted = _ffi.cast('const TSequence *', seq) +def tnumberseq_integral(seq: "const TSequence *") -> "double": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_integral(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_twavg(seq: 'const TSequence *') -> 'double': - seq_converted = _ffi.cast('const TSequence *', seq) +def tnumberseq_twavg(seq: "const TSequence *") -> "double": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_twavg(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_integral(ss: 'const TSequenceSet *') -> 'double': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tnumberseqset_integral(ss: "const TSequenceSet *") -> "double": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_integral(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_twavg(ss: 'const TSequenceSet *') -> 'double': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tnumberseqset_twavg(ss: "const TSequenceSet *") -> "double": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_twavg(ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_compact(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def temporal_compact(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_compact(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_compact(seq: 'const TSequence *') -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tsequence_compact(seq: "const TSequence *") -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_compact(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_compact(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tsequenceset_compact(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_compact(ss_converted) _check_error() return result if result != _ffi.NULL else None -def skiplist_free(list: 'SkipList *') -> None: - list_converted = _ffi.cast('SkipList *', list) +def skiplist_free(list: "SkipList *") -> None: + list_converted = _ffi.cast("SkipList *", list) _lib.skiplist_free(list_converted) _check_error() -def temporal_app_tinst_transfn(state: 'Temporal *', inst: 'const TInstant *', interp: 'interpType', maxdist: float, maxt: 'const Interval *') -> 'Temporal *': - state_converted = _ffi.cast('Temporal *', state) - inst_converted = _ffi.cast('const TInstant *', inst) - interp_converted = _ffi.cast('interpType', interp) - maxt_converted = _ffi.cast('const Interval *', maxt) - result = _lib.temporal_app_tinst_transfn(state_converted, inst_converted, interp_converted, maxdist, maxt_converted) +def temporal_app_tinst_transfn( + state: "Temporal *", + inst: "const TInstant *", + interp: "interpType", + maxdist: float, + maxt: "const Interval *", +) -> "Temporal *": + state_converted = _ffi.cast("Temporal *", state) + inst_converted = _ffi.cast("const TInstant *", inst) + interp_converted = _ffi.cast("interpType", interp) + maxt_converted = _ffi.cast("const Interval *", maxt) + result = _lib.temporal_app_tinst_transfn( + state_converted, inst_converted, interp_converted, maxdist, maxt_converted + ) _check_error() return result if result != _ffi.NULL else None -def temporal_app_tseq_transfn(state: 'Temporal *', seq: 'const TSequence *') -> 'Temporal *': - state_converted = _ffi.cast('Temporal *', state) - seq_converted = _ffi.cast('const TSequence *', seq) +def temporal_app_tseq_transfn( + state: "Temporal *", seq: "const TSequence *" +) -> "Temporal *": + state_converted = _ffi.cast("Temporal *", state) + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.temporal_app_tseq_transfn(state_converted, seq_converted) _check_error() return result if result != _ffi.NULL else None -def span_bins(s: 'const Span *', size: 'Datum', origin: 'Datum') -> "Tuple['Span *', 'int']": - s_converted = _ffi.cast('const Span *', s) - size_converted = _ffi.cast('Datum', size) - origin_converted = _ffi.cast('Datum', origin) - count = _ffi.new('int *') +def span_bins( + s: "const Span *", size: "Datum", origin: "Datum" +) -> "Tuple['Span *', 'int']": + s_converted = _ffi.cast("const Span *", s) + size_converted = _ffi.cast("Datum", size) + origin_converted = _ffi.cast("Datum", origin) + count = _ffi.new("int *") result = _lib.span_bins(s_converted, size_converted, origin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def spanset_bins(ss: 'const SpanSet *', size: 'Datum', origin: 'Datum') -> "Tuple['Span *', 'int']": - ss_converted = _ffi.cast('const SpanSet *', ss) - size_converted = _ffi.cast('Datum', size) - origin_converted = _ffi.cast('Datum', origin) - count = _ffi.new('int *') +def spanset_bins( + ss: "const SpanSet *", size: "Datum", origin: "Datum" +) -> "Tuple['Span *', 'int']": + ss_converted = _ffi.cast("const SpanSet *", ss) + size_converted = _ffi.cast("Datum", size) + origin_converted = _ffi.cast("Datum", origin) + count = _ffi.new("int *") result = _lib.spanset_bins(ss_converted, size_converted, origin_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_value_bins(temp: 'const Temporal *', size: 'Datum', origin: 'Datum') -> "Tuple['Span *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - size_converted = _ffi.cast('Datum', size) - origin_converted = _ffi.cast('Datum', origin) - count = _ffi.new('int *') - result = _lib.tnumber_value_bins(temp_converted, size_converted, origin_converted, count) +def tnumber_value_bins( + temp: "const Temporal *", size: "Datum", origin: "Datum" +) -> "Tuple['Span *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + size_converted = _ffi.cast("Datum", size) + origin_converted = _ffi.cast("Datum", origin) + count = _ffi.new("int *") + result = _lib.tnumber_value_bins( + temp_converted, size_converted, origin_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_value_time_boxes(temp: 'const Temporal *', vsize: 'Datum', duration: 'const Interval *', vorigin: 'Datum', torigin: int) -> "Tuple['TBox *', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - vsize_converted = _ffi.cast('Datum', vsize) - duration_converted = _ffi.cast('const Interval *', duration) - vorigin_converted = _ffi.cast('Datum', vorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - count = _ffi.new('int *') - result = _lib.tnumber_value_time_boxes(temp_converted, vsize_converted, duration_converted, vorigin_converted, torigin_converted, count) +def tnumber_value_time_boxes( + temp: "const Temporal *", + vsize: "Datum", + duration: "const Interval *", + vorigin: "Datum", + torigin: int, +) -> "Tuple['TBox *', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + vsize_converted = _ffi.cast("Datum", vsize) + duration_converted = _ffi.cast("const Interval *", duration) + vorigin_converted = _ffi.cast("Datum", vorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + count = _ffi.new("int *") + result = _lib.tnumber_value_time_boxes( + temp_converted, + vsize_converted, + duration_converted, + vorigin_converted, + torigin_converted, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnumber_value_split(temp: 'const Temporal *', vsize: 'Datum', vorigin: 'Datum', bins: 'Datum **') -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - vsize_converted = _ffi.cast('Datum', vsize) - vorigin_converted = _ffi.cast('Datum', vorigin) - bins_converted = [_ffi.cast('Datum *', x) for x in bins] - count = _ffi.new('int *') - result = _lib.tnumber_value_split(temp_converted, vsize_converted, vorigin_converted, bins_converted, count) +def tnumber_value_split( + temp: "const Temporal *", vsize: "Datum", vorigin: "Datum", bins: "Datum **" +) -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + vsize_converted = _ffi.cast("Datum", vsize) + vorigin_converted = _ffi.cast("Datum", vorigin) + bins_converted = [_ffi.cast("Datum *", x) for x in bins] + count = _ffi.new("int *") + result = _lib.tnumber_value_split( + temp_converted, vsize_converted, vorigin_converted, bins_converted, count + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tbox_get_value_time_tile(value: 'Datum', t: int, vsize: 'Datum', duration: 'const Interval *', vorigin: 'Datum', torigin: int, basetype: 'meosType', spantype: 'meosType') -> 'TBox *': - value_converted = _ffi.cast('Datum', value) - t_converted = _ffi.cast('TimestampTz', t) - vsize_converted = _ffi.cast('Datum', vsize) - duration_converted = _ffi.cast('const Interval *', duration) - vorigin_converted = _ffi.cast('Datum', vorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - basetype_converted = _ffi.cast('meosType', basetype) - spantype_converted = _ffi.cast('meosType', spantype) - result = _lib.tbox_get_value_time_tile(value_converted, t_converted, vsize_converted, duration_converted, vorigin_converted, torigin_converted, basetype_converted, spantype_converted) +def tbox_get_value_time_tile( + value: "Datum", + t: int, + vsize: "Datum", + duration: "const Interval *", + vorigin: "Datum", + torigin: int, + basetype: "meosType", + spantype: "meosType", +) -> "TBox *": + value_converted = _ffi.cast("Datum", value) + t_converted = _ffi.cast("TimestampTz", t) + vsize_converted = _ffi.cast("Datum", vsize) + duration_converted = _ffi.cast("const Interval *", duration) + vorigin_converted = _ffi.cast("Datum", vorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + basetype_converted = _ffi.cast("meosType", basetype) + spantype_converted = _ffi.cast("meosType", spantype) + result = _lib.tbox_get_value_time_tile( + value_converted, + t_converted, + vsize_converted, + duration_converted, + vorigin_converted, + torigin_converted, + basetype_converted, + spantype_converted, + ) _check_error() return result if result != _ffi.NULL else None -def tnumber_value_time_split(temp: 'const Temporal *', size: 'Datum', duration: 'const Interval *', vorigin: 'Datum', torigin: int, value_bins: 'Datum **', time_bins: 'TimestampTz **') -> "Tuple['Temporal **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - size_converted = _ffi.cast('Datum', size) - duration_converted = _ffi.cast('const Interval *', duration) - vorigin_converted = _ffi.cast('Datum', vorigin) - torigin_converted = _ffi.cast('TimestampTz', torigin) - value_bins_converted = [_ffi.cast('Datum *', x) for x in value_bins] - time_bins_converted = [_ffi.cast('TimestampTz *', x) for x in time_bins] - count = _ffi.new('int *') - result = _lib.tnumber_value_time_split(temp_converted, size_converted, duration_converted, vorigin_converted, torigin_converted, value_bins_converted, time_bins_converted, count) +def tnumber_value_time_split( + temp: "const Temporal *", + size: "Datum", + duration: "const Interval *", + vorigin: "Datum", + torigin: int, + value_bins: "Datum **", + time_bins: "TimestampTz **", +) -> "Tuple['Temporal **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + size_converted = _ffi.cast("Datum", size) + duration_converted = _ffi.cast("const Interval *", duration) + vorigin_converted = _ffi.cast("Datum", vorigin) + torigin_converted = _ffi.cast("TimestampTz", torigin) + value_bins_converted = [_ffi.cast("Datum *", x) for x in value_bins] + time_bins_converted = [_ffi.cast("TimestampTz *", x) for x in time_bins] + count = _ffi.new("int *") + result = _lib.tnumber_value_time_split( + temp_converted, + size_converted, + duration_converted, + vorigin_converted, + torigin_converted, + value_bins_converted, + time_bins_converted, + count, + ) _check_error() return result if result != _ffi.NULL else None, count[0] -def proj_get_context() -> 'PJ_CONTEXT *': +def proj_get_context() -> "PJ_CONTEXT *": result = _lib.proj_get_context() _check_error() return result if result != _ffi.NULL else None -def datum_geo_round(value: 'Datum', size: 'Datum') -> 'Datum': - value_converted = _ffi.cast('Datum', value) - size_converted = _ffi.cast('Datum', size) +def datum_geo_round(value: "Datum", size: "Datum") -> "Datum": + value_converted = _ffi.cast("Datum", value) + size_converted = _ffi.cast("Datum", size) result = _lib.datum_geo_round(value_converted, size_converted) _check_error() return result if result != _ffi.NULL else None -def point_round(gs: 'const GSERIALIZED *', maxdd: int) -> 'GSERIALIZED *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def point_round(gs: "const GSERIALIZED *", maxdd: int) -> "GSERIALIZED *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.point_round(gs_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def stbox_set(hasx: bool, hasz: bool, geodetic: bool, srid: int, xmin: float, xmax: float, ymin: float, ymax: float, zmin: float, zmax: float, s: 'const Span *', box: 'STBox *') -> None: - srid_converted = _ffi.cast('int32', srid) - s_converted = _ffi.cast('const Span *', s) - box_converted = _ffi.cast('STBox *', box) - _lib.stbox_set(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted, box_converted) +def stbox_set( + hasx: bool, + hasz: bool, + geodetic: bool, + srid: int, + xmin: float, + xmax: float, + ymin: float, + ymax: float, + zmin: float, + zmax: float, + s: "const Span *", + box: "STBox *", +) -> None: + srid_converted = _ffi.cast("int32", srid) + s_converted = _ffi.cast("const Span *", s) + box_converted = _ffi.cast("STBox *", box) + _lib.stbox_set( + hasx, + hasz, + geodetic, + srid_converted, + xmin, + xmax, + ymin, + ymax, + zmin, + zmax, + s_converted, + box_converted, + ) _check_error() -def gbox_set_stbox(box: 'const GBOX *', srid: 'int32_t') -> 'STBox *': - box_converted = _ffi.cast('const GBOX *', box) - srid_converted = _ffi.cast('int32_t', srid) - out_result = _ffi.new('STBox *') +def gbox_set_stbox(box: "const GBOX *", srid: "int32_t") -> "STBox *": + box_converted = _ffi.cast("const GBOX *", box) + srid_converted = _ffi.cast("int32_t", srid) + out_result = _ffi.new("STBox *") _lib.gbox_set_stbox(box_converted, srid_converted, out_result) _check_error() - return out_result if out_result!= _ffi.NULL else None - + return out_result if out_result != _ffi.NULL else None -def geo_set_stbox(gs: 'const GSERIALIZED *', box: 'STBox *') -> 'bool': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - box_converted = _ffi.cast('STBox *', box) +def geo_set_stbox(gs: "const GSERIALIZED *", box: "STBox *") -> "bool": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + box_converted = _ffi.cast("STBox *", box) result = _lib.geo_set_stbox(gs_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def geoarr_set_stbox(values: 'const Datum *', count: int, box: 'STBox *') -> None: - values_converted = _ffi.cast('const Datum *', values) - box_converted = _ffi.cast('STBox *', box) +def geoarr_set_stbox(values: "const Datum *", count: int, box: "STBox *") -> None: + values_converted = _ffi.cast("const Datum *", values) + box_converted = _ffi.cast("STBox *", box) _lib.geoarr_set_stbox(values_converted, count, box_converted) _check_error() -def spatial_set_stbox(d: 'Datum', basetype: 'meosType', box: 'STBox *') -> 'bool': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) - box_converted = _ffi.cast('STBox *', box) +def spatial_set_stbox(d: "Datum", basetype: "meosType", box: "STBox *") -> "bool": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) + box_converted = _ffi.cast("STBox *", box) result = _lib.spatial_set_stbox(d_converted, basetype_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_set_stbox(set: 'const Set *', box: 'STBox *') -> None: - set_converted = _ffi.cast('const Set *', set) - box_converted = _ffi.cast('STBox *', box) +def spatialset_set_stbox(set: "const Set *", box: "STBox *") -> None: + set_converted = _ffi.cast("const Set *", set) + box_converted = _ffi.cast("STBox *", box) _lib.spatialset_set_stbox(set_converted, box_converted) _check_error() -def stbox_set_box3d(box: 'const STBox *', box3d: 'BOX3D *') -> None: - box_converted = _ffi.cast('const STBox *', box) - box3d_converted = _ffi.cast('BOX3D *', box3d) +def stbox_set_box3d(box: "const STBox *", box3d: "BOX3D *") -> None: + box_converted = _ffi.cast("const STBox *", box) + box3d_converted = _ffi.cast("BOX3D *", box3d) _lib.stbox_set_box3d(box_converted, box3d_converted) _check_error() -def stbox_set_gbox(box: 'const STBox *', gbox: 'GBOX *') -> None: - box_converted = _ffi.cast('const STBox *', box) - gbox_converted = _ffi.cast('GBOX *', gbox) +def stbox_set_gbox(box: "const STBox *", gbox: "GBOX *") -> None: + box_converted = _ffi.cast("const STBox *", box) + gbox_converted = _ffi.cast("GBOX *", gbox) _lib.stbox_set_gbox(box_converted, gbox_converted) _check_error() -def tstzset_set_stbox(s: 'const Set *', box: 'STBox *') -> None: - s_converted = _ffi.cast('const Set *', s) - box_converted = _ffi.cast('STBox *', box) +def tstzset_set_stbox(s: "const Set *", box: "STBox *") -> None: + s_converted = _ffi.cast("const Set *", s) + box_converted = _ffi.cast("STBox *", box) _lib.tstzset_set_stbox(s_converted, box_converted) _check_error() -def tstzspan_set_stbox(s: 'const Span *', box: 'STBox *') -> None: - s_converted = _ffi.cast('const Span *', s) - box_converted = _ffi.cast('STBox *', box) +def tstzspan_set_stbox(s: "const Span *", box: "STBox *") -> None: + s_converted = _ffi.cast("const Span *", s) + box_converted = _ffi.cast("STBox *", box) _lib.tstzspan_set_stbox(s_converted, box_converted) _check_error() -def tstzspanset_set_stbox(s: 'const SpanSet *', box: 'STBox *') -> None: - s_converted = _ffi.cast('const SpanSet *', s) - box_converted = _ffi.cast('STBox *', box) +def tstzspanset_set_stbox(s: "const SpanSet *", box: "STBox *") -> None: + s_converted = _ffi.cast("const SpanSet *", s) + box_converted = _ffi.cast("STBox *", box) _lib.tstzspanset_set_stbox(s_converted, box_converted) _check_error() -def stbox_expand(box1: 'const STBox *', box2: 'STBox *') -> None: - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('STBox *', box2) +def stbox_expand(box1: "const STBox *", box2: "STBox *") -> None: + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("STBox *", box2) _lib.stbox_expand(box1_converted, box2_converted) _check_error() -def inter_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'STBox *': - box1_converted = _ffi.cast('const STBox *', box1) - box2_converted = _ffi.cast('const STBox *', box2) - out_result = _ffi.new('STBox *') +def inter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *": + box1_converted = _ffi.cast("const STBox *", box1) + box2_converted = _ffi.cast("const STBox *", box2) + out_result = _ffi.new("STBox *") result = _lib.inter_stbox_stbox(box1_converted, box2_converted, out_result) _check_error() if result: @@ -16544,846 +18028,900 @@ def inter_stbox_stbox(box1: 'const STBox *', box2: 'const STBox *') -> 'STBox *' return None -def stbox_geo(box: 'const STBox *') -> 'GSERIALIZED *': - box_converted = _ffi.cast('const STBox *', box) +def stbox_geo(box: "const STBox *") -> "GSERIALIZED *": + box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tgeogpointinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tgeogpointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tgeogpointseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tgeogpointseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tgeogpointseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tgeogpointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tgeompointinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tgeompointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tgeompointseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tgeompointseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tgeompointseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tgeompointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tgeographyinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tgeographyinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tgeographyseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tgeographyseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tgeographyseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tgeographyseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryinst_in(string: str) -> 'TInstant *': - string_converted = string.encode('utf-8') +def tgeometryinst_in(string: str) -> "TInstant *": + string_converted = string.encode("utf-8") result = _lib.tgeometryinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryseq_in(string: str, interp: 'interpType') -> 'TSequence *': - string_converted = string.encode('utf-8') - interp_converted = _ffi.cast('interpType', interp) +def tgeometryseq_in(string: str, interp: "interpType") -> "TSequence *": + string_converted = string.encode("utf-8") + interp_converted = _ffi.cast("interpType", interp) result = _lib.tgeometryseq_in(string_converted, interp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryseqset_in(string: str) -> 'TSequenceSet *': - string_converted = string.encode('utf-8') +def tgeometryseqset_in(string: str) -> "TSequenceSet *": + string_converted = string.encode("utf-8") result = _lib.tgeometryseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_set_stbox(temp: 'const Temporal *', box: 'STBox *') -> None: - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('STBox *', box) +def tspatial_set_stbox(temp: "const Temporal *", box: "STBox *") -> None: + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("STBox *", box) _lib.tspatial_set_stbox(temp_converted, box_converted) _check_error() -def tgeoinst_set_stbox(inst: 'const TInstant *', box: 'STBox *') -> None: - inst_converted = _ffi.cast('const TInstant *', inst) - box_converted = _ffi.cast('STBox *', box) +def tgeoinst_set_stbox(inst: "const TInstant *", box: "STBox *") -> None: + inst_converted = _ffi.cast("const TInstant *", inst) + box_converted = _ffi.cast("STBox *", box) _lib.tgeoinst_set_stbox(inst_converted, box_converted) _check_error() -def tspatialseq_set_stbox(seq: 'const TSequence *', box: 'STBox *') -> None: - seq_converted = _ffi.cast('const TSequence *', seq) - box_converted = _ffi.cast('STBox *', box) +def tspatialseq_set_stbox(seq: "const TSequence *", box: "STBox *") -> None: + seq_converted = _ffi.cast("const TSequence *", seq) + box_converted = _ffi.cast("STBox *", box) _lib.tspatialseq_set_stbox(seq_converted, box_converted) _check_error() -def tspatialseqset_set_stbox(ss: 'const TSequenceSet *', box: 'STBox *') -> None: - ss_converted = _ffi.cast('const TSequenceSet *', ss) - box_converted = _ffi.cast('STBox *', box) +def tspatialseqset_set_stbox(ss: "const TSequenceSet *", box: "STBox *") -> None: + ss_converted = _ffi.cast("const TSequenceSet *", ss) + box_converted = _ffi.cast("STBox *", box) _lib.tspatialseqset_set_stbox(ss_converted, box_converted) _check_error() -def tgeo_restrict_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - zspan_converted = _ffi.cast('const Span *', zspan) - result = _lib.tgeo_restrict_geom(temp_converted, gs_converted, zspan_converted, atfunc) +def tgeo_restrict_geom( + temp: "const Temporal *", + gs: "const GSERIALIZED *", + zspan: "const Span *", + atfunc: bool, +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + zspan_converted = _ffi.cast("const Span *", zspan) + result = _lib.tgeo_restrict_geom( + temp_converted, gs_converted, zspan_converted, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tgeo_restrict_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def tgeo_restrict_stbox( + temp: "const Temporal *", box: "const STBox *", border_inc: bool, atfunc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_restrict_stbox(temp_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None -def tgeoinst_restrict_geom(inst: 'const TInstant *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - zspan_converted = _ffi.cast('const Span *', zspan) - result = _lib.tgeoinst_restrict_geom(inst_converted, gs_converted, zspan_converted, atfunc) +def tgeoinst_restrict_geom( + inst: "const TInstant *", + gs: "const GSERIALIZED *", + zspan: "const Span *", + atfunc: bool, +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + zspan_converted = _ffi.cast("const Span *", zspan) + result = _lib.tgeoinst_restrict_geom( + inst_converted, gs_converted, zspan_converted, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tgeoinst_restrict_stbox(inst: 'const TInstant *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) - box_converted = _ffi.cast('const STBox *', box) - result = _lib.tgeoinst_restrict_stbox(inst_converted, box_converted, border_inc, atfunc) +def tgeoinst_restrict_stbox( + inst: "const TInstant *", box: "const STBox *", border_inc: bool, atfunc: bool +) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) + box_converted = _ffi.cast("const STBox *", box) + result = _lib.tgeoinst_restrict_stbox( + inst_converted, box_converted, border_inc, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tgeoseq_restrict_geom(seq: 'const TSequence *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - zspan_converted = _ffi.cast('const Span *', zspan) - result = _lib.tgeoseq_restrict_geom(seq_converted, gs_converted, zspan_converted, atfunc) +def tgeoseq_restrict_geom( + seq: "const TSequence *", + gs: "const GSERIALIZED *", + zspan: "const Span *", + atfunc: bool, +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + zspan_converted = _ffi.cast("const Span *", zspan) + result = _lib.tgeoseq_restrict_geom( + seq_converted, gs_converted, zspan_converted, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tgeoseq_restrict_stbox(seq: 'const TSequence *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'Temporal *': - seq_converted = _ffi.cast('const TSequence *', seq) - box_converted = _ffi.cast('const STBox *', box) - result = _lib.tgeoseq_restrict_stbox(seq_converted, box_converted, border_inc, atfunc) +def tgeoseq_restrict_stbox( + seq: "const TSequence *", box: "const STBox *", border_inc: bool, atfunc: bool +) -> "Temporal *": + seq_converted = _ffi.cast("const TSequence *", seq) + box_converted = _ffi.cast("const STBox *", box) + result = _lib.tgeoseq_restrict_stbox( + seq_converted, box_converted, border_inc, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tgeoseqset_restrict_geom(ss: 'const TSequenceSet *', gs: 'const GSERIALIZED *', zspan: 'const Span *', atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) - zspan_converted = _ffi.cast('const Span *', zspan) - result = _lib.tgeoseqset_restrict_geom(ss_converted, gs_converted, zspan_converted, atfunc) +def tgeoseqset_restrict_geom( + ss: "const TSequenceSet *", + gs: "const GSERIALIZED *", + zspan: "const Span *", + atfunc: bool, +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) + zspan_converted = _ffi.cast("const Span *", zspan) + result = _lib.tgeoseqset_restrict_geom( + ss_converted, gs_converted, zspan_converted, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def tgeoseqset_restrict_stbox(ss: 'const TSequenceSet *', box: 'const STBox *', border_inc: bool, atfunc: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) - box_converted = _ffi.cast('const STBox *', box) - result = _lib.tgeoseqset_restrict_stbox(ss_converted, box_converted, border_inc, atfunc) +def tgeoseqset_restrict_stbox( + ss: "const TSequenceSet *", box: "const STBox *", border_inc: bool, atfunc: bool +) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + box_converted = _ffi.cast("const STBox *", box) + result = _lib.tgeoseqset_restrict_stbox( + ss_converted, box_converted, border_inc, atfunc + ) _check_error() return result if result != _ffi.NULL else None -def spatial_srid(d: 'Datum', basetype: 'meosType') -> 'int32_t': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) +def spatial_srid(d: "Datum", basetype: "meosType") -> "int32_t": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) result = _lib.spatial_srid(d_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None -def spatial_set_srid(d: 'Datum', basetype: 'meosType', srid: 'int32_t') -> 'bool': - d_converted = _ffi.cast('Datum', d) - basetype_converted = _ffi.cast('meosType', basetype) - srid_converted = _ffi.cast('int32_t', srid) +def spatial_set_srid(d: "Datum", basetype: "meosType", srid: "int32_t") -> "bool": + d_converted = _ffi.cast("Datum", d) + basetype_converted = _ffi.cast("meosType", basetype) + srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatial_set_srid(d_converted, basetype_converted, srid_converted) _check_error() return result if result != _ffi.NULL else None -def tspatialinst_srid(inst: 'const TInstant *') -> 'int': - inst_converted = _ffi.cast('const TInstant *', inst) +def tspatialinst_srid(inst: "const TInstant *") -> "int": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tspatialinst_srid(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_azimuth(seq: 'const TSequence *') -> 'TSequenceSet *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tpointseq_azimuth(seq: "const TSequence *") -> "TSequenceSet *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_azimuth(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_cumulative_length(seq: 'const TSequence *', prevlength: float) -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tpointseq_cumulative_length( + seq: "const TSequence *", prevlength: float +) -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_cumulative_length(seq_converted, prevlength) _check_error() return result if result != _ffi.NULL else None -def tpointseq_is_simple(seq: 'const TSequence *') -> 'bool': - seq_converted = _ffi.cast('const TSequence *', seq) +def tpointseq_is_simple(seq: "const TSequence *") -> "bool": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_is_simple(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_length(seq: 'const TSequence *') -> 'double': - seq_converted = _ffi.cast('const TSequence *', seq) +def tpointseq_length(seq: "const TSequence *") -> "double": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_length(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_linear_trajectory(seq: 'const TSequence *', unary_union: bool) -> 'GSERIALIZED *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tpointseq_linear_trajectory( + seq: "const TSequence *", unary_union: bool +) -> "GSERIALIZED *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_linear_trajectory(seq_converted, unary_union) _check_error() return result if result != _ffi.NULL else None -def tgeoseq_stboxes(seq: 'const TSequence *') -> "Tuple['STBox *', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tgeoseq_stboxes(seq: "const TSequence *") -> "Tuple['STBox *', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tgeoseq_stboxes(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeoseq_split_n_stboxes(seq: 'const TSequence *', max_count: int) -> "Tuple['STBox *', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tgeoseq_split_n_stboxes( + seq: "const TSequence *", max_count: int +) -> "Tuple['STBox *', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tgeoseq_split_n_stboxes(seq_converted, max_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tpointseqset_azimuth(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tpointseqset_azimuth(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_azimuth(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_cumulative_length(ss: 'const TSequenceSet *') -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tpointseqset_cumulative_length(ss: "const TSequenceSet *") -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_cumulative_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_is_simple(ss: 'const TSequenceSet *') -> 'bool': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tpointseqset_is_simple(ss: "const TSequenceSet *") -> "bool": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_is_simple(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_length(ss: 'const TSequenceSet *') -> 'double': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tpointseqset_length(ss: "const TSequenceSet *") -> "double": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tgeoseqset_stboxes(ss: 'const TSequenceSet *') -> "Tuple['STBox *', 'int']": - ss_converted = _ffi.cast('const TSequenceSet *', ss) - count = _ffi.new('int *') +def tgeoseqset_stboxes(ss: "const TSequenceSet *") -> "Tuple['STBox *', 'int']": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + count = _ffi.new("int *") result = _lib.tgeoseqset_stboxes(ss_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tgeoseqset_split_n_stboxes(ss: 'const TSequenceSet *', max_count: int) -> "Tuple['STBox *', 'int']": - ss_converted = _ffi.cast('const TSequenceSet *', ss) - count = _ffi.new('int *') +def tgeoseqset_split_n_stboxes( + ss: "const TSequenceSet *", max_count: int +) -> "Tuple['STBox *', 'int']": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + count = _ffi.new("int *") result = _lib.tgeoseqset_split_n_stboxes(ss_converted, max_count, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tpoint_get_coord(temp: 'const Temporal *', coord: int) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tpoint_get_coord(temp: "const Temporal *", coord: int) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_coord(temp_converted, coord) _check_error() return result if result != _ffi.NULL else None -def tgeominst_tgeoginst(inst: 'const TInstant *', oper: bool) -> 'TInstant *': - inst_converted = _ffi.cast('const TInstant *', inst) +def tgeominst_tgeoginst(inst: "const TInstant *", oper: bool) -> "TInstant *": + inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tgeominst_tgeoginst(inst_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeomseq_tgeogseq(seq: 'const TSequence *', oper: bool) -> 'TSequence *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tgeomseq_tgeogseq(seq: "const TSequence *", oper: bool) -> "TSequence *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tgeomseq_tgeogseq(seq_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeomseqset_tgeogseqset(ss: 'const TSequenceSet *', oper: bool) -> 'TSequenceSet *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tgeomseqset_tgeogseqset(ss: "const TSequenceSet *", oper: bool) -> "TSequenceSet *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tgeomseqset_tgeogseqset(ss_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeom_tgeog(temp: 'const Temporal *', oper: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeom_tgeog(temp: "const Temporal *", oper: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeom_tgeog(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeo_tpoint(temp: 'const Temporal *', oper: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeo_tpoint(temp: "const Temporal *", oper: bool) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_tpoint(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tspatialinst_set_srid(inst: 'TInstant *', srid: 'int32_t') -> None: - inst_converted = _ffi.cast('TInstant *', inst) - srid_converted = _ffi.cast('int32_t', srid) +def tspatialinst_set_srid(inst: "TInstant *", srid: "int32_t") -> None: + inst_converted = _ffi.cast("TInstant *", inst) + srid_converted = _ffi.cast("int32_t", srid) _lib.tspatialinst_set_srid(inst_converted, srid_converted) _check_error() -def tpointseq_make_simple(seq: 'const TSequence *') -> "Tuple['TSequence **', 'int']": - seq_converted = _ffi.cast('const TSequence *', seq) - count = _ffi.new('int *') +def tpointseq_make_simple(seq: "const TSequence *") -> "Tuple['TSequence **', 'int']": + seq_converted = _ffi.cast("const TSequence *", seq) + count = _ffi.new("int *") result = _lib.tpointseq_make_simple(seq_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tspatialseq_set_srid(seq: 'TSequence *', srid: 'int32_t') -> None: - seq_converted = _ffi.cast('TSequence *', seq) - srid_converted = _ffi.cast('int32_t', srid) +def tspatialseq_set_srid(seq: "TSequence *", srid: "int32_t") -> None: + seq_converted = _ffi.cast("TSequence *", seq) + srid_converted = _ffi.cast("int32_t", srid) _lib.tspatialseq_set_srid(seq_converted, srid_converted) _check_error() -def tpointseqset_make_simple(ss: 'const TSequenceSet *') -> "Tuple['TSequence **', 'int']": - ss_converted = _ffi.cast('const TSequenceSet *', ss) - count = _ffi.new('int *') +def tpointseqset_make_simple( + ss: "const TSequenceSet *", +) -> "Tuple['TSequence **', 'int']": + ss_converted = _ffi.cast("const TSequenceSet *", ss) + count = _ffi.new("int *") result = _lib.tpointseqset_make_simple(ss_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tspatialseqset_set_srid(ss: 'TSequenceSet *', srid: 'int32_t') -> None: - ss_converted = _ffi.cast('TSequenceSet *', ss) - srid_converted = _ffi.cast('int32_t', srid) +def tspatialseqset_set_srid(ss: "TSequenceSet *", srid: "int32_t") -> None: + ss_converted = _ffi.cast("TSequenceSet *", ss) + srid_converted = _ffi.cast("int32_t", srid) _lib.tspatialseqset_set_srid(ss_converted, srid_converted) _check_error() -def tpointseq_twcentroid(seq: 'const TSequence *') -> 'GSERIALIZED *': - seq_converted = _ffi.cast('const TSequence *', seq) +def tpointseq_twcentroid(seq: "const TSequence *") -> "GSERIALIZED *": + seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_twcentroid(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_twcentroid(ss: 'const TSequenceSet *') -> 'GSERIALIZED *': - ss_converted = _ffi.cast('const TSequenceSet *', ss) +def tpointseqset_twcentroid(ss: "const TSequenceSet *") -> "GSERIALIZED *": + ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_twcentroid(ss_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_as_ewkt(np: 'const Npoint *', maxdd: int) -> str: - np_converted = _ffi.cast('const Npoint *', np) +def npoint_as_ewkt(np: "const Npoint *", maxdd: int) -> str: + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_as_ewkt(np_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def npoint_as_hexwkb(np: 'const Npoint *', variant: int) -> "Tuple[str, 'size_t *']": - np_converted = _ffi.cast('const Npoint *', np) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def npoint_as_hexwkb(np: "const Npoint *", variant: int) -> "Tuple[str, 'size_t *']": + np_converted = _ffi.cast("const Npoint *", np) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.npoint_as_hexwkb(np_converted, variant_converted, size_out) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None, size_out[0] -def npoint_as_text(np: 'const Npoint *', maxdd: int) -> str: - np_converted = _ffi.cast('const Npoint *', np) +def npoint_as_text(np: "const Npoint *", maxdd: int) -> str: + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_as_text(np_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def npoint_as_wkb(np: 'const Npoint *', variant: int) -> "Tuple['uint8_t *', 'size_t *']": - np_converted = _ffi.cast('const Npoint *', np) - variant_converted = _ffi.cast('uint8_t', variant) - size_out = _ffi.new('size_t *') +def npoint_as_wkb( + np: "const Npoint *", variant: int +) -> "Tuple['uint8_t *', 'size_t *']": + np_converted = _ffi.cast("const Npoint *", np) + variant_converted = _ffi.cast("uint8_t", variant) + size_out = _ffi.new("size_t *") result = _lib.npoint_as_wkb(np_converted, variant_converted, size_out) _check_error() return result if result != _ffi.NULL else None, size_out[0] -def npoint_from_hexwkb(hexwkb: str) -> 'Npoint *': - hexwkb_converted = hexwkb.encode('utf-8') +def npoint_from_hexwkb(hexwkb: str) -> "Npoint *": + hexwkb_converted = hexwkb.encode("utf-8") result = _lib.npoint_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_from_wkb(wkb: 'const uint8_t *', size: 'size_t') -> 'Npoint *': - wkb_converted = _ffi.cast('const uint8_t *', wkb) - size_converted = _ffi.cast('size_t', size) +def npoint_from_wkb(wkb: "const uint8_t *", size: "size_t") -> "Npoint *": + wkb_converted = _ffi.cast("const uint8_t *", wkb) + size_converted = _ffi.cast("size_t", size) result = _lib.npoint_from_wkb(wkb_converted, size_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_in(string: str) -> 'Npoint *': - string_converted = string.encode('utf-8') +def npoint_in(string: str) -> "Npoint *": + string_converted = string.encode("utf-8") result = _lib.npoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_out(np: 'const Npoint *', maxdd: int) -> str: - np_converted = _ffi.cast('const Npoint *', np) +def npoint_out(np: "const Npoint *", maxdd: int) -> str: + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_out(np_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def nsegment_in(string: str) -> 'Nsegment *': - string_converted = string.encode('utf-8') +def nsegment_in(string: str) -> "Nsegment *": + string_converted = string.encode("utf-8") result = _lib.nsegment_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_out(ns: 'const Nsegment *', maxdd: int) -> str: - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_out(ns: "const Nsegment *", maxdd: int) -> str: + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_out(ns_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def npoint_make(rid: int, pos: float) -> 'Npoint *': - rid_converted = _ffi.cast('int64', rid) +def npoint_make(rid: int, pos: float) -> "Npoint *": + rid_converted = _ffi.cast("int64", rid) result = _lib.npoint_make(rid_converted, pos) _check_error() return result if result != _ffi.NULL else None -def nsegment_make(rid: int, pos1: float, pos2: float) -> 'Nsegment *': - rid_converted = _ffi.cast('int64', rid) +def nsegment_make(rid: int, pos1: float, pos2: float) -> "Nsegment *": + rid_converted = _ffi.cast("int64", rid) result = _lib.nsegment_make(rid_converted, pos1, pos2) _check_error() return result if result != _ffi.NULL else None -def geompoint_to_npoint(gs: 'const GSERIALIZED *') -> 'Npoint *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geompoint_to_npoint(gs: "const GSERIALIZED *") -> "Npoint *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geompoint_to_npoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_to_nsegment(gs: 'const GSERIALIZED *') -> 'Nsegment *': - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def geom_to_nsegment(gs: "const GSERIALIZED *") -> "Nsegment *": + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_to_nsegment(gs_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_geompoint(np: 'const Npoint *') -> 'GSERIALIZED *': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_to_geompoint(np: "const Npoint *") -> "GSERIALIZED *": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_geompoint(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_nsegment(np: 'const Npoint *') -> 'Nsegment *': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_to_nsegment(np: "const Npoint *") -> "Nsegment *": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_nsegment(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_stbox(np: 'const Npoint *') -> 'STBox *': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_to_stbox(np: "const Npoint *") -> "STBox *": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_to_geom(ns: 'const Nsegment *') -> 'GSERIALIZED *': - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_to_geom(ns: "const Nsegment *") -> "GSERIALIZED *": + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_to_geom(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_to_stbox(np: 'const Nsegment *') -> 'STBox *': - np_converted = _ffi.cast('const Nsegment *', np) +def nsegment_to_stbox(np: "const Nsegment *") -> "STBox *": + np_converted = _ffi.cast("const Nsegment *", np) result = _lib.nsegment_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_hash(np: 'const Npoint *') -> 'uint32': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_hash(np: "const Npoint *") -> "uint32": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_hash(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_hash_extended(np: 'const Npoint *', seed: int) -> 'uint64': - np_converted = _ffi.cast('const Npoint *', np) - seed_converted = _ffi.cast('uint64', seed) +def npoint_hash_extended(np: "const Npoint *", seed: int) -> "uint64": + np_converted = _ffi.cast("const Npoint *", np) + seed_converted = _ffi.cast("uint64", seed) result = _lib.npoint_hash_extended(np_converted, seed_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_position(np: 'const Npoint *') -> 'double': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_position(np: "const Npoint *") -> "double": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_position(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_route(np: 'const Npoint *') -> 'int64': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_route(np: "const Npoint *") -> "int64": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_route(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_end_position(ns: 'const Nsegment *') -> 'double': - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_end_position(ns: "const Nsegment *") -> "double": + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_end_position(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_route(ns: 'const Nsegment *') -> 'int64': - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_route(ns: "const Nsegment *") -> "int64": + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_route(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_start_position(ns: 'const Nsegment *') -> 'double': - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_start_position(ns: "const Nsegment *") -> "double": + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_start_position(ns_converted) _check_error() return result if result != _ffi.NULL else None -def route_exists(rid: int) -> 'bool': - rid_converted = _ffi.cast('int64', rid) +def route_exists(rid: int) -> "bool": + rid_converted = _ffi.cast("int64", rid) result = _lib.route_exists(rid_converted) _check_error() return result if result != _ffi.NULL else None -def route_geom(rid: int) -> 'GSERIALIZED *': - rid_converted = _ffi.cast('int64', rid) +def route_geom(rid: int) -> "GSERIALIZED *": + rid_converted = _ffi.cast("int64", rid) result = _lib.route_geom(rid_converted) _check_error() return result if result != _ffi.NULL else None -def route_length(rid: int) -> 'double': - rid_converted = _ffi.cast('int64', rid) +def route_length(rid: int) -> "double": + rid_converted = _ffi.cast("int64", rid) result = _lib.route_length(rid_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_round(np: 'const Npoint *', maxdd: int) -> 'Npoint *': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_round(np: "const Npoint *", maxdd: int) -> "Npoint *": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_round(np_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def nsegment_round(ns: 'const Nsegment *', maxdd: int) -> 'Nsegment *': - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_round(ns: "const Nsegment *", maxdd: int) -> "Nsegment *": + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_round(ns_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def get_srid_ways() -> 'int32_t': +def get_srid_ways() -> "int32_t": result = _lib.get_srid_ways() _check_error() return result if result != _ffi.NULL else None -def npoint_srid(np: 'const Npoint *') -> 'int32_t': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_srid(np: "const Npoint *") -> "int32_t": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_srid(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_srid(ns: 'const Nsegment *') -> 'int32_t': - ns_converted = _ffi.cast('const Nsegment *', ns) +def nsegment_srid(ns: "const Nsegment *") -> "int32_t": + ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_srid(ns_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_timestamptz_to_stbox(np: 'const Npoint *', t: int) -> 'STBox *': - np_converted = _ffi.cast('const Npoint *', np) - t_converted = _ffi.cast('TimestampTz', t) +def npoint_timestamptz_to_stbox(np: "const Npoint *", t: int) -> "STBox *": + np_converted = _ffi.cast("const Npoint *", np) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.npoint_timestamptz_to_stbox(np_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_tstzspan_to_stbox(np: 'const Npoint *', s: 'const Span *') -> 'STBox *': - np_converted = _ffi.cast('const Npoint *', np) - s_converted = _ffi.cast('const Span *', s) +def npoint_tstzspan_to_stbox(np: "const Npoint *", s: "const Span *") -> "STBox *": + np_converted = _ffi.cast("const Npoint *", np) + s_converted = _ffi.cast("const Span *", s) result = _lib.npoint_tstzspan_to_stbox(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_cmp(np1: 'const Npoint *', np2: 'const Npoint *') -> 'int': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_cmp(np1: "const Npoint *", np2: "const Npoint *") -> "int": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_cmp(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_eq(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_eq(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_eq(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_ge(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_ge(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_ge(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_gt(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_gt(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_gt(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_le(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_le(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_le(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_lt(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_lt(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_lt(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_ne(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_ne(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_ne(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_same(np1: 'const Npoint *', np2: 'const Npoint *') -> 'bool': - np1_converted = _ffi.cast('const Npoint *', np1) - np2_converted = _ffi.cast('const Npoint *', np2) +def npoint_same(np1: "const Npoint *", np2: "const Npoint *") -> "bool": + np1_converted = _ffi.cast("const Npoint *", np1) + np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_same(np1_converted, np2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_cmp(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'int': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_cmp(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "int": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_cmp(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_eq(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_eq(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_eq(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_ge(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_ge(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_ge(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_gt(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_gt(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_gt(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_le(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_le(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_le(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_lt(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_lt(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_lt(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_ne(ns1: 'const Nsegment *', ns2: 'const Nsegment *') -> 'bool': - ns1_converted = _ffi.cast('const Nsegment *', ns1) - ns2_converted = _ffi.cast('const Nsegment *', ns2) +def nsegment_ne(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": + ns1_converted = _ffi.cast("const Nsegment *", ns1) + ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_ne(ns1_converted, ns2_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_in(string: str) -> 'Set *': - string_converted = string.encode('utf-8') +def npointset_in(string: str) -> "Set *": + string_converted = string.encode("utf-8") result = _lib.npointset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_out(s: 'const Set *', maxdd: int) -> str: - s_converted = _ffi.cast('const Set *', s) +def npointset_out(s: "const Set *", maxdd: int) -> str: + s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_out(s_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def npointset_make(values: 'const Npoint **', count: int) -> 'Set *': - values_converted = [_ffi.cast('const Npoint *', x) for x in values] +def npointset_make(values: "const Npoint **", count: int) -> "Set *": + values_converted = [_ffi.cast("const Npoint *", x) for x in values] result = _lib.npointset_make(values_converted, count) _check_error() return result if result != _ffi.NULL else None -def npoint_to_set(np: 'const Npoint *') -> 'Set *': - np_converted = _ffi.cast('const Npoint *', np) +def npoint_to_set(np: "const Npoint *") -> "Set *": + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_set(np_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_end_value(s: 'const Set *') -> 'Npoint *': - s_converted = _ffi.cast('const Set *', s) +def npointset_end_value(s: "const Set *") -> "Npoint *": + s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_routes(s: 'const Set *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) +def npointset_routes(s: "const Set *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_routes(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_start_value(s: 'const Set *') -> 'Npoint *': - s_converted = _ffi.cast('const Set *', s) +def npointset_start_value(s: "const Set *") -> "Npoint *": + s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_value_n(s: 'const Set *', n: int) -> 'Npoint **': - s_converted = _ffi.cast('const Set *', s) - out_result = _ffi.new('Npoint **') +def npointset_value_n(s: "const Set *", n: int) -> "Npoint **": + s_converted = _ffi.cast("const Set *", s) + out_result = _ffi.new("Npoint **") result = _lib.npointset_value_n(s_converted, n, out_result) _check_error() if result: @@ -17391,464 +18929,498 @@ def npointset_value_n(s: 'const Set *', n: int) -> 'Npoint **': return None -def npointset_values(s: 'const Set *') -> 'Npoint **': - s_converted = _ffi.cast('const Set *', s) +def npointset_values(s: "const Set *") -> "Npoint **": + s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'bool': - np_converted = _ffi.cast('const Npoint *', np) - s_converted = _ffi.cast('const Set *', s) +def contained_npoint_set(np: "const Npoint *", s: "const Set *") -> "bool": + np_converted = _ffi.cast("const Npoint *", np) + s_converted = _ffi.cast("const Set *", s) result = _lib.contained_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def contains_set_npoint(s: 'const Set *', np: 'Npoint *') -> 'bool': - s_converted = _ffi.cast('const Set *', s) - np_converted = _ffi.cast('Npoint *', np) +def contains_set_npoint(s: "const Set *", np: "Npoint *") -> "bool": + s_converted = _ffi.cast("const Set *", s) + np_converted = _ffi.cast("Npoint *", np) result = _lib.contains_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'Set *': - np_converted = _ffi.cast('const Npoint *', np) - s_converted = _ffi.cast('const Set *', s) +def intersection_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": + np_converted = _ffi.cast("const Npoint *", np) + s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_npoint(s: 'const Set *', np: 'const Npoint *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - np_converted = _ffi.cast('const Npoint *', np) +def intersection_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.intersection_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def minus_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'Set *': - np_converted = _ffi.cast('const Npoint *', np) - s_converted = _ffi.cast('const Set *', s) +def minus_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": + np_converted = _ffi.cast("const Npoint *", np) + s_converted = _ffi.cast("const Set *", s) result = _lib.minus_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_npoint(s: 'const Set *', np: 'const Npoint *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - np_converted = _ffi.cast('const Npoint *', np) +def minus_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.minus_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_union_transfn(state: 'Set *', np: 'const Npoint *') -> 'Set *': - state_converted = _ffi.cast('Set *', state) - np_converted = _ffi.cast('const Npoint *', np) +def npoint_union_transfn(state: "Set *", np: "const Npoint *") -> "Set *": + state_converted = _ffi.cast("Set *", state) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_union_transfn(state_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def union_npoint_set(np: 'const Npoint *', s: 'const Set *') -> 'Set *': - np_converted = _ffi.cast('const Npoint *', np) - s_converted = _ffi.cast('const Set *', s) +def union_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": + np_converted = _ffi.cast("const Npoint *", np) + s_converted = _ffi.cast("const Set *", s) result = _lib.union_npoint_set(np_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_npoint(s: 'const Set *', np: 'const Npoint *') -> 'Set *': - s_converted = _ffi.cast('const Set *', s) - np_converted = _ffi.cast('const Npoint *', np) +def union_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": + s_converted = _ffi.cast("const Set *", s) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.union_set_npoint(s_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_in(string: str) -> 'Temporal *': - string_converted = string.encode('utf-8') +def tnpoint_in(string: str) -> "Temporal *": + string_converted = string.encode("utf-8") result = _lib.tnpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_out(temp: 'const Temporal *', maxdd: int) -> str: - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_out(temp: "const Temporal *", maxdd: int) -> str: + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_out(temp_converted, maxdd) _check_error() - result = _ffi.string(result).decode('utf-8') + result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def tnpointinst_make(np: 'const Npoint *', t: int) -> 'TInstant *': - np_converted = _ffi.cast('const Npoint *', np) - t_converted = _ffi.cast('TimestampTz', t) +def tnpointinst_make(np: "const Npoint *", t: int) -> "TInstant *": + np_converted = _ffi.cast("const Npoint *", np) + t_converted = _ffi.cast("TimestampTz", t) result = _lib.tnpointinst_make(np_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_to_tnpoint(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tgeompoint_to_tnpoint(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeompoint_to_tnpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_to_tgeompoint(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_to_tgeompoint(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_cumulative_length(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_cumulative_length(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_length(temp: 'const Temporal *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_length(temp: "const Temporal *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_positions(temp: 'const Temporal *') -> "Tuple['Nsegment **', 'int']": - temp_converted = _ffi.cast('const Temporal *', temp) - count = _ffi.new('int *') +def tnpoint_positions(temp: "const Temporal *") -> "Tuple['Nsegment **', 'int']": + temp_converted = _ffi.cast("const Temporal *", temp) + count = _ffi.new("int *") result = _lib.tnpoint_positions(temp_converted, count) _check_error() return result if result != _ffi.NULL else None, count[0] -def tnpoint_route(temp: 'const Temporal *') -> 'int64': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_route(temp: "const Temporal *") -> "int64": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_route(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_routes(temp: 'const Temporal *') -> 'Set *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_routes(temp: "const Temporal *") -> "Set *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_routes(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_speed(temp: 'const Temporal *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_speed(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_speed(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_trajectory(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_trajectory(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_trajectory(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_twcentroid(temp: 'const Temporal *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) +def tnpoint_twcentroid(temp: "const Temporal *") -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_twcentroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_at_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tnpoint_at_geom( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tnpoint_at_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_at_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def tnpoint_at_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.tnpoint_at_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_at_npointset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Set *', s) +def tnpoint_at_npointset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Set *", s) result = _lib.tnpoint_at_npointset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_at_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def tnpoint_at_stbox( + temp: "const Temporal *", box: "const STBox *", border_inc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.tnpoint_at_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def tnpoint_minus_geom(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tnpoint_minus_geom( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tnpoint_minus_geom(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_minus_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def tnpoint_minus_npoint( + temp: "const Temporal *", np: "const Npoint *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.tnpoint_minus_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_minus_npointset(temp: 'const Temporal *', s: 'const Set *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - s_converted = _ffi.cast('const Set *', s) +def tnpoint_minus_npointset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + s_converted = _ffi.cast("const Set *", s) result = _lib.tnpoint_minus_npointset(temp_converted, s_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_minus_stbox(temp: 'const Temporal *', box: 'const STBox *', border_inc: bool) -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def tnpoint_minus_stbox( + temp: "const Temporal *", box: "const STBox *", border_inc: bool +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.tnpoint_minus_stbox(temp_converted, box_converted, border_inc) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def tdistance_tnpoint_npoint( + temp: "const Temporal *", np: "const Npoint *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.tdistance_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnpoint_point(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def tdistance_tnpoint_point( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdistance_tnpoint_point(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'Temporal *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def tdistance_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "Temporal *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def nad_tnpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nad_tnpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def nad_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.nad_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnpoint_stbox(temp: 'const Temporal *', box: 'const STBox *') -> 'double': - temp_converted = _ffi.cast('const Temporal *', temp) - box_converted = _ffi.cast('const STBox *', box) +def nad_tnpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "double": + temp_converted = _ffi.cast("const Temporal *", temp) + box_converted = _ffi.cast("const STBox *", box) result = _lib.nad_tnpoint_stbox(temp_converted, box_converted) _check_error() return result if result != _ffi.NULL else None -def nad_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'double': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nad_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "double": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def nai_tnpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def nai_tnpoint_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nai_tnpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def nai_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'TInstant *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def nai_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "TInstant *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.nai_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def nai_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'TInstant *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def nai_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "TInstant *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nai_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def shortestline_tnpoint_geo(temp: 'const Temporal *', gs: 'const GSERIALIZED *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) - gs_converted = _ffi.cast('const GSERIALIZED *', gs) +def shortestline_tnpoint_geo( + temp: "const Temporal *", gs: "const GSERIALIZED *" +) -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) + gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.shortestline_tnpoint_geo(temp_converted, gs_converted) _check_error() return result if result != _ffi.NULL else None -def shortestline_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'GSERIALIZED *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def shortestline_tnpoint_npoint( + temp: "const Temporal *", np: "const Npoint *" +) -> "GSERIALIZED *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.shortestline_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def shortestline_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'GSERIALIZED *': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def shortestline_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "GSERIALIZED *": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.shortestline_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_tcentroid_transfn(state: 'SkipList *', temp: 'Temporal *') -> 'SkipList *': - state_converted = _ffi.cast('SkipList *', state) - temp_converted = _ffi.cast('Temporal *', temp) +def tnpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipList *": + state_converted = _ffi.cast("SkipList *", state) + temp_converted = _ffi.cast("Temporal *", temp) result = _lib.tnpoint_tcentroid_transfn(state_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': - np_converted = _ffi.cast('const Npoint *', np) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_eq_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": + np_converted = _ffi.cast("const Npoint *", np) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def always_eq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.always_eq_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_eq_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_eq_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': - np_converted = _ffi.cast('const Npoint *', np) - temp_converted = _ffi.cast('const Temporal *', temp) +def always_ne_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": + np_converted = _ffi.cast("const Npoint *", np) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def always_ne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.always_ne_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def always_ne_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ne_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': - np_converted = _ffi.cast('const Npoint *', np) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_eq_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": + np_converted = _ffi.cast("const Npoint *", np) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def ever_eq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.ever_eq_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_eq_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_eq_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_npoint_tnpoint(np: 'const Npoint *', temp: 'const Temporal *') -> 'int': - np_converted = _ffi.cast('const Npoint *', np) - temp_converted = _ffi.cast('const Temporal *', temp) +def ever_ne_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": + np_converted = _ffi.cast("const Npoint *", np) + temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_npoint_tnpoint(np_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'int': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def ever_ne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.ever_ne_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tnpoint_tnpoint(temp1: 'const Temporal *', temp2: 'const Temporal *') -> 'int': - temp1_converted = _ffi.cast('const Temporal *', temp1) - temp2_converted = _ffi.cast('const Temporal *', temp2) +def ever_ne_tnpoint_tnpoint( + temp1: "const Temporal *", temp2: "const Temporal *" +) -> "int": + temp1_converted = _ffi.cast("const Temporal *", temp1) + temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ne_tnpoint_tnpoint(temp1_converted, temp2_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def teq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.teq_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tnpoint_npoint(temp: 'const Temporal *', np: 'const Npoint *') -> 'Temporal *': - temp_converted = _ffi.cast('const Temporal *', temp) - np_converted = _ffi.cast('const Npoint *', np) +def tne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + np_converted = _ffi.cast("const Npoint *", np) result = _lib.tne_tnpoint_npoint(temp_converted, np_converted) _check_error() return result if result != _ffi.NULL else None - - diff --git a/setup.py b/setup.py index 58e1c6a..816f003 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,18 @@ else: print("Not copying PROJ data to package data") +# Copy MEOS spatial reference table (spatial_ref_sys.csv) +print("Copying MEOS spatial reference table to package data") +spatial_ref_sys_path = os.environ.get( + "MEOS_SPATIAL_REF_SYS_PATH", "/usr/local/share/spatial_ref_sys.csv" +) +shutil.rmtree("pymeos_cffi/meos_data", ignore_errors=True) +os.makedirs("pymeos_cffi/meos_data", exist_ok=True) +shutil.copy( + spatial_ref_sys_path, + "pymeos_cffi/meos_data/spatial_ref_sys.csv", +) +package_data.append("meos_data/*") setup( packages=["pymeos_cffi"], From 95d97356dcb6aea0fa094800fb89b55f8f1c51f4 Mon Sep 17 00:00:00 2001 From: diviloper Date: Tue, 29 Jul 2025 09:31:15 +0200 Subject: [PATCH 05/36] Update versioning patterns in build action --- .github/workflows/build_pymeos_cffi.yml | 6 +++--- builder/templates/init.py | 2 +- pymeos_cffi/__init__.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 87e1ce1..1362ea5 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -29,7 +29,7 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} - if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+-alpha ]]; then + if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+a[0-9]+ ]]; then echo "Releasing an alpha version." echo "is_alpha=true" >> "$GITHUB_OUTPUT" else @@ -41,7 +41,7 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} - if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+-beta ]]; then + if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+b[0-9]+ ]]; then echo "Releasing a beta version." echo "is_beta=true" >> "$GITHUB_OUTPUT" else @@ -53,7 +53,7 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} - if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rc ]]; then + if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+rc[0-9]+ ]]; then echo "Releasing an rc version." echo "is_rc=true" >> "$GITHUB_OUTPUT" else diff --git a/builder/templates/init.py b/builder/templates/init.py index f51b67d..e355c41 100644 --- a/builder/templates/init.py +++ b/builder/templates/init.py @@ -2,7 +2,7 @@ from .enums import * from .errors import * -__version__ = "1.3.0-alpha.1" +__version__ = "1.3.0a1" __all__ = [ # Exceptions "MeosException", diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index 9860b3a..ceb3dd5 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -2,7 +2,7 @@ from .enums import * from .errors import * -__version__ = "1.3.0-alpha.1" +__version__ = "1.3.0a1" __all__ = [ # Exceptions "MeosException", From f6c6c36aa9c2435f9adf221ec5aa5e6404efa327 Mon Sep 17 00:00:00 2001 From: diviloper Date: Tue, 29 Jul 2025 09:40:32 +0200 Subject: [PATCH 06/36] Update setup to only package MEOS data when PACKAGE_DATA env variable is active (in the same way as proj data) --- setup.py | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/setup.py b/setup.py index 816f003..8337b77 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,8 @@ from setuptools import setup -# Copy PROJ data to package data -package_data = [] -# Conditionally copy PROJ DATA to make self-contained wheels -if os.environ.get("PACKAGE_DATA"): +def package_proj_data() -> str: print("Copying PROJ data to package data") projdatadir = os.environ.get( "PROJ_DATA", os.environ.get("PROJ_LIB", "/usr/local/share/proj") @@ -24,22 +21,32 @@ f"PROJ data directory not found at {projdatadir}. " f"Unable to generate self-contained wheel." ) - package_data.append("proj_data/*") + return "proj_data/*" + + +def package_meos_data() -> str: + print("Copying MEOS spatial reference table to package data") + spatial_ref_sys_path = os.environ.get( + "MEOS_SPATIAL_REF_SYS_PATH", "/usr/local/share/spatial_ref_sys.csv" + ) + shutil.rmtree("pymeos_cffi/meos_data", ignore_errors=True) + os.makedirs("pymeos_cffi/meos_data", exist_ok=True) + shutil.copy( + spatial_ref_sys_path, + "pymeos_cffi/meos_data/spatial_ref_sys.csv", + ) + return "meos_data/*" + + +package_data = [] + +if os.environ.get("PACKAGE_DATA"): + print("Packaging data for self-contained wheel") + package_data.append(package_proj_data()) + package_data.append(package_meos_data()) else: - print("Not copying PROJ data to package data") + print("Not packaging data") -# Copy MEOS spatial reference table (spatial_ref_sys.csv) -print("Copying MEOS spatial reference table to package data") -spatial_ref_sys_path = os.environ.get( - "MEOS_SPATIAL_REF_SYS_PATH", "/usr/local/share/spatial_ref_sys.csv" -) -shutil.rmtree("pymeos_cffi/meos_data", ignore_errors=True) -os.makedirs("pymeos_cffi/meos_data", exist_ok=True) -shutil.copy( - spatial_ref_sys_path, - "pymeos_cffi/meos_data/spatial_ref_sys.csv", -) -package_data.append("meos_data/*") setup( packages=["pymeos_cffi"], From 14a84f5d1cdbb655d023df1a676eaef50e485c7f Mon Sep 17 00:00:00 2001 From: diviloper Date: Tue, 29 Jul 2025 09:49:18 +0200 Subject: [PATCH 07/36] Update test in build flow --- .github/workflows/build_pymeos_cffi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 1362ea5..b874bb4 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -280,7 +280,7 @@ jobs: - name: Run PyMEOS-CFFI check run: | python -c "import pymeos_cffi; print(pymeos_cffi.__version__);" - python -c "from pymeos_cffi import *; meos_initialize(None); print(tpoint_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" upload_pypi: name: Upload to PyPI From b69a4c6692da49f5f2c6d05ac5c536dcfac24819 Mon Sep 17 00:00:00 2001 From: diviloper Date: Tue, 29 Jul 2025 10:32:31 +0200 Subject: [PATCH 08/36] Split test code --- .github/workflows/build_pymeos_cffi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index b874bb4..d67cb96 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -280,7 +280,8 @@ jobs: - name: Run PyMEOS-CFFI check run: | python -c "import pymeos_cffi; print(pymeos_cffi.__version__);" - python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" upload_pypi: name: Upload to PyPI From 60db068fbca40488c7dea9cdaa85ba2ddc4fdefb Mon Sep 17 00:00:00 2001 From: diviloper Date: Tue, 29 Jul 2025 18:41:28 +0200 Subject: [PATCH 09/36] Fix random crash when printing TGeogPoint timestamp by always passing a non-None value to meos_initialize_timezone --- builder/build_pymeos_functions_modifiers.py | 7 ++++++- builder/templates/functions.py | 1 + pymeos_cffi/functions.py | 10 +++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/builder/build_pymeos_functions_modifiers.py b/builder/build_pymeos_functions_modifiers.py index de8c3a4..f5139a6 100644 --- a/builder/build_pymeos_functions_modifiers.py +++ b/builder/build_pymeos_functions_modifiers.py @@ -50,7 +50,12 @@ def meos_initialize_modifier(_: str) -> str: os.environ["PROJ_LIB"] = proj_dir _lib.meos_set_spatial_ref_sys_csv(os.path.join(os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv").encode('utf-8')) _lib.meos_initialize() - tz_str_converted = tz_str.encode('utf-8') if tz_str is not None else _ffi.NULL + + # For some bizarre reason, if the timezone is initialized with None, it causes crashes when printing + # the timestamps belonging to TGeogPoints. This doesn't happen in a C program, so the issue is likely + # in the Python bindings. + # Therefore, we initialize the timezone with the system's default timezone if None is passed. + tz_str_converted = tz_str.encode('utf-8') if tz_str is not None else time.tzname[0].encode('utf-8') _lib.meos_initialize_timezone(tz_str_converted) _lib.meos_initialize_error_handler(_lib.py_error_handler)""" diff --git a/builder/templates/functions.py b/builder/templates/functions.py index e79c4f8..42955c1 100644 --- a/builder/templates/functions.py +++ b/builder/templates/functions.py @@ -1,5 +1,6 @@ import logging import os +import time from datetime import datetime, timedelta, date from typing import Any, Tuple, Optional, List diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index c6c8e2b..dae8bfb 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -1,5 +1,6 @@ import logging import os +import time from datetime import datetime, timedelta, date from typing import Any, Tuple, Optional, List @@ -242,7 +243,14 @@ def meos_initialize(tz_str: "Optional[str]") -> None: ).encode("utf-8") ) _lib.meos_initialize() - tz_str_converted = tz_str.encode("utf-8") if tz_str is not None else _ffi.NULL + + # For some bizarre reason, if the timezone is initialized with None, it causes crashes when printing + # the timestamps belonging to TGeogPoints. This doesn't happen in a C program, so the issue is likely + # in the Python bindings. + # Therefore, we initialize the timezone with the system's default timezone if None is passed. + tz_str_converted = ( + tz_str.encode("utf-8") if tz_str is not None else time.tzname[0].encode("utf-8") + ) _lib.meos_initialize_timezone(tz_str_converted) _lib.meos_initialize_error_handler(_lib.py_error_handler) From 1e603734ae3660b29320685d31dd2333428368b7 Mon Sep 17 00:00:00 2001 From: diviloper Date: Tue, 29 Jul 2025 19:01:57 +0200 Subject: [PATCH 10/36] Use explicit timezone in wheel test --- .github/workflows/build_pymeos_cffi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index d67cb96..bbe2b95 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -280,8 +280,8 @@ jobs: - name: Run PyMEOS-CFFI check run: | python -c "import pymeos_cffi; print(pymeos_cffi.__version__);" - python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" - python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize('CET'); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize('CET'); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" upload_pypi: name: Upload to PyPI From 5464b9f2c7e6f985227605194cec23cced510d16 Mon Sep 17 00:00:00 2001 From: diviloper Date: Wed, 30 Jul 2025 16:45:50 +0200 Subject: [PATCH 11/36] Try compiling a debug release --- .github/workflows/build_pymeos_cffi.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index bbe2b95..079343b 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -232,7 +232,7 @@ jobs: git clone --depth 1 --branch ${{ needs.checks.outputs.branch }} https://github.com/MobilityDB/MobilityDB && mkdir MobilityDB/build && cd MobilityDB/build && - cmake .. -DMEOS=on -DGEOS_INCLUDE_DIR=/usr/geos39/include/ -DGEOS_LIBRARY=/usr/geos39/lib64/libgeos_c.so -DGEOS_CONFIG=/usr/geos39/bin/geos-config -DPROJ_INCLUDE_DIRS=/usr/proj81/include/ -DPROJ_LIBRARIES=/usr/proj81/lib/libproj.so && + cmake .. -DCMAKE_BUILD_TYPE=Debug -DMEOS=on -DGEOS_INCLUDE_DIR=/usr/geos39/include/ -DGEOS_LIBRARY=/usr/geos39/lib64/libgeos_c.so -DGEOS_CONFIG=/usr/geos39/bin/geos-config -DPROJ_INCLUDE_DIRS=/usr/proj81/include/ -DPROJ_LIBRARIES=/usr/proj81/lib/libproj.so && make -j && make install @@ -253,8 +253,8 @@ jobs: fail-fast: false matrix: python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ] -# os: [ ubuntu-latest, macos-13, macos-14 ] - os: [ ubuntu-latest, macos-14 ] + os: [ ubuntu-latest, macos-13, macos-14 ] +# os: [ ubuntu-latest, macos-14 ] steps: - name: Checkout From c366e8ead1cc011ec2afc2e967c229967f1fa11d Mon Sep 17 00:00:00 2001 From: diviloper Date: Thu, 31 Jul 2025 10:27:18 +0200 Subject: [PATCH 12/36] Update pg version in linux wheel --- .github/workflows/build_pymeos_cffi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 079343b..13835a0 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -222,7 +222,7 @@ jobs: CIBW_BEFORE_ALL_LINUX: > yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm && yum -y update && - yum -y install gcc gcc-c++ make cmake postgresql13-devel proj81-devel geos39-devel gsl-devel && + yum -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel && git clone --branch json-c-0.17 --depth 1 https://github.com/json-c/json-c && mkdir json-c-build && cd json-c-build && From ad5e712e638769ae9a31b65d4f4eee1fc0f60271 Mon Sep 17 00:00:00 2001 From: diviloper Date: Thu, 31 Jul 2025 10:44:53 +0200 Subject: [PATCH 13/36] Update cibuildwheel version --- .github/workflows/build_pymeos_cffi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 13835a0..a8de0bf 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -188,7 +188,7 @@ jobs: cache: "pip" - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.22.0 + run: python -m pip install cibuildwheel==3.0.0 - name: Set PROJ_DATA (macOS) if: runner.os == 'macOS' @@ -220,7 +220,7 @@ jobs: CIBW_ENVIRONMENT_MACOS: > MACOSX_DEPLOYMENT_TARGET="${{ matrix.os == 'macos-14' && 14 || 13.6 }}" CIBW_BEFORE_ALL_LINUX: > - yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm && + yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm && yum -y update && yum -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel && git clone --branch json-c-0.17 --depth 1 https://github.com/json-c/json-c && From 595cfd6ba42003859840e469ddc6fe3291ee6d15 Mon Sep 17 00:00:00 2001 From: diviloper Date: Thu, 31 Jul 2025 10:52:25 +0200 Subject: [PATCH 14/36] Use dnf instead of yum --- .github/workflows/build_pymeos_cffi.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index a8de0bf..715f902 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -188,7 +188,7 @@ jobs: cache: "pip" - name: Install cibuildwheel - run: python -m pip install cibuildwheel==3.0.0 + run: python -m pip install cibuildwheel~=3.0 - name: Set PROJ_DATA (macOS) if: runner.os == 'macOS' @@ -220,9 +220,10 @@ jobs: CIBW_ENVIRONMENT_MACOS: > MACOSX_DEPLOYMENT_TARGET="${{ matrix.os == 'macos-14' && 14 || 13.6 }}" CIBW_BEFORE_ALL_LINUX: > - yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm && - yum -y update && - yum -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel && + dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm && + dnf -qy module disable postgresql && + dnf -y update && + dnf -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel && git clone --branch json-c-0.17 --depth 1 https://github.com/json-c/json-c && mkdir json-c-build && cd json-c-build && From 07687a1a87a8eb73e9820b49e9f70d9f17338624 Mon Sep 17 00:00:00 2001 From: diviloper Date: Thu, 31 Jul 2025 11:18:04 +0200 Subject: [PATCH 15/36] Use json-c package from repo --- .github/workflows/build_pymeos_cffi.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 715f902..4b9f95a 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -214,7 +214,7 @@ jobs: # Disable PyPy builds # Disable builds on musllinux # Disable builds in linux architectures other than x86_64 - CIBW_SKIP: "pp* *musllinux*" + CIBW_SKIP: "*musllinux*" CIBW_ARCHS_LINUX: "x86_64" CIBW_ENVIRONMENT_PASS_LINUX: PACKAGE_DATA LD_LIBRARY_PATH PROJ_DATA C_INCLUDE_PATH CIBW_ENVIRONMENT_MACOS: > @@ -223,17 +223,11 @@ jobs: dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm && dnf -qy module disable postgresql && dnf -y update && - dnf -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel && - git clone --branch json-c-0.17 --depth 1 https://github.com/json-c/json-c && - mkdir json-c-build && - cd json-c-build && - cmake ../json-c && - make && - make install && + dnf -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel json-c-devel && git clone --depth 1 --branch ${{ needs.checks.outputs.branch }} https://github.com/MobilityDB/MobilityDB && mkdir MobilityDB/build && cd MobilityDB/build && - cmake .. -DCMAKE_BUILD_TYPE=Debug -DMEOS=on -DGEOS_INCLUDE_DIR=/usr/geos39/include/ -DGEOS_LIBRARY=/usr/geos39/lib64/libgeos_c.so -DGEOS_CONFIG=/usr/geos39/bin/geos-config -DPROJ_INCLUDE_DIRS=/usr/proj81/include/ -DPROJ_LIBRARIES=/usr/proj81/lib/libproj.so && + cmake .. -DMEOS=on -DGEOS_INCLUDE_DIR=/usr/geos39/include/ -DGEOS_LIBRARY=/usr/geos39/lib64/libgeos_c.so -DGEOS_CONFIG=/usr/geos39/bin/geos-config -DPROJ_INCLUDE_DIRS=/usr/proj81/include/ -DPROJ_LIBRARIES=/usr/proj81/lib/libproj.so && make -j && make install From 1990ab6b040a485f99cb5c19159f9d8648b06f7f Mon Sep 17 00:00:00 2001 From: diviloper Date: Thu, 31 Jul 2025 11:31:46 +0200 Subject: [PATCH 16/36] Disable python 3.14 builds --- .github/workflows/build_pymeos_cffi.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 4b9f95a..ea6433c 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -211,10 +211,9 @@ jobs: export PACKAGE_DATA=1 python -m cibuildwheel --output-dir wheelhouse env: - # Disable PyPy builds # Disable builds on musllinux + CIBW_SKIP: "*musllinux* cp314*" # Disable builds in linux architectures other than x86_64 - CIBW_SKIP: "*musllinux*" CIBW_ARCHS_LINUX: "x86_64" CIBW_ENVIRONMENT_PASS_LINUX: PACKAGE_DATA LD_LIBRARY_PATH PROJ_DATA C_INCLUDE_PATH CIBW_ENVIRONMENT_MACOS: > From 54c5f13376ac44a57f576ebc1cf3eabc2e301230 Mon Sep 17 00:00:00 2001 From: diviloper Date: Thu, 31 Jul 2025 19:02:52 +0200 Subject: [PATCH 17/36] Only call meos_initialize_timezone is one is provided --- builder/build_pymeos_functions_modifiers.py | 9 +++------ pymeos_cffi/functions.py | 11 +++-------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/builder/build_pymeos_functions_modifiers.py b/builder/build_pymeos_functions_modifiers.py index f5139a6..9c49d93 100644 --- a/builder/build_pymeos_functions_modifiers.py +++ b/builder/build_pymeos_functions_modifiers.py @@ -51,12 +51,9 @@ def meos_initialize_modifier(_: str) -> str: _lib.meos_set_spatial_ref_sys_csv(os.path.join(os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv").encode('utf-8')) _lib.meos_initialize() - # For some bizarre reason, if the timezone is initialized with None, it causes crashes when printing - # the timestamps belonging to TGeogPoints. This doesn't happen in a C program, so the issue is likely - # in the Python bindings. - # Therefore, we initialize the timezone with the system's default timezone if None is passed. - tz_str_converted = tz_str.encode('utf-8') if tz_str is not None else time.tzname[0].encode('utf-8') - _lib.meos_initialize_timezone(tz_str_converted) + # Timezone is already initialized by meos_initialize, so we only need to set it if tz_str is provided + if tz_str is not None: + _lib.meos_initialize_timezone(tz_str.encode('utf-8')) _lib.meos_initialize_error_handler(_lib.py_error_handler)""" diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index dae8bfb..a35b611 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -244,14 +244,9 @@ def meos_initialize(tz_str: "Optional[str]") -> None: ) _lib.meos_initialize() - # For some bizarre reason, if the timezone is initialized with None, it causes crashes when printing - # the timestamps belonging to TGeogPoints. This doesn't happen in a C program, so the issue is likely - # in the Python bindings. - # Therefore, we initialize the timezone with the system's default timezone if None is passed. - tz_str_converted = ( - tz_str.encode("utf-8") if tz_str is not None else time.tzname[0].encode("utf-8") - ) - _lib.meos_initialize_timezone(tz_str_converted) + # Timezone is already initialized by meos_initialize, so we only need to set it if tz_str is provided + if tz_str is not None: + _lib.meos_initialize_timezone(tz_str.encode("utf-8")) _lib.meos_initialize_error_handler(_lib.py_error_handler) From 9bf78c44a5ae2eee2b61345ef455430f64548bf7 Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 1 Aug 2025 12:12:20 +0200 Subject: [PATCH 18/36] Sync --- .github/workflows/build_pymeos_cffi.yml | 4 ++-- builder/templates/functions.py | 8 ++++---- pymeos_cffi/functions.py | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index ea6433c..f32e181 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -274,8 +274,8 @@ jobs: - name: Run PyMEOS-CFFI check run: | python -c "import pymeos_cffi; print(pymeos_cffi.__version__);" - python -c "from pymeos_cffi import *; meos_initialize('CET'); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" - python -c "from pymeos_cffi import *; meos_initialize('CET'); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" + python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" upload_pypi: name: Upload to PyPI diff --git a/builder/templates/functions.py b/builder/templates/functions.py index 42955c1..c11215c 100644 --- a/builder/templates/functions.py +++ b/builder/templates/functions.py @@ -95,7 +95,7 @@ def geometry_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" - gs = pgis_geometry_in(text, -1) + gs = geom_in(text, -1) return gs @@ -103,7 +103,7 @@ def geography_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" - gs = pgis_geography_in(text, -1) + gs = geog_in(text, -1) return gs @@ -112,7 +112,7 @@ def gserialized_to_shapely_point( ) -> spg.Point: text = geo_as_text(geom, precision) geometry = wkt.loads(text) - srid = geo_get_srid(geom) + srid = geo_srid(geom) if srid > 0: geometry = set_srid(geometry, srid) return geometry @@ -123,7 +123,7 @@ def gserialized_to_shapely_geometry( ) -> BaseGeometry: text = geo_as_text(geom, precision) geometry = wkt.loads(text) - srid = geo_get_srid(geom) + srid = geo_srid(geom) if srid > 0: geometry = set_srid(geometry, srid) return geometry diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index a35b611..6d63611 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -95,7 +95,7 @@ def geometry_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" - gs = pgis_geometry_in(text, -1) + gs = geom_in(text, -1) return gs @@ -103,7 +103,7 @@ def geography_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" - gs = pgis_geography_in(text, -1) + gs = geog_in(text, -1) return gs @@ -112,7 +112,7 @@ def gserialized_to_shapely_point( ) -> spg.Point: text = geo_as_text(geom, precision) geometry = wkt.loads(text) - srid = geo_get_srid(geom) + srid = geo_srid(geom) if srid > 0: geometry = set_srid(geometry, srid) return geometry @@ -123,7 +123,7 @@ def gserialized_to_shapely_geometry( ) -> BaseGeometry: text = geo_as_text(geom, precision) geometry = wkt.loads(text) - srid = geo_get_srid(geom) + srid = geo_srid(geom) if srid > 0: geometry = set_srid(geometry, srid) return geometry From 9f45dc1ee6637fab6037b7f80e5f71c4db4da6eb Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 1 Aug 2025 18:10:48 +0200 Subject: [PATCH 19/36] Only set local spatial ref system csv when it exists (wheel installation) --- builder/build_pymeos_functions_modifiers.py | 9 ++++++++- pymeos_cffi/functions.py | 13 ++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/builder/build_pymeos_functions_modifiers.py b/builder/build_pymeos_functions_modifiers.py index 9c49d93..7abe6e7 100644 --- a/builder/build_pymeos_functions_modifiers.py +++ b/builder/build_pymeos_functions_modifiers.py @@ -48,9 +48,16 @@ def meos_initialize_modifier(_: str) -> str: # Assume we are in a wheel and the PROJ data is in the package os.environ["PROJ_DATA"] = proj_dir os.environ["PROJ_LIB"] = proj_dir - _lib.meos_set_spatial_ref_sys_csv(os.path.join(os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv").encode('utf-8')) + _lib.meos_initialize() + # Check if local spatial ref system csv exists (meaning wheel installation). If it does, use it. + wheel_path = os.path.join( + os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv" + ) + if os.path.exists(wheel_path): + _lib.meos_set_spatial_ref_sys_csv(wheel_path.encode("utf-8")) + # Timezone is already initialized by meos_initialize, so we only need to set it if tz_str is provided if tz_str is not None: _lib.meos_initialize_timezone(tz_str.encode('utf-8')) diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 6d63611..43fde3a 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -237,13 +237,16 @@ def meos_initialize(tz_str: "Optional[str]") -> None: # Assume we are in a wheel and the PROJ data is in the package os.environ["PROJ_DATA"] = proj_dir os.environ["PROJ_LIB"] = proj_dir - _lib.meos_set_spatial_ref_sys_csv( - os.path.join( - os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv" - ).encode("utf-8") - ) + _lib.meos_initialize() + # Check if local spatial ref system csv exists (meaning wheel installation). If it does, use it. + wheel_path = os.path.join( + os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv" + ) + if os.path.exists(wheel_path): + _lib.meos_set_spatial_ref_sys_csv(wheel_path.encode("utf-8")) + # Timezone is already initialized by meos_initialize, so we only need to set it if tz_str is provided if tz_str is not None: _lib.meos_initialize_timezone(tz_str.encode("utf-8")) From a014429c345f092f213ac281c5f997cd7ca4725d Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 1 Aug 2025 18:11:35 +0200 Subject: [PATCH 20/36] Fix regex to allow spaces between function name and parameters --- builder/build_pymeos_functions.py | 2 +- pymeos_cffi/__init__.py | 1 + pymeos_cffi/functions.py | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index 7d37d8e..1c046e7 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -252,7 +252,7 @@ def build_pymeos_functions(header_path="builder/meos.h"): f_regex = ( r"(?(?:const )?\w+(?: \*+)?)" - r"\s*(?P\w+)" + r"\s*(?P\w+)\s*" r"\((?P[\w\s,\*]*)\);" ) matches = re.finditer(f_regex, "".join(content.splitlines())) diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index ceb3dd5..83d0567 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -832,6 +832,7 @@ "tfloat_to_tint", "tint_to_tfloat", "tnumber_to_span", + "tnumber_to_tbox", "tbool_end_value", "tbool_start_value", "tbool_value_at_timestamptz", diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 43fde3a..b8c47a7 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -6341,6 +6341,13 @@ def tnumber_to_span(temp: "const Temporal *") -> "Span *": return result if result != _ffi.NULL else None +def tnumber_to_tbox(temp: "const Temporal *") -> "TBox *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tnumber_to_tbox(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + def tbool_end_value(temp: "const Temporal *") -> "bool": temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_end_value(temp_converted) From f15b251cae7276330bd2007f58b3bf27a8d27a36 Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 1 Aug 2025 18:27:00 +0200 Subject: [PATCH 21/36] Update modifiers for tpoint functions and sync header --- builder/build_pymeos_functions.py | 14 ++-- builder/meos.h | 20 ++--- pymeos_cffi/__init__.py | 10 +++ pymeos_cffi/functions.py | 124 +++++++++++++++++++++++++----- 4 files changed, 131 insertions(+), 37 deletions(-) diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index 1c046e7..5c865bb 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -98,7 +98,7 @@ def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: ("ttext_value_at_timestamptz", "value"), ("tint_value_at_timestamptz", "value"), ("tfloat_value_at_timestamptz", "value"), - ("tpoint_value_at_timestamptz", "value"), + ("tgeo_value_at_timestamptz", "value"), } # List of output function parameters in tuples of (function, parameter). @@ -117,11 +117,11 @@ def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: ("tfloat_value_time_split", "value_bins"), ("tfloat_value_time_split", "time_bins"), ("tfloat_value_time_split", "count"), - ("tpoint_space_split", "space_bins"), - ("tpoint_space_split", "count"), - ("tpoint_space_time_split", "space_bins"), - ("tpoint_space_time_split", "time_bins"), - ("tpoint_space_time_split", "count"), + ("tgeo_space_split", "space_bins"), + ("tgeo_space_split", "count"), + ("tgeo_space_time_split", "space_bins"), + ("tgeo_space_time_split", "time_bins"), + ("tgeo_space_time_split", "count"), ("tbox_as_hexwkb", "size"), ("stbox_as_hexwkb", "size"), ("tintbox_value_time_tiles", "count"), @@ -151,7 +151,7 @@ def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: ("temporal_tcount_transfn", "state"), ("temporal_extent_transfn", "p"), ("tnumber_extent_transfn", "box"), - ("tpoint_extent_transfn", "box"), + ("tspatial_extent_transfn", "box"), ("tbool_tand_transfn", "state"), ("tbool_tor_transfn", "state"), ("tbox_shift_scale_time", "shift"), diff --git a/builder/meos.h b/builder/meos.h index c4090a7..4004326 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -62,17 +62,17 @@ typedef struct varlena typedef varlena text; typedef struct varlena bytea; -/* extern DateADT date_in(const char *str); (undefined) */ -/* extern char *date_out(DateADT d); (undefined) */ -/* extern int interval_cmp(const Interval *interv1, const Interval *interv2); (undefined) */ -/* extern Interval *interval_in(const char *str, int32 typmod); (undefined) */ -/* extern char *interval_out(const Interval *interv); (undefined) */ +extern DateADT date_in(const char *str); +extern char *date_out(DateADT d); +extern int interval_cmp(const Interval *interv1, const Interval *interv2); +extern Interval *interval_in(const char *str, int32 typmod); +extern char *interval_out(const Interval *interv); extern TimeADT time_in(const char *str, int32 typmod); extern char *time_out(TimeADT t); -/* extern Timestamp timestamp_in(const char *str, int32 typmod); (undefined) */ -/* extern char *timestamp_out(Timestamp t); (undefined) */ -/* extern TimestampTz timestamptz_in(const char *str, int32 typmod); (undefined) */ -/* extern char *timestamptz_out(TimestampTz t); (undefined) */ +extern Timestamp timestamp_in(const char *str, int32 typmod); +extern char *timestamp_out(Timestamp t); +extern TimestampTz timestamptz_in(const char *str, int32 typmod); +extern char *timestamptz_out(TimestampTz t); @@ -2421,7 +2421,7 @@ extern Temporal *tpoint_get_y(const Temporal *temp); extern Temporal *tpoint_get_z(const Temporal *temp); extern bool tpoint_is_simple(const Temporal *temp); extern double tpoint_length(const Temporal *temp); -/* extern Temporal *tpoint_speed(const Temporal *temp); (undefined) */ +extern Temporal *tpoint_speed(const Temporal *temp); extern GSERIALIZED *tpoint_trajectory(const Temporal *temp); extern GSERIALIZED *tpoint_twcentroid(const Temporal *temp); diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index 83d0567..0d0a237 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -51,8 +51,17 @@ "as_tinstant", "as_tsequence", "as_tsequenceset", + "date_in", + "date_out", + "interval_cmp", + "interval_in", + "interval_out", "time_in", "time_out", + "timestamp_in", + "timestamp_out", + "timestamptz_in", + "timestamptz_out", "meos_errno", "meos_errno_set", "meos_errno_restore", @@ -1592,6 +1601,7 @@ "tpoint_get_z", "tpoint_is_simple", "tpoint_length", + "tpoint_speed", "tpoint_trajectory", "tpoint_twcentroid", "tgeo_affine", diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index b8c47a7..3c1ed49 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -144,6 +144,45 @@ def as_tsequenceset(temporal: "Temporal *") -> "TSequenceSet *": # ----------------------------------------------------------------------------- # ----------------------End of manually-defined functions---------------------- # ----------------------------------------------------------------------------- +def date_in(string: str) -> "DateADT": + string_converted = string.encode("utf-8") + result = _lib.date_in(string_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def date_out(d: "DateADT") -> str: + d_converted = _ffi.cast("DateADT", d) + result = _lib.date_out(d_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + +def interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": + interv1_converted = _ffi.cast("const Interval *", interv1) + interv2_converted = _ffi.cast("const Interval *", interv2) + result = _lib.interval_cmp(interv1_converted, interv2_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def interval_in(string: str, typmod: int) -> "Interval *": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.interval_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def interval_out(interv: "const Interval *") -> str: + interv_converted = _ffi.cast("const Interval *", interv) + result = _lib.interval_out(interv_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + def time_in(string: str, typmod: int) -> "TimeADT": string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) @@ -160,6 +199,38 @@ def time_out(t: "TimeADT") -> str: return result if result != _ffi.NULL else None +def timestamp_in(string: str, typmod: int) -> "Timestamp": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.timestamp_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def timestamp_out(t: int) -> str: + t_converted = _ffi.cast("Timestamp", t) + result = _lib.timestamp_out(t_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + +def timestamptz_in(string: str, typmod: int) -> "TimestampTz": + string_converted = string.encode("utf-8") + typmod_converted = _ffi.cast("int32", typmod) + result = _lib.timestamptz_in(string_converted, typmod_converted) + _check_error() + return result if result != _ffi.NULL else None + + +def timestamptz_out(t: int) -> str: + t_converted = _ffi.cast("TimestampTz", t) + result = _lib.timestamptz_out(t_converted) + _check_error() + result = _ffi.string(result).decode("utf-8") + return result if result != _ffi.NULL else None + + def meos_errno() -> "int": result = _lib.meos_errno() _check_error() @@ -12653,16 +12724,18 @@ def tgeo_traversed_area(temp: "const Temporal *") -> "GSERIALIZED *": def tgeo_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool, value: "GSERIALIZED **" -) -> "bool": + temp: "const Temporal *", t: int, strict: bool +) -> "GSERIALIZED **": temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) - value_converted = [_ffi.cast("GSERIALIZED *", x) for x in value] + out_result = _ffi.new("GSERIALIZED **") result = _lib.tgeo_value_at_timestamptz( - temp_converted, t_converted, strict, value_converted + temp_converted, t_converted, strict, out_result ) _check_error() - return result if result != _ffi.NULL else None + if result: + return out_result if out_result != _ffi.NULL else None + return None def tgeo_value_n(temp: "const Temporal *", n: int) -> "GSERIALIZED **": @@ -12749,6 +12822,13 @@ def tpoint_length(temp: "const Temporal *") -> "double": return result if result != _ffi.NULL else None +def tpoint_speed(temp: "const Temporal *") -> "Temporal *": + temp_converted = _ffi.cast("const Temporal *", temp) + result = _lib.tpoint_speed(temp_converted) + _check_error() + return result if result != _ffi.NULL else None + + def tpoint_trajectory(temp: "const Temporal *") -> "GSERIALIZED *": temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_trajectory(temp_converted) @@ -14215,8 +14295,10 @@ def tpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipLi return result if result != _ffi.NULL else None -def tspatial_extent_transfn(box: "STBox *", temp: "const Temporal *") -> "STBox *": - box_converted = _ffi.cast("STBox *", box) +def tspatial_extent_transfn( + box: "Optional['STBox *']", temp: "const Temporal *" +) -> "STBox *": + box_converted = _ffi.cast("STBox *", box) if box is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_extent_transfn(box_converted, temp_converted) _check_error() @@ -14356,11 +14438,10 @@ def tgeo_space_split( sorigin: "const GSERIALIZED *", bitmatrix: bool, border_inc: bool, - space_bins: "GSERIALIZED ***", -) -> "Tuple['Temporal **', 'int']": +) -> "Tuple['Temporal **', 'GSERIALIZED ***', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - space_bins_converted = [_ffi.cast("GSERIALIZED **", x) for x in space_bins] + space_bins = _ffi.new("GSERIALIZED ***") count = _ffi.new("int *") result = _lib.tgeo_space_split( temp_converted, @@ -14370,11 +14451,11 @@ def tgeo_space_split( sorigin_converted, bitmatrix, border_inc, - space_bins_converted, + space_bins, count, ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None, space_bins[0], count[0] def tgeo_space_time_split( @@ -14387,15 +14468,13 @@ def tgeo_space_time_split( torigin: int, bitmatrix: bool, border_inc: bool, - space_bins: "GSERIALIZED ***", - time_bins: "TimestampTz **", -) -> "Tuple['Temporal **', 'int']": +) -> "Tuple['Temporal **', 'GSERIALIZED ***', 'TimestampTz *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) torigin_converted = _ffi.cast("TimestampTz", torigin) - space_bins_converted = [_ffi.cast("GSERIALIZED **", x) for x in space_bins] - time_bins_converted = [_ffi.cast("TimestampTz *", x) for x in time_bins] + space_bins = _ffi.new("GSERIALIZED ***") + time_bins = _ffi.new("TimestampTz **") count = _ffi.new("int *") result = _lib.tgeo_space_time_split( temp_converted, @@ -14407,12 +14486,17 @@ def tgeo_space_time_split( torigin_converted, bitmatrix, border_inc, - space_bins_converted, - time_bins_converted, + space_bins, + time_bins, count, ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return ( + result if result != _ffi.NULL else None, + space_bins[0], + time_bins[0], + count[0], + ) def geo_cluster_kmeans( From b7f6baee4485af39800297f285fab2eea578127b Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 1 Aug 2025 23:39:12 +0200 Subject: [PATCH 22/36] Add proper transformation between MEOS interpType and PyMEOS-CFFI InterpolationType --- builder/objects.py | 1 + builder/templates/functions.py | 1 + pymeos_cffi/functions.py | 219 +++++++++++++-------------------- 3 files changed, 86 insertions(+), 135 deletions(-) diff --git a/builder/objects.py b/builder/objects.py index 487c083..f1e966a 100644 --- a/builder/objects.py +++ b/builder/objects.py @@ -111,4 +111,5 @@ def __init__( "TimeOffset": Conversion( "TimeOffset", "int", lambda p_obj: f"_ffi.cast('TimeOffset', {p_obj})", None ), + "interpType": Conversion("interpType", "InterpolationType", None, None), } diff --git a/builder/templates/functions.py b/builder/templates/functions.py index c11215c..894e363 100644 --- a/builder/templates/functions.py +++ b/builder/templates/functions.py @@ -11,6 +11,7 @@ from shapely import wkt, get_srid, set_srid from shapely.geometry.base import BaseGeometry +from .enums import InterpolationType from .errors import report_meos_exception _ffi = _meos_cffi.ffi diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 3c1ed49..84424b1 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -11,6 +11,7 @@ from shapely import wkt, get_srid, set_srid from shapely.geometry.base import BaseGeometry +from .enums import InterpolationType from .errors import report_meos_exception _ffi = _meos_cffi.ffi @@ -6237,21 +6238,19 @@ def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": def tfloatseq_from_base_tstzspan( - d: float, s: "const Span *", interp: "interpType" + d: float, s: "const Span *", interp: InterpolationType ) -> "TSequence *": s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp_converted) + result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp) _check_error() return result if result != _ffi.NULL else None def tfloatseqset_from_base_tstzspanset( - d: float, ss: "const SpanSet *", interp: "interpType" + d: float, ss: "const SpanSet *", interp: InterpolationType ) -> "TSequenceSet *": ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp_converted) + result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -6296,13 +6295,12 @@ def tsequence_make( count: int, lower_inc: bool, upper_inc: bool, - interp: "interpType", + interp: InterpolationType, normalize: bool, ) -> "TSequence *": instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_make( - instants_converted, count, lower_inc, upper_inc, interp_converted, normalize + instants_converted, count, lower_inc, upper_inc, interp, normalize ) _check_error() return result if result != _ffi.NULL else None @@ -6319,17 +6317,16 @@ def tsequenceset_make( def tsequenceset_make_gaps( instants: "const TInstant **", - interp: "interpType", + interp: InterpolationType, maxt: "Optional['const Interval *']", maxdist: float, ) -> "TSequenceSet *": instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) maxt_converted = ( _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL ) result = _lib.tsequenceset_make_gaps( - instants_converted, len(instants), interp_converted, maxt_converted, maxdist + instants_converted, len(instants), interp, maxt_converted, maxdist ) _check_error() return result if result != _ffi.NULL else None @@ -6896,10 +6893,11 @@ def temporal_scale_time( return result if result != _ffi.NULL else None -def temporal_set_interp(temp: "const Temporal *", interp: "interpType") -> "Temporal *": +def temporal_set_interp( + temp: "const Temporal *", interp: InterpolationType +) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_set_interp(temp_converted, interp_converted) + result = _lib.temporal_set_interp(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -6941,21 +6939,19 @@ def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": def temporal_to_tsequence( - temp: "const Temporal *", interp: "interpType" + temp: "const Temporal *", interp: InterpolationType ) -> "TSequence *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_to_tsequence(temp_converted, interp_converted) + result = _lib.temporal_to_tsequence(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None def temporal_to_tsequenceset( - temp: "const Temporal *", interp: "interpType" + temp: "const Temporal *", interp: InterpolationType ) -> "TSequenceSet *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_to_tsequenceset(temp_converted, interp_converted) + result = _lib.temporal_to_tsequenceset(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -7037,24 +7033,18 @@ def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": def temporal_append_tinstant( temp: "Temporal *", inst: "const TInstant *", - interp: "interpType", + interp: InterpolationType, maxdist: float, maxt: "Optional['const Interval *']", expand: bool, ) -> "Temporal *": temp_converted = _ffi.cast("Temporal *", temp) inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) maxt_converted = ( _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL ) result = _lib.temporal_append_tinstant( - temp_converted, - inst_converted, - interp_converted, - maxdist, - maxt_converted, - expand, + temp_converted, inst_converted, interp, maxdist, maxt_converted, expand ) _check_error() return result if result != _ffi.NULL else None @@ -9976,14 +9966,13 @@ def temporal_tsample( temp: "const Temporal *", duration: "const Interval *", origin: int, - interp: "interpType", + interp: InterpolationType, ) -> "Temporal *": temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) - interp_converted = _ffi.cast("interpType", interp) result = _lib.temporal_tsample( - temp_converted, duration_converted, origin_converted, interp_converted + temp_converted, duration_converted, origin_converted, interp ) _check_error() return result if result != _ffi.NULL else None @@ -10387,9 +10376,8 @@ def meosoper_from_string(name: str) -> "meosOper": return result if result != _ffi.NULL else None -def interptype_name(interp: "interpType") -> str: - interp_converted = _ffi.cast("interpType", interp) - result = _lib.interptype_name(interp_converted) +def interptype_name(interp: InterpolationType) -> str: + result = _lib.interptype_name(interp) _check_error() result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None @@ -12425,27 +12413,21 @@ def tgeoseq_from_base_tstzset( def tgeoseq_from_base_tstzspan( - gs: "const GSERIALIZED *", s: "const Span *", interp: "interpType" + gs: "const GSERIALIZED *", s: "const Span *", interp: InterpolationType ) -> "TSequence *": gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeoseq_from_base_tstzspan( - gs_converted, s_converted, interp_converted - ) + result = _lib.tgeoseq_from_base_tstzspan(gs_converted, s_converted, interp) _check_error() return result if result != _ffi.NULL else None def tgeoseqset_from_base_tstzspanset( - gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: "interpType" + gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: InterpolationType ) -> "TSequenceSet *": gs_converted = _ffi.cast("const GSERIALIZED *", gs) ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeoseqset_from_base_tstzspanset( - gs_converted, ss_converted, interp_converted - ) + result = _lib.tgeoseqset_from_base_tstzspanset(gs_converted, ss_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -12479,14 +12461,11 @@ def tpointseq_from_base_tstzset( def tpointseq_from_base_tstzspan( - gs: "const GSERIALIZED *", s: "const Span *", interp: "interpType" + gs: "const GSERIALIZED *", s: "const Span *", interp: InterpolationType ) -> "TSequence *": gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tpointseq_from_base_tstzspan( - gs_converted, s_converted, interp_converted - ) + result = _lib.tpointseq_from_base_tstzspan(gs_converted, s_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -12501,7 +12480,7 @@ def tpointseq_make_coords( geodetic: bool, lower_inc: bool, upper_inc: bool, - interp: "interpType", + interp: InterpolationType, normalize: bool, ) -> "TSequence *": xcoords_converted = _ffi.cast("const double *", xcoords) @@ -12509,7 +12488,6 @@ def tpointseq_make_coords( zcoords_converted = _ffi.cast("const double *", zcoords) times_converted = _ffi.cast("const TimestampTz *", times) srid_converted = _ffi.cast("int32", srid) - interp_converted = _ffi.cast("interpType", interp) result = _lib.tpointseq_make_coords( xcoords_converted, ycoords_converted, @@ -12520,7 +12498,7 @@ def tpointseq_make_coords( geodetic, lower_inc, upper_inc, - interp_converted, + interp, normalize, ) _check_error() @@ -12528,14 +12506,11 @@ def tpointseq_make_coords( def tpointseqset_from_base_tstzspanset( - gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: "interpType" + gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: InterpolationType ) -> "TSequenceSet *": gs_converted = _ffi.cast("const GSERIALIZED *", gs) ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tpointseqset_from_base_tstzspanset( - gs_converted, ss_converted, interp_converted - ) + result = _lib.tpointseqset_from_base_tstzspanset(gs_converted, ss_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15708,10 +15683,9 @@ def tboolinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tboolseq_in(string: str, interp: "interpType") -> "TSequence *": +def tboolseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tboolseq_in(string_converted, interp_converted) + result = _lib.tboolseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15753,10 +15727,9 @@ def tfloatinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tfloatseq_in(string: str, interp: "interpType") -> "TSequence *": +def tfloatseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tfloatseq_in(string_converted, interp_converted) + result = _lib.tfloatseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15791,10 +15764,9 @@ def tintinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tintseq_in(string: str, interp: "interpType") -> "TSequence *": +def tintseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tintseq_in(string_converted, interp_converted) + result = _lib.tintseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15807,12 +15779,11 @@ def tintseqset_in(string: str) -> "TSequenceSet *": def tsequence_in( - string: str, temptype: "meosType", interp: "interpType" + string: str, temptype: "meosType", interp: InterpolationType ) -> "TSequence *": string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_in(string_converted, temptype_converted, interp_converted) + result = _lib.tsequence_in(string_converted, temptype_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15826,14 +15797,11 @@ def tsequence_out(seq: "const TSequence *", maxdd: int) -> str: def tsequenceset_in( - string: str, temptype: "meosType", interp: "interpType" + string: str, temptype: "meosType", interp: InterpolationType ) -> "TSequenceSet *": string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequenceset_in( - string_converted, temptype_converted, interp_converted - ) + result = _lib.tsequenceset_in(string_converted, temptype_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15853,10 +15821,9 @@ def ttextinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def ttextseq_in(string: str, interp: "interpType") -> "TSequence *": +def ttextseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.ttextseq_in(string_converted, interp_converted) + result = _lib.ttextseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -15948,14 +15915,13 @@ def tsequence_from_base_tstzset( def tsequence_from_base_tstzspan( - value: "Datum", temptype: "meosType", s: "const Span *", interp: "interpType" + value: "Datum", temptype: "meosType", s: "const Span *", interp: InterpolationType ) -> "TSequence *": value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) s_converted = _ffi.cast("const Span *", s) - interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_from_base_tstzspan( - value_converted, temptype_converted, s_converted, interp_converted + value_converted, temptype_converted, s_converted, interp ) _check_error() return result if result != _ffi.NULL else None @@ -15967,19 +15933,12 @@ def tsequence_make_exp( maxcount: int, lower_inc: bool, upper_inc: bool, - interp: "interpType", + interp: InterpolationType, normalize: bool, ) -> "TSequence *": instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_make_exp( - instants_converted, - count, - maxcount, - lower_inc, - upper_inc, - interp_converted, - normalize, + instants_converted, count, maxcount, lower_inc, upper_inc, interp, normalize ) _check_error() return result if result != _ffi.NULL else None @@ -15990,13 +15949,12 @@ def tsequence_make_free( count: int, lower_inc: bool, upper_inc: bool, - interp: "interpType", + interp: InterpolationType, normalize: bool, ) -> "TSequence *": instants_converted = [_ffi.cast("TInstant *", x) for x in instants] - interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequence_make_free( - instants_converted, count, lower_inc, upper_inc, interp_converted, normalize + instants_converted, count, lower_inc, upper_inc, interp, normalize ) _check_error() return result if result != _ffi.NULL else None @@ -16032,14 +15990,16 @@ def tsequenceset_from_base_temp( def tsequenceset_from_base_tstzspanset( - value: "Datum", temptype: "meosType", ss: "const SpanSet *", interp: "interpType" + value: "Datum", + temptype: "meosType", + ss: "const SpanSet *", + interp: InterpolationType, ) -> "TSequenceSet *": value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) ss_converted = _ffi.cast("const SpanSet *", ss) - interp_converted = _ffi.cast("interpType", interp) result = _lib.tsequenceset_from_base_tstzspanset( - value_converted, temptype_converted, ss_converted, interp_converted + value_converted, temptype_converted, ss_converted, interp ) _check_error() return result if result != _ffi.NULL else None @@ -16608,20 +16568,20 @@ def temporal_restart(temp: "Temporal *", count: int) -> None: _check_error() -def temporal_tsequence(temp: "const Temporal *", interp: "interpType") -> "TSequence *": +def temporal_tsequence( + temp: "const Temporal *", interp: InterpolationType +) -> "TSequence *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_tsequence(temp_converted, interp_converted) + result = _lib.temporal_tsequence(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None def temporal_tsequenceset( - temp: "const Temporal *", interp: "interpType" + temp: "const Temporal *", interp: InterpolationType ) -> "TSequenceSet *": temp_converted = _ffi.cast("const Temporal *", temp) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.temporal_tsequenceset(temp_converted, interp_converted) + result = _lib.temporal_tsequenceset(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -16637,31 +16597,28 @@ def tinstant_shift_time( def tinstant_to_tsequence( - inst: "const TInstant *", interp: "interpType" + inst: "const TInstant *", interp: InterpolationType ) -> "TSequence *": inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tinstant_to_tsequence(inst_converted, interp_converted) + result = _lib.tinstant_to_tsequence(inst_converted, interp) _check_error() return result if result != _ffi.NULL else None def tinstant_to_tsequence_free( - inst: "TInstant *", interp: "interpType" + inst: "TInstant *", interp: InterpolationType ) -> "TSequence *": inst_converted = _ffi.cast("TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tinstant_to_tsequence_free(inst_converted, interp_converted) + result = _lib.tinstant_to_tsequence_free(inst_converted, interp) _check_error() return result if result != _ffi.NULL else None def tinstant_to_tsequenceset( - inst: "const TInstant *", interp: "interpType" + inst: "const TInstant *", interp: InterpolationType ) -> "TSequenceSet *": inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tinstant_to_tsequenceset(inst_converted, interp_converted) + result = _lib.tinstant_to_tsequenceset(inst_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -16732,11 +16689,10 @@ def tsequence_restart(seq: "TSequence *", count: int) -> None: def tsequence_set_interp( - seq: "const TSequence *", interp: "interpType" + seq: "const TSequence *", interp: InterpolationType ) -> "Temporal *": seq_converted = _ffi.cast("const TSequence *", seq) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_set_interp(seq_converted, interp_converted) + result = _lib.tsequence_set_interp(seq_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -16785,11 +16741,10 @@ def tsequence_to_tsequenceset_free(seq: "TSequence *") -> "TSequenceSet *": def tsequence_to_tsequenceset_interp( - seq: "const TSequence *", interp: "interpType" + seq: "const TSequence *", interp: InterpolationType ) -> "TSequenceSet *": seq_converted = _ffi.cast("const TSequence *", seq) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp_converted) + result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -16801,11 +16756,10 @@ def tsequenceset_restart(ss: "TSequenceSet *", count: int) -> None: def tsequenceset_set_interp( - ss: "const TSequenceSet *", interp: "interpType" + ss: "const TSequenceSet *", interp: InterpolationType ) -> "Temporal *": ss_converted = _ffi.cast("const TSequenceSet *", ss) - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tsequenceset_set_interp(ss_converted, interp_converted) + result = _lib.tsequenceset_set_interp(ss_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -17811,16 +17765,15 @@ def skiplist_free(list: "SkipList *") -> None: def temporal_app_tinst_transfn( state: "Temporal *", inst: "const TInstant *", - interp: "interpType", + interp: InterpolationType, maxdist: float, maxt: "const Interval *", ) -> "Temporal *": state_converted = _ffi.cast("Temporal *", state) inst_converted = _ffi.cast("const TInstant *", inst) - interp_converted = _ffi.cast("interpType", interp) maxt_converted = _ffi.cast("const Interval *", maxt) result = _lib.temporal_app_tinst_transfn( - state_converted, inst_converted, interp_converted, maxdist, maxt_converted + state_converted, inst_converted, interp, maxdist, maxt_converted ) _check_error() return result if result != _ffi.NULL else None @@ -18139,10 +18092,9 @@ def tgeogpointinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tgeogpointseq_in(string: str, interp: "interpType") -> "TSequence *": +def tgeogpointseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeogpointseq_in(string_converted, interp_converted) + result = _lib.tgeogpointseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -18161,10 +18113,9 @@ def tgeompointinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tgeompointseq_in(string: str, interp: "interpType") -> "TSequence *": +def tgeompointseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeompointseq_in(string_converted, interp_converted) + result = _lib.tgeompointseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -18183,10 +18134,9 @@ def tgeographyinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tgeographyseq_in(string: str, interp: "interpType") -> "TSequence *": +def tgeographyseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeographyseq_in(string_converted, interp_converted) + result = _lib.tgeographyseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None @@ -18205,10 +18155,9 @@ def tgeometryinst_in(string: str) -> "TInstant *": return result if result != _ffi.NULL else None -def tgeometryseq_in(string: str, interp: "interpType") -> "TSequence *": +def tgeometryseq_in(string: str, interp: InterpolationType) -> "TSequence *": string_converted = string.encode("utf-8") - interp_converted = _ffi.cast("interpType", interp) - result = _lib.tgeometryseq_in(string_converted, interp_converted) + result = _lib.tgeometryseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None From b9b0abad21306296ade644050c6ea826332d1355 Mon Sep 17 00:00:00 2001 From: diviloper Date: Wed, 6 Aug 2025 16:21:49 +0200 Subject: [PATCH 23/36] Sync with MEOS --- builder/build_pymeos_functions.py | 1 + builder/meos.h | 4 ++-- pymeos_cffi/functions.py | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index 5c865bb..98287b1 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -182,6 +182,7 @@ def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: ("tfloatbox_value_time_tiles", "torigin"), ("stbox_make", "s"), ("tsequenceset_make_gaps", "maxt"), + ("geo_as_geojson", "srs"), } diff --git a/builder/meos.h b/builder/meos.h index 4004326..d5f0f8d 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -2408,7 +2408,7 @@ extern Temporal *tgeo_centroid(const Temporal *temp); extern GSERIALIZED *tgeo_convex_hull(const Temporal *temp); extern GSERIALIZED *tgeo_end_value(const Temporal *temp); extern GSERIALIZED *tgeo_start_value(const Temporal *temp); -extern GSERIALIZED *tgeo_traversed_area(const Temporal *temp); +extern GSERIALIZED *tgeo_traversed_area(const Temporal *temp, bool unary_union); extern bool tgeo_value_at_timestamptz(const Temporal *temp, TimestampTz t, bool strict, GSERIALIZED **value); extern bool tgeo_value_n(const Temporal *temp, int n, GSERIALIZED **result); extern GSERIALIZED **tgeo_values(const Temporal *temp, int *count); @@ -2422,7 +2422,7 @@ extern Temporal *tpoint_get_z(const Temporal *temp); extern bool tpoint_is_simple(const Temporal *temp); extern double tpoint_length(const Temporal *temp); extern Temporal *tpoint_speed(const Temporal *temp); -extern GSERIALIZED *tpoint_trajectory(const Temporal *temp); +extern GSERIALIZED *tpoint_trajectory(const Temporal *temp, bool unary_union); extern GSERIALIZED *tpoint_twcentroid(const Temporal *temp); extern Temporal *tgeo_affine(const Temporal *temp, const AFFINE *a); diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 84424b1..43b0640 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -10831,10 +10831,10 @@ def geo_as_ewkt(gs: "const GSERIALIZED *", precision: int) -> str: def geo_as_geojson( - gs: "const GSERIALIZED *", option: int, precision: int, srs: str + gs: "const GSERIALIZED *", option: int, precision: int, srs: "Optional[str]" ) -> str: gs_converted = _ffi.cast("const GSERIALIZED *", gs) - srs_converted = srs.encode("utf-8") + srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL result = _lib.geo_as_geojson(gs_converted, option, precision, srs_converted) _check_error() result = _ffi.string(result).decode("utf-8") @@ -12691,9 +12691,9 @@ def tgeo_start_value(temp: "const Temporal *") -> "GSERIALIZED *": return result if result != _ffi.NULL else None -def tgeo_traversed_area(temp: "const Temporal *") -> "GSERIALIZED *": +def tgeo_traversed_area(temp: "const Temporal *", unary_union: bool) -> "GSERIALIZED *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tgeo_traversed_area(temp_converted) + result = _lib.tgeo_traversed_area(temp_converted, unary_union) _check_error() return result if result != _ffi.NULL else None @@ -12804,9 +12804,9 @@ def tpoint_speed(temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def tpoint_trajectory(temp: "const Temporal *") -> "GSERIALIZED *": +def tpoint_trajectory(temp: "const Temporal *", unary_union: bool) -> "GSERIALIZED *": temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.tpoint_trajectory(temp_converted) + result = _lib.tpoint_trajectory(temp_converted, unary_union) _check_error() return result if result != _ffi.NULL else None From 540429b75e20dd04f0a82d06caa7a3efa5b6f90d Mon Sep 17 00:00:00 2001 From: diviloper Date: Wed, 6 Aug 2025 16:21:57 +0200 Subject: [PATCH 24/36] Use proper postgres repository --- .github/workflows/build_pymeos_cffi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index f32e181..d86c2b6 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -219,10 +219,10 @@ jobs: CIBW_ENVIRONMENT_MACOS: > MACOSX_DEPLOYMENT_TARGET="${{ matrix.os == 'macos-14' && 14 || 13.6 }}" CIBW_BEFORE_ALL_LINUX: > - dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm && + dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm && dnf -qy module disable postgresql && dnf -y update && - dnf -y install gcc gcc-c++ make cmake postgresql17-devel proj81-devel geos39-devel gsl-devel json-c-devel && + dnf -y install gcc gcc-c++ make cmake postgresql16-devel proj81-devel geos39-devel gsl-devel json-c-devel && git clone --depth 1 --branch ${{ needs.checks.outputs.branch }} https://github.com/MobilityDB/MobilityDB && mkdir MobilityDB/build && cd MobilityDB/build && From ff66784986e10ef8d6ca464d2084f6b40356e86a Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 8 Aug 2025 18:28:58 +0200 Subject: [PATCH 25/36] Update output parameter name for value_split functions --- builder/build_pymeos_functions.py | 4 ++-- builder/meos.h | 2 +- pymeos_cffi/functions.py | 18 ++++++++---------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index 98287b1..20642e0 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -107,9 +107,9 @@ def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: output_parameters = { ("temporal_time_split", "time_bins"), ("temporal_time_split", "count"), - ("tint_value_split", "value_bins"), + ("tint_value_split", "bins"), ("tint_value_split", "count"), - ("tfloat_value_split", "value_bins"), + ("tfloat_value_split", "bins"), ("tfloat_value_split", "count"), ("tint_value_time_split", "value_bins"), ("tint_value_time_split", "time_bins"), diff --git a/builder/meos.h b/builder/meos.h index d5f0f8d..ac238bc 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -1547,7 +1547,7 @@ extern TBox *tfloatbox_value_time_tiles(const TBox *box, double vsize, const Int extern TBox *tint_time_boxes(const Temporal *temp, const Interval *duration, TimestampTz torigin, int *count); extern Span *tint_value_bins(const Temporal *temp, int vsize, int vorigin, int *count); extern TBox *tint_value_boxes(const Temporal *temp, int vsize, int vorigin, int *count); -extern Temporal **tint_value_split(const Temporal *temp, int vsize, int vorigin, int **value_bins, int *count); +extern Temporal **tint_value_split(const Temporal *temp, int vsize, int vorigin, int **bins, int *count); extern TBox *tint_value_time_boxes(const Temporal *temp, int vsize, const Interval *duration, int vorigin, TimestampTz torigin, int *count); extern Temporal **tint_value_time_split(const Temporal *temp, int size, const Interval *duration, int vorigin, TimestampTz torigin, int **value_bins, TimestampTz **time_bins, int *count); extern TBox *tintbox_time_tiles(const TBox *box, const Interval *duration, TimestampTz torigin, int *count); diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 43b0640..5fdbc80 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -10094,16 +10094,14 @@ def tfloat_value_boxes( def tfloat_value_split( - temp: "const Temporal *", size: float, origin: float, bins: "double **" -) -> "Tuple['Temporal **', 'int']": + temp: "const Temporal *", size: float, origin: float +) -> "Tuple['Temporal **', 'double *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - bins_converted = [_ffi.cast("double *", x) for x in bins] + bins = _ffi.new("double **") count = _ffi.new("int *") - result = _lib.tfloat_value_split( - temp_converted, size, origin, bins_converted, count - ) + result = _lib.tfloat_value_split(temp_converted, size, origin, bins, count) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None, bins[0], count[0] def tfloat_value_time_boxes( @@ -10238,11 +10236,11 @@ def tint_value_split( temp: "const Temporal *", vsize: int, vorigin: int ) -> "Tuple['Temporal **', 'int *', 'int']": temp_converted = _ffi.cast("const Temporal *", temp) - value_bins = _ffi.new("int **") + bins = _ffi.new("int **") count = _ffi.new("int *") - result = _lib.tint_value_split(temp_converted, vsize, vorigin, value_bins, count) + result = _lib.tint_value_split(temp_converted, vsize, vorigin, bins, count) _check_error() - return result if result != _ffi.NULL else None, value_bins[0], count[0] + return result if result != _ffi.NULL else None, bins[0], count[0] def tint_value_time_boxes( From 89d1c6d2d28ea3b4a7e60ad4c5cdd3ef7ca9dbe1 Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 8 Aug 2025 18:48:49 +0200 Subject: [PATCH 26/36] Add ruff as dev dependency --- dev-requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 1218dcd..cae8abc 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,5 @@ cffi python-dateutil shapely -build \ No newline at end of file +build +ruff \ No newline at end of file From 4284d8cd62f0bcc16ba4a89f85004f2a4204cc95 Mon Sep 17 00:00:00 2001 From: diviloper Date: Fri, 8 Aug 2025 19:26:12 +0200 Subject: [PATCH 27/36] Add ruff check workflow --- .github/workflows/ruff.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..981e8fd --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,26 @@ +name: Lint code with Ruff + +on: + push: + branches: [ "master", "stable-[0-9]+.[0-9]+" ] + pull_request: + branches: [ "master", "stable-[0-9]+.[0-9]+" ] + +jobs: + lint: + name: Lint code with Ruff + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install Ruff + uses: astral-sh/ruff-action@v3 + with: + args: "--version" + + - name: Check rules + run: "ruff check" + + - name: Check format + run: "ruff format --check --diff" From 0cbc71dc1ab2dc262019dd2fd4285671f11483d8 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 15:03:31 +0200 Subject: [PATCH 28/36] Update comments in build workflow --- .github/workflows/build_pymeos_cffi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index d86c2b6..df05246 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -68,7 +68,7 @@ jobs: is_rc=${{ steps.check_rc.outputs.is_rc }} if [ "$is_alpha" == "true" ] || [ "$is_beta" == "true" ] || [ "$is_rc" == "true" ]; then - echo "Releasing an prerelease version." + echo "Releasing a prerelease version." echo "is_prerelease=true" >> "$GITHUB_OUTPUT" else echo "is_prerelease=false" >> "$GITHUB_OUTPUT" @@ -211,7 +211,7 @@ jobs: export PACKAGE_DATA=1 python -m cibuildwheel --output-dir wheelhouse env: - # Disable builds on musllinux + # Disable builds on musllinux and python 3.14 CIBW_SKIP: "*musllinux* cp314*" # Disable builds in linux architectures other than x86_64 CIBW_ARCHS_LINUX: "x86_64" From 0d45d6858c2ef4579f90ef45434a3086318f7801 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 18:26:58 +0200 Subject: [PATCH 29/36] Add ruff config --- ruff.toml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ruff.toml diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..f7de3e9 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,32 @@ +line-length = 120 +indent-width = 4 + +target-version = "py310" + +[format] +quote-style = "double" +indent-style = "space" +line-ending = "auto" + +[lint] +select = [ + # pycodestyle + "E", "W", + # Pyflakes + "F", + # pyupgrade + "UP", + # flake8-bugbear + "B", + # flake8-simplify + "SIM", + # isort + "I", +] +ignore = [ + "F405", "F403", # Allow star imports + "F722", # Ignore syntax errors in forward annotations to allow for MEOS types + "E741", # Ignore ambiguous variable names +] +[lint.per-file-ignores] +"builder/templates/functions.py" = ["F821", "F401"] # Allow undefined and unused names in the function file template \ No newline at end of file From 7f9f152eae0a088a24c791cc505275664269905d Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 18:27:17 +0200 Subject: [PATCH 30/36] Format properly and update to modern typing (python 3.10) --- builder/build_header.py | 17 +- builder/build_pymeos.py | 2 +- builder/build_pymeos_functions.py | 130 +- builder/build_pymeos_functions_modifiers.py | 42 +- builder/objects.py | 57 +- builder/templates/functions.py | 55 +- builder/templates/init.py | 2 +- pymeos_cffi/__init__.py | 2 +- pymeos_cffi/enums.py | 3 +- pymeos_cffi/errors.py | 2 + pymeos_cffi/functions.py | 8033 +++++++++++-------- setup.py | 11 +- 12 files changed, 4590 insertions(+), 3766 deletions(-) diff --git a/builder/build_header.py b/builder/build_header.py index 4953c39..e7c612a 100644 --- a/builder/build_header.py +++ b/builder/build_header.py @@ -3,7 +3,6 @@ import re import subprocess import sys -from typing import Set, Tuple, Match header_files = [ "meos.h", @@ -29,9 +28,7 @@ def remove_undefined_functions(content, so_path): def remove_if_not_defined(m): function = m.group(0).split("(")[0].strip().split(" ")[-1].strip("*") - if function in defined or ( - sys.platform == "darwin" and ("_" + function) in defined - ): + if function in defined or (sys.platform == "darwin" and ("_" + function) in defined): for t in undefined_types: if t in m.group(0): print(f"Removing function due to undefined type {t}: {function}") @@ -50,10 +47,8 @@ def remove_if_not_defined(m): return content -def remove_repeated_functions( - content: str, seen_functions: set -) -> Tuple[str, Set[str]]: - def remove_if_repeated(m: Match): +def remove_repeated_functions(content: str, seen_functions: set) -> tuple[str, set[str]]: + def remove_if_repeated(m: re.Match): function = m.group("function") if function in seen_functions: print(f"Removing repeated function: {function}") @@ -99,7 +94,7 @@ def build_header_file(include_dir, so_path=None, destination_path="builder/meos. functions = set() for file_name in header_files: file_path = os.path.join(include_dir, file_name) - with open(file_path, "r") as f: + with open(file_path) as f: content = f.read() # Remove comments content = re.sub(r"//.*", "", content) @@ -113,9 +108,7 @@ def build_header_file(include_dir, so_path=None, destination_path="builder/meos. content, flags=re.RegexFlag.MULTILINE, ) - content = re.sub( - r"//#ifdef.*?//#endif", "", content, flags=re.RegexFlag.DOTALL - ) + content = re.sub(r"//#ifdef.*?//#endif", "", content, flags=re.RegexFlag.DOTALL) content = content.replace("//#endif", "") content = re.sub(r"//# *\w+ +([\w,()]+) *((?:\\\n|.)*?)\n", "", content) diff --git a/builder/build_pymeos.py b/builder/build_pymeos.py index 38a7ea2..ba96f78 100644 --- a/builder/build_pymeos.py +++ b/builder/build_pymeos.py @@ -13,7 +13,7 @@ ffibuilder = FFI() -with open(os.path.join(os.path.dirname(__file__), "meos.h"), "r") as f: +with open(os.path.join(os.path.dirname(__file__), "meos.h")) as f: content = f.read() ffibuilder.cdef(content) diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index 20642e0..a7b1c2d 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -1,9 +1,8 @@ import os.path import sys -from typing import List from build_pymeos_functions_modifiers import * -from objects import conversion_map, Conversion +from objects import Conversion, conversion_map class Parameter: @@ -13,7 +12,7 @@ def __init__( converted_name: str, ctype: str, ptype: str, - cp_conversion: Optional[str], + cp_conversion: str | None, ) -> None: super().__init__() self.name = name @@ -23,9 +22,7 @@ def __init__( self.cp_conversion = cp_conversion def is_interoperable(self): - return any( - self.ctype.startswith(x) for x in ["int", "bool", "double", "TimestampTz"] - ) + return any(self.ctype.startswith(x) for x in ["int", "bool", "double", "TimestampTz"]) def get_ptype_without_pointers(self): if self.is_interoperable(): @@ -34,14 +31,11 @@ def get_ptype_without_pointers(self): return self.ptype def __str__(self) -> str: - return ( - f"{self.name=}, {self.converted_name=}, {self.ctype=}, {self.ptype=}, " - f"{self.cp_conversion=}" - ) + return f"{self.name=}, {self.converted_name=}, {self.ctype=}, {self.ptype=}, {self.cp_conversion=}" class ReturnType: - def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: + def __init__(self, ctype: str, ptype: str, conversion: str | None) -> None: super().__init__() self.ctype = ctype self.return_type = ptype @@ -90,6 +84,7 @@ def __init__(self, ctype: str, ptype: str, conversion: Optional[str]) -> None: "textset_make": textset_make_modifier, "geoset_make": array_length_remover_modifier("values", "count"), "tsequenceset_make_gaps": array_length_remover_modifier("instants", "count"), + "mi_span_span": mi_span_span_modifier, } # List of result function parameters in tuples of (function, parameter) @@ -207,25 +202,19 @@ def is_output_parameter(function: str, parameter: Parameter) -> bool: return (function, parameter.name) in output_parameters -def check_modifiers(functions: List[str]) -> None: - for func in function_modifiers.keys(): +def check_modifiers(functions: list[str]) -> None: + for func in function_modifiers: if func not in functions: print(f"Modifier defined for non-existent function {func}") for func, param in result_parameters: if func not in functions: - print( - f"Result parameter defined for non-existent function {func} ({param})" - ) + print(f"Result parameter defined for non-existent function {func} ({param})") for func, param in output_parameters: if func not in functions: - print( - f"Output parameter defined for non-existent function {func} ({param})" - ) + print(f"Output parameter defined for non-existent function {func} ({param})") for func, param in nullable_parameters: if func not in functions: - print( - f"Nullable Parameter defined for non-existent function {func} ({param})" - ) + print(f"Nullable Parameter defined for non-existent function {func} ({param})") def remove_c_comments(code: str) -> str: @@ -284,7 +273,7 @@ def build_pymeos_functions(header_path="builder/meos.h"): file.write("\n\n\n") functions = [] - with open(functions_path, "r") as funcs: + with open(functions_path) as funcs: content = funcs.read() matches = list(re.finditer(r"def (\w+)\(", content)) function_text = "" @@ -301,27 +290,21 @@ def build_pymeos_functions(header_path="builder/meos.h"): check_modifiers(functions) -def get_params(function: str, inner_params: str) -> List[Parameter]: +def get_params(function: str, inner_params: str) -> list[Parameter]: if not inner_params: return [] - return [ - p - for p in ( - get_param(function, param.strip()) for param in inner_params.split(",") - ) - if p is not None - ] + return [p for p in (get_param(function, param.strip()) for param in inner_params.split(",")) if p is not None] -# Creates Parameter object from a function parameter -def get_param(function: str, inner_param: str) -> Optional[Parameter]: +# Creates a Parameter object from a function parameter +def get_param(function: str, inner_param: str) -> Parameter | None: # Split param name and type split = inner_param.split(" ") - # Type is everything except last word + # Type is everything except the last word param_type = " ".join(split[:-1]) - # Check if parameter is pointer and fix type and name accordingly + # Check if the parameter is a pointer and fix type and name accordingly param_name = split[-1].lstrip("*") pointer_level = len(split[-1]) - len(param_name) if pointer_level > 0: @@ -342,8 +325,7 @@ def get_param(function: str, inner_param: str) -> Optional[Parameter]: # Check if parameter is nullable nullable = is_nullable_parameter(function, param_name) - # If no conversion is needed between c and python types, use parameter name also as - # converted name + # If no conversion is needed from Python to C, use the parameter name also as converted name if conversion.p_to_c is None: # If nullable, add null check if nullable: @@ -351,21 +333,19 @@ def get_param(function: str, inner_param: str) -> Optional[Parameter]: param_name, f"{param_name}_converted", param_type, - f"'Optional[{conversion.p_type}]'", - f"{param_name}_converted = {param_name} if {param_name} is " - f"not None else _ffi.NULL", + f"{conversion.p_type} | None", + f"{param_name}_converted = {param_name} if {param_name} is not None else _ffi.NULL", ) return Parameter(param_name, param_name, param_type, conversion.p_type, None) - # If a conversion is needed, create new name and add the conversion + # If a conversion is needed, create a new name and add the conversion if nullable: return Parameter( param_name, f"{param_name}_converted", param_type, - f'"Optional[{conversion.p_type}]"', - f"{param_name}_converted = {conversion.p_to_c(param_name)} " - f"if {param_name} is not None else _ffi.NULL", + f"{conversion.p_type} | None", + f"{param_name}_converted = {conversion.p_to_c(param_name)} if {param_name} is not None else _ffi.NULL", ) return Parameter( param_name, @@ -378,16 +358,16 @@ def get_param(function: str, inner_param: str) -> Optional[Parameter]: # Returns a conversion for a type def get_param_conversion(param_type: str) -> Conversion: - # Check if type is known + # Check if the type is known if param_type in conversion_map: return conversion_map[param_type] # Otherwise, create a new conversion - # If it's a double pointer, cast as array + # If it's a double pointer, cast as an array if param_type.endswith("**"): return Conversion( param_type, - f"'{param_type}'", + f"Annotated[list, '{param_type}']", lambda name: f"[_ffi.cast('{param_type[:-1]}', x) for x in {name}]", lambda name: name, ) @@ -396,7 +376,7 @@ def get_param_conversion(param_type: str) -> Conversion: else: return Conversion( param_type, - f"'{param_type}'", + f"Annotated[cdata, '{param_type}']", lambda name: f"_ffi.cast('{param_type}', {name})", lambda name: name, ) @@ -413,14 +393,12 @@ def get_return_type(inner_return_type) -> ReturnType: conversion.c_to_p("result") if conversion.c_to_p else None, ) # Otherwise, don't transform anything - return ReturnType(inner_return_type, f"'{inner_return_type}'", None) + return ReturnType(inner_return_type, "cdata", None) -def build_function_string( - function_name: str, return_type: ReturnType, parameters: List[Parameter] -) -> str: - # Check if there is a result param, i.e. output parameters that are the actual - # product of the function, instead of whatever the function returns (typically +def build_function_string(function_name: str, return_type: ReturnType, parameters: list[Parameter]) -> str: + # Check if there is a result param, i.e., output parameters that are the actual + # product of the function, instead of whatever the function returns (typically # void or bool/int indicating the success or failure of the function) result_param = None if len(parameters) > 1 and is_result_parameter(function_name, parameters[-1]): @@ -435,21 +413,15 @@ def build_function_string( out_params = [p for p in parameters if is_output_parameter(function_name, p)] # Create wrapper function parameter list - params = ", ".join( - f"{p.name}: {p.ptype}" for p in parameters if p not in out_params - ) + params = ", ".join(f"{p.name}: {p.ptype}" for p in parameters if p not in out_params) # Create necessary conversions for the parameters param_conversions = "\n ".join( - p.cp_conversion - for p in parameters - if p.cp_conversion is not None and p not in out_params + p.cp_conversion for p in parameters if p.cp_conversion is not None and p not in out_params ) # Create CFFI function parameter list - inner_params = ", ".join( - pc.name if pc in out_params else pc.converted_name for pc in parameters - ) + inner_params = ", ".join(pc.name if pc in out_params else pc.converted_name for pc in parameters) # Add result conversion if necessary result_manipulation = None @@ -459,11 +431,12 @@ def build_function_string( # Initialize the function return type to the python type unless it needs no # conversion (where the C type gives extra information while being interoperable), # or the function is void - function_return_type = ( - return_type.return_type - if return_type.conversion is not None or return_type.return_type == "None" - else f"'{return_type.ctype}'" - ) + function_return_type = f"Annotated[{return_type.return_type}, '{return_type.ctype}']" + # function_return_type = ( + # return_type.return_type + # if return_type.conversion is not None or return_type.return_type == "None" + # else f"'{return_type.ctype}'" + # ) # If there is a result param if result_param is not None: # Create the CFFI object to hold it @@ -489,18 +462,14 @@ def build_function_string( # Otherwise, just return it normally else: result_manipulation = ( - (result_manipulation or "") - + f" return {returning_object} if {returning_object}" - f"!= _ffi.NULL else None\n" - ) + result_manipulation or "" + ) + f" return {returning_object} if {returning_object}!= _ffi.NULL else None\n" # Set the return type as the Python type, removing the pointer modifier if # necessary function_return_type = result_param.get_ptype_without_pointers() # Otherwise, return the result normally (if needed) elif return_type.return_type != "None": - result_manipulation = ( - result_manipulation or "" - ) + " return result if result != _ffi.NULL else None" + result_manipulation = (result_manipulation or "") + " return result if result != _ffi.NULL else None" # For each output param for out_param in out_params: @@ -512,9 +481,9 @@ def build_function_string( # Add it to the return statement result_manipulation += f", {out_param.name}[0]" - # If there are output params, wrap function return type in a Tuple + # If there are output params, wrap the function return type in a tuple if len(out_params) > 0: - function_return_type = f'"Tuple[{function_return_type}]"' + function_return_type = f"tuple[{function_return_type}]" # Add padding to param conversions if len(param_conversions) > 0: @@ -527,10 +496,7 @@ def build_function_string( # Create common part of function string (note, name, parameters, return type and # parameter conversions). - base = ( - f"{note}def {function_name}({params}) -> {function_return_type}:\n" - f"{param_conversions}" - ) + base = f"{note}def {function_name}({params}) -> {function_return_type}:\n{param_conversions}" # If the function didn't return anything, just add the function call to the base if return_type.return_type == "None": function_string = f"{base} _lib.{function_name}({inner_params})" @@ -539,7 +505,7 @@ def build_function_string( function_string = f"{base} result = _lib.{function_name}({inner_params})" # Add error handling - function_string += f"\n _check_error()" + function_string += "\n _check_error()" # Add whatever manipulation the result needs (maybe empty) if result_manipulation is not None: diff --git a/builder/build_pymeos_functions_modifiers.py b/builder/build_pymeos_functions_modifiers.py index 7abe6e7..c68e2ac 100644 --- a/builder/build_pymeos_functions_modifiers.py +++ b/builder/build_pymeos_functions_modifiers.py @@ -1,26 +1,20 @@ import re -from typing import Callable, Optional +from collections.abc import Callable -def array_length_remover_modifier( - list_name: str, length_param_name: str = "count" -) -> Callable[[str], str]: +def array_length_remover_modifier(list_name: str, length_param_name: str = "count") -> Callable[[str], str]: return lambda function: function.replace(f", {length_param_name}: int", "").replace( f", {length_param_name}", f", len({list_name})" ) -def array_parameter_modifier( - list_name: str, length_param_name: Optional[str] = None -) -> Callable[[str], str]: +def array_parameter_modifier(list_name: str, length_param_name: str | None = None) -> Callable[[str], str]: def custom_array_modifier(function: str) -> str: - type_regex = list_name + r": '([\w \*]+)'" + type_regex = list_name + r": Annotated\[(?:(?:cdata)|(?:list)), '([\w \*]+)'\]" match = next(re.finditer(type_regex, function)) whole_type = match.group(1) base_type = " ".join(whole_type.split(" ")[:-1]) - function = function.replace( - match.group(0), f"{list_name}: 'List[{base_type}]'" - ).replace( + function = function.replace(match.group(0), f"{list_name}: 'list[{base_type}]'").replace( f"_ffi.cast('{whole_type}', {list_name})", f"_ffi.new('{base_type} []', {list_name})", ) @@ -36,30 +30,30 @@ def custom_array_modifier(function: str) -> str: def textset_make_modifier(function: str) -> str: function = array_parameter_modifier("values", "count")(function) return function.replace("_ffi.cast('const text *', x)", "cstring2text(x)").replace( - "'List[const text]'", "List[str]" + "'list[const text]'", "list[str]" ) def meos_initialize_modifier(_: str) -> str: - return """def meos_initialize(tz_str: "Optional[str]") -> None: + return """def meos_initialize(tz_str: str | None) -> None: if "PROJ_DATA" not in os.environ and "PROJ_LIB" not in os.environ: proj_dir = os.path.join(os.path.dirname(__file__), "proj_data") if os.path.exists(proj_dir): # Assume we are in a wheel and the PROJ data is in the package os.environ["PROJ_DATA"] = proj_dir os.environ["PROJ_LIB"] = proj_dir - + _lib.meos_initialize() - + # Check if local spatial ref system csv exists (meaning wheel installation). If it does, use it. wheel_path = os.path.join( os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv" ) if os.path.exists(wheel_path): _lib.meos_set_spatial_ref_sys_csv(wheel_path.encode("utf-8")) - + # Timezone is already initialized by meos_initialize, so we only need to set it if tz_str is provided - if tz_str is not None: + if tz_str is not None: _lib.meos_initialize_timezone(tz_str.encode('utf-8')) _lib.meos_initialize_error_handler(_lib.py_error_handler)""" @@ -92,9 +86,7 @@ def from_wkb_modifier(function: str, return_type: str) -> Callable[[str], str]: def as_wkb_modifier(function: str) -> str: - return function.replace( - "-> \"Tuple['uint8_t *', 'size_t *']\":", "-> bytes:" - ).replace( + return function.replace("-> \"Tuple['uint8_t *', 'size_t *']\":", "-> bytes:").replace( "return result if result != _ffi.NULL else None, size_out[0]", "result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None\n" " return result_converted", @@ -103,7 +95,7 @@ def as_wkb_modifier(function: str) -> str: def tstzset_make_modifier(function: str) -> str: return ( - function.replace("values: int", "values: List[int]") + function.replace("values: int", "values: list[int]") .replace(", count: int", "") .replace( "values_converted = _ffi.cast('const TimestampTz *', values)", @@ -115,7 +107,13 @@ def tstzset_make_modifier(function: str) -> str: def spanset_make_modifier(function: str) -> str: return ( - function.replace("spans: 'Span *', count: int", "spans: 'List[Span *]'") + function.replace("spans: Annotated[cdata, 'Span *'], count: int", "spans: list[Annotated[cdata, 'Span *']]") .replace("_ffi.cast('Span *', spans)", "_ffi.new('Span []', spans)") .replace(", count", ", len(spans)") ) + + +def mi_span_span_modifier(function: str) -> str: + return function.replace('-> Annotated[cdata, "Span *"]', '-> tuple[Annotated[cdata, "Span *"], int]').replace( + "return out_result", "return out_result, result" + ) diff --git a/builder/objects.py b/builder/objects.py index f1e966a..cc4da83 100644 --- a/builder/objects.py +++ b/builder/objects.py @@ -1,4 +1,4 @@ -from typing import Callable, Dict, Optional +from collections.abc import Callable class Conversion: @@ -6,8 +6,8 @@ def __init__( self, c_type: str, p_type: str, - p_to_c: Optional[Callable[[str], str]], - c_to_p: Optional[Callable[[str], str]], + p_to_c: Callable[[str], str] | None, + c_to_p: Callable[[str], str] | None, ) -> None: super().__init__() self.c_type = c_type @@ -16,7 +16,7 @@ def __init__( self.c_to_p = c_to_p -conversion_map: Dict[str, Conversion] = { +conversion_map: dict[str, Conversion] = { "void": Conversion("void", "None", None, None), "bool": Conversion("bool", "bool", None, None), "double": Conversion("double", "float", None, None), @@ -57,39 +57,18 @@ def __init__( lambda c_obj: f"text2cstring({c_obj})", ), "int": Conversion("int", "int", None, None), - "int8": Conversion( - "int8", "int", lambda p_obj: f"_ffi.cast('int8', {p_obj})", None - ), - "int16": Conversion( - "int16", "int", lambda p_obj: f"_ffi.cast('int16', {p_obj})", None - ), - "int32": Conversion( - "int32", "int", lambda p_obj: f"_ffi.cast('int32', {p_obj})", None - ), - "int64": Conversion( - "int64", "int", lambda p_obj: f"_ffi.cast('int64', {p_obj})", None - ), - "uint8": Conversion( - "uint8", "int", lambda p_obj: f"_ffi.cast('uint8', {p_obj})", None - ), - "uint16": Conversion( - "uint16", "int", lambda p_obj: f"_ffi.cast('uint16', {p_obj})", None - ), - "uint32": Conversion( - "uint32", "int", lambda p_obj: f"_ffi.cast('uint32', {p_obj})", None - ), - "uint64": Conversion( - "uint64", "int", lambda p_obj: f"_ffi.cast('uint64', {p_obj})", None - ), - "uint8_t": Conversion( - "uint8_t", "int", lambda p_obj: f"_ffi.cast('uint8_t', {p_obj})", None - ), - "Timestamp": Conversion( - "Timestamp", "int", lambda p_obj: f"_ffi.cast('Timestamp', {p_obj})", None - ), - "TimestampTz": Conversion( - "TimestampTz", "int", lambda p_obj: f"_ffi.cast('TimestampTz', {p_obj})", None - ), + "int8": Conversion("int8", "int", lambda p_obj: f"_ffi.cast('int8', {p_obj})", None), + "int16": Conversion("int16", "int", lambda p_obj: f"_ffi.cast('int16', {p_obj})", None), + "int32": Conversion("int32", "int", lambda p_obj: f"_ffi.cast('int32', {p_obj})", None), + "int64": Conversion("int64", "int", lambda p_obj: f"_ffi.cast('int64', {p_obj})", None), + "uint8": Conversion("uint8", "int", lambda p_obj: f"_ffi.cast('uint8', {p_obj})", None), + "uint16": Conversion("uint16", "int", lambda p_obj: f"_ffi.cast('uint16', {p_obj})", None), + "uint32": Conversion("uint32", "int", lambda p_obj: f"_ffi.cast('uint32', {p_obj})", None), + "uint64": Conversion("uint64", "int", lambda p_obj: f"_ffi.cast('uint64', {p_obj})", None), + "uint8_t": Conversion("uint8_t", "int", lambda p_obj: f"_ffi.cast('uint8_t', {p_obj})", None), + "DateADT": Conversion("DateADT", "int", lambda p_obj: f"_ffi.cast('DateADT', {p_obj})", None), + "Timestamp": Conversion("Timestamp", "int", lambda p_obj: f"_ffi.cast('Timestamp', {p_obj})", None), + "TimestampTz": Conversion("TimestampTz", "int", lambda p_obj: f"_ffi.cast('TimestampTz', {p_obj})", None), "TimestampTz *": Conversion( "TimestampTz *", "int", @@ -108,8 +87,6 @@ def __init__( lambda p_obj: f"_ffi.cast('const TimestampTz *', {p_obj})", None, ), - "TimeOffset": Conversion( - "TimeOffset", "int", lambda p_obj: f"_ffi.cast('TimeOffset', {p_obj})", None - ), + "TimeOffset": Conversion("TimeOffset", "int", lambda p_obj: f"_ffi.cast('TimeOffset', {p_obj})", None), "interpType": Conversion("interpType", "InterpolationType", None, None), } diff --git a/builder/templates/functions.py b/builder/templates/functions.py index 894e363..9082a78 100644 --- a/builder/templates/functions.py +++ b/builder/templates/functions.py @@ -1,14 +1,13 @@ import logging import os -import time - -from datetime import datetime, timedelta, date -from typing import Any, Tuple, Optional, List +from datetime import date, datetime, timedelta +from typing import Annotated, Any import _meos_cffi import shapely.geometry as spg +from cffi import cdata from dateutil.parser import parse -from shapely import wkt, get_srid, set_srid +from shapely import get_srid, set_srid, wkt from shapely.geometry.base import BaseGeometry from .enums import InterpolationType @@ -17,9 +16,9 @@ _ffi = _meos_cffi.ffi _lib = _meos_cffi.lib -_error: Optional[int] = None -_error_level: Optional[int] = None -_error_message: Optional[str] = None +_error: int | None = None +_error_level: int | None = None +_error_message: str | None = None logger = logging.getLogger("pymeos_cffi") @@ -42,34 +41,30 @@ def py_error_handler(error_level, error_code, error_msg): _error = error_code _error_level = error_level _error_message = _ffi.string(error_msg).decode("utf-8") - logger.debug( - f"ERROR Handler called: Level: {_error} | Code: {_error_level} | Message: {_error_message}" - ) + logger.debug(f"ERROR Handler called: Level: {_error} | Code: {_error_level} | Message: {_error_message}") -def create_pointer(object: "Any", type: str) -> "Any *": +def create_pointer(object: "Any", type: str) -> Annotated[cdata, "Any *"]: return _ffi.new(f"{type} *", object) -def get_address(value: "Any") -> "Any *": +def get_address(value: "Any") -> Annotated[cdata, "Any *"]: return _ffi.addressof(value) -def datetime_to_timestamptz(dt: datetime) -> "TimestampTz": - return _lib.pg_timestamptz_in( - dt.strftime("%Y-%m-%d %H:%M:%S%z").encode("utf-8"), -1 - ) +def datetime_to_timestamptz(dt: datetime) -> Annotated[int, "TimestampTz"]: + return _lib.pg_timestamptz_in(dt.strftime("%Y-%m-%d %H:%M:%S%z").encode("utf-8"), -1) -def timestamptz_to_datetime(ts: "TimestampTz") -> datetime: +def timestamptz_to_datetime(ts: Annotated[int, "TimestampTz"]) -> datetime: return parse(pg_timestamptz_out(ts)) -def date_to_date_adt(dt: date) -> "DateADT": +def date_to_date_adt(dt: date) -> Annotated[int, "DateADT"]: return _lib.pg_date_in(dt.strftime("%Y-%m-%d").encode("utf-8")) -def date_adt_to_date(ts: "DateADT") -> date: +def date_adt_to_date(ts: Annotated[int, "DateADT"]) -> date: return parse(pg_date_out(ts)).date() @@ -85,14 +80,14 @@ def interval_to_timedelta(interval: Any) -> timedelta: return timedelta(days=interval.day, microseconds=interval.time) -def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> "GSERIALIZED *": +def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> Annotated[cdata, "GSERIALIZED *"]: if geodetic: return geography_to_gserialized(geom) else: return geometry_to_gserialized(geom) -def geometry_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": +def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -100,7 +95,7 @@ def geometry_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": return gs -def geography_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": +def geography_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -108,9 +103,7 @@ def geography_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": return gs -def gserialized_to_shapely_point( - geom: "const GSERIALIZED *", precision: int = 15 -) -> spg.Point: +def gserialized_to_shapely_point(geom: "const GSERIALIZED *", precision: int = 15) -> spg.Point: text = geo_as_text(geom, precision) geometry = wkt.loads(text) srid = geo_srid(geom) @@ -119,9 +112,7 @@ def gserialized_to_shapely_point( return geometry -def gserialized_to_shapely_geometry( - geom: "const GSERIALIZED *", precision: int = 15 -) -> BaseGeometry: +def gserialized_to_shapely_geometry(geom: "const GSERIALIZED *", precision: int = 15) -> BaseGeometry: text = geo_as_text(geom, precision) geometry = wkt.loads(text) srid = geo_srid(geom) @@ -130,15 +121,15 @@ def gserialized_to_shapely_geometry( return geometry -def as_tinstant(temporal: "Temporal *") -> "TInstant *": +def as_tinstant(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TInstant *"]: return _ffi.cast("TInstant *", temporal) -def as_tsequence(temporal: "Temporal *") -> "TSequence *": +def as_tsequence(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequence *"]: return _ffi.cast("TSequence *", temporal) -def as_tsequenceset(temporal: "Temporal *") -> "TSequenceSet *": +def as_tsequenceset(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequenceSet *"]: return _ffi.cast("TSequenceSet *", temporal) diff --git a/builder/templates/init.py b/builder/templates/init.py index e355c41..e44b1c9 100644 --- a/builder/templates/init.py +++ b/builder/templates/init.py @@ -1,6 +1,6 @@ -from .functions import * from .enums import * from .errors import * +from .functions import * __version__ = "1.3.0a1" __all__ = [ diff --git a/pymeos_cffi/__init__.py b/pymeos_cffi/__init__.py index 0d0a237..61df1c6 100644 --- a/pymeos_cffi/__init__.py +++ b/pymeos_cffi/__init__.py @@ -1,6 +1,6 @@ -from .functions import * from .enums import * from .errors import * +from .functions import * __version__ = "1.3.0a1" __all__ = [ diff --git a/pymeos_cffi/enums.py b/pymeos_cffi/enums.py index 18b2903..94c8d65 100644 --- a/pymeos_cffi/enums.py +++ b/pymeos_cffi/enums.py @@ -1,6 +1,7 @@ -from _meos_cffi import lib as _lib from enum import IntEnum +from _meos_cffi import lib as _lib + class MeosType(IntEnum): T_UNKNOWN = _lib.T_UNKNOWN diff --git a/pymeos_cffi/errors.py b/pymeos_cffi/errors.py index b003c6d..1830472 100644 --- a/pymeos_cffi/errors.py +++ b/pymeos_cffi/errors.py @@ -1,5 +1,7 @@ import logging + from _meos_cffi import lib as _lib + from .enums import ErrorLevel logger = logging.getLogger("pymeos_cffi") diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 5fdbc80..981b157 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -1,14 +1,13 @@ import logging import os -import time - -from datetime import datetime, timedelta, date -from typing import Any, Tuple, Optional, List +from datetime import date, datetime, timedelta +from typing import Annotated, Any import _meos_cffi import shapely.geometry as spg +from cffi import cdata from dateutil.parser import parse -from shapely import wkt, get_srid, set_srid +from shapely import get_srid, set_srid, wkt from shapely.geometry.base import BaseGeometry from .enums import InterpolationType @@ -17,9 +16,9 @@ _ffi = _meos_cffi.ffi _lib = _meos_cffi.lib -_error: Optional[int] = None -_error_level: Optional[int] = None -_error_message: Optional[str] = None +_error: int | None = None +_error_level: int | None = None +_error_message: str | None = None logger = logging.getLogger("pymeos_cffi") @@ -42,34 +41,30 @@ def py_error_handler(error_level, error_code, error_msg): _error = error_code _error_level = error_level _error_message = _ffi.string(error_msg).decode("utf-8") - logger.debug( - f"ERROR Handler called: Level: {_error} | Code: {_error_level} | Message: {_error_message}" - ) + logger.debug(f"ERROR Handler called: Level: {_error} | Code: {_error_level} | Message: {_error_message}") -def create_pointer(object: "Any", type: str) -> "Any *": +def create_pointer(object: "Any", type: str) -> Annotated[cdata, "Any *"]: return _ffi.new(f"{type} *", object) -def get_address(value: "Any") -> "Any *": +def get_address(value: "Any") -> Annotated[cdata, "Any *"]: return _ffi.addressof(value) -def datetime_to_timestamptz(dt: datetime) -> "TimestampTz": - return _lib.pg_timestamptz_in( - dt.strftime("%Y-%m-%d %H:%M:%S%z").encode("utf-8"), -1 - ) +def datetime_to_timestamptz(dt: datetime) -> Annotated[int, "TimestampTz"]: + return _lib.pg_timestamptz_in(dt.strftime("%Y-%m-%d %H:%M:%S%z").encode("utf-8"), -1) -def timestamptz_to_datetime(ts: "TimestampTz") -> datetime: +def timestamptz_to_datetime(ts: Annotated[int, "TimestampTz"]) -> datetime: return parse(pg_timestamptz_out(ts)) -def date_to_date_adt(dt: date) -> "DateADT": +def date_to_date_adt(dt: date) -> Annotated[int, "DateADT"]: return _lib.pg_date_in(dt.strftime("%Y-%m-%d").encode("utf-8")) -def date_adt_to_date(ts: "DateADT") -> date: +def date_adt_to_date(ts: Annotated[int, "DateADT"]) -> date: return parse(pg_date_out(ts)).date() @@ -85,14 +80,14 @@ def interval_to_timedelta(interval: Any) -> timedelta: return timedelta(days=interval.day, microseconds=interval.time) -def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> "GSERIALIZED *": +def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> Annotated[cdata, "GSERIALIZED *"]: if geodetic: return geography_to_gserialized(geom) else: return geometry_to_gserialized(geom) -def geometry_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": +def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -100,7 +95,7 @@ def geometry_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": return gs -def geography_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": +def geography_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -108,9 +103,7 @@ def geography_to_gserialized(geom: BaseGeometry) -> "GSERIALIZED *": return gs -def gserialized_to_shapely_point( - geom: "const GSERIALIZED *", precision: int = 15 -) -> spg.Point: +def gserialized_to_shapely_point(geom: "const GSERIALIZED *", precision: int = 15) -> spg.Point: text = geo_as_text(geom, precision) geometry = wkt.loads(text) srid = geo_srid(geom) @@ -119,9 +112,7 @@ def gserialized_to_shapely_point( return geometry -def gserialized_to_shapely_geometry( - geom: "const GSERIALIZED *", precision: int = 15 -) -> BaseGeometry: +def gserialized_to_shapely_geometry(geom: "const GSERIALIZED *", precision: int = 15) -> BaseGeometry: text = geo_as_text(geom, precision) geometry = wkt.loads(text) srid = geo_srid(geom) @@ -130,29 +121,29 @@ def gserialized_to_shapely_geometry( return geometry -def as_tinstant(temporal: "Temporal *") -> "TInstant *": +def as_tinstant(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TInstant *"]: return _ffi.cast("TInstant *", temporal) -def as_tsequence(temporal: "Temporal *") -> "TSequence *": +def as_tsequence(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequence *"]: return _ffi.cast("TSequence *", temporal) -def as_tsequenceset(temporal: "Temporal *") -> "TSequenceSet *": +def as_tsequenceset(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequenceSet *"]: return _ffi.cast("TSequenceSet *", temporal) # ----------------------------------------------------------------------------- # ----------------------End of manually-defined functions---------------------- # ----------------------------------------------------------------------------- -def date_in(string: str) -> "DateADT": +def date_in(string: str) -> Annotated[int, "DateADT"]: string_converted = string.encode("utf-8") result = _lib.date_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def date_out(d: "DateADT") -> str: +def date_out(d: int) -> Annotated[str, "char *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_out(d_converted) _check_error() @@ -160,7 +151,9 @@ def date_out(d: "DateADT") -> str: return result if result != _ffi.NULL else None -def interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": +def interval_cmp( + interv1: Annotated[cdata, "const Interval *"], interv2: Annotated[cdata, "const Interval *"] +) -> Annotated[int, "int"]: interv1_converted = _ffi.cast("const Interval *", interv1) interv2_converted = _ffi.cast("const Interval *", interv2) result = _lib.interval_cmp(interv1_converted, interv2_converted) @@ -168,7 +161,7 @@ def interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "i return result if result != _ffi.NULL else None -def interval_in(string: str, typmod: int) -> "Interval *": +def interval_in(string: str, typmod: int) -> Annotated[cdata, "Interval *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.interval_in(string_converted, typmod_converted) @@ -176,7 +169,7 @@ def interval_in(string: str, typmod: int) -> "Interval *": return result if result != _ffi.NULL else None -def interval_out(interv: "const Interval *") -> str: +def interval_out(interv: Annotated[cdata, "const Interval *"]) -> Annotated[str, "char *"]: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.interval_out(interv_converted) _check_error() @@ -184,7 +177,7 @@ def interval_out(interv: "const Interval *") -> str: return result if result != _ffi.NULL else None -def time_in(string: str, typmod: int) -> "TimeADT": +def time_in(string: str, typmod: int) -> Annotated[cdata, "TimeADT"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.time_in(string_converted, typmod_converted) @@ -192,7 +185,7 @@ def time_in(string: str, typmod: int) -> "TimeADT": return result if result != _ffi.NULL else None -def time_out(t: "TimeADT") -> str: +def time_out(t: Annotated[cdata, "TimeADT"]) -> Annotated[str, "char *"]: t_converted = _ffi.cast("TimeADT", t) result = _lib.time_out(t_converted) _check_error() @@ -200,7 +193,7 @@ def time_out(t: "TimeADT") -> str: return result if result != _ffi.NULL else None -def timestamp_in(string: str, typmod: int) -> "Timestamp": +def timestamp_in(string: str, typmod: int) -> Annotated[int, "Timestamp"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.timestamp_in(string_converted, typmod_converted) @@ -208,7 +201,7 @@ def timestamp_in(string: str, typmod: int) -> "Timestamp": return result if result != _ffi.NULL else None -def timestamp_out(t: int) -> str: +def timestamp_out(t: int) -> Annotated[str, "char *"]: t_converted = _ffi.cast("Timestamp", t) result = _lib.timestamp_out(t_converted) _check_error() @@ -216,7 +209,7 @@ def timestamp_out(t: int) -> str: return result if result != _ffi.NULL else None -def timestamptz_in(string: str, typmod: int) -> "TimestampTz": +def timestamptz_in(string: str, typmod: int) -> Annotated[int, "TimestampTz"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.timestamptz_in(string_converted, typmod_converted) @@ -224,7 +217,7 @@ def timestamptz_in(string: str, typmod: int) -> "TimestampTz": return result if result != _ffi.NULL else None -def timestamptz_out(t: int) -> str: +def timestamptz_out(t: int) -> Annotated[str, "char *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_out(t_converted) _check_error() @@ -232,41 +225,41 @@ def timestamptz_out(t: int) -> str: return result if result != _ffi.NULL else None -def meos_errno() -> "int": +def meos_errno() -> Annotated[int, "int"]: result = _lib.meos_errno() _check_error() return result if result != _ffi.NULL else None -def meos_errno_set(err: int) -> "int": +def meos_errno_set(err: int) -> Annotated[int, "int"]: result = _lib.meos_errno_set(err) _check_error() return result if result != _ffi.NULL else None -def meos_errno_restore(err: int) -> "int": +def meos_errno_restore(err: int) -> Annotated[int, "int"]: result = _lib.meos_errno_restore(err) _check_error() return result if result != _ffi.NULL else None -def meos_errno_reset() -> "int": +def meos_errno_reset() -> Annotated[int, "int"]: result = _lib.meos_errno_reset() _check_error() return result if result != _ffi.NULL else None -def meos_finalize_projsrs() -> None: +def meos_finalize_projsrs() -> Annotated[None, "void"]: _lib.meos_finalize_projsrs() _check_error() -def meos_finalize_ways() -> None: +def meos_finalize_ways() -> Annotated[None, "void"]: _lib.meos_finalize_ways() _check_error() -def meos_set_datestyle(newval: str, extra: "void *") -> "bool": +def meos_set_datestyle(newval: str, extra: Annotated[cdata, "void *"]) -> Annotated[bool, "bool"]: newval_converted = newval.encode("utf-8") extra_converted = _ffi.cast("void *", extra) result = _lib.meos_set_datestyle(newval_converted, extra_converted) @@ -274,7 +267,7 @@ def meos_set_datestyle(newval: str, extra: "void *") -> "bool": return result if result != _ffi.NULL else None -def meos_set_intervalstyle(newval: str, extra: "Optional[int]") -> "bool": +def meos_set_intervalstyle(newval: str, extra: int | None) -> Annotated[bool, "bool"]: newval_converted = newval.encode("utf-8") extra_converted = extra if extra is not None else _ffi.NULL result = _lib.meos_set_intervalstyle(newval_converted, extra_converted) @@ -282,27 +275,27 @@ def meos_set_intervalstyle(newval: str, extra: "Optional[int]") -> "bool": return result if result != _ffi.NULL else None -def meos_get_datestyle() -> str: +def meos_get_datestyle() -> Annotated[str, "char *"]: result = _lib.meos_get_datestyle() _check_error() result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def meos_get_intervalstyle() -> str: +def meos_get_intervalstyle() -> Annotated[str, "char *"]: result = _lib.meos_get_intervalstyle() _check_error() result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def meos_set_spatial_ref_sys_csv(path: "const char*") -> None: +def meos_set_spatial_ref_sys_csv(path: Annotated[cdata, "const char*"]) -> Annotated[None, "void"]: path_converted = _ffi.cast("const char*", path) _lib.meos_set_spatial_ref_sys_csv(path_converted) _check_error() -def meos_initialize(tz_str: "Optional[str]") -> None: +def meos_initialize(tz_str: str | None) -> None: if "PROJ_DATA" not in os.environ and "PROJ_LIB" not in os.environ: proj_dir = os.path.join(os.path.dirname(__file__), "proj_data") if os.path.exists(proj_dir): @@ -313,9 +306,7 @@ def meos_initialize(tz_str: "Optional[str]") -> None: _lib.meos_initialize() # Check if local spatial ref system csv exists (meaning wheel installation). If it does, use it. - wheel_path = os.path.join( - os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv" - ) + wheel_path = os.path.join(os.path.dirname(__file__), "meos_data", "spatial_ref_sys.csv") if os.path.exists(wheel_path): _lib.meos_set_spatial_ref_sys_csv(wheel_path.encode("utf-8")) @@ -325,12 +316,12 @@ def meos_initialize(tz_str: "Optional[str]") -> None: _lib.meos_initialize_error_handler(_lib.py_error_handler) -def meos_finalize() -> None: +def meos_finalize() -> Annotated[None, "void"]: _lib.meos_finalize() _check_error() -def add_date_int(d: "DateADT", days: int) -> "DateADT": +def add_date_int(d: int, days: int) -> Annotated[int, "DateADT"]: d_converted = _ffi.cast("DateADT", d) days_converted = _ffi.cast("int32", days) result = _lib.add_date_int(d_converted, days_converted) @@ -339,8 +330,8 @@ def add_date_int(d: "DateADT", days: int) -> "DateADT": def add_interval_interval( - interv1: "const Interval *", interv2: "const Interval *" -) -> "Interval *": + interv1: Annotated[cdata, "const Interval *"], interv2: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "Interval *"]: interv1_converted = _ffi.cast("const Interval *", interv1) interv2_converted = _ffi.cast("const Interval *", interv2) result = _lib.add_interval_interval(interv1_converted, interv2_converted) @@ -348,7 +339,7 @@ def add_interval_interval( return result if result != _ffi.NULL else None -def add_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": +def add_timestamptz_interval(t: int, interv: Annotated[cdata, "const Interval *"]) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.add_timestamptz_interval(t_converted, interv_converted) @@ -356,14 +347,14 @@ def add_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz return result if result != _ffi.NULL else None -def bool_in(string: str) -> "bool": +def bool_in(string: str) -> Annotated[bool, "bool"]: string_converted = string.encode("utf-8") result = _lib.bool_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bool_out(b: bool) -> str: +def bool_out(b: bool) -> Annotated[str, "char *"]: result = _lib.bool_out(b) _check_error() result = _ffi.string(result).decode("utf-8") @@ -376,39 +367,39 @@ def cstring2text(cstring: str) -> "text *": return result -def date_to_timestamp(dateVal: "DateADT") -> "Timestamp": +def date_to_timestamp(dateVal: int) -> Annotated[int, "Timestamp"]: dateVal_converted = _ffi.cast("DateADT", dateVal) result = _lib.date_to_timestamp(dateVal_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_timestamptz(d: "DateADT") -> "TimestampTz": +def date_to_timestamptz(d: int) -> Annotated[int, "TimestampTz"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_timestamptz(d_converted) _check_error() return result if result != _ffi.NULL else None -def float_exp(d: float) -> "double": +def float_exp(d: float) -> Annotated[float, "double"]: result = _lib.float_exp(d) _check_error() return result if result != _ffi.NULL else None -def float_ln(d: float) -> "double": +def float_ln(d: float) -> Annotated[float, "double"]: result = _lib.float_ln(d) _check_error() return result if result != _ffi.NULL else None -def float_log10(d: float) -> "double": +def float_log10(d: float) -> Annotated[float, "double"]: result = _lib.float_log10(d) _check_error() return result if result != _ffi.NULL else None -def float_round(d: float, maxdd: int) -> "double": +def float_round(d: float, maxdd: int) -> Annotated[float, "double"]: result = _lib.float_round(d, maxdd) _check_error() return result if result != _ffi.NULL else None @@ -416,7 +407,7 @@ def float_round(d: float, maxdd: int) -> "double": def interval_make( years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float -) -> "Interval *": +) -> Annotated[cdata, "Interval *"]: years_converted = _ffi.cast("int32", years) months_converted = _ffi.cast("int32", months) weeks_converted = _ffi.cast("int32", weeks) @@ -424,19 +415,13 @@ def interval_make( hours_converted = _ffi.cast("int32", hours) mins_converted = _ffi.cast("int32", mins) result = _lib.interval_make( - years_converted, - months_converted, - weeks_converted, - days_converted, - hours_converted, - mins_converted, - secs, + years_converted, months_converted, weeks_converted, days_converted, hours_converted, mins_converted, secs ) _check_error() return result if result != _ffi.NULL else None -def minus_date_date(d1: "DateADT", d2: "DateADT") -> "Interval *": +def minus_date_date(d1: int, d2: int) -> Annotated[cdata, "Interval *"]: d1_converted = _ffi.cast("DateADT", d1) d2_converted = _ffi.cast("DateADT", d2) result = _lib.minus_date_date(d1_converted, d2_converted) @@ -444,7 +429,7 @@ def minus_date_date(d1: "DateADT", d2: "DateADT") -> "Interval *": return result if result != _ffi.NULL else None -def minus_date_int(d: "DateADT", days: int) -> "DateADT": +def minus_date_int(d: int, days: int) -> Annotated[int, "DateADT"]: d_converted = _ffi.cast("DateADT", d) days_converted = _ffi.cast("int32", days) result = _lib.minus_date_int(d_converted, days_converted) @@ -452,7 +437,7 @@ def minus_date_int(d: "DateADT", days: int) -> "DateADT": return result if result != _ffi.NULL else None -def minus_timestamptz_interval(t: int, interv: "const Interval *") -> "TimestampTz": +def minus_timestamptz_interval(t: int, interv: Annotated[cdata, "const Interval *"]) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.minus_timestamptz_interval(t_converted, interv_converted) @@ -460,7 +445,7 @@ def minus_timestamptz_interval(t: int, interv: "const Interval *") -> "Timestamp return result if result != _ffi.NULL else None -def minus_timestamptz_timestamptz(t1: int, t2: int) -> "Interval *": +def minus_timestamptz_timestamptz(t1: int, t2: int) -> Annotated[cdata, "Interval *"]: t1_converted = _ffi.cast("TimestampTz", t1) t2_converted = _ffi.cast("TimestampTz", t2) result = _lib.minus_timestamptz_timestamptz(t1_converted, t2_converted) @@ -468,21 +453,21 @@ def minus_timestamptz_timestamptz(t1: int, t2: int) -> "Interval *": return result if result != _ffi.NULL else None -def mul_interval_double(interv: "const Interval *", factor: float) -> "Interval *": +def mul_interval_double(interv: Annotated[cdata, "const Interval *"], factor: float) -> Annotated[cdata, "Interval *"]: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.mul_interval_double(interv_converted, factor) _check_error() return result if result != _ffi.NULL else None -def pg_date_in(string: str) -> "DateADT": +def pg_date_in(string: str) -> Annotated[int, "DateADT"]: string_converted = string.encode("utf-8") result = _lib.pg_date_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def pg_date_out(d: "DateADT") -> str: +def pg_date_out(d: int) -> Annotated[str, "char *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.pg_date_out(d_converted) _check_error() @@ -490,7 +475,9 @@ def pg_date_out(d: "DateADT") -> str: return result if result != _ffi.NULL else None -def pg_interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> "int": +def pg_interval_cmp( + interv1: Annotated[cdata, "const Interval *"], interv2: Annotated[cdata, "const Interval *"] +) -> Annotated[int, "int"]: interv1_converted = _ffi.cast("const Interval *", interv1) interv2_converted = _ffi.cast("const Interval *", interv2) result = _lib.pg_interval_cmp(interv1_converted, interv2_converted) @@ -498,7 +485,7 @@ def pg_interval_cmp(interv1: "const Interval *", interv2: "const Interval *") -> return result if result != _ffi.NULL else None -def pg_interval_in(string: str, typmod: int) -> "Interval *": +def pg_interval_in(string: str, typmod: int) -> Annotated[cdata, "Interval *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_interval_in(string_converted, typmod_converted) @@ -506,7 +493,7 @@ def pg_interval_in(string: str, typmod: int) -> "Interval *": return result if result != _ffi.NULL else None -def pg_interval_out(interv: "const Interval *") -> str: +def pg_interval_out(interv: Annotated[cdata, "const Interval *"]) -> Annotated[str, "char *"]: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.pg_interval_out(interv_converted) _check_error() @@ -514,7 +501,7 @@ def pg_interval_out(interv: "const Interval *") -> str: return result if result != _ffi.NULL else None -def pg_timestamp_in(string: str, typmod: int) -> "Timestamp": +def pg_timestamp_in(string: str, typmod: int) -> Annotated[int, "Timestamp"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_timestamp_in(string_converted, typmod_converted) @@ -522,7 +509,7 @@ def pg_timestamp_in(string: str, typmod: int) -> "Timestamp": return result if result != _ffi.NULL else None -def pg_timestamp_out(t: int) -> str: +def pg_timestamp_out(t: int) -> Annotated[str, "char *"]: t_converted = _ffi.cast("Timestamp", t) result = _lib.pg_timestamp_out(t_converted) _check_error() @@ -530,7 +517,7 @@ def pg_timestamp_out(t: int) -> str: return result if result != _ffi.NULL else None -def pg_timestamptz_in(string: str, typmod: int) -> "TimestampTz": +def pg_timestamptz_in(string: str, typmod: int) -> Annotated[int, "TimestampTz"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_timestamptz_in(string_converted, typmod_converted) @@ -538,7 +525,7 @@ def pg_timestamptz_in(string: str, typmod: int) -> "TimestampTz": return result if result != _ffi.NULL else None -def pg_timestamptz_out(t: int) -> str: +def pg_timestamptz_out(t: int) -> Annotated[str, "char *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.pg_timestamptz_out(t_converted) _check_error() @@ -552,7 +539,7 @@ def text2cstring(textptr: "text *") -> str: return result -def text_cmp(txt1: str, txt2: str) -> "int": +def text_cmp(txt1: str, txt2: str) -> Annotated[int, "int"]: txt1_converted = cstring2text(txt1) txt2_converted = cstring2text(txt2) result = _lib.text_cmp(txt1_converted, txt2_converted) @@ -560,7 +547,7 @@ def text_cmp(txt1: str, txt2: str) -> "int": return result if result != _ffi.NULL else None -def text_copy(txt: str) -> str: +def text_copy(txt: str) -> Annotated[str, "text *"]: txt_converted = cstring2text(txt) result = _lib.text_copy(txt_converted) _check_error() @@ -568,7 +555,7 @@ def text_copy(txt: str) -> str: return result if result != _ffi.NULL else None -def text_initcap(txt: str) -> str: +def text_initcap(txt: str) -> Annotated[str, "text *"]: txt_converted = cstring2text(txt) result = _lib.text_initcap(txt_converted) _check_error() @@ -576,7 +563,7 @@ def text_initcap(txt: str) -> str: return result if result != _ffi.NULL else None -def text_lower(txt: str) -> str: +def text_lower(txt: str) -> Annotated[str, "text *"]: txt_converted = cstring2text(txt) result = _lib.text_lower(txt_converted) _check_error() @@ -584,7 +571,7 @@ def text_lower(txt: str) -> str: return result if result != _ffi.NULL else None -def text_out(txt: str) -> str: +def text_out(txt: str) -> Annotated[str, "char *"]: txt_converted = cstring2text(txt) result = _lib.text_out(txt_converted) _check_error() @@ -592,7 +579,7 @@ def text_out(txt: str) -> str: return result if result != _ffi.NULL else None -def text_upper(txt: str) -> str: +def text_upper(txt: str) -> Annotated[str, "text *"]: txt_converted = cstring2text(txt) result = _lib.text_upper(txt_converted) _check_error() @@ -600,7 +587,7 @@ def text_upper(txt: str) -> str: return result if result != _ffi.NULL else None -def textcat_text_text(txt1: str, txt2: str) -> str: +def textcat_text_text(txt1: str, txt2: str) -> Annotated[str, "text *"]: txt1_converted = cstring2text(txt1) txt2_converted = cstring2text(txt2) result = _lib.textcat_text_text(txt1_converted, txt2_converted) @@ -609,7 +596,7 @@ def textcat_text_text(txt1: str, txt2: str) -> str: return result if result != _ffi.NULL else None -def timestamptz_shift(t: int, interv: "const Interval *") -> "TimestampTz": +def timestamptz_shift(t: int, interv: Annotated[cdata, "const Interval *"]) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.timestamptz_shift(t_converted, interv_converted) @@ -617,28 +604,28 @@ def timestamptz_shift(t: int, interv: "const Interval *") -> "TimestampTz": return result if result != _ffi.NULL else None -def timestamp_to_date(t: int) -> "DateADT": +def timestamp_to_date(t: int) -> Annotated[int, "DateADT"]: t_converted = _ffi.cast("Timestamp", t) result = _lib.timestamp_to_date(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_date(t: int) -> "DateADT": +def timestamptz_to_date(t: int) -> Annotated[int, "DateADT"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_date(t_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_in(string: str) -> "Set *": +def bigintset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.bigintset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_out(set: "const Set *") -> str: +def bigintset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.bigintset_out(set_converted) _check_error() @@ -646,14 +633,14 @@ def bigintset_out(set: "const Set *") -> str: return result if result != _ffi.NULL else None -def bigintspan_in(string: str) -> "Span *": +def bigintspan_in(string: str) -> Annotated[cdata, "Span *"]: string_converted = string.encode("utf-8") result = _lib.bigintspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_out(s: "const Span *") -> str: +def bigintspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_out(s_converted) _check_error() @@ -661,14 +648,14 @@ def bigintspan_out(s: "const Span *") -> str: return result if result != _ffi.NULL else None -def bigintspanset_in(string: str) -> "SpanSet *": +def bigintspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.bigintspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_out(ss: "const SpanSet *") -> str: +def bigintspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_out(ss_converted) _check_error() @@ -676,14 +663,14 @@ def bigintspanset_out(ss: "const SpanSet *") -> str: return result if result != _ffi.NULL else None -def dateset_in(string: str) -> "Set *": +def dateset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.dateset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_out(s: "const Set *") -> str: +def dateset_out(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_out(s_converted) _check_error() @@ -691,14 +678,14 @@ def dateset_out(s: "const Set *") -> str: return result if result != _ffi.NULL else None -def datespan_in(string: str) -> "Span *": +def datespan_in(string: str) -> Annotated[cdata, "Span *"]: string_converted = string.encode("utf-8") result = _lib.datespan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_out(s: "const Span *") -> str: +def datespan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_out(s_converted) _check_error() @@ -706,14 +693,14 @@ def datespan_out(s: "const Span *") -> str: return result if result != _ffi.NULL else None -def datespanset_in(string: str) -> "SpanSet *": +def datespanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.datespanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_out(ss: "const SpanSet *") -> str: +def datespanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_out(ss_converted) _check_error() @@ -721,14 +708,14 @@ def datespanset_out(ss: "const SpanSet *") -> str: return result if result != _ffi.NULL else None -def floatset_in(string: str) -> "Set *": +def floatset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.floatset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_out(set: "const Set *", maxdd: int) -> str: +def floatset_out(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.floatset_out(set_converted, maxdd) _check_error() @@ -736,14 +723,14 @@ def floatset_out(set: "const Set *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def floatspan_in(string: str) -> "Span *": +def floatspan_in(string: str) -> Annotated[cdata, "Span *"]: string_converted = string.encode("utf-8") result = _lib.floatspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_out(s: "const Span *", maxdd: int) -> str: +def floatspan_out(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_out(s_converted, maxdd) _check_error() @@ -751,14 +738,14 @@ def floatspan_out(s: "const Span *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def floatspanset_in(string: str) -> "SpanSet *": +def floatspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.floatspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_out(ss: "const SpanSet *", maxdd: int) -> str: +def floatspanset_out(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_out(ss_converted, maxdd) _check_error() @@ -766,14 +753,14 @@ def floatspanset_out(ss: "const SpanSet *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def intset_in(string: str) -> "Set *": +def intset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.intset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intset_out(set: "const Set *") -> str: +def intset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.intset_out(set_converted) _check_error() @@ -781,14 +768,14 @@ def intset_out(set: "const Set *") -> str: return result if result != _ffi.NULL else None -def intspan_in(string: str) -> "Span *": +def intspan_in(string: str) -> Annotated[cdata, "Span *"]: string_converted = string.encode("utf-8") result = _lib.intspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_out(s: "const Span *") -> str: +def intspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_out(s_converted) _check_error() @@ -796,14 +783,14 @@ def intspan_out(s: "const Span *") -> str: return result if result != _ffi.NULL else None -def intspanset_in(string: str) -> "SpanSet *": +def intspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.intspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_out(ss: "const SpanSet *") -> str: +def intspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_out(ss_converted) _check_error() @@ -811,7 +798,9 @@ def intspanset_out(ss: "const SpanSet *") -> str: return result if result != _ffi.NULL else None -def set_as_hexwkb(s: "const Set *", variant: int) -> "Tuple[str, 'size_t *']": +def set_as_hexwkb( + s: Annotated[cdata, "const Set *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: s_converted = _ffi.cast("const Set *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -821,19 +810,19 @@ def set_as_hexwkb(s: "const Set *", variant: int) -> "Tuple[str, 'size_t *']": return result if result != _ffi.NULL else None, size_out[0] -def set_as_wkb(s: "const Set *", variant: int) -> bytes: +def set_as_wkb( + s: Annotated[cdata, "const Set *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: s_converted = _ffi.cast("const Set *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") result = _lib.set_as_wkb(s_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def set_from_hexwkb(hexwkb: str) -> "Set *": +def set_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Set *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.set_from_hexwkb(hexwkb_converted) _check_error() @@ -846,7 +835,9 @@ def set_from_wkb(wkb: bytes) -> "Set *": return result if result != _ffi.NULL else None -def span_as_hexwkb(s: "const Span *", variant: int) -> "Tuple[str, 'size_t *']": +def span_as_hexwkb( + s: Annotated[cdata, "const Span *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: s_converted = _ffi.cast("const Span *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -856,19 +847,19 @@ def span_as_hexwkb(s: "const Span *", variant: int) -> "Tuple[str, 'size_t *']": return result if result != _ffi.NULL else None, size_out[0] -def span_as_wkb(s: "const Span *", variant: int) -> bytes: +def span_as_wkb( + s: Annotated[cdata, "const Span *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: s_converted = _ffi.cast("const Span *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") result = _lib.span_as_wkb(s_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def span_from_hexwkb(hexwkb: str) -> "Span *": +def span_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Span *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.span_from_hexwkb(hexwkb_converted) _check_error() @@ -881,7 +872,9 @@ def span_from_wkb(wkb: bytes) -> "Span *": return result if result != _ffi.NULL else None -def spanset_as_hexwkb(ss: "const SpanSet *", variant: int) -> "Tuple[str, 'size_t *']": +def spanset_as_hexwkb( + ss: Annotated[cdata, "const SpanSet *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: ss_converted = _ffi.cast("const SpanSet *", ss) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -891,19 +884,19 @@ def spanset_as_hexwkb(ss: "const SpanSet *", variant: int) -> "Tuple[str, 'size_ return result if result != _ffi.NULL else None, size_out[0] -def spanset_as_wkb(ss: "const SpanSet *", variant: int) -> bytes: +def spanset_as_wkb( + ss: Annotated[cdata, "const SpanSet *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: ss_converted = _ffi.cast("const SpanSet *", ss) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") result = _lib.spanset_as_wkb(ss_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def spanset_from_hexwkb(hexwkb: str) -> "SpanSet *": +def spanset_from_hexwkb(hexwkb: str) -> Annotated[cdata, "SpanSet *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.spanset_from_hexwkb(hexwkb_converted) _check_error() @@ -916,14 +909,14 @@ def spanset_from_wkb(wkb: bytes) -> "SpanSet *": return result if result != _ffi.NULL else None -def textset_in(string: str) -> "Set *": +def textset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.textset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def textset_out(set: "const Set *") -> str: +def textset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.textset_out(set_converted) _check_error() @@ -931,14 +924,14 @@ def textset_out(set: "const Set *") -> str: return result if result != _ffi.NULL else None -def tstzset_in(string: str) -> "Set *": +def tstzset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.tstzset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_out(set: "const Set *") -> str: +def tstzset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.tstzset_out(set_converted) _check_error() @@ -946,14 +939,14 @@ def tstzset_out(set: "const Set *") -> str: return result if result != _ffi.NULL else None -def tstzspan_in(string: str) -> "Span *": +def tstzspan_in(string: str) -> Annotated[cdata, "Span *"]: string_converted = string.encode("utf-8") result = _lib.tstzspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_out(s: "const Span *") -> str: +def tstzspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_out(s_converted) _check_error() @@ -961,14 +954,14 @@ def tstzspan_out(s: "const Span *") -> str: return result if result != _ffi.NULL else None -def tstzspanset_in(string: str) -> "SpanSet *": +def tstzspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.tstzspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_out(ss: "const SpanSet *") -> str: +def tstzspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_out(ss_converted) _check_error() @@ -976,35 +969,29 @@ def tstzspanset_out(ss: "const SpanSet *") -> str: return result if result != _ffi.NULL else None -def bigintset_make(values: "List[const int64]") -> "Set *": +def bigintset_make(values: "list[const int64]") -> Annotated[cdata, "Set *"]: values_converted = _ffi.new("const int64 []", values) result = _lib.bigintset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def bigintspan_make( - lower: int, upper: int, lower_inc: bool, upper_inc: bool -) -> "Span *": +def bigintspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: lower_converted = _ffi.cast("int64", lower) upper_converted = _ffi.cast("int64", upper) - result = _lib.bigintspan_make( - lower_converted, upper_converted, lower_inc, upper_inc - ) + result = _lib.bigintspan_make(lower_converted, upper_converted, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def dateset_make(values: "List[const DateADT]") -> "Set *": +def dateset_make(values: "list[const DateADT]") -> Annotated[cdata, "Set *"]: values_converted = _ffi.new("const DateADT []", values) result = _lib.dateset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def datespan_make( - lower: "DateADT", upper: "DateADT", lower_inc: bool, upper_inc: bool -) -> "Span *": +def datespan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: lower_converted = _ffi.cast("DateADT", lower) upper_converted = _ffi.cast("DateADT", upper) result = _lib.datespan_make(lower_converted, upper_converted, lower_inc, upper_inc) @@ -1012,77 +999,75 @@ def datespan_make( return result if result != _ffi.NULL else None -def floatset_make(values: "List[const double]") -> "Set *": +def floatset_make(values: "list[const double]") -> Annotated[cdata, "Set *"]: values_converted = _ffi.new("const double []", values) result = _lib.floatset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def floatspan_make( - lower: float, upper: float, lower_inc: bool, upper_inc: bool -) -> "Span *": +def floatspan_make(lower: float, upper: float, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: result = _lib.floatspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def intset_make(values: "List[const int]") -> "Set *": +def intset_make(values: "list[const int]") -> Annotated[cdata, "Set *"]: values_converted = _ffi.new("const int []", values) result = _lib.intset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> "Span *": +def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: result = _lib.intspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def set_copy(s: "const Set *") -> "Set *": +def set_copy(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_copy(s: "const Span *") -> "Span *": +def span_copy(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_copy(ss: "const SpanSet *") -> "SpanSet *": +def spanset_copy(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_copy(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_make(spans: "List[Span *]") -> "SpanSet *": +def spanset_make(spans: list[Annotated[cdata, "Span *"]]) -> Annotated[cdata, "SpanSet *"]: spans_converted = _ffi.new("Span []", spans) result = _lib.spanset_make(spans_converted, len(spans)) _check_error() return result if result != _ffi.NULL else None -def textset_make(values: List[str]) -> "Set *": +def textset_make(values: list[str]) -> Annotated[cdata, "Set *"]: values_converted = [cstring2text(x) for x in values] result = _lib.textset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzset_make(values: List[int]) -> "Set *": +def tstzset_make(values: list[int]) -> Annotated[cdata, "Set *"]: values_converted = [_ffi.cast("const TimestampTz", x) for x in values] result = _lib.tstzset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> "Span *": +def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: lower_converted = _ffi.cast("TimestampTz", lower) upper_converted = _ffi.cast("TimestampTz", upper) result = _lib.tstzspan_make(lower_converted, upper_converted, lower_inc, upper_inc) @@ -1090,230 +1075,230 @@ def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> " return result if result != _ffi.NULL else None -def bigint_to_set(i: int) -> "Set *": +def bigint_to_set(i: int) -> Annotated[cdata, "Set *"]: i_converted = _ffi.cast("int64", i) result = _lib.bigint_to_set(i_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_to_span(i: int) -> "Span *": +def bigint_to_span(i: int) -> Annotated[cdata, "Span *"]: result = _lib.bigint_to_span(i) _check_error() return result if result != _ffi.NULL else None -def bigint_to_spanset(i: int) -> "SpanSet *": +def bigint_to_spanset(i: int) -> Annotated[cdata, "SpanSet *"]: result = _lib.bigint_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def date_to_set(d: "DateADT") -> "Set *": +def date_to_set(d: int) -> Annotated[cdata, "Set *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_set(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_span(d: "DateADT") -> "Span *": +def date_to_span(d: int) -> Annotated[cdata, "Span *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_span(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_spanset(d: "DateADT") -> "SpanSet *": +def date_to_spanset(d: int) -> Annotated[cdata, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_spanset(d_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_to_tstzset(s: "const Set *") -> "Set *": +def dateset_to_tstzset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_to_tstzset(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_to_tstzspan(s: "const Span *") -> "Span *": +def datespan_to_tstzspan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_to_tstzspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_to_tstzspanset(ss: "const SpanSet *") -> "SpanSet *": +def datespanset_to_tstzspanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_to_tstzspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def float_to_set(d: float) -> "Set *": +def float_to_set(d: float) -> Annotated[cdata, "Set *"]: result = _lib.float_to_set(d) _check_error() return result if result != _ffi.NULL else None -def float_to_span(d: float) -> "Span *": +def float_to_span(d: float) -> Annotated[cdata, "Span *"]: result = _lib.float_to_span(d) _check_error() return result if result != _ffi.NULL else None -def float_to_spanset(d: float) -> "SpanSet *": +def float_to_spanset(d: float) -> Annotated[cdata, "SpanSet *"]: result = _lib.float_to_spanset(d) _check_error() return result if result != _ffi.NULL else None -def floatset_to_intset(s: "const Set *") -> "Set *": +def floatset_to_intset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_to_intset(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_to_intspan(s: "const Span *") -> "Span *": +def floatspan_to_intspan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_to_intspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_to_intspanset(ss: "const SpanSet *") -> "SpanSet *": +def floatspanset_to_intspanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_to_intspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def int_to_set(i: int) -> "Set *": +def int_to_set(i: int) -> Annotated[cdata, "Set *"]: result = _lib.int_to_set(i) _check_error() return result if result != _ffi.NULL else None -def int_to_span(i: int) -> "Span *": +def int_to_span(i: int) -> Annotated[cdata, "Span *"]: result = _lib.int_to_span(i) _check_error() return result if result != _ffi.NULL else None -def int_to_spanset(i: int) -> "SpanSet *": +def int_to_spanset(i: int) -> Annotated[cdata, "SpanSet *"]: result = _lib.int_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def intset_to_floatset(s: "const Set *") -> "Set *": +def intset_to_floatset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_to_floatset(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_to_floatspan(s: "const Span *") -> "Span *": +def intspan_to_floatspan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_to_floatspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_to_floatspanset(ss: "const SpanSet *") -> "SpanSet *": +def intspanset_to_floatspanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_to_floatspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_span(s: "const Set *") -> "Span *": +def set_to_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_spanset(s: "const Set *") -> "SpanSet *": +def set_to_spanset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_spanset(s: "const Span *") -> "SpanSet *": +def span_to_spanset(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def text_to_set(txt: str) -> "Set *": +def text_to_set(txt: str) -> Annotated[cdata, "Set *"]: txt_converted = cstring2text(txt) result = _lib.text_to_set(txt_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_set(t: int) -> "Set *": +def timestamptz_to_set(t: int) -> Annotated[cdata, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_set(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_span(t: int) -> "Span *": +def timestamptz_to_span(t: int) -> Annotated[cdata, "Span *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_span(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_spanset(t: int) -> "SpanSet *": +def timestamptz_to_spanset(t: int) -> Annotated[cdata, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_spanset(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_dateset(s: "const Set *") -> "Set *": +def tstzset_to_dateset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_to_dateset(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_datespan(s: "const Span *") -> "Span *": +def tstzspan_to_datespan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_to_datespan(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_datespanset(ss: "const SpanSet *") -> "SpanSet *": +def tstzspanset_to_datespanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_to_datespanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_end_value(s: "const Set *") -> "int64": +def bigintset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_start_value(s: "const Set *") -> "int64": +def bigintset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_value_n(s: "const Set *", n: int) -> "int64": +def bigintset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "int64"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("int64 *") result = _lib.bigintset_value_n(s_converted, n, out_result) @@ -1323,70 +1308,70 @@ def bigintset_value_n(s: "const Set *", n: int) -> "int64": return None -def bigintset_values(s: "const Set *") -> "int64 *": +def bigintset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int64 *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_lower(s: "const Span *") -> "int64": +def bigintspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_upper(s: "const Span *") -> "int64": +def bigintspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_width(s: "const Span *") -> "int64": +def bigintspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_lower(ss: "const SpanSet *") -> "int64": +def bigintspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_upper(ss: "const SpanSet *") -> "int64": +def bigintspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_width(ss: "const SpanSet *", boundspan: bool) -> "int64": +def bigintspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def dateset_end_value(s: "const Set *") -> "DateADT": +def dateset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_start_value(s: "const Set *") -> "DateADT": +def dateset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_value_n(s: "const Set *", n: int) -> "DateADT *": +def dateset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "DateADT *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("DateADT *") result = _lib.dateset_value_n(s_converted, n, out_result) @@ -1396,35 +1381,35 @@ def dateset_value_n(s: "const Set *", n: int) -> "DateADT *": return None -def dateset_values(s: "const Set *") -> "DateADT *": +def dateset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "DateADT *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_duration(s: "const Span *") -> "Interval *": +def datespan_duration(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Interval *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_lower(s: "const Span *") -> "DateADT": +def datespan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_upper(s: "const Span *") -> "DateADT": +def datespan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_date_n(ss: "const SpanSet *", n: int) -> "DateADT *": +def datespanset_date_n(ss: Annotated[cdata, "const SpanSet *"], n: int) -> Annotated[cdata, "DateADT *"]: ss_converted = _ffi.cast("const SpanSet *", ss) out_result = _ffi.new("DateADT *") result = _lib.datespanset_date_n(ss_converted, n, out_result) @@ -1434,56 +1419,56 @@ def datespanset_date_n(ss: "const SpanSet *", n: int) -> "DateADT *": return None -def datespanset_dates(ss: "const SpanSet *") -> "Set *": +def datespanset_dates(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Set *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_duration(ss: "const SpanSet *", boundspan: bool) -> "Interval *": +def datespanset_duration(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[cdata, "Interval *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def datespanset_end_date(ss: "const SpanSet *") -> "DateADT": +def datespanset_end_date(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "DateADT"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_end_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_num_dates(ss: "const SpanSet *") -> "int": +def datespanset_num_dates(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_num_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_start_date(ss: "const SpanSet *") -> "DateADT": +def datespanset_start_date(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "DateADT"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_start_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_end_value(s: "const Set *") -> "double": +def floatset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_start_value(s: "const Set *") -> "double": +def floatset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_value_n(s: "const Set *", n: int) -> "double": +def floatset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "double"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("double *") result = _lib.floatset_value_n(s_converted, n, out_result) @@ -1493,70 +1478,70 @@ def floatset_value_n(s: "const Set *", n: int) -> "double": return None -def floatset_values(s: "const Set *") -> "double *": +def floatset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "double *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_lower(s: "const Span *") -> "double": +def floatspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_upper(s: "const Span *") -> "double": +def floatspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_width(s: "const Span *") -> "double": +def floatspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_lower(ss: "const SpanSet *") -> "double": +def floatspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_upper(ss: "const SpanSet *") -> "double": +def floatspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_width(ss: "const SpanSet *", boundspan: bool) -> "double": +def floatspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def intset_end_value(s: "const Set *") -> "int": +def intset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_start_value(s: "const Set *") -> "int": +def intset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_value_n(s: "const Set *", n: int) -> "int": +def intset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "int"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("int *") result = _lib.intset_value_n(s_converted, n, out_result) @@ -1566,63 +1551,63 @@ def intset_value_n(s: "const Set *", n: int) -> "int": return None -def intset_values(s: "const Set *") -> "int *": +def intset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_lower(s: "const Span *") -> "int": +def intspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_upper(s: "const Span *") -> "int": +def intspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_width(s: "const Span *") -> "int": +def intspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_lower(ss: "const SpanSet *") -> "int": +def intspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_upper(ss: "const SpanSet *") -> "int": +def intspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_width(ss: "const SpanSet *", boundspan: bool) -> "int": +def intspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_hash(s: "const Set *") -> "uint32": +def set_hash(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "uint32"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_hash_extended(s: "const Set *", seed: int) -> "uint64": +def set_hash_extended(s: Annotated[cdata, "const Set *"], seed: int) -> Annotated[int, "uint64"]: s_converted = _ffi.cast("const Set *", s) seed_converted = _ffi.cast("uint64", seed) result = _lib.set_hash_extended(s_converted, seed_converted) @@ -1630,21 +1615,21 @@ def set_hash_extended(s: "const Set *", seed: int) -> "uint64": return result if result != _ffi.NULL else None -def set_num_values(s: "const Set *") -> "int": +def set_num_values(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_num_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash(s: "const Span *") -> "uint32": +def span_hash(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "uint32"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash_extended(s: "const Span *", seed: int) -> "uint64": +def span_hash_extended(s: Annotated[cdata, "const Span *"], seed: int) -> Annotated[int, "uint64"]: s_converted = _ffi.cast("const Span *", s) seed_converted = _ffi.cast("uint64", seed) result = _lib.span_hash_extended(s_converted, seed_converted) @@ -1652,35 +1637,35 @@ def span_hash_extended(s: "const Span *", seed: int) -> "uint64": return result if result != _ffi.NULL else None -def span_lower_inc(s: "const Span *") -> "bool": +def span_lower_inc(s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_lower_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_upper_inc(s: "const Span *") -> "bool": +def span_upper_inc(s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_upper_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_end_span(ss: "const SpanSet *") -> "Span *": +def spanset_end_span(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_end_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash(ss: "const SpanSet *") -> "uint32": +def spanset_hash(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "uint32"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash_extended(ss: "const SpanSet *", seed: int) -> "uint64": +def spanset_hash_extended(ss: Annotated[cdata, "const SpanSet *"], seed: int) -> Annotated[int, "uint64"]: ss_converted = _ffi.cast("const SpanSet *", ss) seed_converted = _ffi.cast("uint64", seed) result = _lib.spanset_hash_extended(ss_converted, seed_converted) @@ -1688,56 +1673,56 @@ def spanset_hash_extended(ss: "const SpanSet *", seed: int) -> "uint64": return result if result != _ffi.NULL else None -def spanset_lower_inc(ss: "const SpanSet *") -> "bool": +def spanset_lower_inc(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_lower_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_num_spans(ss: "const SpanSet *") -> "int": +def spanset_num_spans(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_num_spans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span(ss: "const SpanSet *") -> "Span *": +def spanset_span(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span_n(ss: "const SpanSet *", i: int) -> "Span *": +def spanset_span_n(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_span_n(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def spanset_spanarr(ss: "const SpanSet *") -> "Span **": +def spanset_spanarr(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span **"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_spanarr(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_start_span(ss: "const SpanSet *") -> "Span *": +def spanset_start_span(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_start_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper_inc(ss: "const SpanSet *") -> "bool": +def spanset_upper_inc(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_upper_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def textset_end_value(s: "const Set *") -> str: +def textset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "text *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_end_value(s_converted) _check_error() @@ -1745,7 +1730,7 @@ def textset_end_value(s: "const Set *") -> str: return result if result != _ffi.NULL else None -def textset_start_value(s: "const Set *") -> str: +def textset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "text *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_start_value(s_converted) _check_error() @@ -1753,7 +1738,7 @@ def textset_start_value(s: "const Set *") -> str: return result if result != _ffi.NULL else None -def textset_value_n(s: "const Set *", n: int) -> "text **": +def textset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list, "text **"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("text **") result = _lib.textset_value_n(s_converted, n, out_result) @@ -1763,28 +1748,28 @@ def textset_value_n(s: "const Set *", n: int) -> "text **": return None -def textset_values(s: "const Set *") -> "text **": +def textset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "text **"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_end_value(s: "const Set *") -> "TimestampTz": +def tstzset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_start_value(s: "const Set *") -> "TimestampTz": +def tstzset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_value_n(s: "const Set *", n: int) -> int: +def tstzset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> int: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("TimestampTz *") result = _lib.tstzset_value_n(s_converted, n, out_result) @@ -1794,77 +1779,77 @@ def tstzset_value_n(s: "const Set *", n: int) -> int: return None -def tstzset_values(s: "const Set *") -> "TimestampTz *": +def tstzset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "TimestampTz *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_duration(s: "const Span *") -> "Interval *": +def tstzspan_duration(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Interval *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_lower(s: "const Span *") -> "TimestampTz": +def tstzspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_upper(s: "const Span *") -> "TimestampTz": +def tstzspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_duration(ss: "const SpanSet *", boundspan: bool) -> "Interval *": +def tstzspanset_duration(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[cdata, "Interval *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_end_timestamptz(ss: "const SpanSet *") -> "TimestampTz": +def tstzspanset_end_timestamptz(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_lower(ss: "const SpanSet *") -> "TimestampTz": +def tstzspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_num_timestamps(ss: "const SpanSet *") -> "int": +def tstzspanset_num_timestamps(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_num_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_start_timestamptz(ss: "const SpanSet *") -> "TimestampTz": +def tstzspanset_start_timestamptz(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamps(ss: "const SpanSet *") -> "Set *": +def tstzspanset_timestamps(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Set *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: +def tstzspanset_timestamptz_n(ss: Annotated[cdata, "const SpanSet *"], n: int) -> int: ss_converted = _ffi.cast("const SpanSet *", ss) out_result = _ffi.new("TimestampTz *") result = _lib.tstzspanset_timestamptz_n(ss_converted, n, out_result) @@ -1874,7 +1859,7 @@ def tstzspanset_timestamptz_n(ss: "const SpanSet *", n: int) -> int: return None -def tstzspanset_upper(ss: "const SpanSet *") -> "TimestampTz": +def tstzspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_upper(ss_converted) _check_error() @@ -1882,47 +1867,41 @@ def tstzspanset_upper(ss: "const SpanSet *") -> "TimestampTz": def bigintset_shift_scale( - s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Set *": + s: Annotated[cdata, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) shift_converted = _ffi.cast("int64", shift) width_converted = _ffi.cast("int64", width) - result = _lib.bigintset_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.bigintset_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def bigintspan_shift_scale( - s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Span *": + s: Annotated[cdata, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) shift_converted = _ffi.cast("int64", shift) width_converted = _ffi.cast("int64", width) - result = _lib.bigintspan_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.bigintspan_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def bigintspanset_shift_scale( - ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "SpanSet *": + ss: Annotated[cdata, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) shift_converted = _ffi.cast("int64", shift) width_converted = _ffi.cast("int64", width) - result = _lib.bigintspanset_shift_scale( - ss_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.bigintspanset_shift_scale(ss_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def dateset_shift_scale( - s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Set *": + s: Annotated[cdata, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -1930,8 +1909,8 @@ def dateset_shift_scale( def datespan_shift_scale( - s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Span *": + s: Annotated[cdata, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -1939,38 +1918,36 @@ def datespan_shift_scale( def datespanset_shift_scale( - ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "SpanSet *": + ss: Annotated[cdata, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.datespanset_shift_scale( - ss_converted, shift, width, hasshift, haswidth - ) + result = _lib.datespanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatset_ceil(s: "const Set *") -> "Set *": +def floatset_ceil(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_degrees(s: "const Set *", normalize: bool) -> "Set *": +def floatset_degrees(s: Annotated[cdata, "const Set *"], normalize: bool) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatset_floor(s: "const Set *") -> "Set *": +def floatset_floor(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_radians(s: "const Set *") -> "Set *": +def floatset_radians(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_radians(s_converted) _check_error() @@ -1978,43 +1955,43 @@ def floatset_radians(s: "const Set *") -> "Set *": def floatset_shift_scale( - s: "const Set *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "Set *": + s: Annotated[cdata, "const Set *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspan_ceil(s: "const Span *") -> "Span *": +def floatspan_ceil(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_degrees(s: "const Span *", normalize: bool) -> "Span *": +def floatspan_degrees(s: Annotated[cdata, "const Span *"], normalize: bool) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspan_floor(s: "const Span *") -> "Span *": +def floatspan_floor(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_radians(s: "const Span *") -> "Span *": +def floatspan_radians(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_radians(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round(s: "const Span *", maxdd: int) -> "Span *": +def floatspan_round(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_round(s_converted, maxdd) _check_error() @@ -2022,43 +1999,43 @@ def floatspan_round(s: "const Span *", maxdd: int) -> "Span *": def floatspan_shift_scale( - s: "const Span *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "Span *": + s: Annotated[cdata, "const Span *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspanset_ceil(ss: "const SpanSet *") -> "SpanSet *": +def floatspanset_ceil(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_ceil(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_floor(ss: "const SpanSet *") -> "SpanSet *": +def floatspanset_floor(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_floor(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_degrees(ss: "const SpanSet *", normalize: bool) -> "SpanSet *": +def floatspanset_degrees(ss: Annotated[cdata, "const SpanSet *"], normalize: bool) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_degrees(ss_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspanset_radians(ss: "const SpanSet *") -> "SpanSet *": +def floatspanset_radians(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_radians(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_round(ss: "const SpanSet *", maxdd: int) -> "SpanSet *": +def floatspanset_round(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_round(ss_converted, maxdd) _check_error() @@ -2066,19 +2043,17 @@ def floatspanset_round(ss: "const SpanSet *", maxdd: int) -> "SpanSet *": def floatspanset_shift_scale( - ss: "const SpanSet *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "SpanSet *": + ss: Annotated[cdata, "const SpanSet *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.floatspanset_shift_scale( - ss_converted, shift, width, hasshift, haswidth - ) + result = _lib.floatspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def intset_shift_scale( - s: "const Set *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Set *": + s: Annotated[cdata, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -2086,8 +2061,8 @@ def intset_shift_scale( def intspan_shift_scale( - s: "const Span *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "Span *": + s: Annotated[cdata, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -2095,15 +2070,15 @@ def intspan_shift_scale( def intspanset_shift_scale( - ss: "const SpanSet *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "SpanSet *": + ss: Annotated[cdata, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": +def numspan_expand(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.numspan_expand(s_converted, value_converted) @@ -2111,7 +2086,9 @@ def numspan_expand(s: "const Span *", value: "Datum") -> "Span *": return result if result != _ffi.NULL else None -def tstzspan_expand(s: "const Span *", interv: "const Interval *") -> "Span *": +def tstzspan_expand( + s: Annotated[cdata, "const Span *"], interv: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tstzspan_expand(s_converted, interv_converted) @@ -2119,14 +2096,14 @@ def tstzspan_expand(s: "const Span *", interv: "const Interval *") -> "Span *": return result if result != _ffi.NULL else None -def set_round(s: "const Set *", maxdd: int) -> "Set *": +def set_round(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def textcat_text_textset(txt: str, s: "const Set *") -> "Set *": +def textcat_text_textset(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.textcat_text_textset(txt_converted, s_converted) @@ -2134,7 +2111,7 @@ def textcat_text_textset(txt: str, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def textcat_textset_text(s: "const Set *", txt: str) -> "Set *": +def textcat_textset_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text(s_converted, txt_converted) @@ -2142,21 +2119,21 @@ def textcat_textset_text(s: "const Set *", txt: str) -> "Set *": return result if result != _ffi.NULL else None -def textset_initcap(s: "const Set *") -> "Set *": +def textset_initcap(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_initcap(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_lower(s: "const Set *") -> "Set *": +def textset_lower(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_upper(s: "const Set *") -> "Set *": +def textset_upper(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_upper(s_converted) _check_error() @@ -2164,38 +2141,32 @@ def textset_upper(s: "const Set *") -> "Set *": def timestamptz_tprecision( - t: int, duration: "const Interval *", torigin: int -) -> "TimestampTz": + t: int, duration: Annotated[cdata, "const Interval *"], torigin: int +) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.timestamptz_tprecision( - t_converted, duration_converted, torigin_converted - ) + result = _lib.timestamptz_tprecision(t_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None def tstzset_shift_scale( - s: "const Set *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Set *": + s: Annotated[cdata, "const Set *"], + shift: Annotated[cdata, "const Interval *"] | None, + duration: Annotated[cdata, "const Interval *"] | None, +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) + shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL result = _lib.tstzset_shift_scale(s_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None def tstzset_tprecision( - s: "const Set *", duration: "const Interval *", torigin: int -) -> "Set *": + s: Annotated[cdata, "const Set *"], duration: Annotated[cdata, "const Interval *"], torigin: int +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -2205,68 +2176,54 @@ def tstzset_tprecision( def tstzspan_shift_scale( - s: "const Span *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Span *": + s: Annotated[cdata, "const Span *"], + shift: Annotated[cdata, "const Interval *"] | None, + duration: Annotated[cdata, "const Interval *"] | None, +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) + shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL result = _lib.tstzspan_shift_scale(s_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None def tstzspan_tprecision( - s: "const Span *", duration: "const Interval *", torigin: int -) -> "Span *": + s: Annotated[cdata, "const Span *"], duration: Annotated[cdata, "const Interval *"], torigin: int +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tstzspan_tprecision( - s_converted, duration_converted, torigin_converted - ) + result = _lib.tstzspan_tprecision(s_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None def tstzspanset_shift_scale( - ss: "const SpanSet *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "SpanSet *": + ss: Annotated[cdata, "const SpanSet *"], + shift: Annotated[cdata, "const Interval *"] | None, + duration: Annotated[cdata, "const Interval *"] | None, +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.tstzspanset_shift_scale( - ss_converted, shift_converted, duration_converted - ) + shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + result = _lib.tstzspanset_shift_scale(ss_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None def tstzspanset_tprecision( - ss: "const SpanSet *", duration: "const Interval *", torigin: int -) -> "SpanSet *": + ss: Annotated[cdata, "const SpanSet *"], duration: Annotated[cdata, "const Interval *"], torigin: int +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.tstzspanset_tprecision( - ss_converted, duration_converted, torigin_converted - ) + result = _lib.tstzspanset_tprecision(ss_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None -def set_cmp(s1: "const Set *", s2: "const Set *") -> "int": +def set_cmp(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_cmp(s1_converted, s2_converted) @@ -2274,7 +2231,7 @@ def set_cmp(s1: "const Set *", s2: "const Set *") -> "int": return result if result != _ffi.NULL else None -def set_eq(s1: "const Set *", s2: "const Set *") -> "bool": +def set_eq(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_eq(s1_converted, s2_converted) @@ -2282,7 +2239,7 @@ def set_eq(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def set_ge(s1: "const Set *", s2: "const Set *") -> "bool": +def set_ge(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_ge(s1_converted, s2_converted) @@ -2290,7 +2247,7 @@ def set_ge(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def set_gt(s1: "const Set *", s2: "const Set *") -> "bool": +def set_gt(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_gt(s1_converted, s2_converted) @@ -2298,7 +2255,7 @@ def set_gt(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def set_le(s1: "const Set *", s2: "const Set *") -> "bool": +def set_le(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_le(s1_converted, s2_converted) @@ -2306,7 +2263,7 @@ def set_le(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def set_lt(s1: "const Set *", s2: "const Set *") -> "bool": +def set_lt(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_lt(s1_converted, s2_converted) @@ -2314,7 +2271,7 @@ def set_lt(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def set_ne(s1: "const Set *", s2: "const Set *") -> "bool": +def set_ne(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_ne(s1_converted, s2_converted) @@ -2322,7 +2279,7 @@ def set_ne(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def span_cmp(s1: "const Span *", s2: "const Span *") -> "int": +def span_cmp(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_cmp(s1_converted, s2_converted) @@ -2330,7 +2287,7 @@ def span_cmp(s1: "const Span *", s2: "const Span *") -> "int": return result if result != _ffi.NULL else None -def span_eq(s1: "const Span *", s2: "const Span *") -> "bool": +def span_eq(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_eq(s1_converted, s2_converted) @@ -2338,7 +2295,7 @@ def span_eq(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def span_ge(s1: "const Span *", s2: "const Span *") -> "bool": +def span_ge(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_ge(s1_converted, s2_converted) @@ -2346,7 +2303,7 @@ def span_ge(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def span_gt(s1: "const Span *", s2: "const Span *") -> "bool": +def span_gt(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_gt(s1_converted, s2_converted) @@ -2354,7 +2311,7 @@ def span_gt(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def span_le(s1: "const Span *", s2: "const Span *") -> "bool": +def span_le(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_le(s1_converted, s2_converted) @@ -2362,7 +2319,7 @@ def span_le(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def span_lt(s1: "const Span *", s2: "const Span *") -> "bool": +def span_lt(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_lt(s1_converted, s2_converted) @@ -2370,7 +2327,7 @@ def span_lt(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def span_ne(s1: "const Span *", s2: "const Span *") -> "bool": +def span_ne(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_ne(s1_converted, s2_converted) @@ -2378,7 +2335,9 @@ def span_ne(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def spanset_cmp(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "int": +def spanset_cmp( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_cmp(ss1_converted, ss2_converted) @@ -2386,7 +2345,9 @@ def spanset_cmp(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "int": return result if result != _ffi.NULL else None -def spanset_eq(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def spanset_eq( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_eq(ss1_converted, ss2_converted) @@ -2394,7 +2355,9 @@ def spanset_eq(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def spanset_ge(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def spanset_ge( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_ge(ss1_converted, ss2_converted) @@ -2402,7 +2365,9 @@ def spanset_ge(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def spanset_gt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def spanset_gt( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_gt(ss1_converted, ss2_converted) @@ -2410,7 +2375,9 @@ def spanset_gt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def spanset_le(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def spanset_le( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_le(ss1_converted, ss2_converted) @@ -2418,7 +2385,9 @@ def spanset_le(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def spanset_lt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def spanset_lt( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_lt(ss1_converted, ss2_converted) @@ -2426,7 +2395,9 @@ def spanset_lt(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def spanset_ne(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def spanset_ne( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.spanset_ne(ss1_converted, ss2_converted) @@ -2434,7 +2405,7 @@ def spanset_ne(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def set_spans(s: "const Set *") -> "Span *": +def set_spans(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_spans(s_converted) _check_error() @@ -2442,24 +2413,26 @@ def set_spans(s: "const Set *") -> "Span *": def set_split_each_n_spans( - s: "const Set *", elems_per_span: int -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Set *"], elems_per_span: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) - count = _ffi.new("int *") - result = _lib.set_split_each_n_spans(s_converted, elems_per_span, count) + count_converted = _ffi.cast("int *", count) + result = _lib.set_split_each_n_spans(s_converted, elems_per_span, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def set_split_n_spans(s: "const Set *", span_count: int) -> "Tuple['Span *', 'int']": +def set_split_n_spans( + s: Annotated[cdata, "const Set *"], span_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) - count = _ffi.new("int *") - result = _lib.set_split_n_spans(s_converted, span_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.set_split_n_spans(s_converted, span_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def spanset_spans(ss: "const SpanSet *") -> "Span *": +def spanset_spans(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_spans(ss_converted) _check_error() @@ -2467,26 +2440,26 @@ def spanset_spans(ss: "const SpanSet *") -> "Span *": def spanset_split_each_n_spans( - ss: "const SpanSet *", elems_per_span: int -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], elems_per_span: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.spanset_split_each_n_spans(ss_converted, elems_per_span, count) + count_converted = _ffi.cast("int *", count) + result = _lib.spanset_split_each_n_spans(ss_converted, elems_per_span, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def spanset_split_n_spans( - ss: "const SpanSet *", span_count: int -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], span_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.spanset_split_n_spans(ss_converted, span_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.spanset_split_n_spans(ss_converted, span_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def adjacent_span_bigint(s: "const Span *", i: int) -> "bool": +def adjacent_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.adjacent_span_bigint(s_converted, i_converted) @@ -2494,7 +2467,7 @@ def adjacent_span_bigint(s: "const Span *", i: int) -> "bool": return result if result != _ffi.NULL else None -def adjacent_span_date(s: "const Span *", d: "DateADT") -> "bool": +def adjacent_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.adjacent_span_date(s_converted, d_converted) @@ -2502,21 +2475,23 @@ def adjacent_span_date(s: "const Span *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def adjacent_span_float(s: "const Span *", d: float) -> "bool": +def adjacent_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_int(s: "const Span *", i: int) -> "bool": +def adjacent_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def adjacent_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.adjacent_span_span(s1_converted, s2_converted) @@ -2524,7 +2499,9 @@ def adjacent_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def adjacent_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def adjacent_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_span_spanset(s_converted, ss_converted) @@ -2532,7 +2509,7 @@ def adjacent_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def adjacent_span_timestamptz(s: "const Span *", t: int) -> "bool": +def adjacent_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.adjacent_span_timestamptz(s_converted, t_converted) @@ -2540,7 +2517,7 @@ def adjacent_span_timestamptz(s: "const Span *", t: int) -> "bool": return result if result != _ffi.NULL else None -def adjacent_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": +def adjacent_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.adjacent_spanset_bigint(ss_converted, i_converted) @@ -2548,7 +2525,7 @@ def adjacent_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": return result if result != _ffi.NULL else None -def adjacent_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": +def adjacent_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.adjacent_spanset_date(ss_converted, d_converted) @@ -2556,21 +2533,21 @@ def adjacent_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def adjacent_spanset_float(ss: "const SpanSet *", d: float) -> "bool": +def adjacent_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_int(ss: "const SpanSet *", i: int) -> "bool": +def adjacent_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": +def adjacent_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.adjacent_spanset_timestamptz(ss_converted, t_converted) @@ -2578,7 +2555,9 @@ def adjacent_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": return result if result != _ffi.NULL else None -def adjacent_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def adjacent_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_spanset_span(ss_converted, s_converted) @@ -2586,7 +2565,9 @@ def adjacent_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def adjacent_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def adjacent_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.adjacent_spanset_spanset(ss1_converted, ss2_converted) @@ -2594,7 +2575,7 @@ def adjacent_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def contained_bigint_set(i: int, s: "const Set *") -> "bool": +def contained_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_bigint_set(i_converted, s_converted) @@ -2602,7 +2583,7 @@ def contained_bigint_set(i: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contained_bigint_span(i: int, s: "const Span *") -> "bool": +def contained_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_bigint_span(i_converted, s_converted) @@ -2610,7 +2591,7 @@ def contained_bigint_span(i: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contained_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": +def contained_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_bigint_spanset(i_converted, ss_converted) @@ -2618,7 +2599,7 @@ def contained_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contained_date_set(d: "DateADT", s: "const Set *") -> "bool": +def contained_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_date_set(d_converted, s_converted) @@ -2626,7 +2607,7 @@ def contained_date_set(d: "DateADT", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contained_date_span(d: "DateADT", s: "const Span *") -> "bool": +def contained_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_date_span(d_converted, s_converted) @@ -2634,7 +2615,7 @@ def contained_date_span(d: "DateADT", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contained_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": +def contained_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_date_spanset(d_converted, ss_converted) @@ -2642,49 +2623,51 @@ def contained_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contained_float_set(d: float, s: "const Set *") -> "bool": +def contained_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contained_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_span(d: float, s: "const Span *") -> "bool": +def contained_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contained_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_spanset(d: float, ss: "const SpanSet *") -> "bool": +def contained_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_set(i: int, s: "const Set *") -> "bool": +def contained_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contained_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_span(i: int, s: "const Span *") -> "bool": +def contained_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contained_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_spanset(i: int, ss: "const SpanSet *") -> "bool": +def contained_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def contained_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.contained_set_set(s1_converted, s2_converted) @@ -2692,7 +2675,9 @@ def contained_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contained_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def contained_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.contained_span_span(s1_converted, s2_converted) @@ -2700,7 +2685,9 @@ def contained_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contained_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def contained_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_span_spanset(s_converted, ss_converted) @@ -2708,7 +2695,9 @@ def contained_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contained_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def contained_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_spanset_span(ss_converted, s_converted) @@ -2716,7 +2705,9 @@ def contained_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contained_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def contained_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.contained_spanset_spanset(ss1_converted, ss2_converted) @@ -2724,7 +2715,7 @@ def contained_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def contained_text_set(txt: str, s: "const Set *") -> "bool": +def contained_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_text_set(txt_converted, s_converted) @@ -2732,7 +2723,7 @@ def contained_text_set(txt: str, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contained_timestamptz_set(t: int, s: "const Set *") -> "bool": +def contained_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_timestamptz_set(t_converted, s_converted) @@ -2740,7 +2731,7 @@ def contained_timestamptz_set(t: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contained_timestamptz_span(t: int, s: "const Span *") -> "bool": +def contained_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_timestamptz_span(t_converted, s_converted) @@ -2748,7 +2739,7 @@ def contained_timestamptz_span(t: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contained_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": +def contained_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_timestamptz_spanset(t_converted, ss_converted) @@ -2756,7 +2747,7 @@ def contained_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contains_set_bigint(s: "const Set *", i: int) -> "bool": +def contains_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.contains_set_bigint(s_converted, i_converted) @@ -2764,7 +2755,7 @@ def contains_set_bigint(s: "const Set *", i: int) -> "bool": return result if result != _ffi.NULL else None -def contains_set_date(s: "const Set *", d: "DateADT") -> "bool": +def contains_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.contains_set_date(s_converted, d_converted) @@ -2772,21 +2763,23 @@ def contains_set_date(s: "const Set *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def contains_set_float(s: "const Set *", d: float) -> "bool": +def contains_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_set_int(s: "const Set *", i: int) -> "bool": +def contains_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def contains_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.contains_set_set(s1_converted, s2_converted) @@ -2794,7 +2787,7 @@ def contains_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contains_set_text(s: "const Set *", t: str) -> "bool": +def contains_set_text(s: Annotated[cdata, "const Set *"], t: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = cstring2text(t) result = _lib.contains_set_text(s_converted, t_converted) @@ -2802,7 +2795,7 @@ def contains_set_text(s: "const Set *", t: str) -> "bool": return result if result != _ffi.NULL else None -def contains_set_timestamptz(s: "const Set *", t: int) -> "bool": +def contains_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_set_timestamptz(s_converted, t_converted) @@ -2810,7 +2803,7 @@ def contains_set_timestamptz(s: "const Set *", t: int) -> "bool": return result if result != _ffi.NULL else None -def contains_span_bigint(s: "const Span *", i: int) -> "bool": +def contains_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.contains_span_bigint(s_converted, i_converted) @@ -2818,7 +2811,7 @@ def contains_span_bigint(s: "const Span *", i: int) -> "bool": return result if result != _ffi.NULL else None -def contains_span_date(s: "const Span *", d: "DateADT") -> "bool": +def contains_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.contains_span_date(s_converted, d_converted) @@ -2826,21 +2819,23 @@ def contains_span_date(s: "const Span *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def contains_span_float(s: "const Span *", d: float) -> "bool": +def contains_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contains_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_span_int(s: "const Span *", i: int) -> "bool": +def contains_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contains_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def contains_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.contains_span_span(s1_converted, s2_converted) @@ -2848,7 +2843,9 @@ def contains_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contains_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def contains_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_span_spanset(s_converted, ss_converted) @@ -2856,7 +2853,7 @@ def contains_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contains_span_timestamptz(s: "const Span *", t: int) -> "bool": +def contains_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_span_timestamptz(s_converted, t_converted) @@ -2864,7 +2861,7 @@ def contains_span_timestamptz(s: "const Span *", t: int) -> "bool": return result if result != _ffi.NULL else None -def contains_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": +def contains_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.contains_spanset_bigint(ss_converted, i_converted) @@ -2872,7 +2869,7 @@ def contains_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": return result if result != _ffi.NULL else None -def contains_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": +def contains_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.contains_spanset_date(ss_converted, d_converted) @@ -2880,21 +2877,23 @@ def contains_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def contains_spanset_float(ss: "const SpanSet *", d: float) -> "bool": +def contains_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_int(ss: "const SpanSet *", i: int) -> "bool": +def contains_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def contains_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.contains_spanset_span(ss_converted, s_converted) @@ -2902,7 +2901,9 @@ def contains_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contains_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def contains_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.contains_spanset_spanset(ss1_converted, ss2_converted) @@ -2910,7 +2911,7 @@ def contains_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def contains_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": +def contains_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_spanset_timestamptz(ss_converted, t_converted) @@ -2918,7 +2919,9 @@ def contains_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overlaps_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def overlaps_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.overlaps_set_set(s1_converted, s2_converted) @@ -2926,7 +2929,9 @@ def overlaps_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overlaps_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def overlaps_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.overlaps_span_span(s1_converted, s2_converted) @@ -2934,7 +2939,9 @@ def overlaps_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overlaps_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def overlaps_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overlaps_span_spanset(s_converted, ss_converted) @@ -2942,7 +2949,9 @@ def overlaps_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overlaps_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def overlaps_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.overlaps_spanset_span(ss_converted, s_converted) @@ -2950,7 +2959,9 @@ def overlaps_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overlaps_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def overlaps_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.overlaps_spanset_spanset(ss1_converted, ss2_converted) @@ -2958,7 +2969,7 @@ def overlaps_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def after_date_set(d: "DateADT", s: "const Set *") -> "bool": +def after_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.after_date_set(d_converted, s_converted) @@ -2966,7 +2977,7 @@ def after_date_set(d: "DateADT", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def after_date_span(d: "DateADT", s: "const Span *") -> "bool": +def after_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.after_date_span(d_converted, s_converted) @@ -2974,7 +2985,7 @@ def after_date_span(d: "DateADT", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def after_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": +def after_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.after_date_spanset(d_converted, ss_converted) @@ -2982,7 +2993,7 @@ def after_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def after_set_date(s: "const Set *", d: "DateADT") -> "bool": +def after_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.after_set_date(s_converted, d_converted) @@ -2990,7 +3001,7 @@ def after_set_date(s: "const Set *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def after_set_timestamptz(s: "const Set *", t: int) -> "bool": +def after_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_set_timestamptz(s_converted, t_converted) @@ -2998,7 +3009,7 @@ def after_set_timestamptz(s: "const Set *", t: int) -> "bool": return result if result != _ffi.NULL else None -def after_span_date(s: "const Span *", d: "DateADT") -> "bool": +def after_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.after_span_date(s_converted, d_converted) @@ -3006,7 +3017,7 @@ def after_span_date(s: "const Span *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def after_span_timestamptz(s: "const Span *", t: int) -> "bool": +def after_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_span_timestamptz(s_converted, t_converted) @@ -3014,7 +3025,7 @@ def after_span_timestamptz(s: "const Span *", t: int) -> "bool": return result if result != _ffi.NULL else None -def after_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": +def after_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.after_spanset_date(ss_converted, d_converted) @@ -3022,7 +3033,7 @@ def after_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def after_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": +def after_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_spanset_timestamptz(ss_converted, t_converted) @@ -3030,7 +3041,7 @@ def after_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": return result if result != _ffi.NULL else None -def after_timestamptz_set(t: int, s: "const Set *") -> "bool": +def after_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.after_timestamptz_set(t_converted, s_converted) @@ -3038,7 +3049,7 @@ def after_timestamptz_set(t: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def after_timestamptz_span(t: int, s: "const Span *") -> "bool": +def after_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.after_timestamptz_span(t_converted, s_converted) @@ -3046,7 +3057,7 @@ def after_timestamptz_span(t: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def after_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": +def after_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.after_timestamptz_spanset(t_converted, ss_converted) @@ -3054,7 +3065,7 @@ def after_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def before_date_set(d: "DateADT", s: "const Set *") -> "bool": +def before_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.before_date_set(d_converted, s_converted) @@ -3062,7 +3073,7 @@ def before_date_set(d: "DateADT", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def before_date_span(d: "DateADT", s: "const Span *") -> "bool": +def before_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.before_date_span(d_converted, s_converted) @@ -3070,7 +3081,7 @@ def before_date_span(d: "DateADT", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def before_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": +def before_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.before_date_spanset(d_converted, ss_converted) @@ -3078,7 +3089,7 @@ def before_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def before_set_date(s: "const Set *", d: "DateADT") -> "bool": +def before_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.before_set_date(s_converted, d_converted) @@ -3086,7 +3097,7 @@ def before_set_date(s: "const Set *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def before_set_timestamptz(s: "const Set *", t: int) -> "bool": +def before_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_set_timestamptz(s_converted, t_converted) @@ -3094,7 +3105,7 @@ def before_set_timestamptz(s: "const Set *", t: int) -> "bool": return result if result != _ffi.NULL else None -def before_span_date(s: "const Span *", d: "DateADT") -> "bool": +def before_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.before_span_date(s_converted, d_converted) @@ -3102,7 +3113,7 @@ def before_span_date(s: "const Span *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def before_span_timestamptz(s: "const Span *", t: int) -> "bool": +def before_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_span_timestamptz(s_converted, t_converted) @@ -3110,7 +3121,7 @@ def before_span_timestamptz(s: "const Span *", t: int) -> "bool": return result if result != _ffi.NULL else None -def before_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": +def before_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.before_spanset_date(ss_converted, d_converted) @@ -3118,7 +3129,7 @@ def before_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def before_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": +def before_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_spanset_timestamptz(ss_converted, t_converted) @@ -3126,7 +3137,7 @@ def before_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": return result if result != _ffi.NULL else None -def before_timestamptz_set(t: int, s: "const Set *") -> "bool": +def before_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.before_timestamptz_set(t_converted, s_converted) @@ -3134,7 +3145,7 @@ def before_timestamptz_set(t: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def before_timestamptz_span(t: int, s: "const Span *") -> "bool": +def before_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.before_timestamptz_span(t_converted, s_converted) @@ -3142,7 +3153,7 @@ def before_timestamptz_span(t: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def before_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": +def before_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.before_timestamptz_spanset(t_converted, ss_converted) @@ -3150,7 +3161,7 @@ def before_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def left_bigint_set(i: int, s: "const Set *") -> "bool": +def left_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.left_bigint_set(i_converted, s_converted) @@ -3158,7 +3169,7 @@ def left_bigint_set(i: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def left_bigint_span(i: int, s: "const Span *") -> "bool": +def left_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.left_bigint_span(i_converted, s_converted) @@ -3166,7 +3177,7 @@ def left_bigint_span(i: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def left_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": +def left_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_bigint_spanset(i_converted, ss_converted) @@ -3174,49 +3185,49 @@ def left_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def left_float_set(d: float, s: "const Set *") -> "bool": +def left_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_span(d: float, s: "const Span *") -> "bool": +def left_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_spanset(d: float, ss: "const SpanSet *") -> "bool": +def left_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_set(i: int, s: "const Set *") -> "bool": +def left_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_span(i: int, s: "const Span *") -> "bool": +def left_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_spanset(i: int, ss: "const SpanSet *") -> "bool": +def left_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_bigint(s: "const Set *", i: int) -> "bool": +def left_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.left_set_bigint(s_converted, i_converted) @@ -3224,21 +3235,21 @@ def left_set_bigint(s: "const Set *", i: int) -> "bool": return result if result != _ffi.NULL else None -def left_set_float(s: "const Set *", d: float) -> "bool": +def left_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_set_int(s: "const Set *", i: int) -> "bool": +def left_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def left_set_set(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.left_set_set(s1_converted, s2_converted) @@ -3246,7 +3257,7 @@ def left_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def left_set_text(s: "const Set *", txt: str) -> "bool": +def left_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.left_set_text(s_converted, txt_converted) @@ -3254,7 +3265,7 @@ def left_set_text(s: "const Set *", txt: str) -> "bool": return result if result != _ffi.NULL else None -def left_span_bigint(s: "const Span *", i: int) -> "bool": +def left_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.left_span_bigint(s_converted, i_converted) @@ -3262,21 +3273,23 @@ def left_span_bigint(s: "const Span *", i: int) -> "bool": return result if result != _ffi.NULL else None -def left_span_float(s: "const Span *", d: float) -> "bool": +def left_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_span_int(s: "const Span *", i: int) -> "bool": +def left_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def left_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.left_span_span(s1_converted, s2_converted) @@ -3284,7 +3297,9 @@ def left_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def left_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def left_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_span_spanset(s_converted, ss_converted) @@ -3292,7 +3307,7 @@ def left_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def left_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": +def left_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.left_spanset_bigint(ss_converted, i_converted) @@ -3300,21 +3315,23 @@ def left_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": return result if result != _ffi.NULL else None -def left_spanset_float(ss: "const SpanSet *", d: float) -> "bool": +def left_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_spanset_int(ss: "const SpanSet *", i: int) -> "bool": +def left_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def left_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.left_spanset_span(ss_converted, s_converted) @@ -3322,7 +3339,9 @@ def left_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def left_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def left_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.left_spanset_spanset(ss1_converted, ss2_converted) @@ -3330,7 +3349,7 @@ def left_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "boo return result if result != _ffi.NULL else None -def left_text_set(txt: str, s: "const Set *") -> "bool": +def left_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.left_text_set(txt_converted, s_converted) @@ -3338,7 +3357,7 @@ def left_text_set(txt: str, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overafter_date_set(d: "DateADT", s: "const Set *") -> "bool": +def overafter_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.overafter_date_set(d_converted, s_converted) @@ -3346,7 +3365,7 @@ def overafter_date_set(d: "DateADT", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overafter_date_span(d: "DateADT", s: "const Span *") -> "bool": +def overafter_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_date_span(d_converted, s_converted) @@ -3354,7 +3373,7 @@ def overafter_date_span(d: "DateADT", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overafter_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": +def overafter_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overafter_date_spanset(d_converted, ss_converted) @@ -3362,7 +3381,7 @@ def overafter_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overafter_set_date(s: "const Set *", d: "DateADT") -> "bool": +def overafter_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_set_date(s_converted, d_converted) @@ -3370,7 +3389,7 @@ def overafter_set_date(s: "const Set *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def overafter_set_timestamptz(s: "const Set *", t: int) -> "bool": +def overafter_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_set_timestamptz(s_converted, t_converted) @@ -3378,7 +3397,7 @@ def overafter_set_timestamptz(s: "const Set *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overafter_span_date(s: "const Span *", d: "DateADT") -> "bool": +def overafter_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_span_date(s_converted, d_converted) @@ -3386,7 +3405,7 @@ def overafter_span_date(s: "const Span *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def overafter_span_timestamptz(s: "const Span *", t: int) -> "bool": +def overafter_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_span_timestamptz(s_converted, t_converted) @@ -3394,7 +3413,7 @@ def overafter_span_timestamptz(s: "const Span *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overafter_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": +def overafter_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_spanset_date(ss_converted, d_converted) @@ -3402,7 +3421,7 @@ def overafter_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def overafter_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": +def overafter_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_spanset_timestamptz(ss_converted, t_converted) @@ -3410,7 +3429,7 @@ def overafter_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overafter_timestamptz_set(t: int, s: "const Set *") -> "bool": +def overafter_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.overafter_timestamptz_set(t_converted, s_converted) @@ -3418,7 +3437,7 @@ def overafter_timestamptz_set(t: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overafter_timestamptz_span(t: int, s: "const Span *") -> "bool": +def overafter_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_timestamptz_span(t_converted, s_converted) @@ -3426,7 +3445,7 @@ def overafter_timestamptz_span(t: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overafter_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": +def overafter_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overafter_timestamptz_spanset(t_converted, ss_converted) @@ -3434,7 +3453,7 @@ def overafter_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_date_set(d: "DateADT", s: "const Set *") -> "bool": +def overbefore_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.overbefore_date_set(d_converted, s_converted) @@ -3442,7 +3461,7 @@ def overbefore_date_set(d: "DateADT", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_date_span(d: "DateADT", s: "const Span *") -> "bool": +def overbefore_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_date_span(d_converted, s_converted) @@ -3450,7 +3469,7 @@ def overbefore_date_span(d: "DateADT", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": +def overbefore_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overbefore_date_spanset(d_converted, ss_converted) @@ -3458,7 +3477,7 @@ def overbefore_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_set_date(s: "const Set *", d: "DateADT") -> "bool": +def overbefore_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_set_date(s_converted, d_converted) @@ -3466,7 +3485,7 @@ def overbefore_set_date(s: "const Set *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def overbefore_set_timestamptz(s: "const Set *", t: int) -> "bool": +def overbefore_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_set_timestamptz(s_converted, t_converted) @@ -3474,7 +3493,7 @@ def overbefore_set_timestamptz(s: "const Set *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overbefore_span_date(s: "const Span *", d: "DateADT") -> "bool": +def overbefore_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_span_date(s_converted, d_converted) @@ -3482,7 +3501,7 @@ def overbefore_span_date(s: "const Span *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def overbefore_span_timestamptz(s: "const Span *", t: int) -> "bool": +def overbefore_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_span_timestamptz(s_converted, t_converted) @@ -3490,7 +3509,7 @@ def overbefore_span_timestamptz(s: "const Span *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overbefore_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": +def overbefore_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_spanset_date(ss_converted, d_converted) @@ -3498,7 +3517,7 @@ def overbefore_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "bool": return result if result != _ffi.NULL else None -def overbefore_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": +def overbefore_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_spanset_timestamptz(ss_converted, t_converted) @@ -3506,7 +3525,7 @@ def overbefore_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "bool": return result if result != _ffi.NULL else None -def overbefore_timestamptz_set(t: int, s: "const Set *") -> "bool": +def overbefore_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.overbefore_timestamptz_set(t_converted, s_converted) @@ -3514,7 +3533,7 @@ def overbefore_timestamptz_set(t: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_timestamptz_span(t: int, s: "const Span *") -> "bool": +def overbefore_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_timestamptz_span(t_converted, s_converted) @@ -3522,7 +3541,7 @@ def overbefore_timestamptz_span(t: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": +def overbefore_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overbefore_timestamptz_spanset(t_converted, ss_converted) @@ -3530,7 +3549,7 @@ def overbefore_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overleft_bigint_set(i: int, s: "const Set *") -> "bool": +def overleft_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_bigint_set(i_converted, s_converted) @@ -3538,7 +3557,7 @@ def overleft_bigint_set(i: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overleft_bigint_span(i: int, s: "const Span *") -> "bool": +def overleft_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_bigint_span(i_converted, s_converted) @@ -3546,7 +3565,7 @@ def overleft_bigint_span(i: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overleft_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": +def overleft_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_bigint_spanset(i_converted, ss_converted) @@ -3554,49 +3573,49 @@ def overleft_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overleft_float_set(d: float, s: "const Set *") -> "bool": +def overleft_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_span(d: float, s: "const Span *") -> "bool": +def overleft_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_spanset(d: float, ss: "const SpanSet *") -> "bool": +def overleft_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_set(i: int, s: "const Set *") -> "bool": +def overleft_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_span(i: int, s: "const Span *") -> "bool": +def overleft_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_spanset(i: int, ss: "const SpanSet *") -> "bool": +def overleft_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_bigint(s: "const Set *", i: int) -> "bool": +def overleft_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.overleft_set_bigint(s_converted, i_converted) @@ -3604,21 +3623,23 @@ def overleft_set_bigint(s: "const Set *", i: int) -> "bool": return result if result != _ffi.NULL else None -def overleft_set_float(s: "const Set *", d: float) -> "bool": +def overleft_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_set_int(s: "const Set *", i: int) -> "bool": +def overleft_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def overleft_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.overleft_set_set(s1_converted, s2_converted) @@ -3626,7 +3647,7 @@ def overleft_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overleft_set_text(s: "const Set *", txt: str) -> "bool": +def overleft_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.overleft_set_text(s_converted, txt_converted) @@ -3634,7 +3655,7 @@ def overleft_set_text(s: "const Set *", txt: str) -> "bool": return result if result != _ffi.NULL else None -def overleft_span_bigint(s: "const Span *", i: int) -> "bool": +def overleft_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.overleft_span_bigint(s_converted, i_converted) @@ -3642,21 +3663,23 @@ def overleft_span_bigint(s: "const Span *", i: int) -> "bool": return result if result != _ffi.NULL else None -def overleft_span_float(s: "const Span *", d: float) -> "bool": +def overleft_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_span_int(s: "const Span *", i: int) -> "bool": +def overleft_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def overleft_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.overleft_span_span(s1_converted, s2_converted) @@ -3664,7 +3687,9 @@ def overleft_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overleft_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def overleft_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_span_spanset(s_converted, ss_converted) @@ -3672,7 +3697,7 @@ def overleft_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overleft_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": +def overleft_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.overleft_spanset_bigint(ss_converted, i_converted) @@ -3680,21 +3705,23 @@ def overleft_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": return result if result != _ffi.NULL else None -def overleft_spanset_float(ss: "const SpanSet *", d: float) -> "bool": +def overleft_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_int(ss: "const SpanSet *", i: int) -> "bool": +def overleft_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def overleft_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_spanset_span(ss_converted, s_converted) @@ -3702,7 +3729,9 @@ def overleft_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overleft_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def overleft_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.overleft_spanset_spanset(ss1_converted, ss2_converted) @@ -3710,7 +3739,7 @@ def overleft_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def overleft_text_set(txt: str, s: "const Set *") -> "bool": +def overleft_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_text_set(txt_converted, s_converted) @@ -3718,7 +3747,7 @@ def overleft_text_set(txt: str, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overright_bigint_set(i: int, s: "const Set *") -> "bool": +def overright_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.overright_bigint_set(i_converted, s_converted) @@ -3726,7 +3755,7 @@ def overright_bigint_set(i: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overright_bigint_span(i: int, s: "const Span *") -> "bool": +def overright_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.overright_bigint_span(i_converted, s_converted) @@ -3734,7 +3763,7 @@ def overright_bigint_span(i: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overright_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": +def overright_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_bigint_spanset(i_converted, ss_converted) @@ -3742,49 +3771,49 @@ def overright_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overright_float_set(d: float, s: "const Set *") -> "bool": +def overright_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_span(d: float, s: "const Span *") -> "bool": +def overright_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_spanset(d: float, ss: "const SpanSet *") -> "bool": +def overright_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_set(i: int, s: "const Set *") -> "bool": +def overright_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_span(i: int, s: "const Span *") -> "bool": +def overright_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_spanset(i: int, ss: "const SpanSet *") -> "bool": +def overright_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_bigint(s: "const Set *", i: int) -> "bool": +def overright_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.overright_set_bigint(s_converted, i_converted) @@ -3792,21 +3821,23 @@ def overright_set_bigint(s: "const Set *", i: int) -> "bool": return result if result != _ffi.NULL else None -def overright_set_float(s: "const Set *", d: float) -> "bool": +def overright_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_set_int(s: "const Set *", i: int) -> "bool": +def overright_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def overright_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.overright_set_set(s1_converted, s2_converted) @@ -3814,7 +3845,7 @@ def overright_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overright_set_text(s: "const Set *", txt: str) -> "bool": +def overright_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.overright_set_text(s_converted, txt_converted) @@ -3822,7 +3853,7 @@ def overright_set_text(s: "const Set *", txt: str) -> "bool": return result if result != _ffi.NULL else None -def overright_span_bigint(s: "const Span *", i: int) -> "bool": +def overright_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.overright_span_bigint(s_converted, i_converted) @@ -3830,21 +3861,23 @@ def overright_span_bigint(s: "const Span *", i: int) -> "bool": return result if result != _ffi.NULL else None -def overright_span_float(s: "const Span *", d: float) -> "bool": +def overright_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_span_int(s: "const Span *", i: int) -> "bool": +def overright_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def overright_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.overright_span_span(s1_converted, s2_converted) @@ -3852,7 +3885,9 @@ def overright_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overright_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def overright_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_span_spanset(s_converted, ss_converted) @@ -3860,7 +3895,7 @@ def overright_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overright_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": +def overright_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.overright_spanset_bigint(ss_converted, i_converted) @@ -3868,21 +3903,23 @@ def overright_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": return result if result != _ffi.NULL else None -def overright_spanset_float(ss: "const SpanSet *", d: float) -> "bool": +def overright_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_int(ss: "const SpanSet *", i: int) -> "bool": +def overright_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def overright_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.overright_spanset_span(ss_converted, s_converted) @@ -3890,7 +3927,9 @@ def overright_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overright_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def overright_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.overright_spanset_spanset(ss1_converted, ss2_converted) @@ -3898,7 +3937,7 @@ def overright_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def overright_text_set(txt: str, s: "const Set *") -> "bool": +def overright_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.overright_text_set(txt_converted, s_converted) @@ -3906,7 +3945,7 @@ def overright_text_set(txt: str, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def right_bigint_set(i: int, s: "const Set *") -> "bool": +def right_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.right_bigint_set(i_converted, s_converted) @@ -3914,7 +3953,7 @@ def right_bigint_set(i: int, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def right_bigint_span(i: int, s: "const Span *") -> "bool": +def right_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.right_bigint_span(i_converted, s_converted) @@ -3922,7 +3961,7 @@ def right_bigint_span(i: int, s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def right_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": +def right_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_bigint_spanset(i_converted, ss_converted) @@ -3930,49 +3969,49 @@ def right_bigint_spanset(i: int, ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def right_float_set(d: float, s: "const Set *") -> "bool": +def right_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_span(d: float, s: "const Span *") -> "bool": +def right_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_spanset(d: float, ss: "const SpanSet *") -> "bool": +def right_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_set(i: int, s: "const Set *") -> "bool": +def right_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_span(i: int, s: "const Span *") -> "bool": +def right_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_spanset(i: int, ss: "const SpanSet *") -> "bool": +def right_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_bigint(s: "const Set *", i: int) -> "bool": +def right_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.right_set_bigint(s_converted, i_converted) @@ -3980,21 +4019,21 @@ def right_set_bigint(s: "const Set *", i: int) -> "bool": return result if result != _ffi.NULL else None -def right_set_float(s: "const Set *", d: float) -> "bool": +def right_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_set_int(s: "const Set *", i: int) -> "bool": +def right_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_set_set(s1: "const Set *", s2: "const Set *") -> "bool": +def right_set_set(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.right_set_set(s1_converted, s2_converted) @@ -4002,7 +4041,7 @@ def right_set_set(s1: "const Set *", s2: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def right_set_text(s: "const Set *", txt: str) -> "bool": +def right_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.right_set_text(s_converted, txt_converted) @@ -4010,7 +4049,7 @@ def right_set_text(s: "const Set *", txt: str) -> "bool": return result if result != _ffi.NULL else None -def right_span_bigint(s: "const Span *", i: int) -> "bool": +def right_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.right_span_bigint(s_converted, i_converted) @@ -4018,21 +4057,23 @@ def right_span_bigint(s: "const Span *", i: int) -> "bool": return result if result != _ffi.NULL else None -def right_span_float(s: "const Span *", d: float) -> "bool": +def right_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_span_int(s: "const Span *", i: int) -> "bool": +def right_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def right_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.right_span_span(s1_converted, s2_converted) @@ -4040,7 +4081,9 @@ def right_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def right_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": +def right_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_span_spanset(s_converted, ss_converted) @@ -4048,7 +4091,7 @@ def right_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def right_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": +def right_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.right_spanset_bigint(ss_converted, i_converted) @@ -4056,21 +4099,23 @@ def right_spanset_bigint(ss: "const SpanSet *", i: int) -> "bool": return result if result != _ffi.NULL else None -def right_spanset_float(ss: "const SpanSet *", d: float) -> "bool": +def right_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_spanset_int(ss: "const SpanSet *", i: int) -> "bool": +def right_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": +def right_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.right_spanset_span(ss_converted, s_converted) @@ -4078,7 +4123,9 @@ def right_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def right_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bool": +def right_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.right_spanset_spanset(ss1_converted, ss2_converted) @@ -4086,7 +4133,7 @@ def right_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "bo return result if result != _ffi.NULL else None -def right_text_set(txt: str, s: "const Set *") -> "bool": +def right_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.right_text_set(txt_converted, s_converted) @@ -4094,7 +4141,7 @@ def right_text_set(txt: str, s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def intersection_bigint_set(i: int, s: "const Set *") -> "Set *": +def intersection_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_bigint_set(i_converted, s_converted) @@ -4102,7 +4149,7 @@ def intersection_bigint_set(i: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_date_set(d: "DateADT", s: "const Set *") -> "Set *": +def intersection_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_date_set(d_converted, s_converted) @@ -4110,21 +4157,21 @@ def intersection_date_set(d: "DateADT", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_float_set(d: float, s: "const Set *") -> "Set *": +def intersection_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_int_set(i: int, s: "const Set *") -> "Set *": +def intersection_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_bigint(s: "const Set *", i: int) -> "Set *": +def intersection_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.intersection_set_bigint(s_converted, i_converted) @@ -4132,7 +4179,7 @@ def intersection_set_bigint(s: "const Set *", i: int) -> "Set *": return result if result != _ffi.NULL else None -def intersection_set_date(s: "const Set *", d: "DateADT") -> "Set *": +def intersection_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_set_date(s_converted, d_converted) @@ -4140,21 +4187,23 @@ def intersection_set_date(s: "const Set *", d: "DateADT") -> "Set *": return result if result != _ffi.NULL else None -def intersection_set_float(s: "const Set *", d: float) -> "Set *": +def intersection_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_set_int(s: "const Set *", i: int) -> "Set *": +def intersection_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": +def intersection_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.intersection_set_set(s1_converted, s2_converted) @@ -4162,7 +4211,7 @@ def intersection_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_set_text(s: "const Set *", txt: str) -> "Set *": +def intersection_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.intersection_set_text(s_converted, txt_converted) @@ -4170,7 +4219,7 @@ def intersection_set_text(s: "const Set *", txt: str) -> "Set *": return result if result != _ffi.NULL else None -def intersection_set_timestamptz(s: "const Set *", t: int) -> "Set *": +def intersection_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_set_timestamptz(s_converted, t_converted) @@ -4178,7 +4227,7 @@ def intersection_set_timestamptz(s: "const Set *", t: int) -> "Set *": return result if result != _ffi.NULL else None -def intersection_span_bigint(s: "const Span *", i: int) -> "Span *": +def intersection_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.intersection_span_bigint(s_converted, i_converted) @@ -4186,7 +4235,7 @@ def intersection_span_bigint(s: "const Span *", i: int) -> "Span *": return result if result != _ffi.NULL else None -def intersection_span_date(s: "const Span *", d: "DateADT") -> "Span *": +def intersection_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_span_date(s_converted, d_converted) @@ -4194,21 +4243,23 @@ def intersection_span_date(s: "const Span *", d: "DateADT") -> "Span *": return result if result != _ffi.NULL else None -def intersection_span_float(s: "const Span *", d: float) -> "Span *": +def intersection_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_span_int(s: "const Span *", i: int) -> "Span *": +def intersection_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": +def intersection_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.intersection_span_span(s1_converted, s2_converted) @@ -4216,7 +4267,9 @@ def intersection_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": return result if result != _ffi.NULL else None -def intersection_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": +def intersection_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_span_spanset(s_converted, ss_converted) @@ -4224,7 +4277,7 @@ def intersection_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "Span return result if result != _ffi.NULL else None -def intersection_span_timestamptz(s: "const Span *", t: int) -> "Span *": +def intersection_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_span_timestamptz(s_converted, t_converted) @@ -4232,7 +4285,7 @@ def intersection_span_timestamptz(s: "const Span *", t: int) -> "Span *": return result if result != _ffi.NULL else None -def intersection_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": +def intersection_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.intersection_spanset_bigint(ss_converted, i_converted) @@ -4240,7 +4293,7 @@ def intersection_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def intersection_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": +def intersection_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_spanset_date(ss_converted, d_converted) @@ -4248,21 +4301,23 @@ def intersection_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet * return result if result != _ffi.NULL else None -def intersection_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": +def intersection_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": +def intersection_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": +def intersection_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_spanset_span(ss_converted, s_converted) @@ -4271,8 +4326,8 @@ def intersection_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "Span def intersection_spanset_spanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "SpanSet *": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.intersection_spanset_spanset(ss1_converted, ss2_converted) @@ -4280,7 +4335,7 @@ def intersection_spanset_spanset( return result if result != _ffi.NULL else None -def intersection_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": +def intersection_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_spanset_timestamptz(ss_converted, t_converted) @@ -4288,7 +4343,7 @@ def intersection_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet return result if result != _ffi.NULL else None -def intersection_text_set(txt: str, s: "const Set *") -> "Set *": +def intersection_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_text_set(txt_converted, s_converted) @@ -4296,7 +4351,7 @@ def intersection_text_set(txt: str, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_timestamptz_set(t: int, s: "const Set *") -> "Set *": +def intersection_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_timestamptz_set(t_converted, s_converted) @@ -4304,7 +4359,7 @@ def intersection_timestamptz_set(t: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_bigint_set(i: int, s: "const Set *") -> "Set *": +def minus_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_bigint_set(i_converted, s_converted) @@ -4312,7 +4367,7 @@ def minus_bigint_set(i: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_bigint_span(i: int, s: "const Span *") -> "SpanSet *": +def minus_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_bigint_span(i_converted, s_converted) @@ -4320,7 +4375,7 @@ def minus_bigint_span(i: int, s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_bigint_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": +def minus_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_bigint_spanset(i_converted, ss_converted) @@ -4328,7 +4383,7 @@ def minus_bigint_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_date_set(d: "DateADT", s: "const Set *") -> "Set *": +def minus_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_date_set(d_converted, s_converted) @@ -4336,7 +4391,7 @@ def minus_date_set(d: "DateADT", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_date_span(d: "DateADT", s: "const Span *") -> "SpanSet *": +def minus_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_date_span(d_converted, s_converted) @@ -4344,7 +4399,7 @@ def minus_date_span(d: "DateADT", s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "SpanSet *": +def minus_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_date_spanset(d_converted, ss_converted) @@ -4352,49 +4407,49 @@ def minus_date_spanset(d: "DateADT", ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_float_set(d: float, s: "const Set *") -> "Set *": +def minus_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_span(d: float, s: "const Span *") -> "SpanSet *": +def minus_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_spanset(d: float, ss: "const SpanSet *") -> "SpanSet *": +def minus_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_set(i: int, s: "const Set *") -> "Set *": +def minus_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_span(i: int, s: "const Span *") -> "SpanSet *": +def minus_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_spanset(i: int, ss: "const SpanSet *") -> "SpanSet *": +def minus_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_bigint(s: "const Set *", i: int) -> "Set *": +def minus_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.minus_set_bigint(s_converted, i_converted) @@ -4402,7 +4457,7 @@ def minus_set_bigint(s: "const Set *", i: int) -> "Set *": return result if result != _ffi.NULL else None -def minus_set_date(s: "const Set *", d: "DateADT") -> "Set *": +def minus_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.minus_set_date(s_converted, d_converted) @@ -4410,21 +4465,23 @@ def minus_set_date(s: "const Set *", d: "DateADT") -> "Set *": return result if result != _ffi.NULL else None -def minus_set_float(s: "const Set *", d: float) -> "Set *": +def minus_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_set_int(s: "const Set *", i: int) -> "Set *": +def minus_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": +def minus_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.minus_set_set(s1_converted, s2_converted) @@ -4432,7 +4489,7 @@ def minus_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_set_text(s: "const Set *", txt: str) -> "Set *": +def minus_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.minus_set_text(s_converted, txt_converted) @@ -4440,7 +4497,7 @@ def minus_set_text(s: "const Set *", txt: str) -> "Set *": return result if result != _ffi.NULL else None -def minus_set_timestamptz(s: "const Set *", t: int) -> "Set *": +def minus_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_set_timestamptz(s_converted, t_converted) @@ -4448,7 +4505,7 @@ def minus_set_timestamptz(s: "const Set *", t: int) -> "Set *": return result if result != _ffi.NULL else None -def minus_span_bigint(s: "const Span *", i: int) -> "SpanSet *": +def minus_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.minus_span_bigint(s_converted, i_converted) @@ -4456,7 +4513,7 @@ def minus_span_bigint(s: "const Span *", i: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": +def minus_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.minus_span_date(s_converted, d_converted) @@ -4464,21 +4521,23 @@ def minus_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_span_float(s: "const Span *", d: float) -> "SpanSet *": +def minus_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_span_int(s: "const Span *", i: int) -> "SpanSet *": +def minus_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": +def minus_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.minus_span_span(s1_converted, s2_converted) @@ -4486,7 +4545,9 @@ def minus_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": +def minus_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_span_spanset(s_converted, ss_converted) @@ -4494,7 +4555,7 @@ def minus_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": +def minus_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_span_timestamptz(s_converted, t_converted) @@ -4502,7 +4563,7 @@ def minus_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": +def minus_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.minus_spanset_bigint(ss_converted, i_converted) @@ -4510,7 +4571,7 @@ def minus_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": +def minus_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.minus_spanset_date(ss_converted, d_converted) @@ -4518,21 +4579,23 @@ def minus_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": +def minus_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": +def minus_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": +def minus_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_spanset_span(ss_converted, s_converted) @@ -4541,8 +4604,8 @@ def minus_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": def minus_spanset_spanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "SpanSet *": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.minus_spanset_spanset(ss1_converted, ss2_converted) @@ -4550,7 +4613,7 @@ def minus_spanset_spanset( return result if result != _ffi.NULL else None -def minus_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": +def minus_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_spanset_timestamptz(ss_converted, t_converted) @@ -4558,7 +4621,7 @@ def minus_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_text_set(txt: str, s: "const Set *") -> "Set *": +def minus_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_text_set(txt_converted, s_converted) @@ -4566,7 +4629,7 @@ def minus_text_set(txt: str, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_timestamptz_set(t: int, s: "const Set *") -> "Set *": +def minus_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_timestamptz_set(t_converted, s_converted) @@ -4574,7 +4637,7 @@ def minus_timestamptz_set(t: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": +def minus_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_timestamptz_span(t_converted, s_converted) @@ -4582,7 +4645,7 @@ def minus_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "SpanSet *": +def minus_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_timestamptz_spanset(t_converted, ss_converted) @@ -4590,7 +4653,7 @@ def minus_timestamptz_spanset(t: int, ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_bigint_set(i: int, s: "const Set *") -> "Set *": +def union_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.union_bigint_set(i_converted, s_converted) @@ -4598,7 +4661,7 @@ def union_bigint_set(i: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_bigint_span(s: "const Span *", i: int) -> "SpanSet *": +def union_bigint_span(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.union_bigint_span(s_converted, i_converted) @@ -4606,7 +4669,7 @@ def union_bigint_span(s: "const Span *", i: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def union_bigint_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": +def union_bigint_spanset(i: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_bigint_spanset(i_converted, ss_converted) @@ -4614,7 +4677,7 @@ def union_bigint_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_date_set(d: "DateADT", s: "const Set *") -> "Set *": +def union_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.union_date_set(d_converted, s_converted) @@ -4622,7 +4685,7 @@ def union_date_set(d: "DateADT", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_date_span(s: "const Span *", d: "DateADT") -> "SpanSet *": +def union_date_span(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.union_date_span(s_converted, d_converted) @@ -4630,7 +4693,7 @@ def union_date_span(s: "const Span *", d: "DateADT") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_date_spanset(d: "DateADT", ss: "SpanSet *") -> "SpanSet *": +def union_date_spanset(d: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_date_spanset(d_converted, ss_converted) @@ -4638,49 +4701,49 @@ def union_date_spanset(d: "DateADT", ss: "SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_float_set(d: float, s: "const Set *") -> "Set *": +def union_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_float_span(s: "const Span *", d: float) -> "SpanSet *": +def union_float_span(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_float_span(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_float_spanset(d: float, ss: "SpanSet *") -> "SpanSet *": +def union_float_spanset(d: float, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_set(i: int, s: "const Set *") -> "Set *": +def union_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_span(i: int, s: "const Span *") -> "SpanSet *": +def union_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_spanset(i: int, ss: "SpanSet *") -> "SpanSet *": +def union_int_spanset(i: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_bigint(s: "const Set *", i: int) -> "Set *": +def union_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.union_set_bigint(s_converted, i_converted) @@ -4688,7 +4751,7 @@ def union_set_bigint(s: "const Set *", i: int) -> "Set *": return result if result != _ffi.NULL else None -def union_set_date(s: "const Set *", d: "DateADT") -> "Set *": +def union_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.union_set_date(s_converted, d_converted) @@ -4696,21 +4759,23 @@ def union_set_date(s: "const Set *", d: "DateADT") -> "Set *": return result if result != _ffi.NULL else None -def union_set_float(s: "const Set *", d: float) -> "Set *": +def union_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_set_int(s: "const Set *", i: int) -> "Set *": +def union_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": +def union_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.union_set_set(s1_converted, s2_converted) @@ -4718,7 +4783,7 @@ def union_set_set(s1: "const Set *", s2: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_set_text(s: "const Set *", txt: str) -> "Set *": +def union_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.union_set_text(s_converted, txt_converted) @@ -4726,7 +4791,7 @@ def union_set_text(s: "const Set *", txt: str) -> "Set *": return result if result != _ffi.NULL else None -def union_set_timestamptz(s: "const Set *", t: int) -> "Set *": +def union_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_set_timestamptz(s_converted, t_converted) @@ -4734,7 +4799,7 @@ def union_set_timestamptz(s: "const Set *", t: int) -> "Set *": return result if result != _ffi.NULL else None -def union_span_bigint(s: "const Span *", i: int) -> "SpanSet *": +def union_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.union_span_bigint(s_converted, i_converted) @@ -4742,7 +4807,7 @@ def union_span_bigint(s: "const Span *", i: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def union_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": +def union_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.union_span_date(s_converted, d_converted) @@ -4750,21 +4815,23 @@ def union_span_date(s: "const Span *", d: "DateADT") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_span_float(s: "const Span *", d: float) -> "SpanSet *": +def union_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_span_int(s: "const Span *", i: int) -> "SpanSet *": +def union_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": +def union_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.union_span_span(s1_converted, s2_converted) @@ -4772,7 +4839,9 @@ def union_span_span(s1: "const Span *", s2: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": +def union_span_spanset( + s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_span_spanset(s_converted, ss_converted) @@ -4780,7 +4849,7 @@ def union_span_spanset(s: "const Span *", ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": +def union_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_span_timestamptz(s_converted, t_converted) @@ -4788,7 +4857,7 @@ def union_span_timestamptz(s: "const Span *", t: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def union_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": +def union_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.union_spanset_bigint(ss_converted, i_converted) @@ -4796,7 +4865,7 @@ def union_spanset_bigint(ss: "const SpanSet *", i: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def union_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": +def union_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.union_spanset_date(ss_converted, d_converted) @@ -4804,21 +4873,23 @@ def union_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_spanset_float(ss: "const SpanSet *", d: float) -> "SpanSet *": +def union_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_spanset_int(ss: "const SpanSet *", i: int) -> "SpanSet *": +def union_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def union_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": +def union_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.union_spanset_span(ss_converted, s_converted) @@ -4827,8 +4898,8 @@ def union_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "SpanSet *": def union_spanset_spanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "SpanSet *": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.union_spanset_spanset(ss1_converted, ss2_converted) @@ -4836,7 +4907,7 @@ def union_spanset_spanset( return result if result != _ffi.NULL else None -def union_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": +def union_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_spanset_timestamptz(ss_converted, t_converted) @@ -4844,7 +4915,7 @@ def union_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "SpanSet *": return result if result != _ffi.NULL else None -def union_text_set(txt: str, s: "const Set *") -> "Set *": +def union_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.union_text_set(txt_converted, s_converted) @@ -4852,7 +4923,7 @@ def union_text_set(txt: str, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_timestamptz_set(t: int, s: "const Set *") -> "Set *": +def union_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.union_timestamptz_set(t_converted, s_converted) @@ -4860,7 +4931,7 @@ def union_timestamptz_set(t: int, s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": +def union_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.union_timestamptz_span(t_converted, s_converted) @@ -4868,7 +4939,7 @@ def union_timestamptz_span(t: int, s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_timestamptz_spanset(t: int, ss: "SpanSet *") -> "SpanSet *": +def union_timestamptz_spanset(t: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_timestamptz_spanset(t_converted, ss_converted) @@ -4876,7 +4947,9 @@ def union_timestamptz_spanset(t: int, ss: "SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def distance_bigintset_bigintset(s1: "const Set *", s2: "const Set *") -> "int64": +def distance_bigintset_bigintset( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[int, "int64"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_bigintset_bigintset(s1_converted, s2_converted) @@ -4884,7 +4957,9 @@ def distance_bigintset_bigintset(s1: "const Set *", s2: "const Set *") -> "int64 return result if result != _ffi.NULL else None -def distance_bigintspan_bigintspan(s1: "const Span *", s2: "const Span *") -> "int64": +def distance_bigintspan_bigintspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[int, "int64"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_bigintspan_bigintspan(s1_converted, s2_converted) @@ -4893,8 +4968,8 @@ def distance_bigintspan_bigintspan(s1: "const Span *", s2: "const Span *") -> "i def distance_bigintspanset_bigintspan( - ss: "const SpanSet *", s: "const Span *" -) -> "int64": + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_bigintspanset_bigintspan(ss_converted, s_converted) @@ -4903,8 +4978,8 @@ def distance_bigintspanset_bigintspan( def distance_bigintspanset_bigintspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "int64": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[int, "int64"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_bigintspanset_bigintspanset(ss1_converted, ss2_converted) @@ -4912,7 +4987,9 @@ def distance_bigintspanset_bigintspanset( return result if result != _ffi.NULL else None -def distance_dateset_dateset(s1: "const Set *", s2: "const Set *") -> "int": +def distance_dateset_dateset( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_dateset_dateset(s1_converted, s2_converted) @@ -4920,7 +4997,9 @@ def distance_dateset_dateset(s1: "const Set *", s2: "const Set *") -> "int": return result if result != _ffi.NULL else None -def distance_datespan_datespan(s1: "const Span *", s2: "const Span *") -> "int": +def distance_datespan_datespan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_datespan_datespan(s1_converted, s2_converted) @@ -4928,7 +5007,9 @@ def distance_datespan_datespan(s1: "const Span *", s2: "const Span *") -> "int": return result if result != _ffi.NULL else None -def distance_datespanset_datespan(ss: "const SpanSet *", s: "const Span *") -> "int": +def distance_datespanset_datespan( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_datespanset_datespan(ss_converted, s_converted) @@ -4937,8 +5018,8 @@ def distance_datespanset_datespan(ss: "const SpanSet *", s: "const Span *") -> " def distance_datespanset_datespanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "int": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_datespanset_datespanset(ss1_converted, ss2_converted) @@ -4946,7 +5027,9 @@ def distance_datespanset_datespanset( return result if result != _ffi.NULL else None -def distance_floatset_floatset(s1: "const Set *", s2: "const Set *") -> "double": +def distance_floatset_floatset( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_floatset_floatset(s1_converted, s2_converted) @@ -4954,7 +5037,9 @@ def distance_floatset_floatset(s1: "const Set *", s2: "const Set *") -> "double" return result if result != _ffi.NULL else None -def distance_floatspan_floatspan(s1: "const Span *", s2: "const Span *") -> "double": +def distance_floatspan_floatspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_floatspan_floatspan(s1_converted, s2_converted) @@ -4963,8 +5048,8 @@ def distance_floatspan_floatspan(s1: "const Span *", s2: "const Span *") -> "dou def distance_floatspanset_floatspan( - ss: "const SpanSet *", s: "const Span *" -) -> "double": + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_floatspanset_floatspan(ss_converted, s_converted) @@ -4973,8 +5058,8 @@ def distance_floatspanset_floatspan( def distance_floatspanset_floatspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "double": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[float, "double"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_floatspanset_floatspanset(ss1_converted, ss2_converted) @@ -4982,7 +5067,9 @@ def distance_floatspanset_floatspanset( return result if result != _ffi.NULL else None -def distance_intset_intset(s1: "const Set *", s2: "const Set *") -> "int": +def distance_intset_intset( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_intset_intset(s1_converted, s2_converted) @@ -4990,7 +5077,9 @@ def distance_intset_intset(s1: "const Set *", s2: "const Set *") -> "int": return result if result != _ffi.NULL else None -def distance_intspan_intspan(s1: "const Span *", s2: "const Span *") -> "int": +def distance_intspan_intspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_intspan_intspan(s1_converted, s2_converted) @@ -4998,7 +5087,9 @@ def distance_intspan_intspan(s1: "const Span *", s2: "const Span *") -> "int": return result if result != _ffi.NULL else None -def distance_intspanset_intspan(ss: "const SpanSet *", s: "const Span *") -> "int": +def distance_intspanset_intspan( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_intspanset_intspan(ss_converted, s_converted) @@ -5007,8 +5098,8 @@ def distance_intspanset_intspan(ss: "const SpanSet *", s: "const Span *") -> "in def distance_intspanset_intspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "int": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_intspanset_intspanset(ss1_converted, ss2_converted) @@ -5016,7 +5107,7 @@ def distance_intspanset_intspanset( return result if result != _ffi.NULL else None -def distance_set_bigint(s: "const Set *", i: int) -> "int64": +def distance_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.distance_set_bigint(s_converted, i_converted) @@ -5024,7 +5115,7 @@ def distance_set_bigint(s: "const Set *", i: int) -> "int64": return result if result != _ffi.NULL else None -def distance_set_date(s: "const Set *", d: "DateADT") -> "int": +def distance_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.distance_set_date(s_converted, d_converted) @@ -5032,21 +5123,21 @@ def distance_set_date(s: "const Set *", d: "DateADT") -> "int": return result if result != _ffi.NULL else None -def distance_set_float(s: "const Set *", d: float) -> "double": +def distance_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) result = _lib.distance_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_set_int(s: "const Set *", i: int) -> "int": +def distance_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.distance_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_set_timestamptz(s: "const Set *", t: int) -> "double": +def distance_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_set_timestamptz(s_converted, t_converted) @@ -5054,7 +5145,7 @@ def distance_set_timestamptz(s: "const Set *", t: int) -> "double": return result if result != _ffi.NULL else None -def distance_span_bigint(s: "const Span *", i: int) -> "int64": +def distance_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.distance_span_bigint(s_converted, i_converted) @@ -5062,7 +5153,7 @@ def distance_span_bigint(s: "const Span *", i: int) -> "int64": return result if result != _ffi.NULL else None -def distance_span_date(s: "const Span *", d: "DateADT") -> "int": +def distance_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.distance_span_date(s_converted, d_converted) @@ -5070,21 +5161,21 @@ def distance_span_date(s: "const Span *", d: "DateADT") -> "int": return result if result != _ffi.NULL else None -def distance_span_float(s: "const Span *", d: float) -> "double": +def distance_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.distance_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_span_int(s: "const Span *", i: int) -> "int": +def distance_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.distance_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_span_timestamptz(s: "const Span *", t: int) -> "double": +def distance_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_span_timestamptz(s_converted, t_converted) @@ -5092,7 +5183,7 @@ def distance_span_timestamptz(s: "const Span *", t: int) -> "double": return result if result != _ffi.NULL else None -def distance_spanset_bigint(ss: "const SpanSet *", i: int) -> "int64": +def distance_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.distance_spanset_bigint(ss_converted, i_converted) @@ -5100,7 +5191,7 @@ def distance_spanset_bigint(ss: "const SpanSet *", i: int) -> "int64": return result if result != _ffi.NULL else None -def distance_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "int": +def distance_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.distance_spanset_date(ss_converted, d_converted) @@ -5108,21 +5199,21 @@ def distance_spanset_date(ss: "const SpanSet *", d: "DateADT") -> "int": return result if result != _ffi.NULL else None -def distance_spanset_float(ss: "const SpanSet *", d: float) -> "double": +def distance_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.distance_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_int(ss: "const SpanSet *", i: int) -> "int": +def distance_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.distance_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "double": +def distance_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_spanset_timestamptz(ss_converted, t_converted) @@ -5130,7 +5221,9 @@ def distance_spanset_timestamptz(ss: "const SpanSet *", t: int) -> "double": return result if result != _ffi.NULL else None -def distance_tstzset_tstzset(s1: "const Set *", s2: "const Set *") -> "double": +def distance_tstzset_tstzset( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_tstzset_tstzset(s1_converted, s2_converted) @@ -5138,7 +5231,9 @@ def distance_tstzset_tstzset(s1: "const Set *", s2: "const Set *") -> "double": return result if result != _ffi.NULL else None -def distance_tstzspan_tstzspan(s1: "const Span *", s2: "const Span *") -> "double": +def distance_tstzspan_tstzspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_tstzspan_tstzspan(s1_converted, s2_converted) @@ -5146,7 +5241,9 @@ def distance_tstzspan_tstzspan(s1: "const Span *", s2: "const Span *") -> "doubl return result if result != _ffi.NULL else None -def distance_tstzspanset_tstzspan(ss: "const SpanSet *", s: "const Span *") -> "double": +def distance_tstzspanset_tstzspan( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_tstzspanset_tstzspan(ss_converted, s_converted) @@ -5155,8 +5252,8 @@ def distance_tstzspanset_tstzspan(ss: "const SpanSet *", s: "const Span *") -> " def distance_tstzspanset_tstzspanset( - ss1: "const SpanSet *", ss2: "const SpanSet *" -) -> "double": + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[float, "double"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_tstzspanset_tstzspanset(ss1_converted, ss2_converted) @@ -5164,7 +5261,7 @@ def distance_tstzspanset_tstzspanset( return result if result != _ffi.NULL else None -def bigint_extent_transfn(state: "Span *", i: int) -> "Span *": +def bigint_extent_transfn(state: Annotated[cdata, "Span *"], i: int) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) i_converted = _ffi.cast("int64", i) result = _lib.bigint_extent_transfn(state_converted, i_converted) @@ -5172,7 +5269,7 @@ def bigint_extent_transfn(state: "Span *", i: int) -> "Span *": return result if result != _ffi.NULL else None -def bigint_union_transfn(state: "Set *", i: int) -> "Set *": +def bigint_union_transfn(state: Annotated[cdata, "Set *"], i: int) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) i_converted = _ffi.cast("int64", i) result = _lib.bigint_union_transfn(state_converted, i_converted) @@ -5180,7 +5277,7 @@ def bigint_union_transfn(state: "Set *", i: int) -> "Set *": return result if result != _ffi.NULL else None -def date_extent_transfn(state: "Span *", d: "DateADT") -> "Span *": +def date_extent_transfn(state: Annotated[cdata, "Span *"], d: int) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) d_converted = _ffi.cast("DateADT", d) result = _lib.date_extent_transfn(state_converted, d_converted) @@ -5188,7 +5285,7 @@ def date_extent_transfn(state: "Span *", d: "DateADT") -> "Span *": return result if result != _ffi.NULL else None -def date_union_transfn(state: "Set *", d: "DateADT") -> "Set *": +def date_union_transfn(state: Annotated[cdata, "Set *"], d: int) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) d_converted = _ffi.cast("DateADT", d) result = _lib.date_union_transfn(state_converted, d_converted) @@ -5196,28 +5293,28 @@ def date_union_transfn(state: "Set *", d: "DateADT") -> "Set *": return result if result != _ffi.NULL else None -def float_extent_transfn(state: "Span *", d: float) -> "Span *": +def float_extent_transfn(state: Annotated[cdata, "Span *"], d: float) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) result = _lib.float_extent_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def float_union_transfn(state: "Set *", d: float) -> "Set *": +def float_union_transfn(state: Annotated[cdata, "Set *"], d: float) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) result = _lib.float_union_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def int_extent_transfn(state: "Span *", i: int) -> "Span *": +def int_extent_transfn(state: Annotated[cdata, "Span *"], i: int) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) result = _lib.int_extent_transfn(state_converted, i) _check_error() return result if result != _ffi.NULL else None -def int_union_transfn(state: "Set *", i: int) -> "Set *": +def int_union_transfn(state: Annotated[cdata, "Set *"], i: int) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) i_converted = _ffi.cast("int32", i) result = _lib.int_union_transfn(state_converted, i_converted) @@ -5225,7 +5322,9 @@ def int_union_transfn(state: "Set *", i: int) -> "Set *": return result if result != _ffi.NULL else None -def set_extent_transfn(state: "Span *", s: "const Set *") -> "Span *": +def set_extent_transfn( + state: Annotated[cdata, "Span *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) s_converted = _ffi.cast("const Set *", s) result = _lib.set_extent_transfn(state_converted, s_converted) @@ -5233,14 +5332,14 @@ def set_extent_transfn(state: "Span *", s: "const Set *") -> "Span *": return result if result != _ffi.NULL else None -def set_union_finalfn(state: "Set *") -> "Set *": +def set_union_finalfn(state: Annotated[cdata, "Set *"]) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) result = _lib.set_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def set_union_transfn(state: "Set *", s: "Set *") -> "Set *": +def set_union_transfn(state: Annotated[cdata, "Set *"], s: Annotated[cdata, "Set *"]) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) s_converted = _ffi.cast("Set *", s) result = _lib.set_union_transfn(state_converted, s_converted) @@ -5248,7 +5347,9 @@ def set_union_transfn(state: "Set *", s: "Set *") -> "Set *": return result if result != _ffi.NULL else None -def span_extent_transfn(state: "Span *", s: "const Span *") -> "Span *": +def span_extent_transfn( + state: Annotated[cdata, "Span *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) s_converted = _ffi.cast("const Span *", s) result = _lib.span_extent_transfn(state_converted, s_converted) @@ -5256,7 +5357,9 @@ def span_extent_transfn(state: "Span *", s: "const Span *") -> "Span *": return result if result != _ffi.NULL else None -def span_union_transfn(state: "SpanSet *", s: "const Span *") -> "SpanSet *": +def span_union_transfn( + state: Annotated[cdata, "SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: state_converted = _ffi.cast("SpanSet *", state) s_converted = _ffi.cast("const Span *", s) result = _lib.span_union_transfn(state_converted, s_converted) @@ -5264,7 +5367,9 @@ def span_union_transfn(state: "SpanSet *", s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def spanset_extent_transfn(state: "Span *", ss: "const SpanSet *") -> "Span *": +def spanset_extent_transfn( + state: Annotated[cdata, "Span *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_extent_transfn(state_converted, ss_converted) @@ -5272,14 +5377,16 @@ def spanset_extent_transfn(state: "Span *", ss: "const SpanSet *") -> "Span *": return result if result != _ffi.NULL else None -def spanset_union_finalfn(state: "SpanSet *") -> "SpanSet *": +def spanset_union_finalfn(state: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: state_converted = _ffi.cast("SpanSet *", state) result = _lib.spanset_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_union_transfn(state: "SpanSet *", ss: "const SpanSet *") -> "SpanSet *": +def spanset_union_transfn( + state: Annotated[cdata, "SpanSet *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: state_converted = _ffi.cast("SpanSet *", state) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_union_transfn(state_converted, ss_converted) @@ -5287,7 +5394,7 @@ def spanset_union_transfn(state: "SpanSet *", ss: "const SpanSet *") -> "SpanSet return result if result != _ffi.NULL else None -def text_union_transfn(state: "Set *", txt: str) -> "Set *": +def text_union_transfn(state: Annotated[cdata, "Set *"], txt: str) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) txt_converted = cstring2text(txt) result = _lib.text_union_transfn(state_converted, txt_converted) @@ -5295,7 +5402,7 @@ def text_union_transfn(state: "Set *", txt: str) -> "Set *": return result if result != _ffi.NULL else None -def timestamptz_extent_transfn(state: "Span *", t: int) -> "Span *": +def timestamptz_extent_transfn(state: Annotated[cdata, "Span *"], t: int) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_extent_transfn(state_converted, t_converted) @@ -5303,7 +5410,7 @@ def timestamptz_extent_transfn(state: "Span *", t: int) -> "Span *": return result if result != _ffi.NULL else None -def timestamptz_union_transfn(state: "Set *", t: int) -> "Set *": +def timestamptz_union_transfn(state: Annotated[cdata, "Set *"], t: int) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_union_transfn(state_converted, t_converted) @@ -5311,7 +5418,7 @@ def timestamptz_union_transfn(state: "Set *", t: int) -> "Set *": return result if result != _ffi.NULL else None -def bigint_get_bin(value: int, vsize: int, vorigin: int) -> "int64": +def bigint_get_bin(value: int, vsize: int, vorigin: int) -> Annotated[int, "int64"]: value_converted = _ffi.cast("int64", value) vsize_converted = _ffi.cast("int64", vsize) vorigin_converted = _ffi.cast("int64", vorigin) @@ -5321,36 +5428,30 @@ def bigint_get_bin(value: int, vsize: int, vorigin: int) -> "int64": def bigintspan_bins( - s: "const Span *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Span *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) vsize_converted = _ffi.cast("int64", vsize) vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspan_bins( - s_converted, vsize_converted, vorigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.bigintspan_bins(s_converted, vsize_converted, vorigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def bigintspanset_bins( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) vsize_converted = _ffi.cast("int64", vsize) vorigin_converted = _ffi.cast("int64", vorigin) - count = _ffi.new("int *") - result = _lib.bigintspanset_bins( - ss_converted, vsize_converted, vorigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.bigintspanset_bins(ss_converted, vsize_converted, vorigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def date_get_bin( - d: "DateADT", duration: "const Interval *", torigin: "DateADT" -) -> "DateADT": +def date_get_bin(d: int, duration: Annotated[cdata, "const Interval *"], torigin: int) -> Annotated[int, "DateADT"]: d_converted = _ffi.cast("DateADT", d) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("DateADT", torigin) @@ -5360,127 +5461,131 @@ def date_get_bin( def datespan_bins( - s: "const Span *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Span *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespan_bins( - s_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.datespan_bins(s_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def datespanset_bins( - ss: "const SpanSet *", duration: "const Interval *", torigin: "DateADT" -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("DateADT", torigin) - count = _ffi.new("int *") - result = _lib.datespanset_bins( - ss_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.datespanset_bins(ss_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def float_get_bin(value: float, vsize: float, vorigin: float) -> "double": +def float_get_bin(value: float, vsize: float, vorigin: float) -> Annotated[float, "double"]: result = _lib.float_get_bin(value, vsize, vorigin) _check_error() return result if result != _ffi.NULL else None def floatspan_bins( - s: "const Span *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Span *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) - count = _ffi.new("int *") - result = _lib.floatspan_bins(s_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.floatspan_bins(s_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def floatspanset_bins( - ss: "const SpanSet *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def int_get_bin(value: int, vsize: int, vorigin: int) -> "int": +def int_get_bin(value: int, vsize: int, vorigin: int) -> Annotated[int, "int"]: result = _lib.int_get_bin(value, vsize, vorigin) _check_error() return result if result != _ffi.NULL else None def intspan_bins( - s: "const Span *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Span *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) - count = _ffi.new("int *") - result = _lib.intspan_bins(s_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.intspan_bins(s_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def intspanset_bins( - ss: "const SpanSet *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) - count = _ffi.new("int *") - result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def timestamptz_get_bin( - t: int, duration: "const Interval *", torigin: int -) -> "TimestampTz": + t: int, duration: Annotated[cdata, "const Interval *"], torigin: int +) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.timestamptz_get_bin( - t_converted, duration_converted, torigin_converted - ) + result = _lib.timestamptz_get_bin(t_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None def tstzspan_bins( - s: "const Span *", duration: "const Interval *", origin: int -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Span *"], + duration: Annotated[cdata, "const Interval *"], + origin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) - count = _ffi.new("int *") - result = _lib.tstzspan_bins( - s_converted, duration_converted, origin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tstzspan_bins(s_converted, duration_converted, origin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tstzspanset_bins( - ss: "const SpanSet *", duration: "const Interval *", torigin: int -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tstzspanset_bins( - ss_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tstzspanset_bins(ss_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tbox_as_hexwkb(box: "const TBox *", variant: int) -> "Tuple[str, 'size_t *']": +def tbox_as_hexwkb( + box: Annotated[cdata, "const TBox *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: box_converted = _ffi.cast("const TBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size = _ffi.new("size_t *") @@ -5490,19 +5595,19 @@ def tbox_as_hexwkb(box: "const TBox *", variant: int) -> "Tuple[str, 'size_t *'] return result if result != _ffi.NULL else None, size[0] -def tbox_as_wkb(box: "const TBox *", variant: int) -> bytes: +def tbox_as_wkb( + box: Annotated[cdata, "const TBox *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: box_converted = _ffi.cast("const TBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") result = _lib.tbox_as_wkb(box_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def tbox_from_hexwkb(hexwkb: str) -> "TBox *": +def tbox_from_hexwkb(hexwkb: str) -> Annotated[cdata, "TBox *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.tbox_from_hexwkb(hexwkb_converted) _check_error() @@ -5515,14 +5620,14 @@ def tbox_from_wkb(wkb: bytes) -> "TBOX *": return result if result != _ffi.NULL else None -def tbox_in(string: str) -> "TBox *": +def tbox_in(string: str) -> Annotated[cdata, "TBox *"]: string_converted = string.encode("utf-8") result = _lib.tbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_out(box: "const TBox *", maxdd: int) -> str: +def tbox_out(box: Annotated[cdata, "const TBox *"], maxdd: int) -> Annotated[str, "char *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_out(box_converted, maxdd) _check_error() @@ -5530,35 +5635,37 @@ def tbox_out(box: "const TBox *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def float_timestamptz_to_tbox(d: float, t: int) -> "TBox *": +def float_timestamptz_to_tbox(d: float, t: int) -> Annotated[cdata, "TBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.float_timestamptz_to_tbox(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def float_tstzspan_to_tbox(d: float, s: "const Span *") -> "TBox *": +def float_tstzspan_to_tbox(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.float_tstzspan_to_tbox(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def int_timestamptz_to_tbox(i: int, t: int) -> "TBox *": +def int_timestamptz_to_tbox(i: int, t: int) -> Annotated[cdata, "TBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.int_timestamptz_to_tbox(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def int_tstzspan_to_tbox(i: int, s: "const Span *") -> "TBox *": +def int_tstzspan_to_tbox(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.int_tstzspan_to_tbox(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_tstzspan_to_tbox(span: "const Span *", s: "const Span *") -> "TBox *": +def numspan_tstzspan_to_tbox( + span: Annotated[cdata, "const Span *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "TBox *"]: span_converted = _ffi.cast("const Span *", span) s_converted = _ffi.cast("const Span *", s) result = _lib.numspan_tstzspan_to_tbox(span_converted, s_converted) @@ -5566,7 +5673,7 @@ def numspan_tstzspan_to_tbox(span: "const Span *", s: "const Span *") -> "TBox * return result if result != _ffi.NULL else None -def numspan_timestamptz_to_tbox(span: "const Span *", t: int) -> "TBox *": +def numspan_timestamptz_to_tbox(span: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "TBox *"]: span_converted = _ffi.cast("const Span *", span) t_converted = _ffi.cast("TimestampTz", t) result = _lib.numspan_timestamptz_to_tbox(span_converted, t_converted) @@ -5574,14 +5681,16 @@ def numspan_timestamptz_to_tbox(span: "const Span *", t: int) -> "TBox *": return result if result != _ffi.NULL else None -def tbox_copy(box: "const TBox *") -> "TBox *": +def tbox_copy(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_copy(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_make(s: "Optional['const Span *']", p: "Optional['const Span *']") -> "TBox *": +def tbox_make( + s: Annotated[cdata, "const Span *"] | None, p: Annotated[cdata, "const Span *"] | None +) -> Annotated[cdata, "TBox *"]: s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL p_converted = _ffi.cast("const Span *", p) if p is not None else _ffi.NULL result = _lib.tbox_make(s_converted, p_converted) @@ -5589,82 +5698,82 @@ def tbox_make(s: "Optional['const Span *']", p: "Optional['const Span *']") -> " return result if result != _ffi.NULL else None -def float_to_tbox(d: float) -> "TBox *": +def float_to_tbox(d: float) -> Annotated[cdata, "TBox *"]: result = _lib.float_to_tbox(d) _check_error() return result if result != _ffi.NULL else None -def int_to_tbox(i: int) -> "TBox *": +def int_to_tbox(i: int) -> Annotated[cdata, "TBox *"]: result = _lib.int_to_tbox(i) _check_error() return result if result != _ffi.NULL else None -def set_to_tbox(s: "const Set *") -> "TBox *": +def set_to_tbox(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TBox *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_tbox(s: "const Span *") -> "TBox *": +def span_to_tbox(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_to_tbox(ss: "const SpanSet *") -> "TBox *": +def spanset_to_tbox(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "TBox *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_to_tbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_intspan(box: "const TBox *") -> "Span *": +def tbox_to_intspan(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "Span *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_intspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_floatspan(box: "const TBox *") -> "Span *": +def tbox_to_floatspan(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "Span *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_floatspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_tstzspan(box: "const TBox *") -> "Span *": +def tbox_to_tstzspan(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "Span *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_tbox(t: int) -> "TBox *": +def timestamptz_to_tbox(t: int) -> Annotated[cdata, "TBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_tbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hast(box: "const TBox *") -> "bool": +def tbox_hast(box: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hasx(box: "const TBox *") -> "bool": +def tbox_hasx(box: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_tmax(box: "const TBox *") -> int: +def tbox_tmax(box: Annotated[cdata, "const TBox *"]) -> int: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.tbox_tmax(box_converted, out_result) @@ -5674,7 +5783,7 @@ def tbox_tmax(box: "const TBox *") -> int: return None -def tbox_tmax_inc(box: "const TBox *") -> "bool": +def tbox_tmax_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_tmax_inc(box_converted, out_result) @@ -5684,7 +5793,7 @@ def tbox_tmax_inc(box: "const TBox *") -> "bool": return None -def tbox_tmin(box: "const TBox *") -> int: +def tbox_tmin(box: Annotated[cdata, "const TBox *"]) -> int: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.tbox_tmin(box_converted, out_result) @@ -5694,7 +5803,7 @@ def tbox_tmin(box: "const TBox *") -> int: return None -def tbox_tmin_inc(box: "const TBox *") -> "bool": +def tbox_tmin_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_tmin_inc(box_converted, out_result) @@ -5704,7 +5813,7 @@ def tbox_tmin_inc(box: "const TBox *") -> "bool": return None -def tbox_xmax(box: "const TBox *") -> "double": +def tbox_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tbox_xmax(box_converted, out_result) @@ -5714,7 +5823,7 @@ def tbox_xmax(box: "const TBox *") -> "double": return None -def tbox_xmax_inc(box: "const TBox *") -> "bool": +def tbox_xmax_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_xmax_inc(box_converted, out_result) @@ -5724,7 +5833,7 @@ def tbox_xmax_inc(box: "const TBox *") -> "bool": return None -def tbox_xmin(box: "const TBox *") -> "double": +def tbox_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tbox_xmin(box_converted, out_result) @@ -5734,7 +5843,7 @@ def tbox_xmin(box: "const TBox *") -> "double": return None -def tbox_xmin_inc(box: "const TBox *") -> "bool": +def tbox_xmin_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_xmin_inc(box_converted, out_result) @@ -5744,7 +5853,7 @@ def tbox_xmin_inc(box: "const TBox *") -> "bool": return None -def tboxfloat_xmax(box: "const TBox *") -> "double": +def tboxfloat_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tboxfloat_xmax(box_converted, out_result) @@ -5754,7 +5863,7 @@ def tboxfloat_xmax(box: "const TBox *") -> "double": return None -def tboxfloat_xmin(box: "const TBox *") -> "double": +def tboxfloat_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tboxfloat_xmin(box_converted, out_result) @@ -5764,7 +5873,7 @@ def tboxfloat_xmin(box: "const TBox *") -> "double": return None -def tboxint_xmax(box: "const TBox *") -> "int": +def tboxint_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "int"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("int *") result = _lib.tboxint_xmax(box_converted, out_result) @@ -5774,7 +5883,7 @@ def tboxint_xmax(box: "const TBox *") -> "int": return None -def tboxint_xmin(box: "const TBox *") -> "int": +def tboxint_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "int"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("int *") result = _lib.tboxint_xmin(box_converted, out_result) @@ -5784,21 +5893,23 @@ def tboxint_xmin(box: "const TBox *") -> "int": return None -def tbox_expand_float(box: "const TBox *", d: float) -> "TBox *": +def tbox_expand_float(box: Annotated[cdata, "const TBox *"], d: float) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_expand_float(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_int(box: "const TBox *", i: int) -> "TBox *": +def tbox_expand_int(box: Annotated[cdata, "const TBox *"], i: int) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_expand_int(box_converted, i) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_time(box: "const TBox *", interv: "const Interval *") -> "TBox *": +def tbox_expand_time( + box: Annotated[cdata, "const TBox *"], interv: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tbox_expand_time(box_converted, interv_converted) @@ -5806,7 +5917,7 @@ def tbox_expand_time(box: "const TBox *", interv: "const Interval *") -> "TBox * return result if result != _ffi.NULL else None -def tbox_round(box: "const TBox *", maxdd: int) -> "TBox *": +def tbox_round(box: Annotated[cdata, "const TBox *"], maxdd: int) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_round(box_converted, maxdd) _check_error() @@ -5814,19 +5925,17 @@ def tbox_round(box: "const TBox *", maxdd: int) -> "TBox *": def tbox_shift_scale_float( - box: "const TBox *", shift: float, width: float, hasshift: bool, haswidth: bool -) -> "TBox *": + box: Annotated[cdata, "const TBox *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) - result = _lib.tbox_shift_scale_float( - box_converted, shift, width, hasshift, haswidth - ) + result = _lib.tbox_shift_scale_float(box_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def tbox_shift_scale_int( - box: "const TBox *", shift: int, width: int, hasshift: bool, haswidth: bool -) -> "TBox *": + box: Annotated[cdata, "const TBox *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_shift_scale_int(box_converted, shift, width, hasshift, haswidth) _check_error() @@ -5834,27 +5943,21 @@ def tbox_shift_scale_int( def tbox_shift_scale_time( - box: "const TBox *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "TBox *": + box: Annotated[cdata, "const TBox *"], + shift: Annotated[cdata, "const Interval *"] | None, + duration: Annotated[cdata, "const Interval *"] | None, +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.tbox_shift_scale_time( - box_converted, shift_converted, duration_converted - ) + shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + result = _lib.tbox_shift_scale_time(box_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None def union_tbox_tbox( - box1: "const TBox *", box2: "const TBox *", strict: bool -) -> "TBox *": + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"], strict: bool +) -> Annotated[cdata, "TBox *"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.union_tbox_tbox(box1_converted, box2_converted, strict) @@ -5862,7 +5965,9 @@ def union_tbox_tbox( return result if result != _ffi.NULL else None -def intersection_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": +def intersection_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[cdata, "TBox *"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.intersection_tbox_tbox(box1_converted, box2_converted) @@ -5870,7 +5975,9 @@ def intersection_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox return result if result != _ffi.NULL else None -def adjacent_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def adjacent_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.adjacent_tbox_tbox(box1_converted, box2_converted) @@ -5878,7 +5985,9 @@ def adjacent_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def contained_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def contained_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.contained_tbox_tbox(box1_converted, box2_converted) @@ -5886,7 +5995,9 @@ def contained_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def contains_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def contains_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.contains_tbox_tbox(box1_converted, box2_converted) @@ -5894,7 +6005,9 @@ def contains_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overlaps_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overlaps_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overlaps_tbox_tbox(box1_converted, box2_converted) @@ -5902,7 +6015,9 @@ def overlaps_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def same_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def same_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.same_tbox_tbox(box1_converted, box2_converted) @@ -5910,7 +6025,9 @@ def same_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def after_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def after_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.after_tbox_tbox(box1_converted, box2_converted) @@ -5918,7 +6035,9 @@ def after_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def before_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def before_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.before_tbox_tbox(box1_converted, box2_converted) @@ -5926,7 +6045,9 @@ def before_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def left_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def left_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.left_tbox_tbox(box1_converted, box2_converted) @@ -5934,7 +6055,9 @@ def left_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overafter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overafter_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overafter_tbox_tbox(box1_converted, box2_converted) @@ -5942,7 +6065,9 @@ def overafter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overbefore_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overbefore_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overbefore_tbox_tbox(box1_converted, box2_converted) @@ -5950,7 +6075,9 @@ def overbefore_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overleft_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overleft_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overleft_tbox_tbox(box1_converted, box2_converted) @@ -5958,7 +6085,9 @@ def overleft_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def overright_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def overright_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.overright_tbox_tbox(box1_converted, box2_converted) @@ -5966,7 +6095,9 @@ def overright_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def right_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": +def right_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.right_tbox_tbox(box1_converted, box2_converted) @@ -5974,7 +6105,7 @@ def right_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbox_cmp(box1: "const TBox *", box2: "const TBox *") -> "int": +def tbox_cmp(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[int, "int"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_cmp(box1_converted, box2_converted) @@ -5982,7 +6113,7 @@ def tbox_cmp(box1: "const TBox *", box2: "const TBox *") -> "int": return result if result != _ffi.NULL else None -def tbox_eq(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_eq(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_eq(box1_converted, box2_converted) @@ -5990,7 +6121,7 @@ def tbox_eq(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbox_ge(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_ge(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_ge(box1_converted, box2_converted) @@ -5998,7 +6129,7 @@ def tbox_ge(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbox_gt(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_gt(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_gt(box1_converted, box2_converted) @@ -6006,7 +6137,7 @@ def tbox_gt(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbox_le(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_le(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_le(box1_converted, box2_converted) @@ -6014,7 +6145,7 @@ def tbox_le(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbox_lt(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_lt(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_lt(box1_converted, box2_converted) @@ -6022,7 +6153,7 @@ def tbox_lt(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbox_ne(box1: "const TBox *", box2: "const TBox *") -> "bool": +def tbox_ne(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_ne(box1_converted, box2_converted) @@ -6030,21 +6161,21 @@ def tbox_ne(box1: "const TBox *", box2: "const TBox *") -> "bool": return result if result != _ffi.NULL else None -def tbool_from_mfjson(string: str) -> "Temporal *": +def tbool_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tbool_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_in(string: str) -> "Temporal *": +def tbool_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tbool_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_out(temp: "const Temporal *") -> str: +def tbool_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_out(temp_converted) _check_error() @@ -6053,8 +6184,8 @@ def tbool_out(temp: "const Temporal *") -> str: def temporal_as_hexwkb( - temp: "const Temporal *", variant: int -) -> "Tuple[str, 'size_t *']": + temp: Annotated[cdata, "const Temporal *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: temp_converted = _ffi.cast("const Temporal *", temp) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -6065,35 +6196,29 @@ def temporal_as_hexwkb( def temporal_as_mfjson( - temp: "const Temporal *", - with_bbox: bool, - flags: int, - precision: int, - srs: "Optional[str]", -) -> str: + temp: Annotated[cdata, "const Temporal *"], with_bbox: bool, flags: int, precision: int, srs: str | None +) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL - result = _lib.temporal_as_mfjson( - temp_converted, with_bbox, flags, precision, srs_converted - ) + result = _lib.temporal_as_mfjson(temp_converted, with_bbox, flags, precision, srs_converted) _check_error() result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def temporal_as_wkb(temp: "const Temporal *", variant: int) -> bytes: +def temporal_as_wkb( + temp: Annotated[cdata, "const Temporal *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: temp_converted = _ffi.cast("const Temporal *", temp) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") result = _lib.temporal_as_wkb(temp_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def temporal_from_hexwkb(hexwkb: str) -> "Temporal *": +def temporal_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Temporal *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.temporal_from_hexwkb(hexwkb_converted) _check_error() @@ -6106,21 +6231,21 @@ def temporal_from_wkb(wkb: bytes) -> "Temporal *": return result if result != _ffi.NULL else None -def tfloat_from_mfjson(string: str) -> "Temporal *": +def tfloat_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tfloat_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_in(string: str) -> "Temporal *": +def tfloat_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tfloat_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_out(temp: "const Temporal *", maxdd: int) -> str: +def tfloat_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_out(temp_converted, maxdd) _check_error() @@ -6128,21 +6253,21 @@ def tfloat_out(temp: "const Temporal *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def tint_from_mfjson(string: str) -> "Temporal *": +def tint_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_in(string: str) -> "Temporal *": +def tint_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_out(temp: "const Temporal *") -> str: +def tint_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_out(temp_converted) _check_error() @@ -6150,21 +6275,21 @@ def tint_out(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def ttext_from_mfjson(string: str) -> "Temporal *": +def ttext_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.ttext_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_in(string: str) -> "Temporal *": +def ttext_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.ttext_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_out(temp: "const Temporal *") -> str: +def ttext_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_out(temp_converted) _check_error() @@ -6172,28 +6297,28 @@ def ttext_out(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def tbool_from_base_temp(b: bool, temp: "const Temporal *") -> "Temporal *": +def tbool_from_base_temp(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_from_base_temp(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tboolinst_make(b: bool, t: int) -> "TInstant *": +def tboolinst_make(b: bool, t: int) -> Annotated[cdata, "TInstant *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.tboolinst_make(b, t_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzset(b: bool, s: "const Set *") -> "TSequence *": +def tboolseq_from_base_tstzset(b: bool, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tboolseq_from_base_tstzset(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzspan(b: bool, s: "const Span *") -> "TSequence *": +def tboolseq_from_base_tstzspan(b: bool, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TSequence *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tboolseq_from_base_tstzspan(b, s_converted) _check_error() @@ -6201,36 +6326,36 @@ def tboolseq_from_base_tstzspan(b: bool, s: "const Span *") -> "TSequence *": def tboolseqset_from_base_tstzspanset( - b: bool, ss: "const SpanSet *" -) -> "TSequenceSet *": + b: bool, ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tboolseqset_from_base_tstzspanset(b, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_copy(temp: "const Temporal *") -> "Temporal *": +def temporal_copy(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_copy(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_from_base_temp(d: float, temp: "const Temporal *") -> "Temporal *": +def tfloat_from_base_temp(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_from_base_temp(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_make(d: float, t: int) -> "TInstant *": +def tfloatinst_make(d: float, t: int) -> Annotated[cdata, "TInstant *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.tfloatinst_make(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": +def tfloatseq_from_base_tstzset(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tfloatseq_from_base_tstzset(d, s_converted) _check_error() @@ -6238,8 +6363,8 @@ def tfloatseq_from_base_tstzset(d: float, s: "const Set *") -> "TSequence *": def tfloatseq_from_base_tstzspan( - d: float, s: "const Span *", interp: InterpolationType -) -> "TSequence *": + d: float, s: Annotated[cdata, "const Span *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp) _check_error() @@ -6247,43 +6372,45 @@ def tfloatseq_from_base_tstzspan( def tfloatseqset_from_base_tstzspanset( - d: float, ss: "const SpanSet *", interp: InterpolationType -) -> "TSequenceSet *": + d: float, ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tint_from_base_temp(i: int, temp: "const Temporal *") -> "Temporal *": +def tint_from_base_temp(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_from_base_temp(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintinst_make(i: int, t: int) -> "TInstant *": +def tintinst_make(i: int, t: int) -> Annotated[cdata, "TInstant *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.tintinst_make(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzset(i: int, s: "const Set *") -> "TSequence *": +def tintseq_from_base_tstzset(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tintseq_from_base_tstzset(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzspan(i: int, s: "const Span *") -> "TSequence *": +def tintseq_from_base_tstzspan(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TSequence *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tintseq_from_base_tstzspan(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseqset_from_base_tstzspanset(i: int, ss: "const SpanSet *") -> "TSequenceSet *": +def tintseqset_from_base_tstzspanset( + i: int, ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tintseqset_from_base_tstzspanset(i, ss_converted) _check_error() @@ -6291,24 +6418,22 @@ def tintseqset_from_base_tstzspanset(i: int, ss: "const SpanSet *") -> "TSequenc def tsequence_make( - instants: "const TInstant **", + instants: Annotated[list, "const TInstant **"], count: int, lower_inc: bool, upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> "TSequence *": +) -> Annotated[cdata, "TSequence *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - result = _lib.tsequence_make( - instants_converted, count, lower_inc, upper_inc, interp, normalize - ) + result = _lib.tsequence_make(instants_converted, count, lower_inc, upper_inc, interp, normalize) _check_error() return result if result != _ffi.NULL else None def tsequenceset_make( - sequences: "const TSequence **", count: int, normalize: bool -) -> "TSequenceSet *": + sequences: Annotated[list, "const TSequence **"], count: int, normalize: bool +) -> Annotated[cdata, "TSequenceSet *"]: sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequenceset_make(sequences_converted, count, normalize) _check_error() @@ -6316,23 +6441,19 @@ def tsequenceset_make( def tsequenceset_make_gaps( - instants: "const TInstant **", + instants: Annotated[list, "const TInstant **"], interp: InterpolationType, - maxt: "Optional['const Interval *']", + maxt: Annotated[cdata, "const Interval *"] | None, maxdist: float, -) -> "TSequenceSet *": +) -> Annotated[cdata, "TSequenceSet *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - maxt_converted = ( - _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL - ) - result = _lib.tsequenceset_make_gaps( - instants_converted, len(instants), interp, maxt_converted, maxdist - ) + maxt_converted = _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL + result = _lib.tsequenceset_make_gaps(instants_converted, len(instants), interp, maxt_converted, maxdist) _check_error() return result if result != _ffi.NULL else None -def ttext_from_base_temp(txt: str, temp: "const Temporal *") -> "Temporal *": +def ttext_from_base_temp(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_from_base_temp(txt_converted, temp_converted) @@ -6340,7 +6461,7 @@ def ttext_from_base_temp(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def ttextinst_make(txt: str, t: int) -> "TInstant *": +def ttextinst_make(txt: str, t: int) -> Annotated[cdata, "TInstant *"]: txt_converted = cstring2text(txt) t_converted = _ffi.cast("TimestampTz", t) result = _lib.ttextinst_make(txt_converted, t_converted) @@ -6348,7 +6469,7 @@ def ttextinst_make(txt: str, t: int) -> "TInstant *": return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzset(txt: str, s: "const Set *") -> "TSequence *": +def ttextseq_from_base_tstzset(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.ttextseq_from_base_tstzset(txt_converted, s_converted) @@ -6356,7 +6477,7 @@ def ttextseq_from_base_tstzset(txt: str, s: "const Set *") -> "TSequence *": return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzspan(txt: str, s: "const Span *") -> "TSequence *": +def ttextseq_from_base_tstzspan(txt: str, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TSequence *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Span *", s) result = _lib.ttextseq_from_base_tstzspan(txt_converted, s_converted) @@ -6365,8 +6486,8 @@ def ttextseq_from_base_tstzspan(txt: str, s: "const Span *") -> "TSequence *": def ttextseqset_from_base_tstzspanset( - txt: str, ss: "const SpanSet *" -) -> "TSequenceSet *": + txt: str, ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "TSequenceSet *"]: txt_converted = cstring2text(txt) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.ttextseqset_from_base_tstzspanset(txt_converted, ss_converted) @@ -6374,56 +6495,56 @@ def ttextseqset_from_base_tstzspanset( return result if result != _ffi.NULL else None -def tbool_to_tint(temp: "const Temporal *") -> "Temporal *": +def tbool_to_tint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tstzspan(temp: "const Temporal *") -> "Span *": +def temporal_to_tstzspan(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tstzspan(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_to_tint(temp: "const Temporal *") -> "Temporal *": +def tfloat_to_tint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_to_tfloat(temp: "const Temporal *") -> "Temporal *": +def tint_to_tfloat(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_to_tfloat(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_span(temp: "const Temporal *") -> "Span *": +def tnumber_to_span(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_to_span(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_tbox(temp: "const Temporal *") -> "TBox *": +def tnumber_to_tbox(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_to_tbox(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_end_value(temp: "const Temporal *") -> "bool": +def tbool_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_start_value(temp: "const Temporal *") -> "bool": +def tbool_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_start_value(temp_converted) _check_error() @@ -6431,21 +6552,19 @@ def tbool_start_value(temp: "const Temporal *") -> "bool": def tbool_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "bool": + temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool +) -> Annotated[cdata, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("bool *") - result = _lib.tbool_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.tbool_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": +def tbool_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("bool *") result = _lib.tbool_value_n(temp_converted, n, out_result) @@ -6455,65 +6574,69 @@ def tbool_value_n(temp: "const Temporal *", n: int) -> "bool": return None -def tbool_values(temp: "const Temporal *") -> "Tuple['bool *', 'int']": +def tbool_values( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "bool *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tbool_values(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tbool_values(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_duration(temp: "const Temporal *", boundspan: bool) -> "Interval *": +def temporal_duration(temp: Annotated[cdata, "const Temporal *"], boundspan: bool) -> Annotated[cdata, "Interval *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_duration(temp_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def temporal_end_instant(temp: "const Temporal *") -> "TInstant *": +def temporal_end_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_sequence(temp: "const Temporal *") -> "TSequence *": +def temporal_end_sequence(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_timestamptz(temp: "const Temporal *") -> "TimestampTz": +def temporal_end_timestamptz(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "TimestampTz"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_hash(temp: "const Temporal *") -> "uint32": +def temporal_hash(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "uint32"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_hash(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_instant_n(temp: "const Temporal *", n: int) -> "TInstant *": +def temporal_instant_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_instant_n(temp_converted, n) _check_error() return result if result != _ffi.NULL else None -def temporal_instants(temp: "const Temporal *") -> "Tuple['TInstant **', 'int']": +def temporal_instants( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TInstant **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_instants(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_instants(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_interp(temp: "const Temporal *") -> str: +def temporal_interp(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "const char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_interp(temp_converted) _check_error() @@ -6521,86 +6644,90 @@ def temporal_interp(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def temporal_lower_inc(temp: "const Temporal *") -> "bool": +def temporal_lower_inc(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_lower_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_max_instant(temp: "const Temporal *") -> "TInstant *": +def temporal_max_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_max_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_instant(temp: "const Temporal *") -> "TInstant *": +def temporal_min_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_min_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_instants(temp: "const Temporal *") -> "int": +def temporal_num_instants(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_instants(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_sequences(temp: "const Temporal *") -> "int": +def temporal_num_sequences(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_sequences(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_timestamps(temp: "const Temporal *") -> "int": +def temporal_num_timestamps(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_timestamps(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_segments(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": +def temporal_segments( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TSequence **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_segments(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_segments(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_sequence_n(temp: "const Temporal *", i: int) -> "TSequence *": +def temporal_sequence_n(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_sequence_n(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def temporal_sequences(temp: "const Temporal *") -> "Tuple['TSequence **', 'int']": +def temporal_sequences( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TSequence **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_sequences(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_sequences(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_start_instant(temp: "const Temporal *") -> "TInstant *": +def temporal_start_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_sequence(temp: "const Temporal *") -> "TSequence *": +def temporal_start_sequence(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_timestamptz(temp: "const Temporal *") -> "TimestampTz": +def temporal_start_timestamptz(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "TimestampTz"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_timestamptz(temp_converted) _check_error() @@ -6608,8 +6735,8 @@ def temporal_start_timestamptz(temp: "const Temporal *") -> "TimestampTz": def temporal_stops( - temp: "const Temporal *", maxdist: float, minduration: "const Interval *" -) -> "TSequenceSet *": + temp: Annotated[cdata, "const Temporal *"], maxdist: float, minduration: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "TSequenceSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) minduration_converted = _ffi.cast("const Interval *", minduration) result = _lib.temporal_stops(temp_converted, maxdist, minduration_converted) @@ -6617,7 +6744,7 @@ def temporal_stops( return result if result != _ffi.NULL else None -def temporal_subtype(temp: "const Temporal *") -> str: +def temporal_subtype(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "const char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_subtype(temp_converted) _check_error() @@ -6625,22 +6752,24 @@ def temporal_subtype(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def temporal_time(temp: "const Temporal *") -> "SpanSet *": +def temporal_time(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "SpanSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_time(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_timestamps(temp: "const Temporal *") -> "Tuple['TimestampTz *', 'int']": +def temporal_timestamps( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[int, "TimestampTz *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_timestamps(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_timestamps(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: +def temporal_timestamptz_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> int: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("TimestampTz *") result = _lib.temporal_timestamptz_n(temp_converted, n, out_result) @@ -6650,35 +6779,35 @@ def temporal_timestamptz_n(temp: "const Temporal *", n: int) -> int: return None -def temporal_upper_inc(temp: "const Temporal *") -> "bool": +def temporal_upper_inc(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_upper_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_end_value(temp: "const Temporal *") -> "double": +def tfloat_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_max_value(temp: "const Temporal *") -> "double": +def tfloat_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_min_value(temp: "const Temporal *") -> "double": +def tfloat_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_start_value(temp: "const Temporal *") -> "double": +def tfloat_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_start_value(temp_converted) _check_error() @@ -6686,21 +6815,19 @@ def tfloat_start_value(temp: "const Temporal *") -> "double": def tfloat_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "double": + temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool +) -> Annotated[cdata, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("double *") - result = _lib.tfloat_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.tfloat_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": +def tfloat_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("double *") result = _lib.tfloat_value_n(temp_converted, n, out_result) @@ -6710,56 +6837,58 @@ def tfloat_value_n(temp: "const Temporal *", n: int) -> "double": return None -def tfloat_values(temp: "const Temporal *") -> "Tuple['double *', 'int']": +def tfloat_values( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "double *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tfloat_values(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tfloat_values(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tint_end_value(temp: "const Temporal *") -> "int": +def tint_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_max_value(temp: "const Temporal *") -> "int": +def tint_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_min_value(temp: "const Temporal *") -> "int": +def tint_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_start_value(temp: "const Temporal *") -> "int": +def tint_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_value_at_timestamptz(temp: "const Temporal *", t: int, strict: bool) -> "int": +def tint_value_at_timestamptz( + temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool +) -> Annotated[cdata, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("int *") - result = _lib.tint_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.tint_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result[0] if out_result[0] != _ffi.NULL else None return None -def tint_value_n(temp: "const Temporal *", n: int) -> "int": +def tint_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("int *") result = _lib.tint_value_n(temp_converted, n, out_result) @@ -6769,36 +6898,38 @@ def tint_value_n(temp: "const Temporal *", n: int) -> "int": return None -def tint_values(temp: "const Temporal *") -> "Tuple['int *', 'int']": +def tint_values( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "int *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tint_values(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tint_values(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_integral(temp: "const Temporal *") -> "double": +def tnumber_integral(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_integral(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_twavg(temp: "const Temporal *") -> "double": +def tnumber_twavg(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_twavg(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_valuespans(temp: "const Temporal *") -> "SpanSet *": +def tnumber_valuespans(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "SpanSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_valuespans(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_end_value(temp: "const Temporal *") -> str: +def ttext_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_end_value(temp_converted) _check_error() @@ -6806,7 +6937,7 @@ def ttext_end_value(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def ttext_max_value(temp: "const Temporal *") -> str: +def ttext_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_max_value(temp_converted) _check_error() @@ -6814,7 +6945,7 @@ def ttext_max_value(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def ttext_min_value(temp: "const Temporal *") -> str: +def ttext_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_min_value(temp_converted) _check_error() @@ -6822,7 +6953,7 @@ def ttext_min_value(temp: "const Temporal *") -> str: return result if result != _ffi.NULL else None -def ttext_start_value(temp: "const Temporal *") -> str: +def ttext_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_start_value(temp_converted) _check_error() @@ -6831,21 +6962,19 @@ def ttext_start_value(temp: "const Temporal *") -> str: def ttext_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "text **": + temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool +) -> Annotated[list, "text **"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("text **") - result = _lib.ttext_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.ttext_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": +def ttext_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[list, "text **"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("text **") result = _lib.ttext_value_n(temp_converted, n, out_result) @@ -6855,28 +6984,32 @@ def ttext_value_n(temp: "const Temporal *", n: int) -> "text **": return None -def ttext_values(temp: "const Temporal *") -> "Tuple['text **', 'int']": +def ttext_values( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "text **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.ttext_values(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.ttext_values(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def float_degrees(value: float, normalize: bool) -> "double": +def float_degrees(value: float, normalize: bool) -> Annotated[float, "double"]: result = _lib.float_degrees(value, normalize) _check_error() return result if result != _ffi.NULL else None -def temparr_round(temp: "const Temporal **", count: int, maxdd: int) -> "Temporal **": +def temparr_round( + temp: Annotated[list, "const Temporal **"], count: int, maxdd: int +) -> Annotated[cdata, "Temporal **"]: temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] result = _lib.temparr_round(temp_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": +def temporal_round(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_round(temp_converted, maxdd) _check_error() @@ -6884,8 +7017,8 @@ def temporal_round(temp: "const Temporal *", maxdd: int) -> "Temporal *": def temporal_scale_time( - temp: "const Temporal *", duration: "const Interval *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], duration: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) result = _lib.temporal_scale_time(temp_converted, duration_converted) @@ -6894,8 +7027,8 @@ def temporal_scale_time( def temporal_set_interp( - temp: "const Temporal *", interp: InterpolationType -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_set_interp(temp_converted, interp) _check_error() @@ -6903,27 +7036,21 @@ def temporal_set_interp( def temporal_shift_scale_time( - temp: "const Temporal *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], + shift: Annotated[cdata, "const Interval *"] | None, + duration: Annotated[cdata, "const Interval *"] | None, +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.temporal_shift_scale_time( - temp_converted, shift_converted, duration_converted - ) + shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + result = _lib.temporal_shift_scale_time(temp_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None def temporal_shift_time( - temp: "const Temporal *", shift: "const Interval *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], shift: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) shift_converted = _ffi.cast("const Interval *", shift) result = _lib.temporal_shift_time(temp_converted, shift_converted) @@ -6931,7 +7058,7 @@ def temporal_shift_time( return result if result != _ffi.NULL else None -def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": +def temporal_to_tinstant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tinstant(temp_converted) _check_error() @@ -6939,8 +7066,8 @@ def temporal_to_tinstant(temp: "const Temporal *") -> "TInstant *": def temporal_to_tsequence( - temp: "const Temporal *", interp: InterpolationType -) -> "TSequence *": + temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tsequence(temp_converted, interp) _check_error() @@ -6948,43 +7075,43 @@ def temporal_to_tsequence( def temporal_to_tsequenceset( - temp: "const Temporal *", interp: InterpolationType -) -> "TSequenceSet *": + temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tsequenceset(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tfloat_ceil(temp: "const Temporal *") -> "Temporal *": +def tfloat_ceil(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_ceil(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_degrees(temp: "const Temporal *", normalize: bool) -> "Temporal *": +def tfloat_degrees(temp: Annotated[cdata, "const Temporal *"], normalize: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_degrees(temp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def tfloat_floor(temp: "const Temporal *") -> "Temporal *": +def tfloat_floor(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_floor(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_radians(temp: "const Temporal *") -> "Temporal *": +def tfloat_radians(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_radians(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_scale_value(temp: "const Temporal *", width: float) -> "Temporal *": +def tfloat_scale_value(temp: Annotated[cdata, "const Temporal *"], width: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_scale_value(temp_converted, width) _check_error() @@ -6992,22 +7119,22 @@ def tfloat_scale_value(temp: "const Temporal *", width: float) -> "Temporal *": def tfloat_shift_scale_value( - temp: "const Temporal *", shift: float, width: float -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], shift: float, width: float +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_value(temp: "const Temporal *", shift: float) -> "Temporal *": +def tfloat_shift_value(temp: Annotated[cdata, "const Temporal *"], shift: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def tint_scale_value(temp: "const Temporal *", width: int) -> "Temporal *": +def tint_scale_value(temp: Annotated[cdata, "const Temporal *"], width: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_scale_value(temp_converted, width) _check_error() @@ -7015,15 +7142,15 @@ def tint_scale_value(temp: "const Temporal *", width: int) -> "Temporal *": def tint_shift_scale_value( - temp: "const Temporal *", shift: int, width: int -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], shift: int, width: int +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": +def tint_shift_value(temp: Annotated[cdata, "const Temporal *"], shift: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_shift_value(temp_converted, shift) _check_error() @@ -7031,28 +7158,24 @@ def tint_shift_value(temp: "const Temporal *", shift: int) -> "Temporal *": def temporal_append_tinstant( - temp: "Temporal *", - inst: "const TInstant *", + temp: Annotated[cdata, "Temporal *"], + inst: Annotated[cdata, "const TInstant *"], interp: InterpolationType, maxdist: float, - maxt: "Optional['const Interval *']", + maxt: Annotated[cdata, "const Interval *"] | None, expand: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("Temporal *", temp) inst_converted = _ffi.cast("const TInstant *", inst) - maxt_converted = ( - _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL - ) - result = _lib.temporal_append_tinstant( - temp_converted, inst_converted, interp, maxdist, maxt_converted, expand - ) + maxt_converted = _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL + result = _lib.temporal_append_tinstant(temp_converted, inst_converted, interp, maxdist, maxt_converted, expand) _check_error() return result if result != _ffi.NULL else None def temporal_append_tsequence( - temp: "Temporal *", seq: "const TSequence *", expand: bool -) -> "Temporal *": + temp: Annotated[cdata, "Temporal *"], seq: Annotated[cdata, "const TSequence *"], expand: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("Temporal *", temp) seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.temporal_append_tsequence(temp_converted, seq_converted, expand) @@ -7061,8 +7184,8 @@ def temporal_append_tsequence( def temporal_delete_timestamptz( - temp: "const Temporal *", t: int, connect: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], t: int, connect: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_delete_timestamptz(temp_converted, t_converted, connect) @@ -7071,8 +7194,8 @@ def temporal_delete_timestamptz( def temporal_delete_tstzset( - temp: "const Temporal *", s: "const Set *", connect: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_delete_tstzset(temp_converted, s_converted, connect) @@ -7081,8 +7204,8 @@ def temporal_delete_tstzset( def temporal_delete_tstzspan( - temp: "const Temporal *", s: "const Span *", connect: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_delete_tstzspan(temp_converted, s_converted, connect) @@ -7091,8 +7214,8 @@ def temporal_delete_tstzspan( def temporal_delete_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *", connect: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_delete_tstzspanset(temp_converted, ss_converted, connect) @@ -7101,8 +7224,8 @@ def temporal_delete_tstzspanset( def temporal_insert( - temp1: "const Temporal *", temp2: "const Temporal *", connect: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_insert(temp1_converted, temp2_converted, connect) @@ -7111,8 +7234,8 @@ def temporal_insert( def temporal_merge( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_merge(temp1_converted, temp2_converted) @@ -7120,7 +7243,7 @@ def temporal_merge( return result if result != _ffi.NULL else None -def temporal_merge_array(temparr: "const Temporal **", count: int) -> "Temporal *": +def temporal_merge_array(temparr: Annotated[list, "const Temporal **"], count: int) -> Annotated[cdata, "Temporal *"]: temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] result = _lib.temporal_merge_array(temparr_converted, count) _check_error() @@ -7128,8 +7251,8 @@ def temporal_merge_array(temparr: "const Temporal **", count: int) -> "Temporal def temporal_update( - temp1: "const Temporal *", temp2: "const Temporal *", connect: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_update(temp1_converted, temp2_converted, connect) @@ -7137,35 +7260,35 @@ def temporal_update( return result if result != _ffi.NULL else None -def tbool_at_value(temp: "const Temporal *", b: bool) -> "Temporal *": +def tbool_at_value(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_at_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tbool_minus_value(temp: "const Temporal *", b: bool) -> "Temporal *": +def tbool_minus_value(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_minus_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def temporal_at_max(temp: "const Temporal *") -> "Temporal *": +def temporal_at_max(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_at_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_min(temp: "const Temporal *") -> "Temporal *": +def temporal_at_min(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_at_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": +def temporal_at_timestamptz(temp: Annotated[cdata, "const Temporal *"], t: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_at_timestamptz(temp_converted, t_converted) @@ -7173,7 +7296,9 @@ def temporal_at_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": return result if result != _ffi.NULL else None -def temporal_at_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": +def temporal_at_tstzset( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_at_tstzset(temp_converted, s_converted) @@ -7181,7 +7306,9 @@ def temporal_at_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal return result if result != _ffi.NULL else None -def temporal_at_tstzspan(temp: "const Temporal *", s: "const Span *") -> "Temporal *": +def temporal_at_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_at_tstzspan(temp_converted, s_converted) @@ -7190,8 +7317,8 @@ def temporal_at_tstzspan(temp: "const Temporal *", s: "const Span *") -> "Tempor def temporal_at_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_at_tstzspanset(temp_converted, ss_converted) @@ -7199,7 +7326,9 @@ def temporal_at_tstzspanset( return result if result != _ffi.NULL else None -def temporal_at_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": +def temporal_at_values( + temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_at_values(temp_converted, set_converted) @@ -7207,21 +7336,21 @@ def temporal_at_values(temp: "const Temporal *", set: "const Set *") -> "Tempora return result if result != _ffi.NULL else None -def temporal_minus_max(temp: "const Temporal *") -> "Temporal *": +def temporal_minus_max(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_minus_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_min(temp: "const Temporal *") -> "Temporal *": +def temporal_minus_min(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_minus_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *": +def temporal_minus_timestamptz(temp: Annotated[cdata, "const Temporal *"], t: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_minus_timestamptz(temp_converted, t_converted) @@ -7229,7 +7358,9 @@ def temporal_minus_timestamptz(temp: "const Temporal *", t: int) -> "Temporal *" return result if result != _ffi.NULL else None -def temporal_minus_tstzset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": +def temporal_minus_tstzset( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_minus_tstzset(temp_converted, s_converted) @@ -7238,8 +7369,8 @@ def temporal_minus_tstzset(temp: "const Temporal *", s: "const Set *") -> "Tempo def temporal_minus_tstzspan( - temp: "const Temporal *", s: "const Span *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_minus_tstzspan(temp_converted, s_converted) @@ -7248,8 +7379,8 @@ def temporal_minus_tstzspan( def temporal_minus_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_minus_tstzspanset(temp_converted, ss_converted) @@ -7257,7 +7388,9 @@ def temporal_minus_tstzspanset( return result if result != _ffi.NULL else None -def temporal_minus_values(temp: "const Temporal *", set: "const Set *") -> "Temporal *": +def temporal_minus_values( + temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_minus_values(temp_converted, set_converted) @@ -7265,35 +7398,37 @@ def temporal_minus_values(temp: "const Temporal *", set: "const Set *") -> "Temp return result if result != _ffi.NULL else None -def tfloat_at_value(temp: "const Temporal *", d: float) -> "Temporal *": +def tfloat_at_value(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_at_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tfloat_minus_value(temp: "const Temporal *", d: float) -> "Temporal *": +def tfloat_minus_value(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_minus_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tint_at_value(temp: "const Temporal *", i: int) -> "Temporal *": +def tint_at_value(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_at_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tint_minus_value(temp: "const Temporal *", i: int) -> "Temporal *": +def tint_minus_value(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_minus_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tnumber_at_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": +def tnumber_at_span( + temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_at_span(temp_converted, span_converted) @@ -7301,7 +7436,9 @@ def tnumber_at_span(temp: "const Temporal *", span: "const Span *") -> "Temporal return result if result != _ffi.NULL else None -def tnumber_at_spanset(temp: "const Temporal *", ss: "const SpanSet *") -> "Temporal *": +def tnumber_at_spanset( + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_at_spanset(temp_converted, ss_converted) @@ -7309,7 +7446,9 @@ def tnumber_at_spanset(temp: "const Temporal *", ss: "const SpanSet *") -> "Temp return result if result != _ffi.NULL else None -def tnumber_at_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": +def tnumber_at_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.tnumber_at_tbox(temp_converted, box_converted) @@ -7317,7 +7456,9 @@ def tnumber_at_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal return result if result != _ffi.NULL else None -def tnumber_minus_span(temp: "const Temporal *", span: "const Span *") -> "Temporal *": +def tnumber_minus_span( + temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_minus_span(temp_converted, span_converted) @@ -7326,8 +7467,8 @@ def tnumber_minus_span(temp: "const Temporal *", span: "const Span *") -> "Tempo def tnumber_minus_spanset( - temp: "const Temporal *", ss: "const SpanSet *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_minus_spanset(temp_converted, ss_converted) @@ -7335,7 +7476,9 @@ def tnumber_minus_spanset( return result if result != _ffi.NULL else None -def tnumber_minus_tbox(temp: "const Temporal *", box: "const TBox *") -> "Temporal *": +def tnumber_minus_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.tnumber_minus_tbox(temp_converted, box_converted) @@ -7343,7 +7486,7 @@ def tnumber_minus_tbox(temp: "const Temporal *", box: "const TBox *") -> "Tempor return result if result != _ffi.NULL else None -def ttext_at_value(temp: "const Temporal *", txt: str) -> "Temporal *": +def ttext_at_value(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ttext_at_value(temp_converted, txt_converted) @@ -7351,7 +7494,7 @@ def ttext_at_value(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def ttext_minus_value(temp: "const Temporal *", txt: str) -> "Temporal *": +def ttext_minus_value(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ttext_minus_value(temp_converted, txt_converted) @@ -7359,7 +7502,9 @@ def ttext_minus_value(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def temporal_cmp(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def temporal_cmp( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_cmp(temp1_converted, temp2_converted) @@ -7367,7 +7512,9 @@ def temporal_cmp(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def temporal_eq(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def temporal_eq( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_eq(temp1_converted, temp2_converted) @@ -7375,7 +7522,9 @@ def temporal_eq(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def temporal_ge(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def temporal_ge( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_ge(temp1_converted, temp2_converted) @@ -7383,7 +7532,9 @@ def temporal_ge(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def temporal_gt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def temporal_gt( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_gt(temp1_converted, temp2_converted) @@ -7391,7 +7542,9 @@ def temporal_gt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def temporal_le(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def temporal_le( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_le(temp1_converted, temp2_converted) @@ -7399,7 +7552,9 @@ def temporal_le(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def temporal_lt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def temporal_lt( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_lt(temp1_converted, temp2_converted) @@ -7407,7 +7562,9 @@ def temporal_lt(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def temporal_ne(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": +def temporal_ne( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_ne(temp1_converted, temp2_converted) @@ -7415,28 +7572,28 @@ def temporal_ne(temp1: "const Temporal *", temp2: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def always_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def always_eq_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def always_eq_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_int_tint(i: int, temp: "const Temporal *") -> "int": +def always_eq_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def always_eq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tbool_bool(temp_converted, b) _check_error() @@ -7444,8 +7601,8 @@ def always_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": def always_eq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_eq_temporal_temporal(temp1_converted, temp2_converted) @@ -7453,7 +7610,7 @@ def always_eq_temporal_temporal( return result if result != _ffi.NULL else None -def always_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_eq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_text_ttext(txt_converted, temp_converted) @@ -7461,21 +7618,21 @@ def always_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def always_eq_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_eq_tint_int(temp: "const Temporal *", i: int) -> "int": +def always_eq_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def always_eq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_eq_ttext_text(temp_converted, txt_converted) @@ -7483,14 +7640,14 @@ def always_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def always_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def always_ge_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_int_tint(i: int, temp: "const Temporal *") -> "int": +def always_ge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_int_tint(i, temp_converted) _check_error() @@ -7498,8 +7655,8 @@ def always_ge_int_tint(i: int, temp: "const Temporal *") -> "int": def always_ge_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ge_temporal_temporal(temp1_converted, temp2_converted) @@ -7507,7 +7664,7 @@ def always_ge_temporal_temporal( return result if result != _ffi.NULL else None -def always_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_ge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_text_ttext(txt_converted, temp_converted) @@ -7515,21 +7672,21 @@ def always_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def always_ge_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ge_tint_int(temp: "const Temporal *", i: int) -> "int": +def always_ge_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def always_ge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_ge_ttext_text(temp_converted, txt_converted) @@ -7537,14 +7694,14 @@ def always_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def always_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def always_gt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_int_tint(i: int, temp: "const Temporal *") -> "int": +def always_gt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_int_tint(i, temp_converted) _check_error() @@ -7552,8 +7709,8 @@ def always_gt_int_tint(i: int, temp: "const Temporal *") -> "int": def always_gt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_gt_temporal_temporal(temp1_converted, temp2_converted) @@ -7561,7 +7718,7 @@ def always_gt_temporal_temporal( return result if result != _ffi.NULL else None -def always_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_gt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_text_ttext(txt_converted, temp_converted) @@ -7569,21 +7726,21 @@ def always_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def always_gt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_gt_tint_int(temp: "const Temporal *", i: int) -> "int": +def always_gt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def always_gt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_gt_ttext_text(temp_converted, txt_converted) @@ -7591,14 +7748,14 @@ def always_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def always_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def always_le_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_int_tint(i: int, temp: "const Temporal *") -> "int": +def always_le_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_int_tint(i, temp_converted) _check_error() @@ -7606,8 +7763,8 @@ def always_le_int_tint(i: int, temp: "const Temporal *") -> "int": def always_le_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_le_temporal_temporal(temp1_converted, temp2_converted) @@ -7615,7 +7772,7 @@ def always_le_temporal_temporal( return result if result != _ffi.NULL else None -def always_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_le_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_text_ttext(txt_converted, temp_converted) @@ -7623,21 +7780,21 @@ def always_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def always_le_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_le_tint_int(temp: "const Temporal *", i: int) -> "int": +def always_le_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def always_le_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_le_ttext_text(temp_converted, txt_converted) @@ -7645,14 +7802,14 @@ def always_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def always_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def always_lt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_int_tint(i: int, temp: "const Temporal *") -> "int": +def always_lt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_int_tint(i, temp_converted) _check_error() @@ -7660,8 +7817,8 @@ def always_lt_int_tint(i: int, temp: "const Temporal *") -> "int": def always_lt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_lt_temporal_temporal(temp1_converted, temp2_converted) @@ -7669,7 +7826,7 @@ def always_lt_temporal_temporal( return result if result != _ffi.NULL else None -def always_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_lt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_text_ttext(txt_converted, temp_converted) @@ -7677,21 +7834,21 @@ def always_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def always_lt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_lt_tint_int(temp: "const Temporal *", i: int) -> "int": +def always_lt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def always_lt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_lt_ttext_text(temp_converted, txt_converted) @@ -7699,28 +7856,28 @@ def always_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def always_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def always_ne_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def always_ne_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_int_tint(i: int, temp: "const Temporal *") -> "int": +def always_ne_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def always_ne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tbool_bool(temp_converted, b) _check_error() @@ -7728,8 +7885,8 @@ def always_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": def always_ne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ne_temporal_temporal(temp1_converted, temp2_converted) @@ -7737,7 +7894,7 @@ def always_ne_temporal_temporal( return result if result != _ffi.NULL else None -def always_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def always_ne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_text_ttext(txt_converted, temp_converted) @@ -7745,21 +7902,21 @@ def always_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def always_ne_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ne_tint_int(temp: "const Temporal *", i: int) -> "int": +def always_ne_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def always_ne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_ne_ttext_text(temp_converted, txt_converted) @@ -7767,28 +7924,28 @@ def always_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def ever_eq_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def ever_eq_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_eq_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_eq_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def ever_eq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tbool_bool(temp_converted, b) _check_error() @@ -7796,8 +7953,8 @@ def ever_eq_tbool_bool(temp: "const Temporal *", b: bool) -> "int": def ever_eq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_eq_temporal_temporal(temp1_converted, temp2_converted) @@ -7805,7 +7962,7 @@ def ever_eq_temporal_temporal( return result if result != _ffi.NULL else None -def ever_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_eq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_text_ttext(txt_converted, temp_converted) @@ -7813,21 +7970,21 @@ def ever_eq_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_eq_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_eq_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_eq_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_eq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_eq_ttext_text(temp_converted, txt_converted) @@ -7835,14 +7992,14 @@ def ever_eq_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def ever_ge_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_ge_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_ge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_int_tint(i, temp_converted) _check_error() @@ -7850,8 +8007,8 @@ def ever_ge_int_tint(i: int, temp: "const Temporal *") -> "int": def ever_ge_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ge_temporal_temporal(temp1_converted, temp2_converted) @@ -7859,7 +8016,7 @@ def ever_ge_temporal_temporal( return result if result != _ffi.NULL else None -def ever_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_ge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_text_ttext(txt_converted, temp_converted) @@ -7867,21 +8024,21 @@ def ever_ge_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_ge_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_ge_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_ge_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_ge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_ge_ttext_text(temp_converted, txt_converted) @@ -7889,14 +8046,14 @@ def ever_ge_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def ever_gt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_gt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_gt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_int_tint(i, temp_converted) _check_error() @@ -7904,8 +8061,8 @@ def ever_gt_int_tint(i: int, temp: "const Temporal *") -> "int": def ever_gt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_gt_temporal_temporal(temp1_converted, temp2_converted) @@ -7913,7 +8070,7 @@ def ever_gt_temporal_temporal( return result if result != _ffi.NULL else None -def ever_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_gt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_text_ttext(txt_converted, temp_converted) @@ -7921,21 +8078,21 @@ def ever_gt_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_gt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_gt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_gt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_gt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_gt_ttext_text(temp_converted, txt_converted) @@ -7943,14 +8100,14 @@ def ever_gt_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def ever_le_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_le_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_le_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_int_tint(i, temp_converted) _check_error() @@ -7958,8 +8115,8 @@ def ever_le_int_tint(i: int, temp: "const Temporal *") -> "int": def ever_le_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_le_temporal_temporal(temp1_converted, temp2_converted) @@ -7967,7 +8124,7 @@ def ever_le_temporal_temporal( return result if result != _ffi.NULL else None -def ever_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_le_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_text_ttext(txt_converted, temp_converted) @@ -7975,21 +8132,21 @@ def ever_le_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_le_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_le_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_le_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_le_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_le_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_le_ttext_text(temp_converted, txt_converted) @@ -7997,14 +8154,14 @@ def ever_le_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def ever_lt_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_lt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_lt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_int_tint(i, temp_converted) _check_error() @@ -8012,8 +8169,8 @@ def ever_lt_int_tint(i: int, temp: "const Temporal *") -> "int": def ever_lt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_lt_temporal_temporal(temp1_converted, temp2_converted) @@ -8021,7 +8178,7 @@ def ever_lt_temporal_temporal( return result if result != _ffi.NULL else None -def ever_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_lt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_text_ttext(txt_converted, temp_converted) @@ -8029,21 +8186,21 @@ def ever_lt_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_lt_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_lt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_lt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_lt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_lt_ttext_text(temp_converted, txt_converted) @@ -8051,28 +8208,28 @@ def ever_lt_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def ever_ne_bool_tbool(b: bool, temp: "const Temporal *") -> "int": +def ever_ne_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_float_tfloat(d: float, temp: "const Temporal *") -> "int": +def ever_ne_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_int_tint(i: int, temp: "const Temporal *") -> "int": +def ever_ne_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": +def ever_ne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tbool_bool(temp_converted, b) _check_error() @@ -8080,8 +8237,8 @@ def ever_ne_tbool_bool(temp: "const Temporal *", b: bool) -> "int": def ever_ne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ne_temporal_temporal(temp1_converted, temp2_converted) @@ -8089,7 +8246,7 @@ def ever_ne_temporal_temporal( return result if result != _ffi.NULL else None -def ever_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": +def ever_ne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_text_ttext(txt_converted, temp_converted) @@ -8097,21 +8254,21 @@ def ever_ne_text_ttext(txt: str, temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_ne_tfloat_float(temp: "const Temporal *", d: float) -> "int": +def ever_ne_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tint_int(temp: "const Temporal *", i: int) -> "int": +def ever_ne_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": +def ever_ne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_ne_ttext_text(temp_converted, txt_converted) @@ -8119,28 +8276,28 @@ def ever_ne_ttext_text(temp: "const Temporal *", txt: str) -> "int": return result if result != _ffi.NULL else None -def teq_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": +def teq_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def teq_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def teq_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": +def teq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tbool_bool(temp_converted, b) _check_error() @@ -8148,8 +8305,8 @@ def teq_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": def teq_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.teq_temporal_temporal(temp1_converted, temp2_converted) @@ -8157,7 +8314,7 @@ def teq_temporal_temporal( return result if result != _ffi.NULL else None -def teq_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def teq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_text_ttext(txt_converted, temp_converted) @@ -8165,21 +8322,21 @@ def teq_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def teq_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def teq_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def teq_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def teq_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def teq_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def teq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.teq_ttext_text(temp_converted, txt_converted) @@ -8187,14 +8344,14 @@ def teq_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def tge_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def tge_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def tge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_int_tint(i, temp_converted) _check_error() @@ -8202,8 +8359,8 @@ def tge_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": def tge_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tge_temporal_temporal(temp1_converted, temp2_converted) @@ -8211,7 +8368,7 @@ def tge_temporal_temporal( return result if result != _ffi.NULL else None -def tge_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_text_ttext(txt_converted, temp_converted) @@ -8219,21 +8376,21 @@ def tge_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def tge_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def tge_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tge_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def tge_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tge_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def tge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tge_ttext_text(temp_converted, txt_converted) @@ -8241,14 +8398,14 @@ def tge_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def tgt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def tgt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def tgt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_int_tint(i, temp_converted) _check_error() @@ -8256,8 +8413,8 @@ def tgt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": def tgt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tgt_temporal_temporal(temp1_converted, temp2_converted) @@ -8265,7 +8422,7 @@ def tgt_temporal_temporal( return result if result != _ffi.NULL else None -def tgt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tgt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_text_ttext(txt_converted, temp_converted) @@ -8273,21 +8430,21 @@ def tgt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def tgt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def tgt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tgt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def tgt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tgt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def tgt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tgt_ttext_text(temp_converted, txt_converted) @@ -8295,14 +8452,14 @@ def tgt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def tle_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def tle_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def tle_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_int_tint(i, temp_converted) _check_error() @@ -8310,8 +8467,8 @@ def tle_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": def tle_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tle_temporal_temporal(temp1_converted, temp2_converted) @@ -8319,7 +8476,7 @@ def tle_temporal_temporal( return result if result != _ffi.NULL else None -def tle_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tle_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_text_ttext(txt_converted, temp_converted) @@ -8327,21 +8484,21 @@ def tle_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def tle_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def tle_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tle_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def tle_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tle_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def tle_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tle_ttext_text(temp_converted, txt_converted) @@ -8349,14 +8506,14 @@ def tle_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def tlt_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def tlt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def tlt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_int_tint(i, temp_converted) _check_error() @@ -8364,8 +8521,8 @@ def tlt_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": def tlt_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tlt_temporal_temporal(temp1_converted, temp2_converted) @@ -8373,7 +8530,7 @@ def tlt_temporal_temporal( return result if result != _ffi.NULL else None -def tlt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tlt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_text_ttext(txt_converted, temp_converted) @@ -8381,21 +8538,21 @@ def tlt_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def tlt_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def tlt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tlt_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def tlt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tlt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def tlt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tlt_ttext_text(temp_converted, txt_converted) @@ -8403,28 +8560,28 @@ def tlt_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def tne_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": +def tne_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_float_tfloat(d: float, temp: "const Temporal *") -> "Temporal *": +def tne_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_int_tint(i: int, temp: "const Temporal *") -> "Temporal *": +def tne_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": +def tne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tbool_bool(temp_converted, b) _check_error() @@ -8432,8 +8589,8 @@ def tne_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": def tne_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tne_temporal_temporal(temp1_converted, temp2_converted) @@ -8441,7 +8598,7 @@ def tne_temporal_temporal( return result if result != _ffi.NULL else None -def tne_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def tne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_text_ttext(txt_converted, temp_converted) @@ -8449,21 +8606,21 @@ def tne_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def tne_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def tne_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tne_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def tne_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tne_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def tne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tne_ttext_text(temp_converted, txt_converted) @@ -8471,63 +8628,69 @@ def tne_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": return result if result != _ffi.NULL else None -def temporal_spans(temp: "const Temporal *") -> "Tuple['Span *', 'int']": +def temporal_spans( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_spans(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_spans(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def temporal_split_each_n_spans( - temp: "const Temporal *", elem_count: int -) -> "Tuple['Span *', 'int']": + temp: Annotated[cdata, "const Temporal *"], elem_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def temporal_split_n_spans( - temp: "const Temporal *", span_count: int -) -> "Tuple['Span *', 'int']": + temp: Annotated[cdata, "const Temporal *"], span_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_split_n_spans(temp_converted, span_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_split_n_spans(temp_converted, span_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tnumber_split_each_n_tboxes( - temp: "const Temporal *", elem_count: int -) -> "Tuple['TBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], elem_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tnumber_split_n_tboxes( - temp: "const Temporal *", box_count: int -) -> "Tuple['TBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], box_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_tboxes(temp: "const Temporal *") -> "Tuple['TBox *', 'int']": +def tnumber_tboxes( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnumber_tboxes(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tnumber_tboxes(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def adjacent_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def adjacent_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_numspan_tnumber(s_converted, temp_converted) @@ -8535,7 +8698,9 @@ def adjacent_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def adjacent_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def adjacent_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_tbox_tnumber(box_converted, temp_converted) @@ -8544,8 +8709,8 @@ def adjacent_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "boo def adjacent_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adjacent_temporal_temporal(temp1_converted, temp2_converted) @@ -8553,7 +8718,9 @@ def adjacent_temporal_temporal( return result if result != _ffi.NULL else None -def adjacent_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def adjacent_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_temporal_tstzspan(temp_converted, s_converted) @@ -8561,7 +8728,9 @@ def adjacent_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> " return result if result != _ffi.NULL else None -def adjacent_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def adjacent_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_tnumber_numspan(temp_converted, s_converted) @@ -8569,7 +8738,9 @@ def adjacent_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bo return result if result != _ffi.NULL else None -def adjacent_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def adjacent_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.adjacent_tnumber_tbox(temp_converted, box_converted) @@ -8578,8 +8749,8 @@ def adjacent_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "boo def adjacent_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adjacent_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8587,7 +8758,9 @@ def adjacent_tnumber_tnumber( return result if result != _ffi.NULL else None -def adjacent_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def adjacent_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_tstzspan_temporal(s_converted, temp_converted) @@ -8595,7 +8768,9 @@ def adjacent_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def contained_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def contained_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_numspan_tnumber(s_converted, temp_converted) @@ -8603,7 +8778,9 @@ def contained_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "b return result if result != _ffi.NULL else None -def contained_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def contained_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_tbox_tnumber(box_converted, temp_converted) @@ -8612,8 +8789,8 @@ def contained_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bo def contained_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contained_temporal_temporal(temp1_converted, temp2_converted) @@ -8621,7 +8798,9 @@ def contained_temporal_temporal( return result if result != _ffi.NULL else None -def contained_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def contained_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_temporal_tstzspan(temp_converted, s_converted) @@ -8629,7 +8808,9 @@ def contained_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> return result if result != _ffi.NULL else None -def contained_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def contained_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_tnumber_numspan(temp_converted, s_converted) @@ -8637,7 +8818,9 @@ def contained_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "b return result if result != _ffi.NULL else None -def contained_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def contained_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.contained_tnumber_tbox(temp_converted, box_converted) @@ -8646,8 +8829,8 @@ def contained_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bo def contained_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contained_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8655,7 +8838,9 @@ def contained_tnumber_tnumber( return result if result != _ffi.NULL else None -def contained_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def contained_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_tstzspan_temporal(s_converted, temp_converted) @@ -8663,7 +8848,9 @@ def contained_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def contains_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def contains_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_numspan_tnumber(s_converted, temp_converted) @@ -8671,7 +8858,9 @@ def contains_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def contains_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def contains_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_tbox_tnumber(box_converted, temp_converted) @@ -8679,7 +8868,9 @@ def contains_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def contains_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def contains_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.contains_temporal_tstzspan(temp_converted, s_converted) @@ -8688,8 +8879,8 @@ def contains_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> " def contains_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contains_temporal_temporal(temp1_converted, temp2_converted) @@ -8697,7 +8888,9 @@ def contains_temporal_temporal( return result if result != _ffi.NULL else None -def contains_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def contains_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.contains_tnumber_numspan(temp_converted, s_converted) @@ -8705,7 +8898,9 @@ def contains_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bo return result if result != _ffi.NULL else None -def contains_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def contains_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.contains_tnumber_tbox(temp_converted, box_converted) @@ -8714,8 +8909,8 @@ def contains_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "boo def contains_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contains_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8723,7 +8918,9 @@ def contains_tnumber_tnumber( return result if result != _ffi.NULL else None -def contains_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def contains_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_tstzspan_temporal(s_converted, temp_converted) @@ -8731,7 +8928,9 @@ def contains_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def overlaps_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def overlaps_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_numspan_tnumber(s_converted, temp_converted) @@ -8739,7 +8938,9 @@ def overlaps_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def overlaps_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def overlaps_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_tbox_tnumber(box_converted, temp_converted) @@ -8748,8 +8949,8 @@ def overlaps_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "boo def overlaps_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overlaps_temporal_temporal(temp1_converted, temp2_converted) @@ -8757,7 +8958,9 @@ def overlaps_temporal_temporal( return result if result != _ffi.NULL else None -def overlaps_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overlaps_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.overlaps_temporal_tstzspan(temp_converted, s_converted) @@ -8765,7 +8968,9 @@ def overlaps_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> " return result if result != _ffi.NULL else None -def overlaps_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overlaps_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.overlaps_tnumber_numspan(temp_converted, s_converted) @@ -8773,7 +8978,9 @@ def overlaps_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bo return result if result != _ffi.NULL else None -def overlaps_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def overlaps_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.overlaps_tnumber_tbox(temp_converted, box_converted) @@ -8782,8 +8989,8 @@ def overlaps_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "boo def overlaps_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overlaps_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8791,7 +8998,9 @@ def overlaps_tnumber_tnumber( return result if result != _ffi.NULL else None -def overlaps_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def overlaps_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_tstzspan_temporal(s_converted, temp_converted) @@ -8799,7 +9008,9 @@ def overlaps_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def same_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def same_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_numspan_tnumber(s_converted, temp_converted) @@ -8807,7 +9018,9 @@ def same_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def same_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def same_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_tbox_tnumber(box_converted, temp_converted) @@ -8816,8 +9029,8 @@ def same_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": def same_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.same_temporal_temporal(temp1_converted, temp2_converted) @@ -8825,7 +9038,9 @@ def same_temporal_temporal( return result if result != _ffi.NULL else None -def same_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def same_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.same_temporal_tstzspan(temp_converted, s_converted) @@ -8833,7 +9048,9 @@ def same_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool return result if result != _ffi.NULL else None -def same_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def same_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.same_tnumber_numspan(temp_converted, s_converted) @@ -8841,7 +9058,9 @@ def same_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def same_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def same_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.same_tnumber_tbox(temp_converted, box_converted) @@ -8850,8 +9069,8 @@ def same_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": def same_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.same_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8859,7 +9078,9 @@ def same_tnumber_tnumber( return result if result != _ffi.NULL else None -def same_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def same_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_tstzspan_temporal(s_converted, temp_converted) @@ -8867,7 +9088,9 @@ def same_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool return result if result != _ffi.NULL else None -def after_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def after_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.after_tbox_tnumber(box_converted, temp_converted) @@ -8875,7 +9098,9 @@ def after_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def after_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def after_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.after_temporal_tstzspan(temp_converted, s_converted) @@ -8884,8 +9109,8 @@ def after_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "boo def after_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.after_temporal_temporal(temp1_converted, temp2_converted) @@ -8893,7 +9118,9 @@ def after_temporal_temporal( return result if result != _ffi.NULL else None -def after_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def after_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.after_tnumber_tbox(temp_converted, box_converted) @@ -8902,8 +9129,8 @@ def after_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": def after_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.after_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8911,7 +9138,9 @@ def after_tnumber_tnumber( return result if result != _ffi.NULL else None -def after_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def after_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.after_tstzspan_temporal(s_converted, temp_converted) @@ -8919,7 +9148,9 @@ def after_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def before_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def before_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.before_tbox_tnumber(box_converted, temp_converted) @@ -8927,7 +9158,9 @@ def before_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool" return result if result != _ffi.NULL else None -def before_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def before_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.before_temporal_tstzspan(temp_converted, s_converted) @@ -8936,8 +9169,8 @@ def before_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bo def before_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.before_temporal_temporal(temp1_converted, temp2_converted) @@ -8945,7 +9178,9 @@ def before_temporal_temporal( return result if result != _ffi.NULL else None -def before_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def before_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.before_tnumber_tbox(temp_converted, box_converted) @@ -8954,8 +9189,8 @@ def before_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool" def before_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.before_tnumber_tnumber(temp1_converted, temp2_converted) @@ -8963,7 +9198,9 @@ def before_tnumber_tnumber( return result if result != _ffi.NULL else None -def before_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def before_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.before_tstzspan_temporal(s_converted, temp_converted) @@ -8971,7 +9208,9 @@ def before_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def left_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def left_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.left_tbox_tnumber(box_converted, temp_converted) @@ -8979,7 +9218,9 @@ def left_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def left_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def left_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.left_numspan_tnumber(s_converted, temp_converted) @@ -8987,7 +9228,9 @@ def left_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def left_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def left_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.left_tnumber_numspan(temp_converted, s_converted) @@ -8995,7 +9238,9 @@ def left_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def left_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def left_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.left_tnumber_tbox(temp_converted, box_converted) @@ -9004,8 +9249,8 @@ def left_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": def left_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.left_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9013,7 +9258,9 @@ def left_tnumber_tnumber( return result if result != _ffi.NULL else None -def overafter_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def overafter_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overafter_tbox_tnumber(box_converted, temp_converted) @@ -9021,7 +9268,9 @@ def overafter_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def overafter_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overafter_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_temporal_tstzspan(temp_converted, s_converted) @@ -9030,8 +9279,8 @@ def overafter_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> def overafter_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overafter_temporal_temporal(temp1_converted, temp2_converted) @@ -9039,7 +9288,9 @@ def overafter_temporal_temporal( return result if result != _ffi.NULL else None -def overafter_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def overafter_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.overafter_tnumber_tbox(temp_converted, box_converted) @@ -9048,8 +9299,8 @@ def overafter_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bo def overafter_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overafter_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9057,7 +9308,9 @@ def overafter_tnumber_tnumber( return result if result != _ffi.NULL else None -def overafter_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def overafter_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overafter_tstzspan_temporal(s_converted, temp_converted) @@ -9065,7 +9318,9 @@ def overafter_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overbefore_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def overbefore_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbefore_tbox_tnumber(box_converted, temp_converted) @@ -9073,7 +9328,9 @@ def overbefore_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "b return result if result != _ffi.NULL else None -def overbefore_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overbefore_temporal_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_temporal_tstzspan(temp_converted, s_converted) @@ -9082,8 +9339,8 @@ def overbefore_temporal_tstzspan(temp: "const Temporal *", s: "const Span *") -> def overbefore_temporal_temporal( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbefore_temporal_temporal(temp1_converted, temp2_converted) @@ -9091,7 +9348,9 @@ def overbefore_temporal_temporal( return result if result != _ffi.NULL else None -def overbefore_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def overbefore_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.overbefore_tnumber_tbox(temp_converted, box_converted) @@ -9100,8 +9359,8 @@ def overbefore_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "b def overbefore_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbefore_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9109,7 +9368,9 @@ def overbefore_tnumber_tnumber( return result if result != _ffi.NULL else None -def overbefore_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> "bool": +def overbefore_tstzspan_temporal( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbefore_tstzspan_temporal(s_converted, temp_converted) @@ -9117,7 +9378,9 @@ def overbefore_tstzspan_temporal(s: "const Span *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overleft_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def overleft_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overleft_numspan_tnumber(s_converted, temp_converted) @@ -9125,7 +9388,9 @@ def overleft_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def overleft_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def overleft_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overleft_tbox_tnumber(box_converted, temp_converted) @@ -9133,7 +9398,9 @@ def overleft_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def overleft_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overleft_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_tnumber_numspan(temp_converted, s_converted) @@ -9141,7 +9408,9 @@ def overleft_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bo return result if result != _ffi.NULL else None -def overleft_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def overleft_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.overleft_tnumber_tbox(temp_converted, box_converted) @@ -9150,8 +9419,8 @@ def overleft_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "boo def overleft_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overleft_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9159,7 +9428,9 @@ def overleft_tnumber_tnumber( return result if result != _ffi.NULL else None -def overright_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def overright_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overright_numspan_tnumber(s_converted, temp_converted) @@ -9167,7 +9438,9 @@ def overright_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "b return result if result != _ffi.NULL else None -def overright_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def overright_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overright_tbox_tnumber(box_converted, temp_converted) @@ -9175,7 +9448,9 @@ def overright_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def overright_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def overright_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.overright_tnumber_numspan(temp_converted, s_converted) @@ -9183,7 +9458,9 @@ def overright_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "b return result if result != _ffi.NULL else None -def overright_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def overright_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.overright_tnumber_tbox(temp_converted, box_converted) @@ -9192,8 +9469,8 @@ def overright_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bo def overright_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overright_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9201,7 +9478,9 @@ def overright_tnumber_tnumber( return result if result != _ffi.NULL else None -def right_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool": +def right_numspan_tnumber( + s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.right_numspan_tnumber(s_converted, temp_converted) @@ -9209,7 +9488,9 @@ def right_numspan_tnumber(s: "const Span *", temp: "const Temporal *") -> "bool" return result if result != _ffi.NULL else None -def right_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": +def right_tbox_tnumber( + box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.right_tbox_tnumber(box_converted, temp_converted) @@ -9217,7 +9498,9 @@ def right_tbox_tnumber(box: "const TBox *", temp: "const Temporal *") -> "bool": return result if result != _ffi.NULL else None -def right_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool": +def right_tnumber_numspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.right_tnumber_numspan(temp_converted, s_converted) @@ -9225,7 +9508,9 @@ def right_tnumber_numspan(temp: "const Temporal *", s: "const Span *") -> "bool" return result if result != _ffi.NULL else None -def right_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": +def right_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.right_tnumber_tbox(temp_converted, box_converted) @@ -9234,8 +9519,8 @@ def right_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "bool": def right_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.right_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9243,14 +9528,14 @@ def right_tnumber_tnumber( return result if result != _ffi.NULL else None -def tand_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": +def tand_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tand_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tand_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": +def tand_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tand_tbool_bool(temp_converted, b) _check_error() @@ -9258,8 +9543,8 @@ def tand_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": def tand_tbool_tbool( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tand_tbool_tbool(temp1_converted, temp2_converted) @@ -9267,28 +9552,28 @@ def tand_tbool_tbool( return result if result != _ffi.NULL else None -def tbool_when_true(temp: "const Temporal *") -> "SpanSet *": +def tbool_when_true(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "SpanSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_when_true(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnot_tbool(temp: "const Temporal *") -> "Temporal *": +def tnot_tbool(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnot_tbool(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_bool_tbool(b: bool, temp: "const Temporal *") -> "Temporal *": +def tor_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tor_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": +def tor_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tor_tbool_bool(temp_converted, b) _check_error() @@ -9296,8 +9581,8 @@ def tor_tbool_bool(temp: "const Temporal *", b: bool) -> "Temporal *": def tor_tbool_tbool( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tor_tbool_tbool(temp1_converted, temp2_converted) @@ -9305,28 +9590,28 @@ def tor_tbool_tbool( return result if result != _ffi.NULL else None -def add_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": +def add_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": +def add_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": +def add_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def add_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": +def add_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_tint_int(tnumber_converted, i) _check_error() @@ -9334,8 +9619,8 @@ def add_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": def add_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": + tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.add_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9343,28 +9628,28 @@ def add_tnumber_tnumber( return result if result != _ffi.NULL else None -def div_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": +def div_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": +def div_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": +def div_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def div_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": +def div_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_tint_int(tnumber_converted, i) _check_error() @@ -9372,8 +9657,8 @@ def div_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": def div_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": + tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.div_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9381,28 +9666,28 @@ def div_tnumber_tnumber( return result if result != _ffi.NULL else None -def mult_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": +def mult_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": +def mult_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": +def mult_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def mult_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": +def mult_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_tint_int(tnumber_converted, i) _check_error() @@ -9410,8 +9695,8 @@ def mult_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": def mult_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": + tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.mult_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9419,28 +9704,28 @@ def mult_tnumber_tnumber( return result if result != _ffi.NULL else None -def sub_float_tfloat(d: float, tnumber: "const Temporal *") -> "Temporal *": +def sub_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_int_tint(i: int, tnumber: "const Temporal *") -> "Temporal *": +def sub_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_tfloat_float(tnumber: "const Temporal *", d: float) -> "Temporal *": +def sub_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def sub_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": +def sub_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_tint_int(tnumber_converted, i) _check_error() @@ -9448,8 +9733,8 @@ def sub_tint_int(tnumber: "const Temporal *", i: int) -> "Temporal *": def sub_tnumber_tnumber( - tnumber1: "const Temporal *", tnumber2: "const Temporal *" -) -> "Temporal *": + tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.sub_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9457,62 +9742,62 @@ def sub_tnumber_tnumber( return result if result != _ffi.NULL else None -def temporal_derivative(temp: "const Temporal *") -> "Temporal *": +def temporal_derivative(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_derivative(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_exp(temp: "const Temporal *") -> "Temporal *": +def tfloat_exp(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_exp(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ln(temp: "const Temporal *") -> "Temporal *": +def tfloat_ln(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_ln(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_log10(temp: "const Temporal *") -> "Temporal *": +def tfloat_log10(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_log10(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_abs(temp: "const Temporal *") -> "Temporal *": +def tnumber_abs(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_abs(temp_converted) _check_error() return result if result != _ffi.NULL else None -def float_angular_difference(degrees1: float, degrees2: float) -> "double": +def float_angular_difference(degrees1: float, degrees2: float) -> Annotated[float, "double"]: result = _lib.float_angular_difference(degrees1, degrees2) _check_error() return result if result != _ffi.NULL else None -def tnumber_angular_difference(temp: "const Temporal *") -> "Temporal *": +def tnumber_angular_difference(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_delta_value(temp: "const Temporal *") -> "Temporal *": +def tnumber_delta_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_delta_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": +def textcat_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.textcat_text_ttext(txt_converted, temp_converted) @@ -9520,7 +9805,7 @@ def textcat_text_ttext(txt: str, temp: "const Temporal *") -> "Temporal *": return result if result != _ffi.NULL else None -def textcat_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": +def textcat_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.textcat_ttext_text(temp_converted, txt_converted) @@ -9529,8 +9814,8 @@ def textcat_ttext_text(temp: "const Temporal *", txt: str) -> "Temporal *": def textcat_ttext_ttext( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.textcat_ttext_ttext(temp1_converted, temp2_converted) @@ -9538,35 +9823,35 @@ def textcat_ttext_ttext( return result if result != _ffi.NULL else None -def ttext_initcap(temp: "const Temporal *") -> "Temporal *": +def ttext_initcap(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_initcap(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_upper(temp: "const Temporal *") -> "Temporal *": +def ttext_upper(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_upper(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_lower(temp: "const Temporal *") -> "Temporal *": +def ttext_lower(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_lower(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tfloat_float(temp: "const Temporal *", d: float) -> "Temporal *": +def tdistance_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdistance_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tdistance_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": +def tdistance_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdistance_tint_int(temp_converted, i) _check_error() @@ -9574,8 +9859,8 @@ def tdistance_tint_int(temp: "const Temporal *", i: int) -> "Temporal *": def tdistance_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9583,7 +9868,9 @@ def tdistance_tnumber_tnumber( return result if result != _ffi.NULL else None -def nad_tboxfloat_tboxfloat(box1: "const TBox *", box2: "const TBox *") -> "double": +def nad_tboxfloat_tboxfloat( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[float, "double"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tboxfloat_tboxfloat(box1_converted, box2_converted) @@ -9591,7 +9878,9 @@ def nad_tboxfloat_tboxfloat(box1: "const TBox *", box2: "const TBox *") -> "doub return result if result != _ffi.NULL else None -def nad_tboxint_tboxint(box1: "const TBox *", box2: "const TBox *") -> "int": +def nad_tboxint_tboxint( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[int, "int"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tboxint_tboxint(box1_converted, box2_converted) @@ -9599,14 +9888,16 @@ def nad_tboxint_tboxint(box1: "const TBox *", box2: "const TBox *") -> "int": return result if result != _ffi.NULL else None -def nad_tfloat_float(temp: "const Temporal *", d: float) -> "double": +def nad_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.nad_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def nad_tfloat_tfloat(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": +def nad_tfloat_tfloat( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tfloat_tfloat(temp1_converted, temp2_converted) @@ -9614,7 +9905,9 @@ def nad_tfloat_tfloat(temp1: "const Temporal *", temp2: "const Temporal *") -> " return result if result != _ffi.NULL else None -def nad_tfloat_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": +def nad_tfloat_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tfloat_tbox(temp_converted, box_converted) @@ -9622,14 +9915,16 @@ def nad_tfloat_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": return result if result != _ffi.NULL else None -def nad_tint_int(temp: "const Temporal *", i: int) -> "int": +def nad_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.nad_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def nad_tint_tbox(temp: "const Temporal *", box: "const TBox *") -> "int": +def nad_tint_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tint_tbox(temp_converted, box_converted) @@ -9637,7 +9932,9 @@ def nad_tint_tbox(temp: "const Temporal *", box: "const TBox *") -> "int": return result if result != _ffi.NULL else None -def nad_tint_tint(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def nad_tint_tint( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tint_tint(temp1_converted, temp2_converted) @@ -9646,8 +9943,8 @@ def nad_tint_tint(temp1: "const Temporal *", temp2: "const Temporal *") -> "int" def tbool_tand_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_tand_transfn(state_converted, temp_converted) @@ -9656,8 +9953,8 @@ def tbool_tand_transfn( def tbool_tor_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_tor_transfn(state_converted, temp_converted) @@ -9665,7 +9962,9 @@ def tbool_tor_transfn( return result if result != _ffi.NULL else None -def temporal_extent_transfn(s: "Span *", temp: "const Temporal *") -> "Span *": +def temporal_extent_transfn( + s: Annotated[cdata, "Span *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_extent_transfn(s_converted, temp_converted) @@ -9673,7 +9972,7 @@ def temporal_extent_transfn(s: "Span *", temp: "const Temporal *") -> "Span *": return result if result != _ffi.NULL else None -def temporal_tagg_finalfn(state: "SkipList *") -> "Temporal *": +def temporal_tagg_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cdata, "Temporal *"]: state_converted = _ffi.cast("SkipList *", state) result = _lib.temporal_tagg_finalfn(state_converted) _check_error() @@ -9681,8 +9980,8 @@ def temporal_tagg_finalfn(state: "SkipList *") -> "Temporal *": def temporal_tcount_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tcount_transfn(state_converted, temp_converted) @@ -9691,8 +9990,8 @@ def temporal_tcount_transfn( def tfloat_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tmax_transfn(state_converted, temp_converted) @@ -9701,8 +10000,8 @@ def tfloat_tmax_transfn( def tfloat_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tmin_transfn(state_converted, temp_converted) @@ -9711,8 +10010,8 @@ def tfloat_tmin_transfn( def tfloat_tsum_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tsum_transfn(state_converted, temp_converted) @@ -9721,8 +10020,10 @@ def tfloat_tsum_transfn( def tfloat_wmax_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -9732,8 +10033,10 @@ def tfloat_wmax_transfn( def tfloat_wmin_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -9743,8 +10046,10 @@ def tfloat_wmin_transfn( def tfloat_wsum_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -9753,7 +10058,7 @@ def tfloat_wsum_transfn( return result if result != _ffi.NULL else None -def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> "SkipList *": +def timestamptz_tcount_transfn(state: Annotated[cdata, "SkipList *"] | None, t: int) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_tcount_transfn(state_converted, t_converted) @@ -9762,8 +10067,8 @@ def timestamptz_tcount_transfn(state: "Optional['SkipList *']", t: int) -> "Skip def tint_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tmax_transfn(state_converted, temp_converted) @@ -9772,8 +10077,8 @@ def tint_tmax_transfn( def tint_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tmin_transfn(state_converted, temp_converted) @@ -9782,8 +10087,8 @@ def tint_tmin_transfn( def tint_tsum_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tsum_transfn(state_converted, temp_converted) @@ -9792,8 +10097,10 @@ def tint_tsum_transfn( def tint_wmax_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -9803,8 +10110,10 @@ def tint_wmax_transfn( def tint_wmin_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -9814,8 +10123,10 @@ def tint_wmin_transfn( def tint_wsum_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -9825,8 +10136,8 @@ def tint_wsum_transfn( def tnumber_extent_transfn( - box: "Optional['TBox *']", temp: "const Temporal *" -) -> "TBox *": + box: Annotated[cdata, "TBox *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("TBox *", box) if box is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_extent_transfn(box_converted, temp_converted) @@ -9834,7 +10145,7 @@ def tnumber_extent_transfn( return result if result != _ffi.NULL else None -def tnumber_tavg_finalfn(state: "SkipList *") -> "Temporal *": +def tnumber_tavg_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cdata, "Temporal *"]: state_converted = _ffi.cast("SkipList *", state) result = _lib.tnumber_tavg_finalfn(state_converted) _check_error() @@ -9842,8 +10153,8 @@ def tnumber_tavg_finalfn(state: "SkipList *") -> "Temporal *": def tnumber_tavg_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_tavg_transfn(state_converted, temp_converted) @@ -9852,21 +10163,21 @@ def tnumber_tavg_transfn( def tnumber_wavg_transfn( - state: "SkipList *", temp: "const Temporal *", interv: "const Interval *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"], + temp: Annotated[cdata, "const Temporal *"], + interv: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) - result = _lib.tnumber_wavg_transfn( - state_converted, temp_converted, interv_converted - ) + result = _lib.tnumber_wavg_transfn(state_converted, temp_converted, interv_converted) _check_error() return result if result != _ffi.NULL else None def tstzset_tcount_transfn( - state: "Optional['SkipList *']", s: "const Set *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_tcount_transfn(state_converted, s_converted) @@ -9875,8 +10186,8 @@ def tstzset_tcount_transfn( def tstzspan_tcount_transfn( - state: "Optional['SkipList *']", s: "const Span *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_tcount_transfn(state_converted, s_converted) @@ -9885,8 +10196,8 @@ def tstzspan_tcount_transfn( def tstzspanset_tcount_transfn( - state: "Optional['SkipList *']", ss: "const SpanSet *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_tcount_transfn(state_converted, ss_converted) @@ -9895,8 +10206,8 @@ def tstzspanset_tcount_transfn( def ttext_tmax_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_tmax_transfn(state_converted, temp_converted) @@ -9905,8 +10216,8 @@ def ttext_tmax_transfn( def ttext_tmin_transfn( - state: "Optional['SkipList *']", temp: "const Temporal *" -) -> "SkipList *": + state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_tmin_transfn(state_converted, temp_converted) @@ -9915,8 +10226,8 @@ def ttext_tmin_transfn( def temporal_simplify_dp( - temp: "const Temporal *", eps_dist: float, synchronized: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], eps_dist: float, synchronized: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_dp(temp_converted, eps_dist, synchronized) _check_error() @@ -9924,15 +10235,17 @@ def temporal_simplify_dp( def temporal_simplify_max_dist( - temp: "const Temporal *", eps_dist: float, synchronized: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], eps_dist: float, synchronized: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_max_dist(temp_converted, eps_dist, synchronized) _check_error() return result if result != _ffi.NULL else None -def temporal_simplify_min_dist(temp: "const Temporal *", dist: float) -> "Temporal *": +def temporal_simplify_min_dist( + temp: Annotated[cdata, "const Temporal *"], dist: float +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_min_dist(temp_converted, dist) _check_error() @@ -9940,8 +10253,8 @@ def temporal_simplify_min_dist(temp: "const Temporal *", dist: float) -> "Tempor def temporal_simplify_min_tdelta( - temp: "const Temporal *", mint: "const Interval *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], mint: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) mint_converted = _ffi.cast("const Interval *", mint) result = _lib.temporal_simplify_min_tdelta(temp_converted, mint_converted) @@ -9950,37 +10263,33 @@ def temporal_simplify_min_tdelta( def temporal_tprecision( - temp: "const Temporal *", duration: "const Interval *", origin: int -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], duration: Annotated[cdata, "const Interval *"], origin: int +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) - result = _lib.temporal_tprecision( - temp_converted, duration_converted, origin_converted - ) + result = _lib.temporal_tprecision(temp_converted, duration_converted, origin_converted) _check_error() return result if result != _ffi.NULL else None def temporal_tsample( - temp: "const Temporal *", - duration: "const Interval *", + temp: Annotated[cdata, "const Temporal *"], + duration: Annotated[cdata, "const Interval *"], origin: int, interp: InterpolationType, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) - result = _lib.temporal_tsample( - temp_converted, duration_converted, origin_converted, interp - ) + result = _lib.temporal_tsample(temp_converted, duration_converted, origin_converted, interp) _check_error() return result if result != _ffi.NULL else None def temporal_dyntimewarp_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_dyntimewarp_distance(temp1_converted, temp2_converted) @@ -9989,19 +10298,21 @@ def temporal_dyntimewarp_distance( def temporal_dyntimewarp_path( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Tuple['Match *', 'int']": + temp1: Annotated[cdata, "const Temporal *"], + temp2: Annotated[cdata, "const Temporal *"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Match *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - count = _ffi.new("int *") - result = _lib.temporal_dyntimewarp_path(temp1_converted, temp2_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_dyntimewarp_path(temp1_converted, temp2_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def temporal_frechet_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_frechet_distance(temp1_converted, temp2_converted) @@ -10010,19 +10321,21 @@ def temporal_frechet_distance( def temporal_frechet_path( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Tuple['Match *', 'int']": + temp1: Annotated[cdata, "const Temporal *"], + temp2: Annotated[cdata, "const Temporal *"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Match *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - count = _ffi.new("int *") - result = _lib.temporal_frechet_path(temp1_converted, temp2_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_frechet_path(temp1_converted, temp2_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def temporal_hausdorff_distance( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_hausdorff_distance(temp1_converted, temp2_converted) @@ -10031,71 +10344,71 @@ def temporal_hausdorff_distance( def temporal_time_bins( - temp: "const Temporal *", duration: "const Interval *", origin: int -) -> "Tuple['Span *', 'int']": + temp: Annotated[cdata, "const Temporal *"], + duration: Annotated[cdata, "const Interval *"], + origin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) - count = _ffi.new("int *") - result = _lib.temporal_time_bins( - temp_converted, duration_converted, origin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_time_bins(temp_converted, duration_converted, origin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def temporal_time_split( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['Temporal **', 'TimestampTz *', 'int']": + temp: Annotated[cdata, "const Temporal *"], duration: Annotated[cdata, "const Interval *"], torigin: int +) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "TimestampTz *"], Annotated[cdata, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) time_bins = _ffi.new("TimestampTz **") count = _ffi.new("int *") - result = _lib.temporal_time_split( - temp_converted, duration_converted, torigin_converted, time_bins, count - ) + result = _lib.temporal_time_split(temp_converted, duration_converted, torigin_converted, time_bins, count) _check_error() return result if result != _ffi.NULL else None, time_bins[0], count[0] def tfloat_time_boxes( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tfloat_time_boxes( - temp_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tfloat_time_boxes(temp_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tfloat_value_bins( - temp: "const Temporal *", vsize: float, vorigin: float -) -> "Tuple['Span *', 'int']": + temp: Annotated[cdata, "const Temporal *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tfloat_value_bins(temp_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tfloat_value_bins(temp_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tfloat_value_boxes( - temp: "const Temporal *", vsize: float, vorigin: float -) -> "Tuple['TBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tfloat_value_boxes(temp_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tfloat_value_boxes(temp_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tfloat_value_split( - temp: "const Temporal *", size: float, origin: float -) -> "Tuple['Temporal **', 'double *', 'int']": + temp: Annotated[cdata, "const Temporal *"], size: float, origin: float +) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "double *"], Annotated[cdata, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) bins = _ffi.new("double **") count = _ffi.new("int *") @@ -10105,30 +10418,36 @@ def tfloat_value_split( def tfloat_value_time_boxes( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], vsize: float, - duration: "const Interval *", + duration: Annotated[cdata, "const Interval *"], vorigin: float, torigin: int, -) -> "Tuple['TBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tfloat_value_time_boxes( - temp_converted, vsize, duration_converted, vorigin, torigin_converted, count + temp_converted, vsize, duration_converted, vorigin, torigin_converted, count_converted ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tfloat_value_time_split( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], vsize: float, - duration: "const Interval *", + duration: Annotated[cdata, "const Interval *"], vorigin: float, torigin: int, -) -> "Tuple['Temporal **', 'double *', 'TimestampTz *', 'int']": +) -> tuple[ + Annotated[cdata, "Temporal **"], + Annotated[list, "double *"], + Annotated[list, "TimestampTz *"], + Annotated[cdata, "int"], +]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10136,60 +10455,47 @@ def tfloat_value_time_split( time_bins = _ffi.new("TimestampTz **") count = _ffi.new("int *") result = _lib.tfloat_value_time_split( - temp_converted, - vsize, - duration_converted, - vorigin, - torigin_converted, - value_bins, - time_bins, - count, + temp_converted, vsize, duration_converted, vorigin, torigin_converted, value_bins, time_bins, count ) _check_error() - return ( - result if result != _ffi.NULL else None, - value_bins[0], - time_bins[0], - count[0], - ) + return result if result != _ffi.NULL else None, value_bins[0], time_bins[0], count[0] def tfloatbox_time_tiles( - box: "const TBox *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": + box: Annotated[cdata, "const TBox *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tfloatbox_time_tiles( - box_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tfloatbox_time_tiles(box_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tfloatbox_value_tiles( - box: "const TBox *", vsize: float, vorigin: float -) -> "Tuple['TBox *', 'int']": + box: Annotated[cdata, "const TBox *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) - count = _ffi.new("int *") - result = _lib.tfloatbox_value_tiles(box_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tfloatbox_value_tiles(box_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tfloatbox_value_time_tiles( - box: "const TBox *", + box: Annotated[cdata, "const TBox *"], vsize: float, - duration: "const Interval *", + duration: Annotated[cdata, "const Interval *"], vorigin: float, - torigin: "Optional[int]", -) -> "Tuple['TBox *', 'int']": + torigin: int | None, +) -> tuple[Annotated[cdata, "TBox *"], Annotated[cdata, "int"]]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) - torigin_converted = ( - _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL - ) + torigin_converted = _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL count = _ffi.new("int *") result = _lib.tfloatbox_value_time_tiles( box_converted, vsize, duration_converted, vorigin, torigin_converted, count @@ -10199,42 +10505,43 @@ def tfloatbox_value_time_tiles( def tint_time_boxes( - temp: "const Temporal *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tint_time_boxes( - temp_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tint_time_boxes(temp_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tint_value_bins( - temp: "const Temporal *", vsize: int, vorigin: int -) -> "Tuple['Span *', 'int']": + temp: Annotated[cdata, "const Temporal *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tint_value_bins(temp_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tint_value_bins(temp_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tint_value_boxes( - temp: "const Temporal *", vsize: int, vorigin: int -) -> "Tuple['TBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tint_value_boxes(temp_converted, vsize, vorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tint_value_boxes(temp_converted, vsize, vorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tint_value_split( - temp: "const Temporal *", vsize: int, vorigin: int -) -> "Tuple['Temporal **', 'int *', 'int']": + temp: Annotated[cdata, "const Temporal *"], vsize: int, vorigin: int +) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "int *"], Annotated[cdata, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) bins = _ffi.new("int **") count = _ffi.new("int *") @@ -10244,30 +10551,33 @@ def tint_value_split( def tint_value_time_boxes( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], vsize: int, - duration: "const Interval *", + duration: Annotated[cdata, "const Interval *"], vorigin: int, torigin: int, -) -> "Tuple['TBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tint_value_time_boxes( - temp_converted, vsize, duration_converted, vorigin, torigin_converted, count + temp_converted, vsize, duration_converted, vorigin, torigin_converted, count_converted ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tint_value_time_split( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], size: int, - duration: "const Interval *", + duration: Annotated[cdata, "const Interval *"], vorigin: int, torigin: int, -) -> "Tuple['Temporal **', 'int *', 'TimestampTz *', 'int']": +) -> tuple[ + Annotated[cdata, "Temporal **"], Annotated[list, "int *"], Annotated[list, "TimestampTz *"], Annotated[cdata, "int"] +]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10275,75 +10585,57 @@ def tint_value_time_split( time_bins = _ffi.new("TimestampTz **") count = _ffi.new("int *") result = _lib.tint_value_time_split( - temp_converted, - size, - duration_converted, - vorigin, - torigin_converted, - value_bins, - time_bins, - count, + temp_converted, size, duration_converted, vorigin, torigin_converted, value_bins, time_bins, count ) _check_error() - return ( - result if result != _ffi.NULL else None, - value_bins[0], - time_bins[0], - count[0], - ) + return result if result != _ffi.NULL else None, value_bins[0], time_bins[0], count[0] def tintbox_time_tiles( - box: "const TBox *", duration: "const Interval *", torigin: int -) -> "Tuple['TBox *', 'int']": + box: Annotated[cdata, "const TBox *"], + duration: Annotated[cdata, "const Interval *"], + torigin: int, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.tintbox_time_tiles( - box_converted, duration_converted, torigin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tintbox_time_tiles(box_converted, duration_converted, torigin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tintbox_value_tiles( - box: "const TBox *", xsize: int, xorigin: int -) -> "Tuple['TBox *', 'int']": + box: Annotated[cdata, "const TBox *"], xsize: int, xorigin: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) - count = _ffi.new("int *") - result = _lib.tintbox_value_tiles(box_converted, xsize, xorigin, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tintbox_value_tiles(box_converted, xsize, xorigin, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tintbox_value_time_tiles( - box: "const TBox *", + box: Annotated[cdata, "const TBox *"], xsize: int, - duration: "const Interval *", - xorigin: "Optional[int]", - torigin: "Optional[int]", -) -> "Tuple['TBox *', 'int']": + duration: Annotated[cdata, "const Interval *"], + xorigin: int | None, + torigin: int | None, +) -> tuple[Annotated[cdata, "TBox *"], Annotated[cdata, "int"]]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) xorigin_converted = xorigin if xorigin is not None else _ffi.NULL - torigin_converted = ( - _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL - ) + torigin_converted = _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL count = _ffi.new("int *") result = _lib.tintbox_value_time_tiles( - box_converted, - xsize, - duration_converted, - xorigin_converted, - torigin_converted, - count, + box_converted, xsize, duration_converted, xorigin_converted, torigin_converted, count ) _check_error() return result if result != _ffi.NULL else None, count[0] -def tempsubtype_name(subtype: "tempSubtype") -> str: +def tempsubtype_name(subtype: Annotated[cdata, "tempSubtype"]) -> Annotated[str, "const char *"]: subtype_converted = _ffi.cast("tempSubtype", subtype) result = _lib.tempsubtype_name(subtype_converted) _check_error() @@ -10351,7 +10643,7 @@ def tempsubtype_name(subtype: "tempSubtype") -> str: return result if result != _ffi.NULL else None -def tempsubtype_from_string(string: str, subtype: "int16 *") -> "bool": +def tempsubtype_from_string(string: str, subtype: Annotated[cdata, "int16 *"]) -> Annotated[bool, "bool"]: string_converted = string.encode("utf-8") subtype_converted = _ffi.cast("int16 *", subtype) result = _lib.tempsubtype_from_string(string_converted, subtype_converted) @@ -10359,7 +10651,7 @@ def tempsubtype_from_string(string: str, subtype: "int16 *") -> "bool": return result if result != _ffi.NULL else None -def meosoper_name(oper: "meosOper") -> str: +def meosoper_name(oper: Annotated[cdata, "meosOper"]) -> Annotated[str, "const char *"]: oper_converted = _ffi.cast("meosOper", oper) result = _lib.meosoper_name(oper_converted) _check_error() @@ -10367,28 +10659,28 @@ def meosoper_name(oper: "meosOper") -> str: return result if result != _ffi.NULL else None -def meosoper_from_string(name: str) -> "meosOper": +def meosoper_from_string(name: str) -> Annotated[cdata, "meosOper"]: name_converted = name.encode("utf-8") result = _lib.meosoper_from_string(name_converted) _check_error() return result if result != _ffi.NULL else None -def interptype_name(interp: InterpolationType) -> str: +def interptype_name(interp: InterpolationType) -> Annotated[str, "const char *"]: result = _lib.interptype_name(interp) _check_error() result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def interptype_from_string(interp_str: str) -> "interpType": +def interptype_from_string(interp_str: str) -> Annotated[InterpolationType, "interpType"]: interp_str_converted = interp_str.encode("utf-8") result = _lib.interptype_from_string(interp_str_converted) _check_error() return result if result != _ffi.NULL else None -def meostype_name(type: "meosType") -> str: +def meostype_name(type: Annotated[cdata, "meosType"]) -> Annotated[str, "const char *"]: type_converted = _ffi.cast("meosType", type) result = _lib.meostype_name(type_converted) _check_error() @@ -10396,413 +10688,413 @@ def meostype_name(type: "meosType") -> str: return result if result != _ffi.NULL else None -def temptype_basetype(type: "meosType") -> "meosType": +def temptype_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.temptype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def settype_basetype(type: "meosType") -> "meosType": +def settype_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.settype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_basetype(type: "meosType") -> "meosType": +def spantype_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.spantype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_spansettype(type: "meosType") -> "meosType": +def spantype_spansettype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.spantype_spansettype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spansettype_spantype(type: "meosType") -> "meosType": +def spansettype_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.spansettype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_spantype(type: "meosType") -> "meosType": +def basetype_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_settype(type: "meosType") -> "meosType": +def basetype_settype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_settype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_basetype(type: "meosType") -> "bool": +def tnumber_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def geo_basetype(type: "meosType") -> "bool": +def geo_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.geo_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def time_type(type: "meosType") -> "bool": +def time_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.time_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_type(type: "meosType") -> "bool": +def set_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.set_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numset_type(type: "meosType") -> "bool": +def numset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numset_type(type: "meosType") -> "bool": +def ensure_numset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timeset_type(type: "meosType") -> "bool": +def timeset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timeset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_spantype(type: "meosType") -> "bool": +def set_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_set_spantype(type: "meosType") -> "bool": +def ensure_set_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def alphanumset_type(settype: "meosType") -> "bool": +def alphanumset_type(settype: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: settype_converted = _ffi.cast("meosType", settype) result = _lib.alphanumset_type(settype_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_type(type: "meosType") -> "bool": +def geoset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_geoset_type(type: "meosType") -> "bool": +def ensure_geoset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_type(type: "meosType") -> "bool": +def spatialset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_spatialset_type(type: "meosType") -> "bool": +def ensure_spatialset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_basetype(type: "meosType") -> "bool": +def span_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_canon_basetype(type: "meosType") -> "bool": +def span_canon_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_canon_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_type(type: "meosType") -> "bool": +def span_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def type_span_bbox(type: "meosType") -> "bool": +def type_span_bbox(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.type_span_bbox(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_tbox_type(type: "meosType") -> "bool": +def span_tbox_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_span_tbox_type(type: "meosType") -> "bool": +def ensure_span_tbox_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_basetype(type: "meosType") -> "bool": +def numspan_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.numspan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_type(type: "meosType") -> "bool": +def numspan_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numspan_type(type: "meosType") -> "bool": +def ensure_numspan_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_basetype(type: "meosType") -> "bool": +def timespan_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timespan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_type(type: "meosType") -> "bool": +def timespan_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timespan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_type(type: "meosType") -> "bool": +def spanset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.spanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespanset_type(type: "meosType") -> "bool": +def timespanset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_timespanset_type(type: "meosType") -> "bool": +def ensure_timespanset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_type(type: "meosType") -> "bool": +def temporal_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.temporal_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temptype_continuous(type: "meosType") -> "bool": +def temptype_continuous(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.temptype_continuous(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_byvalue(type: "meosType") -> "bool": +def basetype_byvalue(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_byvalue(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_varlength(type: "meosType") -> "bool": +def basetype_varlength(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_varlength(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_length(type: "meosType") -> "int16": +def basetype_length(type: Annotated[cdata, "meosType"]) -> Annotated[int, "int16"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_length(type_converted) _check_error() return result if result != _ffi.NULL else None -def talpha_type(type: "meosType") -> "bool": +def talpha_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.talpha_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_type(type: "meosType") -> "bool": +def tnumber_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_type(type: "meosType") -> "bool": +def ensure_tnumber_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_basetype(type: "meosType") -> "bool": +def ensure_tnumber_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_spantype(type: "meosType") -> "bool": +def tnumber_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatial_basetype(type: "meosType") -> "bool": +def spatial_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.spatial_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_type(type: "meosType") -> "bool": +def tspatial_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tspatial_type(type: "meosType") -> "bool": +def ensure_tspatial_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_type(type: "meosType") -> "bool": +def tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tpoint_type(type: "meosType") -> "bool": +def ensure_tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type(type: "meosType") -> "bool": +def tgeo_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type(type: "meosType") -> "bool": +def ensure_tgeo_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type_all(type: "meosType") -> "bool": +def tgeo_type_all(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type_all(type: "meosType") -> "bool": +def ensure_tgeo_type_all(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_type(type: "meosType") -> "bool": +def tgeometry_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeometry_type(type: "meosType") -> "bool": +def ensure_tgeometry_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeodetic_type(type: "meosType") -> "bool": +def tgeodetic_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeodetic_type(type: "meosType") -> "bool": +def ensure_tgeodetic_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_tpoint_type(type: "meosType") -> "bool": +def ensure_tnumber_tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_tpoint_type(type_converted) _check_error() @@ -10810,8 +11102,8 @@ def ensure_tnumber_tpoint_type(type: "meosType") -> "bool": def geo_as_ewkb( - gs: "const GSERIALIZED *", endian: str, size: "size_t *" -) -> "uint8_t *": + gs: Annotated[cdata, "const GSERIALIZED *"], endian: str, size: Annotated[cdata, "size_t *"] +) -> Annotated[cdata, "uint8_t *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) endian_converted = endian.encode("utf-8") size_converted = _ffi.cast("size_t *", size) @@ -10820,7 +11112,7 @@ def geo_as_ewkb( return result if result != _ffi.NULL else None -def geo_as_ewkt(gs: "const GSERIALIZED *", precision: int) -> str: +def geo_as_ewkt(gs: Annotated[cdata, "const GSERIALIZED *"], precision: int) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_as_ewkt(gs_converted, precision) _check_error() @@ -10829,8 +11121,8 @@ def geo_as_ewkt(gs: "const GSERIALIZED *", precision: int) -> str: def geo_as_geojson( - gs: "const GSERIALIZED *", option: int, precision: int, srs: "Optional[str]" -) -> str: + gs: Annotated[cdata, "const GSERIALIZED *"], option: int, precision: int, srs: str | None +) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL result = _lib.geo_as_geojson(gs_converted, option, precision, srs_converted) @@ -10839,7 +11131,7 @@ def geo_as_geojson( return result if result != _ffi.NULL else None -def geo_as_hexewkb(gs: "const GSERIALIZED *", endian: str) -> str: +def geo_as_hexewkb(gs: Annotated[cdata, "const GSERIALIZED *"], endian: str) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) endian_converted = endian.encode("utf-8") result = _lib.geo_as_hexewkb(gs_converted, endian_converted) @@ -10848,7 +11140,7 @@ def geo_as_hexewkb(gs: "const GSERIALIZED *", endian: str) -> str: return result if result != _ffi.NULL else None -def geo_as_text(gs: "const GSERIALIZED *", precision: int) -> str: +def geo_as_text(gs: Annotated[cdata, "const GSERIALIZED *"], precision: int) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_as_text(gs_converted, precision) _check_error() @@ -10857,8 +11149,8 @@ def geo_as_text(gs: "const GSERIALIZED *", precision: int) -> str: def geo_from_ewkb( - wkb: "const uint8_t *", wkb_size: "size_t", srid: int -) -> "GSERIALIZED *": + wkb: Annotated[cdata, "const uint8_t *"], wkb_size: Annotated[cdata, "size_t"], srid: int +) -> Annotated[cdata, "GSERIALIZED *"]: wkb_converted = _ffi.cast("const uint8_t *", wkb) wkb_size_converted = _ffi.cast("size_t", wkb_size) srid_converted = _ffi.cast("int32", srid) @@ -10867,14 +11159,14 @@ def geo_from_ewkb( return result if result != _ffi.NULL else None -def geo_from_geojson(geojson: str) -> "GSERIALIZED *": +def geo_from_geojson(geojson: str) -> Annotated[cdata, "GSERIALIZED *"]: geojson_converted = geojson.encode("utf-8") result = _lib.geo_from_geojson(geojson_converted) _check_error() return result if result != _ffi.NULL else None -def geo_from_text(wkt: str, srid: "int32_t") -> "GSERIALIZED *": +def geo_from_text(wkt: str, srid: Annotated[cdata, "int32_t"]) -> Annotated[cdata, "GSERIALIZED *"]: wkt_converted = wkt.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) result = _lib.geo_from_text(wkt_converted, srid_converted) @@ -10882,7 +11174,7 @@ def geo_from_text(wkt: str, srid: "int32_t") -> "GSERIALIZED *": return result if result != _ffi.NULL else None -def geo_out(gs: "const GSERIALIZED *") -> str: +def geo_out(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_out(gs_converted) _check_error() @@ -10890,21 +11182,21 @@ def geo_out(gs: "const GSERIALIZED *") -> str: return result if result != _ffi.NULL else None -def geog_from_binary(wkb_bytea: str) -> "GSERIALIZED *": +def geog_from_binary(wkb_bytea: str) -> Annotated[cdata, "GSERIALIZED *"]: wkb_bytea_converted = wkb_bytea.encode("utf-8") result = _lib.geog_from_binary(wkb_bytea_converted) _check_error() return result if result != _ffi.NULL else None -def geog_from_hexewkb(wkt: str) -> "GSERIALIZED *": +def geog_from_hexewkb(wkt: str) -> Annotated[cdata, "GSERIALIZED *"]: wkt_converted = wkt.encode("utf-8") result = _lib.geog_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def geog_in(string: str, typmod: int) -> "GSERIALIZED *": +def geog_in(string: str, typmod: int) -> Annotated[cdata, "GSERIALIZED *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.geog_in(string_converted, typmod_converted) @@ -10912,14 +11204,14 @@ def geog_in(string: str, typmod: int) -> "GSERIALIZED *": return result if result != _ffi.NULL else None -def geom_from_hexewkb(wkt: str) -> "GSERIALIZED *": +def geom_from_hexewkb(wkt: str) -> Annotated[cdata, "GSERIALIZED *"]: wkt_converted = wkt.encode("utf-8") result = _lib.geom_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def geom_in(string: str, typmod: int) -> "GSERIALIZED *": +def geom_in(string: str, typmod: int) -> Annotated[cdata, "GSERIALIZED *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.geom_in(string_converted, typmod_converted) @@ -10927,98 +11219,104 @@ def geom_in(string: str, typmod: int) -> "GSERIALIZED *": return result if result != _ffi.NULL else None -def geo_copy(g: "const GSERIALIZED *") -> "GSERIALIZED *": +def geo_copy(g: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geo_copy(g_converted) _check_error() return result if result != _ffi.NULL else None -def geogpoint_make2d(srid: "int32_t", x: float, y: float) -> "GSERIALIZED *": +def geogpoint_make2d(srid: Annotated[cdata, "int32_t"], x: float, y: float) -> Annotated[cdata, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geogpoint_make2d(srid_converted, x, y) _check_error() return result if result != _ffi.NULL else None -def geogpoint_make3dz(srid: "int32_t", x: float, y: float, z: float) -> "GSERIALIZED *": +def geogpoint_make3dz( + srid: Annotated[cdata, "int32_t"], x: float, y: float, z: float +) -> Annotated[cdata, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geogpoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def geompoint_make2d(srid: "int32_t", x: float, y: float) -> "GSERIALIZED *": +def geompoint_make2d(srid: Annotated[cdata, "int32_t"], x: float, y: float) -> Annotated[cdata, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geompoint_make2d(srid_converted, x, y) _check_error() return result if result != _ffi.NULL else None -def geompoint_make3dz(srid: "int32_t", x: float, y: float, z: float) -> "GSERIALIZED *": +def geompoint_make3dz( + srid: Annotated[cdata, "int32_t"], x: float, y: float, z: float +) -> Annotated[cdata, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geompoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def geom_to_geog(geom: "const GSERIALIZED *") -> "GSERIALIZED *": +def geom_to_geog(geom: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.geom_to_geog(geom_converted) _check_error() return result if result != _ffi.NULL else None -def geog_to_geom(geog: "const GSERIALIZED *") -> "GSERIALIZED *": +def geog_to_geom(geog: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: geog_converted = _ffi.cast("const GSERIALIZED *", geog) result = _lib.geog_to_geom(geog_converted) _check_error() return result if result != _ffi.NULL else None -def geo_is_empty(g: "const GSERIALIZED *") -> "bool": +def geo_is_empty(g: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[bool, "bool"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geo_is_empty(g_converted) _check_error() return result if result != _ffi.NULL else None -def geo_typename(type: int) -> str: +def geo_typename(type: int) -> Annotated[str, "const char *"]: result = _lib.geo_typename(type) _check_error() result = _ffi.string(result).decode("utf-8") return result if result != _ffi.NULL else None -def geog_area(g: "const GSERIALIZED *", use_spheroid: bool) -> "double": +def geog_area(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_area(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_centroid(g: "const GSERIALIZED *", use_spheroid: bool) -> "GSERIALIZED *": +def geog_centroid(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[cdata, "GSERIALIZED *"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_centroid(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_length(g: "const GSERIALIZED *", use_spheroid: bool) -> "double": +def geog_length(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_length(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_perimeter(g: "const GSERIALIZED *", use_spheroid: bool) -> "double": +def geog_perimeter(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_perimeter(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geom_azimuth(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "double": +def geom_azimuth( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) out_result = _ffi.new("double *") @@ -11029,49 +11327,51 @@ def geom_azimuth(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "dou return None -def geom_length(gs: "const GSERIALIZED *") -> "double": +def geom_length(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[float, "double"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_length(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_perimeter(gs: "const GSERIALIZED *") -> "double": +def geom_perimeter(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[float, "double"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_perimeter(gs_converted) _check_error() return result if result != _ffi.NULL else None -def line_numpoints(gs: "const GSERIALIZED *") -> "int": +def line_numpoints(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.line_numpoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def line_point_n(geom: "const GSERIALIZED *", n: int) -> "GSERIALIZED *": +def line_point_n(geom: Annotated[cdata, "const GSERIALIZED *"], n: int) -> Annotated[cdata, "GSERIALIZED *"]: geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.line_point_n(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def geo_reverse(gs: "const GSERIALIZED *") -> "GSERIALIZED *": +def geo_reverse(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_reverse(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_round(gs: "const GSERIALIZED *", maxdd: int) -> "GSERIALIZED *": +def geo_round(gs: Annotated[cdata, "const GSERIALIZED *"], maxdd: int) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_round(gs_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def geo_set_srid(gs: "const GSERIALIZED *", srid: "int32_t") -> "GSERIALIZED *": +def geo_set_srid( + gs: Annotated[cdata, "const GSERIALIZED *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) srid_converted = _ffi.cast("int32_t", srid) result = _lib.geo_set_srid(gs_converted, srid_converted) @@ -11079,14 +11379,16 @@ def geo_set_srid(gs: "const GSERIALIZED *", srid: "int32_t") -> "GSERIALIZED *": return result if result != _ffi.NULL else None -def geo_srid(gs: "const GSERIALIZED *") -> "int32_t": +def geo_srid(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "int32_t"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_srid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_transform(geom: "GSERIALIZED *", srid_to: "int32_t") -> "GSERIALIZED *": +def geo_transform( + geom: Annotated[cdata, "GSERIALIZED *"], srid_to: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "GSERIALIZED *"]: geom_converted = _ffi.cast("GSERIALIZED *", geom) srid_to_converted = _ffi.cast("int32_t", srid_to) result = _lib.geo_transform(geom_converted, srid_to_converted) @@ -11095,68 +11397,68 @@ def geo_transform(geom: "GSERIALIZED *", srid_to: "int32_t") -> "GSERIALIZED *": def geo_transform_pipeline( - gs: "const GSERIALIZED *", pipeline: str, srid_to: "int32_t", is_forward: bool -) -> "GSERIALIZED *": + gs: Annotated[cdata, "const GSERIALIZED *"], pipeline: str, srid_to: Annotated[cdata, "int32_t"], is_forward: bool +) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) pipeline_converted = pipeline.encode("utf-8") srid_to_converted = _ffi.cast("int32_t", srid_to) - result = _lib.geo_transform_pipeline( - gs_converted, pipeline_converted, srid_to_converted, is_forward - ) + result = _lib.geo_transform_pipeline(gs_converted, pipeline_converted, srid_to_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def geo_collect_garray(gsarr: "GSERIALIZED **", count: int) -> "GSERIALIZED *": +def geo_collect_garray(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[cdata, "GSERIALIZED *"]: gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geo_collect_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geo_makeline_garray(gsarr: "GSERIALIZED **", count: int) -> "GSERIALIZED *": +def geo_makeline_garray(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[cdata, "GSERIALIZED *"]: gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geo_makeline_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geo_npoints(gs: "const GSERIALIZED *") -> "int": +def geo_npoints(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_npoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_ngeos(gs: "const GSERIALIZED *") -> "int": +def geo_ngeos(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_ngeos(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_geoN(geom: "const GSERIALIZED *", n: int) -> "GSERIALIZED *": +def geo_geoN(geom: Annotated[cdata, "const GSERIALIZED *"], n: int) -> Annotated[cdata, "GSERIALIZED *"]: geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.geo_geoN(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def geom_array_union(gsarr: "GSERIALIZED **", count: int) -> "GSERIALIZED *": +def geom_array_union(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[cdata, "GSERIALIZED *"]: gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geom_array_union(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geom_boundary(gs: "const GSERIALIZED *") -> "GSERIALIZED *": +def geom_boundary(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_boundary(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_buffer(gs: "const GSERIALIZED *", size: float, params: str) -> "GSERIALIZED *": +def geom_buffer( + gs: Annotated[cdata, "const GSERIALIZED *"], size: float, params: str +) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) params_converted = params.encode("utf-8") result = _lib.geom_buffer(gs_converted, size, params_converted) @@ -11164,14 +11466,14 @@ def geom_buffer(gs: "const GSERIALIZED *", size: float, params: str) -> "GSERIAL return result if result != _ffi.NULL else None -def geom_centroid(gs: "const GSERIALIZED *") -> "GSERIALIZED *": +def geom_centroid(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_centroid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_convex_hull(gs: "const GSERIALIZED *") -> "GSERIALIZED *": +def geom_convex_hull(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_convex_hull(gs_converted) _check_error() @@ -11179,8 +11481,8 @@ def geom_convex_hull(gs: "const GSERIALIZED *") -> "GSERIALIZED *": def geom_difference2d( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" -) -> "GSERIALIZED *": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_difference2d(gs1_converted, gs2_converted) @@ -11189,8 +11491,8 @@ def geom_difference2d( def geom_intersection2d( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" -) -> "GSERIALIZED *": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersection2d(gs1_converted, gs2_converted) @@ -11199,8 +11501,8 @@ def geom_intersection2d( def geom_shortestline2d( - gs1: "const GSERIALIZED *", s2: "const GSERIALIZED *" -) -> "GSERIALIZED *": + gs1: Annotated[cdata, "const GSERIALIZED *"], s2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) s2_converted = _ffi.cast("const GSERIALIZED *", s2) result = _lib.geom_shortestline2d(gs1_converted, s2_converted) @@ -11209,8 +11511,8 @@ def geom_shortestline2d( def geom_shortestline3d( - gs1: "const GSERIALIZED *", s2: "const GSERIALIZED *" -) -> "GSERIALIZED *": + gs1: Annotated[cdata, "const GSERIALIZED *"], s2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) s2_converted = _ffi.cast("const GSERIALIZED *", s2) result = _lib.geom_shortestline3d(gs1_converted, s2_converted) @@ -11218,7 +11520,7 @@ def geom_shortestline3d( return result if result != _ffi.NULL else None -def geom_unary_union(gs: "GSERIALIZED *", prec: float) -> "GSERIALIZED *": +def geom_unary_union(gs: Annotated[cdata, "GSERIALIZED *"], prec: float) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.geom_unary_union(gs_converted, prec) _check_error() @@ -11226,8 +11528,8 @@ def geom_unary_union(gs: "GSERIALIZED *", prec: float) -> "GSERIALIZED *": def line_interpolate_point( - gs: "GSERIALIZED *", distance_fraction: float, repeat: bool -) -> "GSERIALIZED *": + gs: Annotated[cdata, "GSERIALIZED *"], distance_fraction: float, repeat: bool +) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.line_interpolate_point(gs_converted, distance_fraction, repeat) _check_error() @@ -11235,8 +11537,8 @@ def line_interpolate_point( def line_locate_point( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" -) -> "double": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.line_locate_point(gs1_converted, gs2_converted) @@ -11245,8 +11547,8 @@ def line_locate_point( def line_substring( - gs: "const GSERIALIZED *", from_: float, to: float -) -> "GSERIALIZED *": + gs: Annotated[cdata, "const GSERIALIZED *"], from_: float, to: float +) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.line_substring(gs_converted, from_, to) _check_error() @@ -11254,11 +11556,11 @@ def line_substring( def geog_dwithin( - g1: "const GSERIALIZED *", - g2: "const GSERIALIZED *", + g1: Annotated[cdata, "const GSERIALIZED *"], + g2: Annotated[cdata, "const GSERIALIZED *"], tolerance: float, use_spheroid: bool, -) -> "bool": +) -> Annotated[bool, "bool"]: g1_converted = _ffi.cast("const GSERIALIZED *", g1) g2_converted = _ffi.cast("const GSERIALIZED *", g2) result = _lib.geog_dwithin(g1_converted, g2_converted, tolerance, use_spheroid) @@ -11267,8 +11569,8 @@ def geog_dwithin( def geog_intersects( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", use_spheroid: bool -) -> "bool": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geog_intersects(gs1_converted, gs2_converted, use_spheroid) @@ -11276,7 +11578,9 @@ def geog_intersects( return result if result != _ffi.NULL else None -def geom_contains(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geom_contains( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_contains(gs1_converted, gs2_converted) @@ -11284,7 +11588,9 @@ def geom_contains(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bo return result if result != _ffi.NULL else None -def geom_covers(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geom_covers( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_covers(gs1_converted, gs2_converted) @@ -11292,7 +11598,9 @@ def geom_covers(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool return result if result != _ffi.NULL else None -def geom_disjoint2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geom_disjoint2d( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_disjoint2d(gs1_converted, gs2_converted) @@ -11301,8 +11609,8 @@ def geom_disjoint2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> " def geom_dwithin2d( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", tolerance: float -) -> "bool": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], tolerance: float +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_dwithin2d(gs1_converted, gs2_converted, tolerance) @@ -11311,8 +11619,8 @@ def geom_dwithin2d( def geom_dwithin3d( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", tolerance: float -) -> "bool": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], tolerance: float +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_dwithin3d(gs1_converted, gs2_converted, tolerance) @@ -11320,7 +11628,9 @@ def geom_dwithin3d( return result if result != _ffi.NULL else None -def geom_intersects2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geom_intersects2d( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersects2d(gs1_converted, gs2_converted) @@ -11328,7 +11638,9 @@ def geom_intersects2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> return result if result != _ffi.NULL else None -def geom_intersects3d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geom_intersects3d( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersects3d(gs1_converted, gs2_converted) @@ -11337,8 +11649,8 @@ def geom_intersects3d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> def geom_relate_pattern( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *", patt: str -) -> "bool": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], patt: str +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) patt_converted = patt.encode("utf-8") @@ -11347,7 +11659,9 @@ def geom_relate_pattern( return result if result != _ffi.NULL else None -def geom_touches(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geom_touches( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_touches(gs1_converted, gs2_converted) @@ -11355,35 +11669,39 @@ def geom_touches(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "boo return result if result != _ffi.NULL else None -def geo_stboxes(gs: "const GSERIALIZED *") -> "Tuple['STBox *', 'int']": +def geo_stboxes( + gs: Annotated[cdata, "const GSERIALIZED *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) - count = _ffi.new("int *") - result = _lib.geo_stboxes(gs_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.geo_stboxes(gs_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def geo_split_each_n_stboxes( - gs: "const GSERIALIZED *", elem_count: int -) -> "Tuple['STBox *', 'int']": + gs: Annotated[cdata, "const GSERIALIZED *"], elem_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) - count = _ffi.new("int *") - result = _lib.geo_split_each_n_stboxes(gs_converted, elem_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.geo_split_each_n_stboxes(gs_converted, elem_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def geo_split_n_stboxes( - gs: "const GSERIALIZED *", box_count: int -) -> "Tuple['STBox *', 'int']": + gs: Annotated[cdata, "const GSERIALIZED *"], box_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) - count = _ffi.new("int *") - result = _lib.geo_split_n_stboxes(gs_converted, box_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.geo_split_n_stboxes(gs_converted, box_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def geog_distance(g1: "const GSERIALIZED *", g2: "const GSERIALIZED *") -> "double": +def geog_distance( + g1: Annotated[cdata, "const GSERIALIZED *"], g2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: g1_converted = _ffi.cast("const GSERIALIZED *", g1) g2_converted = _ffi.cast("const GSERIALIZED *", g2) result = _lib.geog_distance(g1_converted, g2_converted) @@ -11391,7 +11709,9 @@ def geog_distance(g1: "const GSERIALIZED *", g2: "const GSERIALIZED *") -> "doub return result if result != _ffi.NULL else None -def geom_distance2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "double": +def geom_distance2d( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_distance2d(gs1_converted, gs2_converted) @@ -11399,7 +11719,9 @@ def geom_distance2d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def geom_distance3d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "double": +def geom_distance3d( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_distance3d(gs1_converted, gs2_converted) @@ -11407,7 +11729,9 @@ def geom_distance3d(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def geo_equals(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "int": +def geo_equals( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geo_equals(gs1_converted, gs2_converted) @@ -11415,7 +11739,9 @@ def geo_equals(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "int": return result if result != _ffi.NULL else None -def geo_same(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": +def geo_same( + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geo_same(gs1_converted, gs2_converted) @@ -11423,21 +11749,21 @@ def geo_same(gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *") -> "bool": return result if result != _ffi.NULL else None -def geogset_in(string: str) -> "Set *": +def geogset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.geogset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def geomset_in(string: str) -> "Set *": +def geomset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.geomset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_as_text(set: "const Set *", maxdd: int) -> str: +def spatialset_as_text(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.spatialset_as_text(set_converted, maxdd) _check_error() @@ -11445,7 +11771,7 @@ def spatialset_as_text(set: "const Set *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def spatialset_as_ewkt(set: "const Set *", maxdd: int) -> str: +def spatialset_as_ewkt(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.spatialset_as_ewkt(set_converted, maxdd) _check_error() @@ -11453,35 +11779,35 @@ def spatialset_as_ewkt(set: "const Set *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def geoset_make(values: "const GSERIALIZED **") -> "Set *": +def geoset_make(values: Annotated[list, "const GSERIALIZED **"]) -> Annotated[cdata, "Set *"]: values_converted = [_ffi.cast("const GSERIALIZED *", x) for x in values] result = _lib.geoset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def geo_to_set(gs: "const GSERIALIZED *") -> "Set *": +def geo_to_set(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_to_set(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_end_value(s: "const Set *") -> "GSERIALIZED *": +def geoset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERIALIZED *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_start_value(s: "const Set *") -> "GSERIALIZED *": +def geoset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERIALIZED *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_value_n(s: "const Set *", n: int) -> "GSERIALIZED **": +def geoset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list, "GSERIALIZED **"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("GSERIALIZED **") result = _lib.geoset_value_n(s_converted, n, out_result) @@ -11491,14 +11817,16 @@ def geoset_value_n(s: "const Set *", n: int) -> "GSERIALIZED **": return None -def geoset_values(s: "const Set *") -> "GSERIALIZED **": +def geoset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERIALIZED **"]: s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "bool": +def contained_geo_set( + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_geo_set(gs_converted, s_converted) @@ -11506,7 +11834,9 @@ def contained_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contains_set_geo(s: "const Set *", gs: "GSERIALIZED *") -> "bool": +def contains_set_geo( + s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "GSERIALIZED *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.contains_set_geo(s_converted, gs_converted) @@ -11514,7 +11844,9 @@ def contains_set_geo(s: "const Set *", gs: "GSERIALIZED *") -> "bool": return result if result != _ffi.NULL else None -def geo_union_transfn(state: "Set *", gs: "const GSERIALIZED *") -> "Set *": +def geo_union_transfn( + state: Annotated[cdata, "Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_union_transfn(state_converted, gs_converted) @@ -11522,7 +11854,9 @@ def geo_union_transfn(state: "Set *", gs: "const GSERIALIZED *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": +def intersection_geo_set( + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_geo_set(gs_converted, s_converted) @@ -11530,7 +11864,9 @@ def intersection_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *" return result if result != _ffi.NULL else None -def intersection_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": +def intersection_set_geo( + s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.intersection_set_geo(s_converted, gs_converted) @@ -11538,7 +11874,9 @@ def intersection_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *" return result if result != _ffi.NULL else None -def minus_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": +def minus_geo_set( + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_geo_set(gs_converted, s_converted) @@ -11546,7 +11884,9 @@ def minus_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": +def minus_set_geo( + s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.minus_set_geo(s_converted, gs_converted) @@ -11554,7 +11894,9 @@ def minus_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": return result if result != _ffi.NULL else None -def union_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": +def union_geo_set( + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.union_geo_set(gs_converted, s_converted) @@ -11562,7 +11904,9 @@ def union_geo_set(gs: "const GSERIALIZED *", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": +def union_set_geo( + s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.union_set_geo(s_converted, gs_converted) @@ -11570,7 +11914,9 @@ def union_set_geo(s: "const Set *", gs: "const GSERIALIZED *") -> "Set *": return result if result != _ffi.NULL else None -def spatialset_set_srid(s: "const Set *", srid: "int32_t") -> "Set *": +def spatialset_set_srid( + s: Annotated[cdata, "const Set *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatialset_set_srid(s_converted, srid_converted) @@ -11578,14 +11924,16 @@ def spatialset_set_srid(s: "const Set *", srid: "int32_t") -> "Set *": return result if result != _ffi.NULL else None -def spatialset_srid(s: "const Set *") -> "int32_t": +def spatialset_srid(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int32_t"]: s_converted = _ffi.cast("const Set *", s) result = _lib.spatialset_srid(s_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_transform(s: "const Set *", srid: "int32_t") -> "Set *": +def spatialset_transform( + s: Annotated[cdata, "const Set *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatialset_transform(s_converted, srid_converted) @@ -11594,19 +11942,19 @@ def spatialset_transform(s: "const Set *", srid: "int32_t") -> "Set *": def spatialset_transform_pipeline( - s: "const Set *", pipelinestr: str, srid: "int32_t", is_forward: bool -) -> "Set *": + s: Annotated[cdata, "const Set *"], pipelinestr: str, srid: Annotated[cdata, "int32_t"], is_forward: bool +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) pipelinestr_converted = pipelinestr.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) - result = _lib.spatialset_transform_pipeline( - s_converted, pipelinestr_converted, srid_converted, is_forward - ) + result = _lib.spatialset_transform_pipeline(s_converted, pipelinestr_converted, srid_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def stbox_as_hexwkb(box: "const STBox *", variant: int) -> "Tuple[str, 'size_t *']": +def stbox_as_hexwkb( + box: Annotated[cdata, "const STBox *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: box_converted = _ffi.cast("const STBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size = _ffi.new("size_t *") @@ -11616,19 +11964,19 @@ def stbox_as_hexwkb(box: "const STBox *", variant: int) -> "Tuple[str, 'size_t * return result if result != _ffi.NULL else None, size[0] -def stbox_as_wkb(box: "const STBox *", variant: int) -> bytes: +def stbox_as_wkb( + box: Annotated[cdata, "const STBox *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: box_converted = _ffi.cast("const STBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") result = _lib.stbox_as_wkb(box_converted, variant_converted, size_out) _check_error() - result_converted = ( - bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None - ) + result_converted = bytes(result[i] for i in range(size_out[0])) if result != _ffi.NULL else None return result_converted -def stbox_from_hexwkb(hexwkb: str) -> "STBox *": +def stbox_from_hexwkb(hexwkb: str) -> Annotated[cdata, "STBox *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.stbox_from_hexwkb(hexwkb_converted) _check_error() @@ -11641,14 +11989,14 @@ def stbox_from_wkb(wkb: bytes) -> "STBOX *": return result if result != _ffi.NULL else None -def stbox_in(string: str) -> "STBox *": +def stbox_in(string: str) -> Annotated[cdata, "STBox *"]: string_converted = string.encode("utf-8") result = _lib.stbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_out(box: "const STBox *", maxdd: int) -> str: +def stbox_out(box: Annotated[cdata, "const STBox *"], maxdd: int) -> Annotated[str, "char *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_out(box_converted, maxdd) _check_error() @@ -11656,7 +12004,7 @@ def stbox_out(box: "const STBox *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def geo_timestamptz_to_stbox(gs: "const GSERIALIZED *", t: int) -> "STBox *": +def geo_timestamptz_to_stbox(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annotated[cdata, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) t_converted = _ffi.cast("TimestampTz", t) result = _lib.geo_timestamptz_to_stbox(gs_converted, t_converted) @@ -11664,7 +12012,9 @@ def geo_timestamptz_to_stbox(gs: "const GSERIALIZED *", t: int) -> "STBox *": return result if result != _ffi.NULL else None -def geo_tstzspan_to_stbox(gs: "const GSERIALIZED *", s: "const Span *") -> "STBox *": +def geo_tstzspan_to_stbox( + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) result = _lib.geo_tstzspan_to_stbox(gs_converted, s_converted) @@ -11672,7 +12022,7 @@ def geo_tstzspan_to_stbox(gs: "const GSERIALIZED *", s: "const Span *") -> "STBo return result if result != _ffi.NULL else None -def stbox_copy(box: "const STBox *") -> "STBox *": +def stbox_copy(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_copy(box_converted) _check_error() @@ -11690,140 +12040,128 @@ def stbox_make( ymax: float, zmin: float, zmax: float, - s: "Optional['const Span *']", -) -> "STBox *": + s: Annotated[cdata, "const Span *"] | None, +) -> Annotated[cdata, "STBox *"]: srid_converted = _ffi.cast("int32", srid) s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL - result = _lib.stbox_make( - hasx, - hasz, - geodetic, - srid_converted, - xmin, - xmax, - ymin, - ymax, - zmin, - zmax, - s_converted, - ) + result = _lib.stbox_make(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted) _check_error() return result if result != _ffi.NULL else None -def geo_to_stbox(gs: "const GSERIALIZED *") -> "STBox *": +def geo_to_stbox(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_to_stbox(gs_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_to_stbox(s: "const Set *") -> "STBox *": +def spatialset_to_stbox(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "STBox *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.spatialset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_box3d(box: "const STBox *") -> "BOX3D *": +def stbox_to_box3d(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "BOX3D *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_box3d(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_gbox(box: "const STBox *") -> "GBOX *": +def stbox_to_gbox(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "GBOX *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_gbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_geo(box: "const STBox *") -> "GSERIALIZED *": +def stbox_to_geo(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "GSERIALIZED *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_tstzspan(box: "const STBox *") -> "Span *": +def stbox_to_tstzspan(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "Span *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_stbox(t: int) -> "STBox *": +def timestamptz_to_stbox(t: int) -> Annotated[cdata, "STBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_stbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_stbox(s: "const Set *") -> "STBox *": +def tstzset_to_stbox(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "STBox *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_stbox(s: "const Span *") -> "STBox *": +def tstzspan_to_stbox(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "STBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_stbox(ss: "const SpanSet *") -> "STBox *": +def tstzspanset_to_stbox(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "STBox *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_to_stbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_area(box: "const STBox *", spheroid: bool) -> "double": +def stbox_area(box: Annotated[cdata, "const STBox *"], spheroid: bool) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_area(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def stbox_hast(box: "const STBox *") -> "bool": +def stbox_hast(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_hasx(box: "const STBox *") -> "bool": +def stbox_hasx(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_hasz(box: "const STBox *") -> "bool": +def stbox_hasz(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hasz(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_isgeodetic(box: "const STBox *") -> "bool": +def stbox_isgeodetic(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_isgeodetic(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_perimeter(box: "const STBox *", spheroid: bool) -> "double": +def stbox_perimeter(box: Annotated[cdata, "const STBox *"], spheroid: bool) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_perimeter(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def stbox_tmax(box: "const STBox *") -> int: +def stbox_tmax(box: Annotated[cdata, "const STBox *"]) -> int: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.stbox_tmax(box_converted, out_result) @@ -11833,7 +12171,7 @@ def stbox_tmax(box: "const STBox *") -> int: return None -def stbox_tmax_inc(box: "const STBox *") -> "bool": +def stbox_tmax_inc(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "bool"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("bool *") result = _lib.stbox_tmax_inc(box_converted, out_result) @@ -11843,7 +12181,7 @@ def stbox_tmax_inc(box: "const STBox *") -> "bool": return None -def stbox_tmin(box: "const STBox *") -> int: +def stbox_tmin(box: Annotated[cdata, "const STBox *"]) -> int: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.stbox_tmin(box_converted, out_result) @@ -11853,7 +12191,7 @@ def stbox_tmin(box: "const STBox *") -> int: return None -def stbox_tmin_inc(box: "const STBox *") -> "bool": +def stbox_tmin_inc(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "bool"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("bool *") result = _lib.stbox_tmin_inc(box_converted, out_result) @@ -11863,14 +12201,14 @@ def stbox_tmin_inc(box: "const STBox *") -> "bool": return None -def stbox_volume(box: "const STBox *") -> "double": +def stbox_volume(box: Annotated[cdata, "const STBox *"]) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_volume(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_xmax(box: "const STBox *") -> "double": +def stbox_xmax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_xmax(box_converted, out_result) @@ -11880,7 +12218,7 @@ def stbox_xmax(box: "const STBox *") -> "double": return None -def stbox_xmin(box: "const STBox *") -> "double": +def stbox_xmin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_xmin(box_converted, out_result) @@ -11890,7 +12228,7 @@ def stbox_xmin(box: "const STBox *") -> "double": return None -def stbox_ymax(box: "const STBox *") -> "double": +def stbox_ymax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_ymax(box_converted, out_result) @@ -11900,7 +12238,7 @@ def stbox_ymax(box: "const STBox *") -> "double": return None -def stbox_ymin(box: "const STBox *") -> "double": +def stbox_ymin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_ymin(box_converted, out_result) @@ -11910,7 +12248,7 @@ def stbox_ymin(box: "const STBox *") -> "double": return None -def stbox_zmax(box: "const STBox *") -> "double": +def stbox_zmax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_zmax(box_converted, out_result) @@ -11920,7 +12258,7 @@ def stbox_zmax(box: "const STBox *") -> "double": return None -def stbox_zmin(box: "const STBox *") -> "double": +def stbox_zmin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_zmin(box_converted, out_result) @@ -11930,14 +12268,16 @@ def stbox_zmin(box: "const STBox *") -> "double": return None -def stbox_expand_space(box: "const STBox *", d: float) -> "STBox *": +def stbox_expand_space(box: Annotated[cdata, "const STBox *"], d: float) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_expand_space(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def stbox_expand_time(box: "const STBox *", interv: "const Interval *") -> "STBox *": +def stbox_expand_time( + box: Annotated[cdata, "const STBox *"], interv: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.stbox_expand_time(box_converted, interv_converted) @@ -11945,22 +12285,24 @@ def stbox_expand_time(box: "const STBox *", interv: "const Interval *") -> "STBo return result if result != _ffi.NULL else None -def stbox_get_space(box: "const STBox *") -> "STBox *": +def stbox_get_space(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_get_space(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_quad_split(box: "const STBox *") -> "Tuple['STBox *', 'int']": +def stbox_quad_split( + box: Annotated[cdata, "const STBox *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) - count = _ffi.new("int *") - result = _lib.stbox_quad_split(box_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.stbox_quad_split(box_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def stbox_round(box: "const STBox *", maxdd: int) -> "STBox *": +def stbox_round(box: Annotated[cdata, "const STBox *"], maxdd: int) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_round(box_converted, maxdd) _check_error() @@ -11968,32 +12310,28 @@ def stbox_round(box: "const STBox *", maxdd: int) -> "STBox *": def stbox_shift_scale_time( - box: "const STBox *", - shift: "Optional['const Interval *']", - duration: "Optional['const Interval *']", -) -> "STBox *": + box: Annotated[cdata, "const STBox *"], + shift: Annotated[cdata, "const Interval *"] | None, + duration: Annotated[cdata, "const Interval *"] | None, +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) - shift_converted = ( - _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL - ) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) - result = _lib.stbox_shift_scale_time( - box_converted, shift_converted, duration_converted - ) + shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL + result = _lib.stbox_shift_scale_time(box_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def stboxarr_round(boxarr: "const STBox *", count: int, maxdd: int) -> "STBox *": +def stboxarr_round(boxarr: Annotated[cdata, "const STBox *"], count: int, maxdd: int) -> Annotated[cdata, "STBox *"]: boxarr_converted = _ffi.cast("const STBox *", boxarr) result = _lib.stboxarr_round(boxarr_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def stbox_set_srid(box: "const STBox *", srid: "int32_t") -> "STBox *": +def stbox_set_srid( + box: Annotated[cdata, "const STBox *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) srid_converted = _ffi.cast("int32_t", srid) result = _lib.stbox_set_srid(box_converted, srid_converted) @@ -12001,14 +12339,16 @@ def stbox_set_srid(box: "const STBox *", srid: "int32_t") -> "STBox *": return result if result != _ffi.NULL else None -def stbox_srid(box: "const STBox *") -> "int32_t": +def stbox_srid(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "int32_t"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_srid(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_transform(box: "const STBox *", srid: "int32_t") -> "STBox *": +def stbox_transform( + box: Annotated[cdata, "const STBox *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) srid_converted = _ffi.cast("int32_t", srid) result = _lib.stbox_transform(box_converted, srid_converted) @@ -12017,19 +12357,19 @@ def stbox_transform(box: "const STBox *", srid: "int32_t") -> "STBox *": def stbox_transform_pipeline( - box: "const STBox *", pipelinestr: str, srid: "int32_t", is_forward: bool -) -> "STBox *": + box: Annotated[cdata, "const STBox *"], pipelinestr: str, srid: Annotated[cdata, "int32_t"], is_forward: bool +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) pipelinestr_converted = pipelinestr.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) - result = _lib.stbox_transform_pipeline( - box_converted, pipelinestr_converted, srid_converted, is_forward - ) + result = _lib.stbox_transform_pipeline(box_converted, pipelinestr_converted, srid_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def adjacent_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def adjacent_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.adjacent_stbox_stbox(box1_converted, box2_converted) @@ -12037,7 +12377,9 @@ def adjacent_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool" return result if result != _ffi.NULL else None -def contained_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def contained_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.contained_stbox_stbox(box1_converted, box2_converted) @@ -12045,7 +12387,9 @@ def contained_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool return result if result != _ffi.NULL else None -def contains_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def contains_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.contains_stbox_stbox(box1_converted, box2_converted) @@ -12053,7 +12397,9 @@ def contains_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool" return result if result != _ffi.NULL else None -def overlaps_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overlaps_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overlaps_stbox_stbox(box1_converted, box2_converted) @@ -12061,7 +12407,9 @@ def overlaps_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool" return result if result != _ffi.NULL else None -def same_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def same_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.same_stbox_stbox(box1_converted, box2_converted) @@ -12069,7 +12417,9 @@ def same_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def above_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def above_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.above_stbox_stbox(box1_converted, box2_converted) @@ -12077,7 +12427,9 @@ def above_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def after_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def after_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.after_stbox_stbox(box1_converted, box2_converted) @@ -12085,7 +12437,9 @@ def after_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def back_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def back_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.back_stbox_stbox(box1_converted, box2_converted) @@ -12093,7 +12447,9 @@ def back_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def before_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def before_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.before_stbox_stbox(box1_converted, box2_converted) @@ -12101,7 +12457,9 @@ def before_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def below_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def below_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.below_stbox_stbox(box1_converted, box2_converted) @@ -12109,7 +12467,9 @@ def below_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def front_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def front_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.front_stbox_stbox(box1_converted, box2_converted) @@ -12117,7 +12477,9 @@ def front_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def left_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def left_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.left_stbox_stbox(box1_converted, box2_converted) @@ -12125,7 +12487,9 @@ def left_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def overabove_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overabove_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overabove_stbox_stbox(box1_converted, box2_converted) @@ -12133,7 +12497,9 @@ def overabove_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool return result if result != _ffi.NULL else None -def overafter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overafter_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overafter_stbox_stbox(box1_converted, box2_converted) @@ -12141,7 +12507,9 @@ def overafter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool return result if result != _ffi.NULL else None -def overback_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overback_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overback_stbox_stbox(box1_converted, box2_converted) @@ -12149,7 +12517,9 @@ def overback_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool" return result if result != _ffi.NULL else None -def overbefore_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overbefore_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overbefore_stbox_stbox(box1_converted, box2_converted) @@ -12157,7 +12527,9 @@ def overbefore_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "boo return result if result != _ffi.NULL else None -def overbelow_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overbelow_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overbelow_stbox_stbox(box1_converted, box2_converted) @@ -12165,7 +12537,9 @@ def overbelow_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool return result if result != _ffi.NULL else None -def overfront_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overfront_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overfront_stbox_stbox(box1_converted, box2_converted) @@ -12173,7 +12547,9 @@ def overfront_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool return result if result != _ffi.NULL else None -def overleft_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overleft_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overleft_stbox_stbox(box1_converted, box2_converted) @@ -12181,7 +12557,9 @@ def overleft_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool" return result if result != _ffi.NULL else None -def overright_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def overright_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.overright_stbox_stbox(box1_converted, box2_converted) @@ -12189,7 +12567,9 @@ def overright_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool return result if result != _ffi.NULL else None -def right_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": +def right_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.right_stbox_stbox(box1_converted, box2_converted) @@ -12198,8 +12578,8 @@ def right_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "bool": def union_stbox_stbox( - box1: "const STBox *", box2: "const STBox *", strict: bool -) -> "STBox *": + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"], strict: bool +) -> Annotated[cdata, "STBox *"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.union_stbox_stbox(box1_converted, box2_converted, strict) @@ -12207,7 +12587,9 @@ def union_stbox_stbox( return result if result != _ffi.NULL else None -def intersection_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *": +def intersection_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[cdata, "STBox *"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.intersection_stbox_stbox(box1_converted, box2_converted) @@ -12215,7 +12597,9 @@ def intersection_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "S return result if result != _ffi.NULL else None -def stbox_cmp(box1: "const STBox *", box2: "const STBox *") -> "int": +def stbox_cmp( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[int, "int"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_cmp(box1_converted, box2_converted) @@ -12223,7 +12607,9 @@ def stbox_cmp(box1: "const STBox *", box2: "const STBox *") -> "int": return result if result != _ffi.NULL else None -def stbox_eq(box1: "const STBox *", box2: "const STBox *") -> "bool": +def stbox_eq( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_eq(box1_converted, box2_converted) @@ -12231,7 +12617,9 @@ def stbox_eq(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def stbox_ge(box1: "const STBox *", box2: "const STBox *") -> "bool": +def stbox_ge( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_ge(box1_converted, box2_converted) @@ -12239,7 +12627,9 @@ def stbox_ge(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def stbox_gt(box1: "const STBox *", box2: "const STBox *") -> "bool": +def stbox_gt( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_gt(box1_converted, box2_converted) @@ -12247,7 +12637,9 @@ def stbox_gt(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def stbox_le(box1: "const STBox *", box2: "const STBox *") -> "bool": +def stbox_le( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_le(box1_converted, box2_converted) @@ -12255,7 +12647,9 @@ def stbox_le(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def stbox_lt(box1: "const STBox *", box2: "const STBox *") -> "bool": +def stbox_lt( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_lt(box1_converted, box2_converted) @@ -12263,7 +12657,9 @@ def stbox_lt(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def stbox_ne(box1: "const STBox *", box2: "const STBox *") -> "bool": +def stbox_ne( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.stbox_ne(box1_converted, box2_converted) @@ -12271,19 +12667,21 @@ def stbox_ne(box1: "const STBox *", box2: "const STBox *") -> "bool": return result if result != _ffi.NULL else None -def rtree_create_stbox() -> "RTree *": +def rtree_create_stbox() -> Annotated[cdata, "RTree *"]: result = _lib.rtree_create_stbox() _check_error() return result if result != _ffi.NULL else None -def rtree_free(rtree: "RTree *") -> None: +def rtree_free(rtree: Annotated[cdata, "RTree *"]) -> Annotated[None, "void"]: rtree_converted = _ffi.cast("RTree *", rtree) _lib.rtree_free(rtree_converted) _check_error() -def rtree_insert(rtree: "RTree *", box: "STBox *", id: int) -> None: +def rtree_insert( + rtree: Annotated[cdata, "RTree *"], box: Annotated[cdata, "STBox *"], id: int +) -> Annotated[None, "void"]: rtree_converted = _ffi.cast("RTree *", rtree) box_converted = _ffi.cast("STBox *", box) id_converted = _ffi.cast("int64", id) @@ -12292,17 +12690,17 @@ def rtree_insert(rtree: "RTree *", box: "STBox *", id: int) -> None: def rtree_search( - rtree: "const RTree *", query: "const STBox *" -) -> "Tuple['int *', 'int']": + rtree: Annotated[cdata, "const RTree *"], query: Annotated[cdata, "const STBox *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "int *"]: rtree_converted = _ffi.cast("const RTree *", rtree) query_converted = _ffi.cast("const STBox *", query) - count = _ffi.new("int *") - result = _lib.rtree_search(rtree_converted, query_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.rtree_search(rtree_converted, query_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tgeo_out(temp: "const Temporal *", maxdd: int) -> str: +def tgeo_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_out(temp_converted, maxdd) _check_error() @@ -12310,63 +12708,63 @@ def tgeo_out(temp: "const Temporal *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def tgeogpoint_from_mfjson(string: str) -> "Temporal *": +def tgeogpoint_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_in(string: str) -> "Temporal *": +def tgeogpoint_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_from_mfjson(mfjson: str) -> "Temporal *": +def tgeography_from_mfjson(mfjson: str) -> Annotated[cdata, "Temporal *"]: mfjson_converted = mfjson.encode("utf-8") result = _lib.tgeography_from_mfjson(mfjson_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_in(string: str) -> "Temporal *": +def tgeography_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeography_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_from_mfjson(string: str) -> "Temporal *": +def tgeometry_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeometry_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_in(string: str) -> "Temporal *": +def tgeometry_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeometry_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_from_mfjson(string: str) -> "Temporal *": +def tgeompoint_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeompoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_in(string: str) -> "Temporal *": +def tgeompoint_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeompoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_as_ewkt(temp: "const Temporal *", maxdd: int) -> str: +def tspatial_as_ewkt(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_as_ewkt(temp_converted, maxdd) _check_error() @@ -12374,7 +12772,7 @@ def tspatial_as_ewkt(temp: "const Temporal *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def tspatial_as_text(temp: "const Temporal *", maxdd: int) -> str: +def tspatial_as_text(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_as_text(temp_converted, maxdd) _check_error() @@ -12383,8 +12781,8 @@ def tspatial_as_text(temp: "const Temporal *", maxdd: int) -> str: def tgeo_from_base_temp( - gs: "const GSERIALIZED *", temp: "const Temporal *" -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_from_base_temp(gs_converted, temp_converted) @@ -12392,7 +12790,7 @@ def tgeo_from_base_temp( return result if result != _ffi.NULL else None -def tgeoinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": +def tgeoinst_make(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annotated[cdata, "TInstant *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tgeoinst_make(gs_converted, t_converted) @@ -12401,8 +12799,8 @@ def tgeoinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": def tgeoseq_from_base_tstzset( - gs: "const GSERIALIZED *", s: "const Set *" -) -> "TSequence *": + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.tgeoseq_from_base_tstzset(gs_converted, s_converted) @@ -12411,8 +12809,8 @@ def tgeoseq_from_base_tstzset( def tgeoseq_from_base_tstzspan( - gs: "const GSERIALIZED *", s: "const Span *", interp: InterpolationType -) -> "TSequence *": + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Span *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) result = _lib.tgeoseq_from_base_tstzspan(gs_converted, s_converted, interp) @@ -12421,8 +12819,8 @@ def tgeoseq_from_base_tstzspan( def tgeoseqset_from_base_tstzspanset( - gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: InterpolationType -) -> "TSequenceSet *": + gs: Annotated[cdata, "const GSERIALIZED *"], ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tgeoseqset_from_base_tstzspanset(gs_converted, ss_converted, interp) @@ -12431,8 +12829,8 @@ def tgeoseqset_from_base_tstzspanset( def tpoint_from_base_temp( - gs: "const GSERIALIZED *", temp: "const Temporal *" -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_from_base_temp(gs_converted, temp_converted) @@ -12440,7 +12838,7 @@ def tpoint_from_base_temp( return result if result != _ffi.NULL else None -def tpointinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": +def tpointinst_make(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annotated[cdata, "TInstant *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tpointinst_make(gs_converted, t_converted) @@ -12449,8 +12847,8 @@ def tpointinst_make(gs: "const GSERIALIZED *", t: int) -> "TInstant *": def tpointseq_from_base_tstzset( - gs: "const GSERIALIZED *", s: "const Set *" -) -> "TSequence *": + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.tpointseq_from_base_tstzset(gs_converted, s_converted) @@ -12459,8 +12857,8 @@ def tpointseq_from_base_tstzset( def tpointseq_from_base_tstzspan( - gs: "const GSERIALIZED *", s: "const Span *", interp: InterpolationType -) -> "TSequence *": + gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Span *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) result = _lib.tpointseq_from_base_tstzspan(gs_converted, s_converted, interp) @@ -12469,9 +12867,9 @@ def tpointseq_from_base_tstzspan( def tpointseq_make_coords( - xcoords: "const double *", - ycoords: "const double *", - zcoords: "const double *", + xcoords: Annotated[cdata, "const double *"], + ycoords: Annotated[cdata, "const double *"], + zcoords: Annotated[cdata, "const double *"], times: int, count: int, srid: int, @@ -12480,7 +12878,7 @@ def tpointseq_make_coords( upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> "TSequence *": +) -> Annotated[cdata, "TSequence *"]: xcoords_converted = _ffi.cast("const double *", xcoords) ycoords_converted = _ffi.cast("const double *", ycoords) zcoords_converted = _ffi.cast("const double *", zcoords) @@ -12504,8 +12902,8 @@ def tpointseq_make_coords( def tpointseqset_from_base_tstzspanset( - gs: "const GSERIALIZED *", ss: "const SpanSet *", interp: InterpolationType -) -> "TSequenceSet *": + gs: Annotated[cdata, "const GSERIALIZED *"], ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tpointseqset_from_base_tstzspanset(gs_converted, ss_converted, interp) @@ -12513,63 +12911,63 @@ def tpointseqset_from_base_tstzspanset( return result if result != _ffi.NULL else None -def box3d_to_stbox(box: "const BOX3D *") -> "STBox *": +def box3d_to_stbox(box: Annotated[cdata, "const BOX3D *"]) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const BOX3D *", box) result = _lib.box3d_to_stbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def gbox_to_stbox(box: "const GBOX *") -> "STBox *": +def gbox_to_stbox(box: Annotated[cdata, "const GBOX *"]) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const GBOX *", box) result = _lib.gbox_to_stbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def geomeas_to_tpoint(gs: "const GSERIALIZED *") -> "Temporal *": +def geomeas_to_tpoint(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geomeas_to_tpoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_to_tgeography(temp: "const Temporal *") -> "Temporal *": +def tgeogpoint_to_tgeography(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeogpoint_to_tgeography(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_to_tgeogpoint(temp: "const Temporal *") -> "Temporal *": +def tgeography_to_tgeogpoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeography_to_tgeogpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_to_tgeometry(temp: "const Temporal *") -> "Temporal *": +def tgeography_to_tgeometry(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeography_to_tgeometry(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_to_tgeography(temp: "const Temporal *") -> "Temporal *": +def tgeometry_to_tgeography(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeometry_to_tgeography(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_to_tgeompoint(temp: "const Temporal *") -> "Temporal *": +def tgeometry_to_tgeompoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeometry_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_to_tgeometry(temp: "const Temporal *") -> "Temporal *": +def tgeompoint_to_tgeometry(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeompoint_to_tgeometry(temp_converted) _check_error() @@ -12577,21 +12975,22 @@ def tgeompoint_to_tgeometry(temp: "const Temporal *") -> "Temporal *": def tpoint_as_mvtgeom( - temp: "const Temporal *", - bounds: "const STBox *", - extent: "int32_t", - buffer: "int32_t", + temp: Annotated[cdata, "const Temporal *"], + bounds: Annotated[cdata, "const STBox *"], + extent: Annotated[cdata, "int32_t"], + buffer: Annotated[cdata, "int32_t"], clip_geom: bool, - gsarr: "GSERIALIZED **", - timesarr: "int64 **", -) -> "Tuple['bool', 'int']": + gsarr: Annotated[list, "GSERIALIZED **"], + timesarr: Annotated[list, "int64 **"], + count: Annotated[cdata, "int *"], +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) bounds_converted = _ffi.cast("const STBox *", bounds) extent_converted = _ffi.cast("int32_t", extent) buffer_converted = _ffi.cast("int32_t", buffer) gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] timesarr_converted = [_ffi.cast("int64 *", x) for x in timesarr] - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tpoint_as_mvtgeom( temp_converted, bounds_converted, @@ -12600,28 +12999,26 @@ def tpoint_as_mvtgeom( clip_geom, gsarr_converted, timesarr_converted, - count, + count_converted, ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tpoint_tfloat_to_geomeas( - tpoint: "const Temporal *", measure: "const Temporal *", segmentize: bool -) -> "GSERIALIZED **": + tpoint: Annotated[cdata, "const Temporal *"], measure: Annotated[cdata, "const Temporal *"], segmentize: bool +) -> Annotated[list, "GSERIALIZED **"]: tpoint_converted = _ffi.cast("const Temporal *", tpoint) measure_converted = _ffi.cast("const Temporal *", measure) out_result = _ffi.new("GSERIALIZED **") - result = _lib.tpoint_tfloat_to_geomeas( - tpoint_converted, measure_converted, segmentize, out_result - ) + result = _lib.tpoint_tfloat_to_geomeas(tpoint_converted, measure_converted, segmentize, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tspatial_to_stbox(temp: "const Temporal *") -> "STBox *": +def tspatial_to_stbox(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_to_stbox(temp_converted) _check_error() @@ -12629,8 +13026,8 @@ def tspatial_to_stbox(temp: "const Temporal *") -> "STBox *": def bearing_point_point( - gs1: "const GSERIALIZED *", gs2: "const GSERIALIZED *" -) -> "double": + gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) out_result = _ffi.new("double *") @@ -12642,8 +13039,8 @@ def bearing_point_point( def bearing_tpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *", invert: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], invert: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.bearing_tpoint_point(temp_converted, gs_converted, invert) @@ -12652,8 +13049,8 @@ def bearing_tpoint_point( def bearing_tpoint_tpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.bearing_tpoint_tpoint(temp1_converted, temp2_converted) @@ -12661,35 +13058,37 @@ def bearing_tpoint_tpoint( return result if result != _ffi.NULL else None -def tgeo_centroid(temp: "const Temporal *") -> "Temporal *": +def tgeo_centroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_centroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_convex_hull(temp: "const Temporal *") -> "GSERIALIZED *": +def tgeo_convex_hull(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_convex_hull(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_end_value(temp: "const Temporal *") -> "GSERIALIZED *": +def tgeo_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_start_value(temp: "const Temporal *") -> "GSERIALIZED *": +def tgeo_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_traversed_area(temp: "const Temporal *", unary_union: bool) -> "GSERIALIZED *": +def tgeo_traversed_area( + temp: Annotated[cdata, "const Temporal *"], unary_union: bool +) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_traversed_area(temp_converted, unary_union) _check_error() @@ -12697,21 +13096,19 @@ def tgeo_traversed_area(temp: "const Temporal *", unary_union: bool) -> "GSERIAL def tgeo_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "GSERIALIZED **": + temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool +) -> Annotated[list, "GSERIALIZED **"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("GSERIALIZED **") - result = _lib.tgeo_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.tgeo_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tgeo_value_n(temp: "const Temporal *", n: int) -> "GSERIALIZED **": +def tgeo_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[list, "GSERIALIZED **"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("GSERIALIZED **") result = _lib.tgeo_value_n(temp_converted, n, out_result) @@ -12721,36 +13118,38 @@ def tgeo_value_n(temp: "const Temporal *", n: int) -> "GSERIALIZED **": return None -def tgeo_values(temp: "const Temporal *") -> "Tuple['GSERIALIZED **', 'int']": +def tgeo_values( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "GSERIALIZED **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tgeo_values(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeo_values(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_angular_difference(temp: "const Temporal *") -> "Temporal *": +def tpoint_angular_difference(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_azimuth(temp: "const Temporal *") -> "Temporal *": +def tpoint_azimuth(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_azimuth(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_cumulative_length(temp: "const Temporal *") -> "Temporal *": +def tpoint_cumulative_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_direction(temp: "const Temporal *") -> "double": +def tpoint_direction(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("double *") result = _lib.tpoint_direction(temp_converted, out_result) @@ -12760,63 +13159,67 @@ def tpoint_direction(temp: "const Temporal *") -> "double": return None -def tpoint_get_x(temp: "const Temporal *") -> "Temporal *": +def tpoint_get_x(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_x(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_get_y(temp: "const Temporal *") -> "Temporal *": +def tpoint_get_y(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_y(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_get_z(temp: "const Temporal *") -> "Temporal *": +def tpoint_get_z(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_z(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_is_simple(temp: "const Temporal *") -> "bool": +def tpoint_is_simple(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_is_simple(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_length(temp: "const Temporal *") -> "double": +def tpoint_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_speed(temp: "const Temporal *") -> "Temporal *": +def tpoint_speed(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_speed(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_trajectory(temp: "const Temporal *", unary_union: bool) -> "GSERIALIZED *": +def tpoint_trajectory( + temp: Annotated[cdata, "const Temporal *"], unary_union: bool +) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_trajectory(temp_converted, unary_union) _check_error() return result if result != _ffi.NULL else None -def tpoint_twcentroid(temp: "const Temporal *") -> "GSERIALIZED *": +def tpoint_twcentroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_twcentroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_affine(temp: "const Temporal *", a: "const AFFINE *") -> "Temporal *": +def tgeo_affine( + temp: Annotated[cdata, "const Temporal *"], a: Annotated[cdata, "const AFFINE *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) a_converted = _ffi.cast("const AFFINE *", a) result = _lib.tgeo_affine(temp_converted, a_converted) @@ -12825,10 +13228,10 @@ def tgeo_affine(temp: "const Temporal *", a: "const AFFINE *") -> "Temporal *": def tgeo_scale( - temp: "const Temporal *", - scale: "const GSERIALIZED *", - sorigin: "const GSERIALIZED *", -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], + scale: Annotated[cdata, "const GSERIALIZED *"], + sorigin: Annotated[cdata, "const GSERIALIZED *"], +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) scale_converted = _ffi.cast("const GSERIALIZED *", scale) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) @@ -12837,22 +13240,26 @@ def tgeo_scale( return result if result != _ffi.NULL else None -def tpoint_make_simple(temp: "const Temporal *") -> "Tuple['Temporal **', 'int']": +def tpoint_make_simple( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Temporal **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tpoint_make_simple(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tpoint_make_simple(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tspatial_srid(temp: "const Temporal *") -> "int32_t": +def tspatial_srid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "int32_t"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_srid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_set_srid(temp: "const Temporal *", srid: "int32_t") -> "Temporal *": +def tspatial_set_srid( + temp: Annotated[cdata, "const Temporal *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) srid_converted = _ffi.cast("int32_t", srid) result = _lib.tspatial_set_srid(temp_converted, srid_converted) @@ -12860,7 +13267,9 @@ def tspatial_set_srid(temp: "const Temporal *", srid: "int32_t") -> "Temporal *" return result if result != _ffi.NULL else None -def tspatial_transform(temp: "const Temporal *", srid: "int32_t") -> "Temporal *": +def tspatial_transform( + temp: Annotated[cdata, "const Temporal *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) srid_converted = _ffi.cast("int32_t", srid) result = _lib.tspatial_transform(temp_converted, srid_converted) @@ -12869,19 +13278,19 @@ def tspatial_transform(temp: "const Temporal *", srid: "int32_t") -> "Temporal * def tspatial_transform_pipeline( - temp: "const Temporal *", pipelinestr: str, srid: "int32_t", is_forward: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], pipelinestr: str, srid: Annotated[cdata, "int32_t"], is_forward: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) pipelinestr_converted = pipelinestr.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) - result = _lib.tspatial_transform_pipeline( - temp_converted, pipelinestr_converted, srid_converted, is_forward - ) + result = _lib.tspatial_transform_pipeline(temp_converted, pipelinestr_converted, srid_converted, is_forward) _check_error() return result if result != _ffi.NULL else None -def tgeo_at_geom(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Temporal *": +def tgeo_at_geom( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tgeo_at_geom(temp_converted, gs_converted) @@ -12890,8 +13299,8 @@ def tgeo_at_geom(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Tempor def tgeo_at_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_at_stbox(temp_converted, box_converted, border_inc) @@ -12899,7 +13308,9 @@ def tgeo_at_stbox( return result if result != _ffi.NULL else None -def tgeo_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": +def tgeo_at_value( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tgeo_at_value(temp_converted, gs_converted) @@ -12908,8 +13319,8 @@ def tgeo_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *" def tgeo_minus_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tgeo_minus_geom(temp_converted, gs_converted) @@ -12918,8 +13329,8 @@ def tgeo_minus_geom( def tgeo_minus_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_minus_stbox(temp_converted, box_converted, border_inc) @@ -12927,7 +13338,9 @@ def tgeo_minus_stbox( return result if result != _ffi.NULL else None -def tgeo_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": +def tgeo_minus_value( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tgeo_minus_value(temp_converted, gs_converted) @@ -12936,8 +13349,10 @@ def tgeo_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal def tpoint_at_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *", zspan: "const Span *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], + gs: Annotated[cdata, "const GSERIALIZED *"], + zspan: Annotated[cdata, "const Span *"], +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -12946,7 +13361,9 @@ def tpoint_at_geom( return result if result != _ffi.NULL else None -def tpoint_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": +def tpoint_at_value( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tpoint_at_value(temp_converted, gs_converted) @@ -12955,8 +13372,10 @@ def tpoint_at_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal def tpoint_minus_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *", zspan: "const Span *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], + gs: Annotated[cdata, "const GSERIALIZED *"], + zspan: Annotated[cdata, "const Span *"], +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -12965,7 +13384,9 @@ def tpoint_minus_geom( return result if result != _ffi.NULL else None -def tpoint_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Temporal *": +def tpoint_minus_value( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tpoint_minus_value(temp_converted, gs_converted) @@ -12973,7 +13394,9 @@ def tpoint_minus_value(temp: "const Temporal *", gs: "GSERIALIZED *") -> "Tempor return result if result != _ffi.NULL else None -def always_eq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def always_eq_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_geo_tgeo(gs_converted, temp_converted) @@ -12981,7 +13404,9 @@ def always_eq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def always_eq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def always_eq_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.always_eq_tgeo_geo(temp_converted, gs_converted) @@ -12989,7 +13414,9 @@ def always_eq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def always_eq_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def always_eq_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_eq_tgeo_tgeo(temp1_converted, temp2_converted) @@ -12997,7 +13424,9 @@ def always_eq_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> return result if result != _ffi.NULL else None -def always_ne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def always_ne_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_geo_tgeo(gs_converted, temp_converted) @@ -13005,7 +13434,9 @@ def always_ne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def always_ne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def always_ne_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.always_ne_tgeo_geo(temp_converted, gs_converted) @@ -13013,7 +13444,9 @@ def always_ne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def always_ne_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def always_ne_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ne_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13021,7 +13454,9 @@ def always_ne_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> return result if result != _ffi.NULL else None -def ever_eq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def ever_eq_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_geo_tgeo(gs_converted, temp_converted) @@ -13029,7 +13464,9 @@ def ever_eq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "in return result if result != _ffi.NULL else None -def ever_eq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def ever_eq_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ever_eq_tgeo_geo(temp_converted, gs_converted) @@ -13037,7 +13474,9 @@ def ever_eq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "in return result if result != _ffi.NULL else None -def ever_eq_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def ever_eq_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_eq_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13045,7 +13484,9 @@ def ever_eq_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> " return result if result != _ffi.NULL else None -def ever_ne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def ever_ne_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_geo_tgeo(gs_converted, temp_converted) @@ -13053,7 +13494,9 @@ def ever_ne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "in return result if result != _ffi.NULL else None -def ever_ne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def ever_ne_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ever_ne_tgeo_geo(temp_converted, gs_converted) @@ -13061,7 +13504,9 @@ def ever_ne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "in return result if result != _ffi.NULL else None -def ever_ne_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def ever_ne_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ne_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13069,7 +13514,9 @@ def ever_ne_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> " return result if result != _ffi.NULL else None -def teq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "Temporal *": +def teq_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_geo_tgeo(gs_converted, temp_converted) @@ -13077,7 +13524,9 @@ def teq_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "Tempor return result if result != _ffi.NULL else None -def teq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Temporal *": +def teq_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.teq_tgeo_geo(temp_converted, gs_converted) @@ -13085,7 +13534,9 @@ def teq_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Tempor return result if result != _ffi.NULL else None -def tne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "Temporal *": +def tne_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_geo_tgeo(gs_converted, temp_converted) @@ -13093,7 +13544,9 @@ def tne_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "Tempor return result if result != _ffi.NULL else None -def tne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Temporal *": +def tne_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tne_tgeo_geo(temp_converted, gs_converted) @@ -13101,56 +13554,53 @@ def tne_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "Tempor return result if result != _ffi.NULL else None -def tgeo_stboxes(temp: "const Temporal *") -> "Tuple['STBox *', 'int']": +def tgeo_stboxes( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tgeo_stboxes(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeo_stboxes(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeo_space_boxes( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], xsize: float, ysize: float, zsize: float, - sorigin: "const GSERIALIZED *", + sorigin: Annotated[cdata, "const GSERIALIZED *"], bitmatrix: bool, border_inc: bool, -) -> "Tuple['STBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tgeo_space_boxes( - temp_converted, - xsize, - ysize, - zsize, - sorigin_converted, - bitmatrix, - border_inc, - count, + temp_converted, xsize, ysize, zsize, sorigin_converted, bitmatrix, border_inc, count_converted ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeo_space_time_boxes( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], xsize: float, ysize: float, zsize: float, - duration: "const Interval *", - sorigin: "const GSERIALIZED *", + duration: Annotated[cdata, "const Interval *"], + sorigin: Annotated[cdata, "const GSERIALIZED *"], torigin: int, bitmatrix: bool, border_inc: bool, -) -> "Tuple['STBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tgeo_space_time_boxes( temp_converted, xsize, @@ -13161,33 +13611,35 @@ def tgeo_space_time_boxes( torigin_converted, bitmatrix, border_inc, - count, + count_converted, ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeo_split_each_n_stboxes( - temp: "const Temporal *", elem_count: int -) -> "Tuple['STBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], elem_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tgeo_split_each_n_stboxes(temp_converted, elem_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeo_split_each_n_stboxes(temp_converted, elem_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeo_split_n_stboxes( - temp: "const Temporal *", box_count: int -) -> "Tuple['STBox *', 'int']": + temp: Annotated[cdata, "const Temporal *"], box_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tgeo_split_n_stboxes(temp_converted, box_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeo_split_n_stboxes(temp_converted, box_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def adjacent_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def adjacent_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.adjacent_stbox_tspatial(box_converted, temp_converted) @@ -13195,7 +13647,9 @@ def adjacent_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def adjacent_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def adjacent_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.adjacent_tspatial_stbox(temp_converted, box_converted) @@ -13204,8 +13658,8 @@ def adjacent_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> " def adjacent_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adjacent_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13213,7 +13667,9 @@ def adjacent_tspatial_tspatial( return result if result != _ffi.NULL else None -def contained_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def contained_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contained_stbox_tspatial(box_converted, temp_converted) @@ -13221,7 +13677,9 @@ def contained_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def contained_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def contained_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.contained_tspatial_stbox(temp_converted, box_converted) @@ -13230,8 +13688,8 @@ def contained_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def contained_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contained_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13239,7 +13697,9 @@ def contained_tspatial_tspatial( return result if result != _ffi.NULL else None -def contains_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def contains_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.contains_stbox_tspatial(box_converted, temp_converted) @@ -13247,7 +13707,9 @@ def contains_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def contains_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def contains_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.contains_tspatial_stbox(temp_converted, box_converted) @@ -13256,8 +13718,8 @@ def contains_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> " def contains_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.contains_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13265,7 +13727,9 @@ def contains_tspatial_tspatial( return result if result != _ffi.NULL else None -def overlaps_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overlaps_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overlaps_stbox_tspatial(box_converted, temp_converted) @@ -13273,7 +13737,9 @@ def overlaps_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def overlaps_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overlaps_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overlaps_tspatial_stbox(temp_converted, box_converted) @@ -13282,8 +13748,8 @@ def overlaps_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> " def overlaps_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overlaps_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13291,7 +13757,9 @@ def overlaps_tspatial_tspatial( return result if result != _ffi.NULL else None -def same_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def same_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.same_stbox_tspatial(box_converted, temp_converted) @@ -13299,7 +13767,9 @@ def same_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool return result if result != _ffi.NULL else None -def same_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def same_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.same_tspatial_stbox(temp_converted, box_converted) @@ -13308,8 +13778,8 @@ def same_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool def same_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.same_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13317,7 +13787,9 @@ def same_tspatial_tspatial( return result if result != _ffi.NULL else None -def above_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def above_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.above_stbox_tspatial(box_converted, temp_converted) @@ -13325,7 +13797,9 @@ def above_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def above_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def above_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.above_tspatial_stbox(temp_converted, box_converted) @@ -13334,8 +13808,8 @@ def above_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "boo def above_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.above_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13343,7 +13817,9 @@ def above_tspatial_tspatial( return result if result != _ffi.NULL else None -def after_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def after_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.after_stbox_tspatial(box_converted, temp_converted) @@ -13351,7 +13827,9 @@ def after_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def after_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def after_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.after_tspatial_stbox(temp_converted, box_converted) @@ -13360,8 +13838,8 @@ def after_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "boo def after_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.after_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13369,7 +13847,9 @@ def after_tspatial_tspatial( return result if result != _ffi.NULL else None -def back_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def back_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.back_stbox_tspatial(box_converted, temp_converted) @@ -13377,7 +13857,9 @@ def back_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool return result if result != _ffi.NULL else None -def back_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def back_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.back_tspatial_stbox(temp_converted, box_converted) @@ -13386,8 +13868,8 @@ def back_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool def back_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.back_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13395,7 +13877,9 @@ def back_tspatial_tspatial( return result if result != _ffi.NULL else None -def before_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def before_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.before_stbox_tspatial(box_converted, temp_converted) @@ -13403,7 +13887,9 @@ def before_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bo return result if result != _ffi.NULL else None -def before_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def before_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.before_tspatial_stbox(temp_converted, box_converted) @@ -13412,8 +13898,8 @@ def before_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bo def before_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.before_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13421,7 +13907,9 @@ def before_tspatial_tspatial( return result if result != _ffi.NULL else None -def below_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def below_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.below_stbox_tspatial(box_converted, temp_converted) @@ -13429,7 +13917,9 @@ def below_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def below_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def below_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.below_tspatial_stbox(temp_converted, box_converted) @@ -13438,8 +13928,8 @@ def below_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "boo def below_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.below_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13447,7 +13937,9 @@ def below_tspatial_tspatial( return result if result != _ffi.NULL else None -def front_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def front_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.front_stbox_tspatial(box_converted, temp_converted) @@ -13455,7 +13947,9 @@ def front_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def front_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def front_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.front_tspatial_stbox(temp_converted, box_converted) @@ -13464,8 +13958,8 @@ def front_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "boo def front_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.front_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13473,7 +13967,9 @@ def front_tspatial_tspatial( return result if result != _ffi.NULL else None -def left_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def left_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.left_stbox_tspatial(box_converted, temp_converted) @@ -13481,7 +13977,9 @@ def left_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool return result if result != _ffi.NULL else None -def left_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def left_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.left_tspatial_stbox(temp_converted, box_converted) @@ -13490,8 +13988,8 @@ def left_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool def left_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.left_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13499,7 +13997,9 @@ def left_tspatial_tspatial( return result if result != _ffi.NULL else None -def overabove_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overabove_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overabove_stbox_tspatial(box_converted, temp_converted) @@ -13507,7 +14007,9 @@ def overabove_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overabove_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overabove_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overabove_tspatial_stbox(temp_converted, box_converted) @@ -13516,8 +14018,8 @@ def overabove_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def overabove_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overabove_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13525,7 +14027,9 @@ def overabove_tspatial_tspatial( return result if result != _ffi.NULL else None -def overafter_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overafter_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overafter_stbox_tspatial(box_converted, temp_converted) @@ -13533,7 +14037,9 @@ def overafter_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overafter_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overafter_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overafter_tspatial_stbox(temp_converted, box_converted) @@ -13542,8 +14048,8 @@ def overafter_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def overafter_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overafter_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13551,7 +14057,9 @@ def overafter_tspatial_tspatial( return result if result != _ffi.NULL else None -def overback_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overback_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overback_stbox_tspatial(box_converted, temp_converted) @@ -13559,7 +14067,9 @@ def overback_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def overback_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overback_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overback_tspatial_stbox(temp_converted, box_converted) @@ -13568,8 +14078,8 @@ def overback_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> " def overback_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overback_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13577,7 +14087,9 @@ def overback_tspatial_tspatial( return result if result != _ffi.NULL else None -def overbefore_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overbefore_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbefore_stbox_tspatial(box_converted, temp_converted) @@ -13585,7 +14097,9 @@ def overbefore_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overbefore_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overbefore_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overbefore_tspatial_stbox(temp_converted, box_converted) @@ -13594,8 +14108,8 @@ def overbefore_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def overbefore_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbefore_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13603,7 +14117,9 @@ def overbefore_tspatial_tspatial( return result if result != _ffi.NULL else None -def overbelow_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overbelow_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overbelow_stbox_tspatial(box_converted, temp_converted) @@ -13611,7 +14127,9 @@ def overbelow_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overbelow_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overbelow_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overbelow_tspatial_stbox(temp_converted, box_converted) @@ -13620,8 +14138,8 @@ def overbelow_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def overbelow_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overbelow_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13629,7 +14147,9 @@ def overbelow_tspatial_tspatial( return result if result != _ffi.NULL else None -def overfront_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overfront_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overfront_stbox_tspatial(box_converted, temp_converted) @@ -13637,7 +14157,9 @@ def overfront_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overfront_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overfront_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overfront_tspatial_stbox(temp_converted, box_converted) @@ -13646,8 +14168,8 @@ def overfront_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def overfront_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overfront_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13655,7 +14177,9 @@ def overfront_tspatial_tspatial( return result if result != _ffi.NULL else None -def overleft_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overleft_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overleft_stbox_tspatial(box_converted, temp_converted) @@ -13663,7 +14187,9 @@ def overleft_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def overleft_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overleft_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overleft_tspatial_stbox(temp_converted, box_converted) @@ -13672,8 +14198,8 @@ def overleft_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> " def overleft_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overleft_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13681,7 +14207,9 @@ def overleft_tspatial_tspatial( return result if result != _ffi.NULL else None -def overright_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def overright_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.overright_stbox_tspatial(box_converted, temp_converted) @@ -13689,7 +14217,9 @@ def overright_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def overright_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def overright_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.overright_tspatial_stbox(temp_converted, box_converted) @@ -13698,8 +14228,8 @@ def overright_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> def overright_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.overright_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13707,7 +14237,9 @@ def overright_tspatial_tspatial( return result if result != _ffi.NULL else None -def right_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "bool": +def right_stbox_tspatial( + box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.right_stbox_tspatial(box_converted, temp_converted) @@ -13715,7 +14247,9 @@ def right_stbox_tspatial(box: "const STBox *", temp: "const Temporal *") -> "boo return result if result != _ffi.NULL else None -def right_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "bool": +def right_tspatial_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.right_tspatial_stbox(temp_converted, box_converted) @@ -13724,8 +14258,8 @@ def right_tspatial_stbox(temp: "const Temporal *", box: "const STBox *") -> "boo def right_tspatial_tspatial( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "bool": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.right_tspatial_tspatial(temp1_converted, temp2_converted) @@ -13733,7 +14267,9 @@ def right_tspatial_tspatial( return result if result != _ffi.NULL else None -def acontains_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def acontains_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.acontains_geo_tgeo(gs_converted, temp_converted) @@ -13741,7 +14277,9 @@ def acontains_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def acontains_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def acontains_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.acontains_tgeo_geo(temp_converted, gs_converted) @@ -13749,7 +14287,9 @@ def acontains_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def acontains_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def acontains_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.acontains_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13757,7 +14297,9 @@ def acontains_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> return result if result != _ffi.NULL else None -def adisjoint_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def adisjoint_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.adisjoint_tgeo_geo(temp_converted, gs_converted) @@ -13765,7 +14307,9 @@ def adisjoint_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def adisjoint_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def adisjoint_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adisjoint_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13774,8 +14318,8 @@ def adisjoint_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> def adwithin_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", dist: float -) -> "int": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], dist: float +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.adwithin_tgeo_geo(temp_converted, gs_converted, dist) @@ -13784,8 +14328,8 @@ def adwithin_tgeo_geo( def adwithin_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", dist: float -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], dist: float +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.adwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist) @@ -13793,7 +14337,9 @@ def adwithin_tgeo_tgeo( return result if result != _ffi.NULL else None -def aintersects_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def aintersects_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.aintersects_tgeo_geo(temp_converted, gs_converted) @@ -13802,8 +14348,8 @@ def aintersects_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> def aintersects_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.aintersects_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13811,7 +14357,9 @@ def aintersects_tgeo_tgeo( return result if result != _ffi.NULL else None -def atouches_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def atouches_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.atouches_tgeo_geo(temp_converted, gs_converted) @@ -13819,7 +14367,9 @@ def atouches_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "i return result if result != _ffi.NULL else None -def atouches_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def atouches_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.atouches_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13827,7 +14377,9 @@ def atouches_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> return result if result != _ffi.NULL else None -def atouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def atouches_tpoint_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.atouches_tpoint_geo(temp_converted, gs_converted) @@ -13835,7 +14387,9 @@ def atouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> return result if result != _ffi.NULL else None -def econtains_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def econtains_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.econtains_geo_tgeo(gs_converted, temp_converted) @@ -13843,7 +14397,9 @@ def econtains_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> " return result if result != _ffi.NULL else None -def econtains_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def econtains_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.econtains_tgeo_geo(temp_converted, gs_converted) @@ -13851,7 +14407,9 @@ def econtains_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def econtains_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def econtains_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.econtains_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13859,7 +14417,9 @@ def econtains_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> return result if result != _ffi.NULL else None -def ecovers_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "int": +def ecovers_geo_tgeo( + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ecovers_geo_tgeo(gs_converted, temp_converted) @@ -13867,7 +14427,9 @@ def ecovers_geo_tgeo(gs: "const GSERIALIZED *", temp: "const Temporal *") -> "in return result if result != _ffi.NULL else None -def ecovers_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def ecovers_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ecovers_tgeo_geo(temp_converted, gs_converted) @@ -13875,7 +14437,9 @@ def ecovers_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "in return result if result != _ffi.NULL else None -def ecovers_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def ecovers_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ecovers_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13883,7 +14447,9 @@ def ecovers_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> " return result if result != _ffi.NULL else None -def edisjoint_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def edisjoint_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.edisjoint_tgeo_geo(temp_converted, gs_converted) @@ -13891,7 +14457,9 @@ def edisjoint_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> " return result if result != _ffi.NULL else None -def edisjoint_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def edisjoint_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.edisjoint_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13900,8 +14468,8 @@ def edisjoint_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> def edwithin_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", dist: float -) -> "int": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], dist: float +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.edwithin_tgeo_geo(temp_converted, gs_converted, dist) @@ -13910,8 +14478,8 @@ def edwithin_tgeo_geo( def edwithin_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", dist: float -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], dist: float +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.edwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist) @@ -13919,7 +14487,9 @@ def edwithin_tgeo_tgeo( return result if result != _ffi.NULL else None -def eintersects_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def eintersects_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.eintersects_tgeo_geo(temp_converted, gs_converted) @@ -13928,8 +14498,8 @@ def eintersects_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> def eintersects_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.eintersects_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13937,7 +14507,9 @@ def eintersects_tgeo_tgeo( return result if result != _ffi.NULL else None -def etouches_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def etouches_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.etouches_tgeo_geo(temp_converted, gs_converted) @@ -13945,7 +14517,9 @@ def etouches_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "i return result if result != _ffi.NULL else None -def etouches_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "int": +def etouches_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.etouches_tgeo_tgeo(temp1_converted, temp2_converted) @@ -13953,7 +14527,9 @@ def etouches_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> return result if result != _ffi.NULL else None -def etouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "int": +def etouches_tpoint_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.etouches_tpoint_geo(temp_converted, gs_converted) @@ -13962,8 +14538,8 @@ def etouches_tpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> def tcontains_geo_tgeo( - gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tcontains_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -13972,8 +14548,8 @@ def tcontains_geo_tgeo( def tcontains_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tcontains_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -13982,8 +14558,8 @@ def tcontains_tgeo_geo( def tcontains_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tcontains_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -13992,8 +14568,8 @@ def tcontains_tgeo_tgeo( def tcovers_geo_tgeo( - gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tcovers_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14002,8 +14578,8 @@ def tcovers_geo_tgeo( def tcovers_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tcovers_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14012,8 +14588,8 @@ def tcovers_tgeo_geo( def tcovers_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tcovers_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14022,8 +14598,8 @@ def tcovers_tgeo_tgeo( def tdisjoint_geo_tgeo( - gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdisjoint_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14032,8 +14608,8 @@ def tdisjoint_geo_tgeo( def tdisjoint_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdisjoint_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14042,8 +14618,8 @@ def tdisjoint_tgeo_geo( def tdisjoint_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdisjoint_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14052,12 +14628,12 @@ def tdisjoint_tgeo_tgeo( def tdwithin_geo_tgeo( - gs: "const GSERIALIZED *", - temp: "const Temporal *", + gs: Annotated[cdata, "const GSERIALIZED *"], + temp: Annotated[cdata, "const Temporal *"], dist: float, restr: bool, atvalue: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdwithin_geo_tgeo(gs_converted, temp_converted, dist, restr, atvalue) @@ -14066,12 +14642,12 @@ def tdwithin_geo_tgeo( def tdwithin_tgeo_geo( - temp: "const Temporal *", - gs: "const GSERIALIZED *", + temp: Annotated[cdata, "const Temporal *"], + gs: Annotated[cdata, "const GSERIALIZED *"], dist: float, restr: bool, atvalue: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdwithin_tgeo_geo(temp_converted, gs_converted, dist, restr, atvalue) @@ -14080,24 +14656,22 @@ def tdwithin_tgeo_geo( def tdwithin_tgeo_tgeo( - temp1: "const Temporal *", - temp2: "const Temporal *", + temp1: Annotated[cdata, "const Temporal *"], + temp2: Annotated[cdata, "const Temporal *"], dist: float, restr: bool, atvalue: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tdwithin_tgeo_tgeo( - temp1_converted, temp2_converted, dist, restr, atvalue - ) + result = _lib.tdwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist, restr, atvalue) _check_error() return result if result != _ffi.NULL else None def tintersects_geo_tgeo( - gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tintersects_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14106,8 +14680,8 @@ def tintersects_geo_tgeo( def tintersects_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tintersects_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14116,20 +14690,18 @@ def tintersects_tgeo_geo( def tintersects_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) - result = _lib.tintersects_tgeo_tgeo( - temp1_converted, temp2_converted, restr, atvalue - ) + result = _lib.tintersects_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) _check_error() return result if result != _ffi.NULL else None def ttouches_geo_tgeo( - gs: "const GSERIALIZED *", temp: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttouches_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14138,8 +14710,8 @@ def ttouches_geo_tgeo( def ttouches_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *", restr: bool, atvalue: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ttouches_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14148,8 +14720,8 @@ def ttouches_tgeo_geo( def ttouches_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *", restr: bool, atvalue: bool -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ttouches_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14158,8 +14730,8 @@ def ttouches_tgeo_tgeo( def tdistance_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdistance_tgeo_geo(temp_converted, gs_converted) @@ -14168,8 +14740,8 @@ def tdistance_tgeo_geo( def tdistance_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14177,7 +14749,9 @@ def tdistance_tgeo_tgeo( return result if result != _ffi.NULL else None -def nad_stbox_geo(box: "const STBox *", gs: "const GSERIALIZED *") -> "double": +def nad_stbox_geo( + box: Annotated[cdata, "const STBox *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nad_stbox_geo(box_converted, gs_converted) @@ -14185,7 +14759,9 @@ def nad_stbox_geo(box: "const STBox *", gs: "const GSERIALIZED *") -> "double": return result if result != _ffi.NULL else None -def nad_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "double": +def nad_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[float, "double"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.nad_stbox_stbox(box1_converted, box2_converted) @@ -14193,7 +14769,9 @@ def nad_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "double": return result if result != _ffi.NULL else None -def nad_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "double": +def nad_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nad_tgeo_geo(temp_converted, gs_converted) @@ -14201,7 +14779,9 @@ def nad_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "double return result if result != _ffi.NULL else None -def nad_tgeo_stbox(temp: "const Temporal *", box: "const STBox *") -> "double": +def nad_tgeo_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.nad_tgeo_stbox(temp_converted, box_converted) @@ -14209,7 +14789,9 @@ def nad_tgeo_stbox(temp: "const Temporal *", box: "const STBox *") -> "double": return result if result != _ffi.NULL else None -def nad_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "double": +def nad_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14217,7 +14799,9 @@ def nad_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "doub return result if result != _ffi.NULL else None -def nai_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "TInstant *": +def nai_tgeo_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nai_tgeo_geo(temp_converted, gs_converted) @@ -14225,7 +14809,9 @@ def nai_tgeo_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "TInsta return result if result != _ffi.NULL else None -def nai_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "TInstant *": +def nai_tgeo_tgeo( + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "TInstant *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nai_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14234,8 +14820,8 @@ def nai_tgeo_tgeo(temp1: "const Temporal *", temp2: "const Temporal *") -> "TIns def shortestline_tgeo_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "GSERIALIZED *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.shortestline_tgeo_geo(temp_converted, gs_converted) @@ -14244,8 +14830,8 @@ def shortestline_tgeo_geo( def shortestline_tgeo_tgeo( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "GSERIALIZED *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "GSERIALIZED *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.shortestline_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14253,14 +14839,16 @@ def shortestline_tgeo_tgeo( return result if result != _ffi.NULL else None -def tpoint_tcentroid_finalfn(state: "SkipList *") -> "Temporal *": +def tpoint_tcentroid_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cdata, "Temporal *"]: state_converted = _ffi.cast("SkipList *", state) result = _lib.tpoint_tcentroid_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipList *": +def tpoint_tcentroid_transfn( + state: Annotated[cdata, "SkipList *"], temp: Annotated[cdata, "Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("Temporal *", temp) result = _lib.tpoint_tcentroid_transfn(state_converted, temp_converted) @@ -14269,8 +14857,8 @@ def tpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipLi def tspatial_extent_transfn( - box: "Optional['STBox *']", temp: "const Temporal *" -) -> "STBox *": + box: Annotated[cdata, "STBox *"] | None, temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("STBox *", box) if box is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_extent_transfn(box_converted, temp_converted) @@ -14279,95 +14867,83 @@ def tspatial_extent_transfn( def stbox_get_space_tile( - point: "const GSERIALIZED *", + point: Annotated[cdata, "const GSERIALIZED *"], xsize: float, ysize: float, zsize: float, - sorigin: "const GSERIALIZED *", -) -> "STBox *": + sorigin: Annotated[cdata, "const GSERIALIZED *"], +) -> Annotated[cdata, "STBox *"]: point_converted = _ffi.cast("const GSERIALIZED *", point) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - result = _lib.stbox_get_space_tile( - point_converted, xsize, ysize, zsize, sorigin_converted - ) + result = _lib.stbox_get_space_tile(point_converted, xsize, ysize, zsize, sorigin_converted) _check_error() return result if result != _ffi.NULL else None def stbox_get_space_time_tile( - point: "const GSERIALIZED *", + point: Annotated[cdata, "const GSERIALIZED *"], t: int, xsize: float, ysize: float, zsize: float, - duration: "const Interval *", - sorigin: "const GSERIALIZED *", + duration: Annotated[cdata, "const Interval *"], + sorigin: Annotated[cdata, "const GSERIALIZED *"], torigin: int, -) -> "STBox *": +) -> Annotated[cdata, "STBox *"]: point_converted = _ffi.cast("const GSERIALIZED *", point) t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) torigin_converted = _ffi.cast("TimestampTz", torigin) result = _lib.stbox_get_space_time_tile( - point_converted, - t_converted, - xsize, - ysize, - zsize, - duration_converted, - sorigin_converted, - torigin_converted, + point_converted, t_converted, xsize, ysize, zsize, duration_converted, sorigin_converted, torigin_converted ) _check_error() return result if result != _ffi.NULL else None def stbox_get_time_tile( - t: int, duration: "const Interval *", torigin: int -) -> "STBox *": + t: int, duration: Annotated[cdata, "const Interval *"], torigin: int +) -> Annotated[cdata, "STBox *"]: t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - result = _lib.stbox_get_time_tile( - t_converted, duration_converted, torigin_converted - ) + result = _lib.stbox_get_time_tile(t_converted, duration_converted, torigin_converted) _check_error() return result if result != _ffi.NULL else None def stbox_space_tiles( - bounds: "const STBox *", + bounds: Annotated[cdata, "const STBox *"], xsize: float, ysize: float, zsize: float, - sorigin: "const GSERIALIZED *", + sorigin: Annotated[cdata, "const GSERIALIZED *"], border_inc: bool, -) -> "Tuple['STBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "STBox *"]: bounds_converted = _ffi.cast("const STBox *", bounds) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.stbox_space_tiles( - bounds_converted, xsize, ysize, zsize, sorigin_converted, border_inc, count + bounds_converted, xsize, ysize, zsize, sorigin_converted, border_inc, count_converted ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def stbox_space_time_tiles( - bounds: "const STBox *", + bounds: Annotated[cdata, "const STBox *"], xsize: float, ysize: float, zsize: float, - duration: "Optional['const Interval *']", - sorigin: "const GSERIALIZED *", + duration: Annotated[cdata, "const Interval *"] | None, + sorigin: Annotated[cdata, "const GSERIALIZED *"], torigin: int, border_inc: bool, -) -> "Tuple['STBox *', 'int']": +) -> tuple[Annotated[cdata, "STBox *"], Annotated[cdata, "int"]]: bounds_converted = _ffi.cast("const STBox *", bounds) - duration_converted = ( - _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL - ) + duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) torigin_converted = _ffi.cast("TimestampTz", torigin) count = _ffi.new("int *") @@ -14387,61 +14963,57 @@ def stbox_space_time_tiles( def stbox_time_tiles( - bounds: "const STBox *", - duration: "const Interval *", + bounds: Annotated[cdata, "const STBox *"], + duration: Annotated[cdata, "const Interval *"], torigin: int, border_inc: bool, -) -> "Tuple['STBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "STBox *"]: bounds_converted = _ffi.cast("const STBox *", bounds) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") - result = _lib.stbox_time_tiles( - bounds_converted, duration_converted, torigin_converted, border_inc, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.stbox_time_tiles(bounds_converted, duration_converted, torigin_converted, border_inc, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeo_space_split( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], xsize: float, ysize: float, zsize: float, - sorigin: "const GSERIALIZED *", + sorigin: Annotated[cdata, "const GSERIALIZED *"], bitmatrix: bool, border_inc: bool, -) -> "Tuple['Temporal **', 'GSERIALIZED ***', 'int']": +) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "GSERIALIZED ***"], Annotated[cdata, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) space_bins = _ffi.new("GSERIALIZED ***") count = _ffi.new("int *") result = _lib.tgeo_space_split( - temp_converted, - xsize, - ysize, - zsize, - sorigin_converted, - bitmatrix, - border_inc, - space_bins, - count, + temp_converted, xsize, ysize, zsize, sorigin_converted, bitmatrix, border_inc, space_bins, count ) _check_error() return result if result != _ffi.NULL else None, space_bins[0], count[0] def tgeo_space_time_split( - temp: "const Temporal *", + temp: Annotated[cdata, "const Temporal *"], xsize: float, ysize: float, zsize: float, - duration: "const Interval *", - sorigin: "const GSERIALIZED *", + duration: Annotated[cdata, "const Interval *"], + sorigin: Annotated[cdata, "const GSERIALIZED *"], torigin: int, bitmatrix: bool, border_inc: bool, -) -> "Tuple['Temporal **', 'GSERIALIZED ***', 'TimestampTz *', 'int']": +) -> tuple[ + Annotated[cdata, "Temporal **"], + Annotated[list, "GSERIALIZED ***"], + Annotated[list, "TimestampTz *"], + Annotated[cdata, "int"], +]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) @@ -14464,17 +15036,14 @@ def tgeo_space_time_split( count, ) _check_error() - return ( - result if result != _ffi.NULL else None, - space_bins[0], - time_bins[0], - count[0], - ) + return result if result != _ffi.NULL else None, space_bins[0], time_bins[0], count[0] def geo_cluster_kmeans( - geoms: "const GSERIALIZED **", ngeoms: "uint32_t", k: "uint32_t" -) -> "int *": + geoms: Annotated[list, "const GSERIALIZED **"], + ngeoms: Annotated[cdata, "uint32_t"], + k: Annotated[cdata, "uint32_t"], +) -> Annotated[cdata, "int *"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) k_converted = _ffi.cast("uint32_t", k) @@ -14484,61 +15053,65 @@ def geo_cluster_kmeans( def geo_cluster_dbscan( - geoms: "const GSERIALIZED **", ngeoms: "uint32_t", tolerance: float, minpoints: int -) -> "uint32_t *": + geoms: Annotated[list, "const GSERIALIZED **"], + ngeoms: Annotated[cdata, "uint32_t"], + tolerance: float, + minpoints: int, +) -> Annotated[cdata, "uint32_t *"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) - result = _lib.geo_cluster_dbscan( - geoms_converted, ngeoms_converted, tolerance, minpoints - ) + result = _lib.geo_cluster_dbscan(geoms_converted, ngeoms_converted, tolerance, minpoints) _check_error() return result if result != _ffi.NULL else None def geo_cluster_intersecting( - geoms: "const GSERIALIZED **", ngeoms: "uint32_t" -) -> "Tuple['GSERIALIZED **', 'int']": + geoms: Annotated[list, "const GSERIALIZED **"], + ngeoms: Annotated[cdata, "uint32_t"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "GSERIALIZED **"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) - count = _ffi.new("int *") - result = _lib.geo_cluster_intersecting(geoms_converted, ngeoms_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.geo_cluster_intersecting(geoms_converted, ngeoms_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def geo_cluster_within( - geoms: "const GSERIALIZED **", ngeoms: "uint32_t", tolerance: float -) -> "Tuple['GSERIALIZED **', 'int']": + geoms: Annotated[list, "const GSERIALIZED **"], + ngeoms: Annotated[cdata, "uint32_t"], + tolerance: float, + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "GSERIALIZED **"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) - count = _ffi.new("int *") - result = _lib.geo_cluster_within( - geoms_converted, ngeoms_converted, tolerance, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.geo_cluster_within(geoms_converted, ngeoms_converted, tolerance, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def gsl_get_generation_rng() -> "gsl_rng *": +def gsl_get_generation_rng() -> Annotated[cdata, "gsl_rng *"]: result = _lib.gsl_get_generation_rng() _check_error() return result if result != _ffi.NULL else None -def gsl_get_aggregation_rng() -> "gsl_rng *": +def gsl_get_aggregation_rng() -> Annotated[cdata, "gsl_rng *"]: result = _lib.gsl_get_aggregation_rng() _check_error() return result if result != _ffi.NULL else None -def datum_ceil(d: "Datum") -> "Datum": +def datum_ceil(d: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: d_converted = _ffi.cast("Datum", d) result = _lib.datum_ceil(d_converted) _check_error() return result if result != _ffi.NULL else None -def datum_degrees(d: "Datum", normalize: "Datum") -> "Datum": +def datum_degrees(d: Annotated[cdata, "Datum"], normalize: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: d_converted = _ffi.cast("Datum", d) normalize_converted = _ffi.cast("Datum", normalize) result = _lib.datum_degrees(d_converted, normalize_converted) @@ -14546,7 +15119,7 @@ def datum_degrees(d: "Datum", normalize: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def datum_float_round(value: "Datum", size: "Datum") -> "Datum": +def datum_float_round(value: Annotated[cdata, "Datum"], size: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: value_converted = _ffi.cast("Datum", value) size_converted = _ffi.cast("Datum", size) result = _lib.datum_float_round(value_converted, size_converted) @@ -14554,14 +15127,14 @@ def datum_float_round(value: "Datum", size: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def datum_floor(d: "Datum") -> "Datum": +def datum_floor(d: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: d_converted = _ffi.cast("Datum", d) result = _lib.datum_floor(d_converted) _check_error() return result if result != _ffi.NULL else None -def datum_hash(d: "Datum", basetype: "meosType") -> "uint32": +def datum_hash(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[int, "uint32"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.datum_hash(d_converted, basetype_converted) @@ -14569,7 +15142,9 @@ def datum_hash(d: "Datum", basetype: "meosType") -> "uint32": return result if result != _ffi.NULL else None -def datum_hash_extended(d: "Datum", basetype: "meosType", seed: int) -> "uint64": +def datum_hash_extended( + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], seed: int +) -> Annotated[int, "uint64"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) seed_converted = _ffi.cast("uint64", seed) @@ -14578,14 +15153,14 @@ def datum_hash_extended(d: "Datum", basetype: "meosType", seed: int) -> "uint64" return result if result != _ffi.NULL else None -def datum_radians(d: "Datum") -> "Datum": +def datum_radians(d: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: d_converted = _ffi.cast("Datum", d) result = _lib.datum_radians(d_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round_set(s: "const Span *", maxdd: int) -> "Span *": +def floatspan_round_set(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) out_result = _ffi.new("Span *") _lib.floatspan_round_set(s_converted, maxdd, out_result) @@ -14593,7 +15168,7 @@ def floatspan_round_set(s: "const Span *", maxdd: int) -> "Span *": return out_result if out_result != _ffi.NULL else None -def set_in(string: str, basetype: "meosType") -> "Set *": +def set_in(string: str, basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_in(string_converted, basetype_converted) @@ -14601,7 +15176,7 @@ def set_in(string: str, basetype: "meosType") -> "Set *": return result if result != _ffi.NULL else None -def set_out(s: "const Set *", maxdd: int) -> str: +def set_out(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_out(s_converted, maxdd) _check_error() @@ -14609,7 +15184,7 @@ def set_out(s: "const Set *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def span_in(string: str, spantype: "meosType") -> "Span *": +def span_in(string: str, spantype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Span *"]: string_converted = string.encode("utf-8") spantype_converted = _ffi.cast("meosType", spantype) result = _lib.span_in(string_converted, spantype_converted) @@ -14617,7 +15192,7 @@ def span_in(string: str, spantype: "meosType") -> "Span *": return result if result != _ffi.NULL else None -def span_out(s: "const Span *", maxdd: int) -> str: +def span_out(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_out(s_converted, maxdd) _check_error() @@ -14625,7 +15200,7 @@ def span_out(s: "const Span *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def spanset_in(string: str, spantype: "meosType") -> "SpanSet *": +def spanset_in(string: str, spantype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "SpanSet *"]: string_converted = string.encode("utf-8") spantype_converted = _ffi.cast("meosType", spantype) result = _lib.spanset_in(string_converted, spantype_converted) @@ -14633,7 +15208,7 @@ def spanset_in(string: str, spantype: "meosType") -> "SpanSet *": return result if result != _ffi.NULL else None -def spanset_out(ss: "const SpanSet *", maxdd: int) -> str: +def spanset_out(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_out(ss_converted, maxdd) _check_error() @@ -14642,8 +15217,8 @@ def spanset_out(ss: "const SpanSet *", maxdd: int) -> str: def set_make( - values: "const Datum *", count: int, basetype: "meosType", order: bool -) -> "Set *": + values: Annotated[cdata, "const Datum *"], count: int, basetype: Annotated[cdata, "meosType"], order: bool +) -> Annotated[cdata, "Set *"]: values_converted = _ffi.cast("const Datum *", values) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make(values_converted, count, basetype_converted, order) @@ -14652,24 +15227,22 @@ def set_make( def set_make_exp( - values: "const Datum *", + values: Annotated[cdata, "const Datum *"], count: int, maxcount: int, - basetype: "meosType", + basetype: Annotated[cdata, "meosType"], order: bool, -) -> "Set *": +) -> Annotated[cdata, "Set *"]: values_converted = _ffi.cast("const Datum *", values) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.set_make_exp( - values_converted, count, maxcount, basetype_converted, order - ) + result = _lib.set_make_exp(values_converted, count, maxcount, basetype_converted, order) _check_error() return result if result != _ffi.NULL else None def set_make_free( - values: "Datum *", count: int, basetype: "meosType", order: bool -) -> "Set *": + values: Annotated[cdata, "Datum *"], count: int, basetype: Annotated[cdata, "meosType"], order: bool +) -> Annotated[cdata, "Set *"]: values_converted = _ffi.cast("Datum *", values) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make_free(values_converted, count, basetype_converted, order) @@ -14678,51 +15251,43 @@ def set_make_free( def span_make( - lower: "Datum", - upper: "Datum", + lower: Annotated[cdata, "Datum"], + upper: Annotated[cdata, "Datum"], lower_inc: bool, upper_inc: bool, - basetype: "meosType", -) -> "Span *": + basetype: Annotated[cdata, "meosType"], +) -> Annotated[cdata, "Span *"]: lower_converted = _ffi.cast("Datum", lower) upper_converted = _ffi.cast("Datum", upper) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.span_make( - lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted - ) + result = _lib.span_make(lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted) _check_error() return result if result != _ffi.NULL else None def span_set( - lower: "Datum", - upper: "Datum", + lower: Annotated[cdata, "Datum"], + upper: Annotated[cdata, "Datum"], lower_inc: bool, upper_inc: bool, - basetype: "meosType", - spantype: "meosType", - s: "Span *", -) -> None: + basetype: Annotated[cdata, "meosType"], + spantype: Annotated[cdata, "meosType"], + s: Annotated[cdata, "Span *"], +) -> Annotated[None, "void"]: lower_converted = _ffi.cast("Datum", lower) upper_converted = _ffi.cast("Datum", upper) basetype_converted = _ffi.cast("meosType", basetype) spantype_converted = _ffi.cast("meosType", spantype) s_converted = _ffi.cast("Span *", s) _lib.span_set( - lower_converted, - upper_converted, - lower_inc, - upper_inc, - basetype_converted, - spantype_converted, - s_converted, + lower_converted, upper_converted, lower_inc, upper_inc, basetype_converted, spantype_converted, s_converted ) _check_error() def spanset_make_exp( - spans: "Span *", count: int, maxcount: int, normalize: bool, order: bool -) -> "SpanSet *": + spans: Annotated[cdata, "Span *"], count: int, maxcount: int, normalize: bool, order: bool +) -> Annotated[cdata, "SpanSet *"]: spans_converted = _ffi.cast("Span *", spans) result = _lib.spanset_make_exp(spans_converted, count, maxcount, normalize, order) _check_error() @@ -14730,29 +15295,31 @@ def spanset_make_exp( def spanset_make_free( - spans: "Span *", count: int, normalize: bool, order: bool -) -> "SpanSet *": + spans: Annotated[cdata, "Span *"], count: int, normalize: bool, order: bool +) -> Annotated[cdata, "SpanSet *"]: spans_converted = _ffi.cast("Span *", spans) result = _lib.spanset_make_free(spans_converted, count, normalize, order) _check_error() return result if result != _ffi.NULL else None -def set_span(s: "const Set *") -> "Span *": +def set_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_spanset(s: "const Set *") -> "SpanSet *": +def set_spanset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def value_set_span(value: "Datum", basetype: "meosType", s: "Span *") -> None: +def value_set_span( + value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], s: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) s_converted = _ffi.cast("Span *", s) @@ -14760,7 +15327,7 @@ def value_set_span(value: "Datum", basetype: "meosType", s: "Span *") -> None: _check_error() -def value_set(d: "Datum", basetype: "meosType") -> "Set *": +def value_set(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Set *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_set(d_converted, basetype_converted) @@ -14768,7 +15335,7 @@ def value_set(d: "Datum", basetype: "meosType") -> "Set *": return result if result != _ffi.NULL else None -def value_span(d: "Datum", basetype: "meosType") -> "Span *": +def value_span(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Span *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_span(d_converted, basetype_converted) @@ -14776,7 +15343,9 @@ def value_span(d: "Datum", basetype: "meosType") -> "Span *": return result if result != _ffi.NULL else None -def value_spanset(d: "Datum", basetype: "meosType") -> "SpanSet *": +def value_spanset( + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] +) -> Annotated[cdata, "SpanSet *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_spanset(d_converted, basetype_converted) @@ -14784,35 +15353,35 @@ def value_spanset(d: "Datum", basetype: "meosType") -> "SpanSet *": return result if result != _ffi.NULL else None -def numspan_width(s: "const Span *") -> "Datum": +def numspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Datum"]: s_converted = _ffi.cast("const Span *", s) result = _lib.numspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def numspanset_width(ss: "const SpanSet *", boundspan: bool) -> "Datum": +def numspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.numspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_end_value(s: "const Set *") -> "Datum": +def set_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_mem_size(s: "const Set *") -> "int": +def set_mem_size(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_mem_size(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_set_subspan(s: "const Set *", minidx: int, maxidx: int) -> "Span *": +def set_set_subspan(s: Annotated[cdata, "const Set *"], minidx: int, maxidx: int) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Span *") _lib.set_set_subspan(s_converted, minidx, maxidx, out_result) @@ -14820,7 +15389,7 @@ def set_set_subspan(s: "const Set *", minidx: int, maxidx: int) -> "Span *": return out_result if out_result != _ffi.NULL else None -def set_set_span(s: "const Set *") -> "Span *": +def set_set_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Span *") _lib.set_set_span(s_converted, out_result) @@ -14828,14 +15397,14 @@ def set_set_span(s: "const Set *") -> "Span *": return out_result if out_result != _ffi.NULL else None -def set_start_value(s: "const Set *") -> "Datum": +def set_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_value_n(s: "const Set *", n: int) -> "Datum *": +def set_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "Datum *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Datum *") result = _lib.set_value_n(s_converted, n, out_result) @@ -14845,63 +15414,69 @@ def set_value_n(s: "const Set *", n: int) -> "Datum *": return None -def set_vals(s: "const Set *") -> "Datum *": +def set_vals(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_vals(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_values(s: "const Set *") -> "Datum *": +def set_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lower(ss: "const SpanSet *") -> "Datum": +def spanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_mem_size(ss: "const SpanSet *") -> "int": +def spanset_mem_size(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_mem_size(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_sps(ss: "const SpanSet *") -> "const Span **": +def spanset_sps(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "const Span **"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_sps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper(ss: "const SpanSet *") -> "Datum": +def spanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_set_tstzspan(s1: "const Span *", s2: "Span *") -> None: +def datespan_set_tstzspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) _lib.datespan_set_tstzspan(s1_converted, s2_converted) _check_error() -def floatspan_set_intspan(s1: "const Span *", s2: "Span *") -> None: +def floatspan_set_intspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) _lib.floatspan_set_intspan(s1_converted, s2_converted) _check_error() -def intspan_set_floatspan(s1: "const Span *", s2: "Span *") -> None: +def intspan_set_floatspan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) _lib.intspan_set_floatspan(s1_converted, s2_converted) @@ -14909,63 +15484,65 @@ def intspan_set_floatspan(s1: "const Span *", s2: "Span *") -> None: def numset_shift_scale( - s: "const Set *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool -) -> "Set *": + s: Annotated[cdata, "const Set *"], + shift: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], + hasshift: bool, + haswidth: bool, +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) - result = _lib.numset_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.numset_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def numspan_shift_scale( - s: "const Span *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool -) -> "Span *": + s: Annotated[cdata, "const Span *"], + shift: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], + hasshift: bool, + haswidth: bool, +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) - result = _lib.numspan_shift_scale( - s_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.numspan_shift_scale(s_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def numspanset_shift_scale( - ss: "const SpanSet *", - shift: "Datum", - width: "Datum", + ss: Annotated[cdata, "const SpanSet *"], + shift: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], hasshift: bool, haswidth: bool, -) -> "SpanSet *": +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) - result = _lib.numspanset_shift_scale( - ss_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.numspanset_shift_scale(ss_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def set_compact(s: "const Set *") -> "Set *": +def set_compact(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_compact(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_expand(s1: "const Span *", s2: "Span *") -> None: +def span_expand(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"]) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) _lib.span_expand(s1_converted, s2_converted) _check_error() -def spanset_compact(ss: "const SpanSet *") -> "SpanSet *": +def spanset_compact(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_compact(ss_converted) _check_error() @@ -14973,8 +15550,8 @@ def spanset_compact(ss: "const SpanSet *") -> "SpanSet *": def tbox_expand_value( - box: "const TBox *", value: "Datum", basetyp: "meosType" -) -> "TBox *": + box: Annotated[cdata, "const TBox *"], value: Annotated[cdata, "Datum"], basetyp: Annotated[cdata, "meosType"] +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) value_converted = _ffi.cast("Datum", value) basetyp_converted = _ffi.cast("meosType", basetyp) @@ -14983,7 +15560,7 @@ def tbox_expand_value( return result if result != _ffi.NULL else None -def textcat_textset_text_int(s: "const Set *", txt: str, invert: bool) -> "Set *": +def textcat_textset_text_int(s: Annotated[cdata, "const Set *"], txt: str, invert: bool) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text_int(s_converted, txt_converted, invert) @@ -14991,14 +15568,18 @@ def textcat_textset_text_int(s: "const Set *", txt: str, invert: bool) -> "Set * return result if result != _ffi.NULL else None -def tstzspan_set_datespan(s1: "const Span *", s2: "Span *") -> None: +def tstzspan_set_datespan( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) _lib.tstzspan_set_datespan(s1_converted, s2_converted) _check_error() -def adjacent_span_value(s: "const Span *", value: "Datum") -> "bool": +def adjacent_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.adjacent_span_value(s_converted, value_converted) @@ -15006,7 +15587,9 @@ def adjacent_span_value(s: "const Span *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def adjacent_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": +def adjacent_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.adjacent_spanset_value(ss_converted, value_converted) @@ -15014,7 +15597,9 @@ def adjacent_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def adjacent_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": +def adjacent_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_value_spanset(value_converted, ss_converted) @@ -15022,7 +15607,9 @@ def adjacent_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contained_value_set(value: "Datum", s: "const Set *") -> "bool": +def contained_value_set( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_value_set(value_converted, s_converted) @@ -15030,7 +15617,9 @@ def contained_value_set(value: "Datum", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contained_value_span(value: "Datum", s: "const Span *") -> "bool": +def contained_value_span( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_value_span(value_converted, s_converted) @@ -15038,7 +15627,9 @@ def contained_value_span(value: "Datum", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def contained_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": +def contained_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_value_spanset(value_converted, ss_converted) @@ -15046,7 +15637,7 @@ def contained_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def contains_set_value(s: "const Set *", value: "Datum") -> "bool": +def contains_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.contains_set_value(s_converted, value_converted) @@ -15054,7 +15645,9 @@ def contains_set_value(s: "const Set *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def contains_span_value(s: "const Span *", value: "Datum") -> "bool": +def contains_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.contains_span_value(s_converted, value_converted) @@ -15062,7 +15655,9 @@ def contains_span_value(s: "const Span *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def contains_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": +def contains_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.contains_spanset_value(ss_converted, value_converted) @@ -15070,7 +15665,9 @@ def contains_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def ovadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def ovadj_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.ovadj_span_span(s1_converted, s2_converted) @@ -15078,7 +15675,7 @@ def ovadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def left_set_value(s: "const Set *", value: "Datum") -> "bool": +def left_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.left_set_value(s_converted, value_converted) @@ -15086,7 +15683,7 @@ def left_set_value(s: "const Set *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def left_span_value(s: "const Span *", value: "Datum") -> "bool": +def left_span_value(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.left_span_value(s_converted, value_converted) @@ -15094,7 +15691,9 @@ def left_span_value(s: "const Span *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def left_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": +def left_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.left_spanset_value(ss_converted, value_converted) @@ -15102,7 +15701,7 @@ def left_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def left_value_set(value: "Datum", s: "const Set *") -> "bool": +def left_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.left_value_set(value_converted, s_converted) @@ -15110,7 +15709,7 @@ def left_value_set(value: "Datum", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def left_value_span(value: "Datum", s: "const Span *") -> "bool": +def left_value_span(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.left_value_span(value_converted, s_converted) @@ -15118,7 +15717,9 @@ def left_value_span(value: "Datum", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def left_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": +def left_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_value_spanset(value_converted, ss_converted) @@ -15126,7 +15727,9 @@ def left_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def lfnadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": +def lfnadj_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.lfnadj_span_span(s1_converted, s2_converted) @@ -15134,7 +15737,7 @@ def lfnadj_span_span(s1: "const Span *", s2: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overleft_set_value(s: "const Set *", value: "Datum") -> "bool": +def overleft_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.overleft_set_value(s_converted, value_converted) @@ -15142,7 +15745,9 @@ def overleft_set_value(s: "const Set *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def overleft_span_value(s: "const Span *", value: "Datum") -> "bool": +def overleft_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.overleft_span_value(s_converted, value_converted) @@ -15150,7 +15755,9 @@ def overleft_span_value(s: "const Span *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def overleft_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": +def overleft_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.overleft_spanset_value(ss_converted, value_converted) @@ -15158,7 +15765,7 @@ def overleft_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def overleft_value_set(value: "Datum", s: "const Set *") -> "bool": +def overleft_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_value_set(value_converted, s_converted) @@ -15166,7 +15773,9 @@ def overleft_value_set(value: "Datum", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overleft_value_span(value: "Datum", s: "const Span *") -> "bool": +def overleft_value_span( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_value_span(value_converted, s_converted) @@ -15174,7 +15783,9 @@ def overleft_value_span(value: "Datum", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overleft_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": +def overleft_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_value_spanset(value_converted, ss_converted) @@ -15182,7 +15793,9 @@ def overleft_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def overright_set_value(s: "const Set *", value: "Datum") -> "bool": +def overright_set_value( + s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.overright_set_value(s_converted, value_converted) @@ -15190,7 +15803,9 @@ def overright_set_value(s: "const Set *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def overright_span_value(s: "const Span *", value: "Datum") -> "bool": +def overright_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.overright_span_value(s_converted, value_converted) @@ -15198,7 +15813,9 @@ def overright_span_value(s: "const Span *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def overright_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": +def overright_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.overright_spanset_value(ss_converted, value_converted) @@ -15206,7 +15823,9 @@ def overright_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def overright_value_set(value: "Datum", s: "const Set *") -> "bool": +def overright_value_set( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.overright_value_set(value_converted, s_converted) @@ -15214,7 +15833,9 @@ def overright_value_set(value: "Datum", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def overright_value_span(value: "Datum", s: "const Span *") -> "bool": +def overright_value_span( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.overright_value_span(value_converted, s_converted) @@ -15222,7 +15843,9 @@ def overright_value_span(value: "Datum", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def overright_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": +def overright_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_value_spanset(value_converted, ss_converted) @@ -15230,7 +15853,7 @@ def overright_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def right_value_set(value: "Datum", s: "const Set *") -> "bool": +def right_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.right_value_set(value_converted, s_converted) @@ -15238,7 +15861,7 @@ def right_value_set(value: "Datum", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def right_set_value(s: "const Set *", value: "Datum") -> "bool": +def right_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.right_set_value(s_converted, value_converted) @@ -15246,7 +15869,7 @@ def right_set_value(s: "const Set *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def right_value_span(value: "Datum", s: "const Span *") -> "bool": +def right_value_span(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.right_value_span(value_converted, s_converted) @@ -15254,7 +15877,9 @@ def right_value_span(value: "Datum", s: "const Span *") -> "bool": return result if result != _ffi.NULL else None -def right_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": +def right_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_value_spanset(value_converted, ss_converted) @@ -15262,7 +15887,7 @@ def right_value_spanset(value: "Datum", ss: "const SpanSet *") -> "bool": return result if result != _ffi.NULL else None -def right_span_value(s: "const Span *", value: "Datum") -> "bool": +def right_span_value(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.right_span_value(s_converted, value_converted) @@ -15270,7 +15895,9 @@ def right_span_value(s: "const Span *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def right_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": +def right_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.right_spanset_value(ss_converted, value_converted) @@ -15278,7 +15905,9 @@ def right_spanset_value(ss: "const SpanSet *", value: "Datum") -> "bool": return result if result != _ffi.NULL else None -def bbox_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": +def bbox_union_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) out_result = _ffi.new("Span *") @@ -15287,7 +15916,9 @@ def bbox_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": return out_result if out_result != _ffi.NULL else None -def inter_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": +def inter_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) out_result = _ffi.new("Span *") @@ -15298,7 +15929,9 @@ def inter_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": return None -def intersection_set_value(s: "const Set *", value: "Datum") -> "Set *": +def intersection_set_value( + s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.intersection_set_value(s_converted, value_converted) @@ -15306,7 +15939,9 @@ def intersection_set_value(s: "const Set *", value: "Datum") -> "Set *": return result if result != _ffi.NULL else None -def intersection_span_value(s: "const Span *", value: "Datum") -> "Span *": +def intersection_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.intersection_span_value(s_converted, value_converted) @@ -15314,7 +15949,9 @@ def intersection_span_value(s: "const Span *", value: "Datum") -> "Span *": return result if result != _ffi.NULL else None -def intersection_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": +def intersection_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.intersection_spanset_value(ss_converted, value_converted) @@ -15322,7 +15959,9 @@ def intersection_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSe return result if result != _ffi.NULL else None -def intersection_value_set(value: "Datum", s: "const Set *") -> "Set *": +def intersection_value_set( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_value_set(value_converted, s_converted) @@ -15330,7 +15969,9 @@ def intersection_value_set(value: "Datum", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_value_span(value: "Datum", s: "const Span *") -> "Span *": +def intersection_value_span( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_value_span(value_converted, s_converted) @@ -15338,7 +15979,9 @@ def intersection_value_span(value: "Datum", s: "const Span *") -> "Span *": return result if result != _ffi.NULL else None -def intersection_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": +def intersection_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_value_spanset(value_converted, ss_converted) @@ -15346,16 +15989,18 @@ def intersection_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSe return result if result != _ffi.NULL else None -def mi_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": +def mi_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) out_result = _ffi.new("Span *") result = _lib.mi_span_span(s1_converted, s2_converted, out_result) _check_error() - return out_result if out_result != _ffi.NULL else None + return out_result, result if out_result != _ffi.NULL else None -def minus_set_value(s: "const Set *", value: "Datum") -> "Set *": +def minus_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.minus_set_value(s_converted, value_converted) @@ -15363,7 +16008,9 @@ def minus_set_value(s: "const Set *", value: "Datum") -> "Set *": return result if result != _ffi.NULL else None -def minus_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": +def minus_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.minus_span_value(s_converted, value_converted) @@ -15371,7 +16018,9 @@ def minus_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": +def minus_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.minus_spanset_value(ss_converted, value_converted) @@ -15379,7 +16028,7 @@ def minus_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_value_set(value: "Datum", s: "const Set *") -> "Set *": +def minus_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_value_set(value_converted, s_converted) @@ -15387,7 +16036,9 @@ def minus_value_set(value: "Datum", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": +def minus_value_span( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_value_span(value_converted, s_converted) @@ -15395,7 +16046,9 @@ def minus_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def minus_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": +def minus_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_value_spanset(value_converted, ss_converted) @@ -15403,7 +16056,9 @@ def minus_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def super_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": +def super_union_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.super_union_span_span(s1_converted, s2_converted) @@ -15411,7 +16066,7 @@ def super_union_span_span(s1: "const Span *", s2: "const Span *") -> "Span *": return result if result != _ffi.NULL else None -def union_set_value(s: "const Set *", value: "Datum") -> "Set *": +def union_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.union_set_value(s_converted, value_converted) @@ -15419,7 +16074,9 @@ def union_set_value(s: "const Set *", value: "Datum") -> "Set *": return result if result != _ffi.NULL else None -def union_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": +def union_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.union_span_value(s_converted, value_converted) @@ -15427,7 +16084,9 @@ def union_span_value(s: "const Span *", value: "Datum") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": +def union_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.union_spanset_value(ss_converted, value_converted) @@ -15435,7 +16094,7 @@ def union_spanset_value(ss: "const SpanSet *", value: "Datum") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_value_set(value: "Datum", s: "const Set *") -> "Set *": +def union_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.union_value_set(value_converted, s_converted) @@ -15443,7 +16102,9 @@ def union_value_set(value: "Datum", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": +def union_value_span( + value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.union_value_span(value_converted, s_converted) @@ -15451,7 +16112,9 @@ def union_value_span(value: "Datum", s: "const Span *") -> "SpanSet *": return result if result != _ffi.NULL else None -def union_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": +def union_value_spanset( + value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_value_spanset(value_converted, ss_converted) @@ -15459,7 +16122,9 @@ def union_value_spanset(value: "Datum", ss: "const SpanSet *") -> "SpanSet *": return result if result != _ffi.NULL else None -def distance_set_set(s1: "const Set *", s2: "const Set *") -> "Datum": +def distance_set_set( + s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Datum"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_set_set(s1_converted, s2_converted) @@ -15467,7 +16132,9 @@ def distance_set_set(s1: "const Set *", s2: "const Set *") -> "Datum": return result if result != _ffi.NULL else None -def distance_set_value(s: "const Set *", value: "Datum") -> "Datum": +def distance_set_value( + s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "Datum"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.distance_set_value(s_converted, value_converted) @@ -15475,7 +16142,9 @@ def distance_set_value(s: "const Set *", value: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def distance_span_span(s1: "const Span *", s2: "const Span *") -> "Datum": +def distance_span_span( + s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Datum"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_span_span(s1_converted, s2_converted) @@ -15483,7 +16152,9 @@ def distance_span_span(s1: "const Span *", s2: "const Span *") -> "Datum": return result if result != _ffi.NULL else None -def distance_span_value(s: "const Span *", value: "Datum") -> "Datum": +def distance_span_value( + s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "Datum"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.distance_span_value(s_converted, value_converted) @@ -15491,7 +16162,9 @@ def distance_span_value(s: "const Span *", value: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def distance_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "Datum": +def distance_spanset_span( + ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_spanset_span(ss_converted, s_converted) @@ -15499,7 +16172,9 @@ def distance_spanset_span(ss: "const SpanSet *", s: "const Span *") -> "Datum": return result if result != _ffi.NULL else None -def distance_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> "Datum": +def distance_spanset_spanset( + ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "Datum"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_spanset_spanset(ss1_converted, ss2_converted) @@ -15507,7 +16182,9 @@ def distance_spanset_spanset(ss1: "const SpanSet *", ss2: "const SpanSet *") -> return result if result != _ffi.NULL else None -def distance_spanset_value(ss: "const SpanSet *", value: "Datum") -> "Datum": +def distance_spanset_value( + ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.distance_spanset_value(ss_converted, value_converted) @@ -15515,7 +16192,9 @@ def distance_spanset_value(ss: "const SpanSet *", value: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def distance_value_value(l: "Datum", r: "Datum", basetype: "meosType") -> "Datum": +def distance_value_value( + l: Annotated[cdata, "Datum"], r: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] +) -> Annotated[cdata, "Datum"]: l_converted = _ffi.cast("Datum", l) r_converted = _ffi.cast("Datum", r) basetype_converted = _ffi.cast("meosType", basetype) @@ -15525,34 +16204,30 @@ def distance_value_value(l: "Datum", r: "Datum", basetype: "meosType") -> "Datum def spanbase_extent_transfn( - state: "Span *", value: "Datum", basetype: "meosType" -) -> "Span *": + state: Annotated[cdata, "Span *"], value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] +) -> Annotated[cdata, "Span *"]: state_converted = _ffi.cast("Span *", state) value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.spanbase_extent_transfn( - state_converted, value_converted, basetype_converted - ) + result = _lib.spanbase_extent_transfn(state_converted, value_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None def value_union_transfn( - state: "Set *", value: "Datum", basetype: "meosType" -) -> "Set *": + state: Annotated[cdata, "Set *"], value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] +) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) - result = _lib.value_union_transfn( - state_converted, value_converted, basetype_converted - ) + result = _lib.value_union_transfn(state_converted, value_converted, basetype_converted) _check_error() return result if result != _ffi.NULL else None def number_tstzspan_to_tbox( - d: "Datum", basetype: "meosType", s: "const Span *" -) -> "TBox *": + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "TBox *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) s_converted = _ffi.cast("const Span *", s) @@ -15561,18 +16236,20 @@ def number_tstzspan_to_tbox( return result if result != _ffi.NULL else None -def number_timestamptz_to_tbox(d: "Datum", basetype: "meosType", t: int) -> "TBox *": +def number_timestamptz_to_tbox( + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], t: int +) -> Annotated[cdata, "TBox *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) t_converted = _ffi.cast("TimestampTz", t) - result = _lib.number_timestamptz_to_tbox( - d_converted, basetype_converted, t_converted - ) + result = _lib.number_timestamptz_to_tbox(d_converted, basetype_converted, t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_set(s: "const Span *", p: "const Span *", box: "TBox *") -> None: +def tbox_set( + s: Annotated[cdata, "const Span *"], p: Annotated[cdata, "const Span *"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Span *", s) p_converted = _ffi.cast("const Span *", p) box_converted = _ffi.cast("TBox *", box) @@ -15580,19 +16257,21 @@ def tbox_set(s: "const Span *", p: "const Span *", box: "TBox *") -> None: _check_error() -def float_set_tbox(d: float, box: "TBox *") -> None: +def float_set_tbox(d: float, box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: box_converted = _ffi.cast("TBox *", box) _lib.float_set_tbox(d, box_converted) _check_error() -def int_set_tbox(i: int, box: "TBox *") -> None: +def int_set_tbox(i: int, box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: box_converted = _ffi.cast("TBox *", box) _lib.int_set_tbox(i, box_converted) _check_error() -def number_set_tbox(d: "Datum", basetype: "meosType", box: "TBox *") -> None: +def number_set_tbox( + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) box_converted = _ffi.cast("TBox *", box) @@ -15600,7 +16279,7 @@ def number_set_tbox(d: "Datum", basetype: "meosType", box: "TBox *") -> None: _check_error() -def number_tbox(value: "Datum", basetype: "meosType") -> "TBox *": +def number_tbox(value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "TBox *"]: value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.number_tbox(value_converted, basetype_converted) @@ -15608,35 +16287,37 @@ def number_tbox(value: "Datum", basetype: "meosType") -> "TBox *": return result if result != _ffi.NULL else None -def numset_set_tbox(s: "const Set *", box: "TBox *") -> None: +def numset_set_tbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("TBox *", box) _lib.numset_set_tbox(s_converted, box_converted) _check_error() -def numspan_set_tbox(span: "const Span *", box: "TBox *") -> None: +def numspan_set_tbox( + span: Annotated[cdata, "const Span *"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: span_converted = _ffi.cast("const Span *", span) box_converted = _ffi.cast("TBox *", box) _lib.numspan_set_tbox(span_converted, box_converted) _check_error() -def timestamptz_set_tbox(t: int, box: "TBox *") -> None: +def timestamptz_set_tbox(t: int, box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: t_converted = _ffi.cast("TimestampTz", t) box_converted = _ffi.cast("TBox *", box) _lib.timestamptz_set_tbox(t_converted, box_converted) _check_error() -def tstzset_set_tbox(s: "const Set *", box: "TBox *") -> None: +def tstzset_set_tbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("TBox *", box) _lib.tstzset_set_tbox(s_converted, box_converted) _check_error() -def tstzspan_set_tbox(s: "const Span *", box: "TBox *") -> None: +def tstzspan_set_tbox(s: Annotated[cdata, "const Span *"], box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Span *", s) box_converted = _ffi.cast("TBox *", box) _lib.tstzspan_set_tbox(s_converted, box_converted) @@ -15644,26 +16325,30 @@ def tstzspan_set_tbox(s: "const Span *", box: "TBox *") -> None: def tbox_shift_scale_value( - box: "const TBox *", shift: "Datum", width: "Datum", hasshift: bool, haswidth: bool -) -> "TBox *": + box: Annotated[cdata, "const TBox *"], + shift: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], + hasshift: bool, + haswidth: bool, +) -> Annotated[cdata, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) - result = _lib.tbox_shift_scale_value( - box_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.tbox_shift_scale_value(box_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def tbox_expand(box1: "const TBox *", box2: "TBox *") -> None: +def tbox_expand(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("TBox *", box2) _lib.tbox_expand(box1_converted, box2_converted) _check_error() -def inter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": +def inter_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[cdata, "TBox *"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) out_result = _ffi.new("TBox *") @@ -15674,28 +16359,28 @@ def inter_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "TBox *": return None -def tboolinst_in(string: str) -> "TInstant *": +def tboolinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tboolinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tboolseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tboolseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_in(string: str) -> "TSequenceSet *": +def tboolseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tboolseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_in(string: str, temptype: "meosType") -> "Temporal *": +def temporal_in(string: str, temptype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.temporal_in(string_converted, temptype_converted) @@ -15703,7 +16388,7 @@ def temporal_in(string: str, temptype: "meosType") -> "Temporal *": return result if result != _ffi.NULL else None -def temporal_out(temp: "const Temporal *", maxdd: int) -> str: +def temporal_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_out(temp_converted, maxdd) _check_error() @@ -15711,35 +16396,35 @@ def temporal_out(temp: "const Temporal *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def temparr_out(temparr: "const Temporal **", count: int, maxdd: int) -> "char **": +def temparr_out(temparr: Annotated[list, "const Temporal **"], count: int, maxdd: int) -> Annotated[cdata, "char **"]: temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] result = _lib.temparr_out(temparr_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_in(string: str) -> "TInstant *": +def tfloatinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tfloatinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tfloatseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tfloatseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_in(string: str) -> "TSequenceSet *": +def tfloatseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tfloatseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_in(string: str, temptype: "meosType") -> "TInstant *": +def tinstant_in(string: str, temptype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tinstant_in(string_converted, temptype_converted) @@ -15747,7 +16432,7 @@ def tinstant_in(string: str, temptype: "meosType") -> "TInstant *": return result if result != _ffi.NULL else None -def tinstant_out(inst: "const TInstant *", maxdd: int) -> str: +def tinstant_out(inst: Annotated[cdata, "const TInstant *"], maxdd: int) -> Annotated[str, "char *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_out(inst_converted, maxdd) _check_error() @@ -15755,21 +16440,21 @@ def tinstant_out(inst: "const TInstant *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def tintinst_in(string: str) -> "TInstant *": +def tintinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tintinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tintseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tintseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tintseqset_in(string: str) -> "TSequenceSet *": +def tintseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tintseqset_in(string_converted) _check_error() @@ -15777,8 +16462,8 @@ def tintseqset_in(string: str) -> "TSequenceSet *": def tsequence_in( - string: str, temptype: "meosType", interp: InterpolationType -) -> "TSequence *": + string: str, temptype: Annotated[cdata, "meosType"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tsequence_in(string_converted, temptype_converted, interp) @@ -15786,7 +16471,7 @@ def tsequence_in( return result if result != _ffi.NULL else None -def tsequence_out(seq: "const TSequence *", maxdd: int) -> str: +def tsequence_out(seq: Annotated[cdata, "const TSequence *"], maxdd: int) -> Annotated[str, "char *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_out(seq_converted, maxdd) _check_error() @@ -15795,8 +16480,8 @@ def tsequence_out(seq: "const TSequence *", maxdd: int) -> str: def tsequenceset_in( - string: str, temptype: "meosType", interp: InterpolationType -) -> "TSequenceSet *": + string: str, temptype: Annotated[cdata, "meosType"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tsequenceset_in(string_converted, temptype_converted, interp) @@ -15804,7 +16489,7 @@ def tsequenceset_in( return result if result != _ffi.NULL else None -def tsequenceset_out(ss: "const TSequenceSet *", maxdd: int) -> str: +def tsequenceset_out(ss: Annotated[cdata, "const TSequenceSet *"], maxdd: int) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_out(ss_converted, maxdd) _check_error() @@ -15812,28 +16497,28 @@ def tsequenceset_out(ss: "const TSequenceSet *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def ttextinst_in(string: str) -> "TInstant *": +def ttextinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.ttextinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def ttextseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.ttextseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_in(string: str) -> "TSequenceSet *": +def ttextseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.ttextseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_mfjson(mfjson: str, temptype: "meosType") -> "Temporal *": +def temporal_from_mfjson(mfjson: str, temptype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Temporal *"]: mfjson_converted = mfjson.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.temporal_from_mfjson(mfjson_converted, temptype_converted) @@ -15842,26 +16527,26 @@ def temporal_from_mfjson(mfjson: str, temptype: "meosType") -> "Temporal *": def temporal_from_base_temp( - value: "Datum", temptype: "meosType", temp: "const Temporal *" -) -> "Temporal *": + value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) temp_converted = _ffi.cast("const Temporal *", temp) - result = _lib.temporal_from_base_temp( - value_converted, temptype_converted, temp_converted - ) + result = _lib.temporal_from_base_temp(value_converted, temptype_converted, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_copy(inst: "const TInstant *") -> "TInstant *": +def tinstant_copy(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_copy(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_make(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": +def tinstant_make( + value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], t: int +) -> Annotated[cdata, "TInstant *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) t_converted = _ffi.cast("TimestampTz", t) @@ -15870,7 +16555,9 @@ def tinstant_make(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": return result if result != _ffi.NULL else None -def tinstant_make_free(value: "Datum", temptype: "meosType", t: int) -> "TInstant *": +def tinstant_make_free( + value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], t: int +) -> Annotated[cdata, "TInstant *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) t_converted = _ffi.cast("TimestampTz", t) @@ -15879,7 +16566,7 @@ def tinstant_make_free(value: "Datum", temptype: "meosType", t: int) -> "TInstan return result if result != _ffi.NULL else None -def tsequence_copy(seq: "const TSequence *") -> "TSequence *": +def tsequence_copy(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_copy(seq_converted) _check_error() @@ -15887,78 +16574,71 @@ def tsequence_copy(seq: "const TSequence *") -> "TSequence *": def tsequence_from_base_temp( - value: "Datum", temptype: "meosType", seq: "const TSequence *" -) -> "TSequence *": + value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], seq: Annotated[cdata, "const TSequence *"] +) -> Annotated[cdata, "TSequence *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) seq_converted = _ffi.cast("const TSequence *", seq) - result = _lib.tsequence_from_base_temp( - value_converted, temptype_converted, seq_converted - ) + result = _lib.tsequence_from_base_temp(value_converted, temptype_converted, seq_converted) _check_error() return result if result != _ffi.NULL else None def tsequence_from_base_tstzset( - value: "Datum", temptype: "meosType", s: "const Set *" -) -> "TSequence *": + value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "TSequence *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) s_converted = _ffi.cast("const Set *", s) - result = _lib.tsequence_from_base_tstzset( - value_converted, temptype_converted, s_converted - ) + result = _lib.tsequence_from_base_tstzset(value_converted, temptype_converted, s_converted) _check_error() return result if result != _ffi.NULL else None def tsequence_from_base_tstzspan( - value: "Datum", temptype: "meosType", s: "const Span *", interp: InterpolationType -) -> "TSequence *": + value: Annotated[cdata, "Datum"], + temptype: Annotated[cdata, "meosType"], + s: Annotated[cdata, "const Span *"], + interp: InterpolationType, +) -> Annotated[cdata, "TSequence *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) s_converted = _ffi.cast("const Span *", s) - result = _lib.tsequence_from_base_tstzspan( - value_converted, temptype_converted, s_converted, interp - ) + result = _lib.tsequence_from_base_tstzspan(value_converted, temptype_converted, s_converted, interp) _check_error() return result if result != _ffi.NULL else None def tsequence_make_exp( - instants: "const TInstant **", + instants: Annotated[list, "const TInstant **"], count: int, maxcount: int, lower_inc: bool, upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> "TSequence *": +) -> Annotated[cdata, "TSequence *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] - result = _lib.tsequence_make_exp( - instants_converted, count, maxcount, lower_inc, upper_inc, interp, normalize - ) + result = _lib.tsequence_make_exp(instants_converted, count, maxcount, lower_inc, upper_inc, interp, normalize) _check_error() return result if result != _ffi.NULL else None def tsequence_make_free( - instants: "TInstant **", + instants: Annotated[list, "TInstant **"], count: int, lower_inc: bool, upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> "TSequence *": +) -> Annotated[cdata, "TSequence *"]: instants_converted = [_ffi.cast("TInstant *", x) for x in instants] - result = _lib.tsequence_make_free( - instants_converted, count, lower_inc, upper_inc, interp, normalize - ) + result = _lib.tsequence_make_free(instants_converted, count, lower_inc, upper_inc, interp, normalize) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_copy(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tsequenceset_copy(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_copy(ss_converted) _check_error() @@ -15966,8 +16646,8 @@ def tsequenceset_copy(ss: "const TSequenceSet *") -> "TSequenceSet *": def tseqsetarr_to_tseqset( - seqsets: "TSequenceSet **", count: int, totalseqs: int -) -> "TSequenceSet *": + seqsets: Annotated[list, "TSequenceSet **"], count: int, totalseqs: int +) -> Annotated[cdata, "TSequenceSet *"]: seqsets_converted = [_ffi.cast("TSequenceSet *", x) for x in seqsets] result = _lib.tseqsetarr_to_tseqset(seqsets_converted, count, totalseqs) _check_error() @@ -15975,37 +16655,35 @@ def tseqsetarr_to_tseqset( def tsequenceset_from_base_temp( - value: "Datum", temptype: "meosType", ss: "const TSequenceSet *" -) -> "TSequenceSet *": + value: Annotated[cdata, "Datum"], + temptype: Annotated[cdata, "meosType"], + ss: Annotated[cdata, "const TSequenceSet *"], +) -> Annotated[cdata, "TSequenceSet *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) ss_converted = _ffi.cast("const TSequenceSet *", ss) - result = _lib.tsequenceset_from_base_temp( - value_converted, temptype_converted, ss_converted - ) + result = _lib.tsequenceset_from_base_temp(value_converted, temptype_converted, ss_converted) _check_error() return result if result != _ffi.NULL else None def tsequenceset_from_base_tstzspanset( - value: "Datum", - temptype: "meosType", - ss: "const SpanSet *", + value: Annotated[cdata, "Datum"], + temptype: Annotated[cdata, "meosType"], + ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType, -) -> "TSequenceSet *": +) -> Annotated[cdata, "TSequenceSet *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) ss_converted = _ffi.cast("const SpanSet *", ss) - result = _lib.tsequenceset_from_base_tstzspanset( - value_converted, temptype_converted, ss_converted, interp - ) + result = _lib.tsequenceset_from_base_tstzspanset(value_converted, temptype_converted, ss_converted, interp) _check_error() return result if result != _ffi.NULL else None def tsequenceset_make_exp( - sequences: "const TSequence **", count: int, maxcount: int, normalize: bool -) -> "TSequenceSet *": + sequences: Annotated[list, "const TSequence **"], count: int, maxcount: int, normalize: bool +) -> Annotated[cdata, "TSequenceSet *"]: sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequenceset_make_exp(sequences_converted, count, maxcount, normalize) _check_error() @@ -16013,85 +16691,101 @@ def tsequenceset_make_exp( def tsequenceset_make_free( - sequences: "TSequence **", count: int, normalize: bool -) -> "TSequenceSet *": + sequences: Annotated[list, "TSequence **"], count: int, normalize: bool +) -> Annotated[cdata, "TSequenceSet *"]: sequences_converted = [_ffi.cast("TSequence *", x) for x in sequences] result = _lib.tsequenceset_make_free(sequences_converted, count, normalize) _check_error() return result if result != _ffi.NULL else None -def temporal_set_tstzspan(temp: "const Temporal *", s: "Span *") -> None: +def temporal_set_tstzspan( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("Span *", s) _lib.temporal_set_tstzspan(temp_converted, s_converted) _check_error() -def tinstant_set_tstzspan(inst: "const TInstant *", s: "Span *") -> None: +def tinstant_set_tstzspan( + inst: Annotated[cdata, "const TInstant *"], s: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) s_converted = _ffi.cast("Span *", s) _lib.tinstant_set_tstzspan(inst_converted, s_converted) _check_error() -def tnumber_set_tbox(temp: "const Temporal *", box: "TBox *") -> None: +def tnumber_set_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("TBox *", box) _lib.tnumber_set_tbox(temp_converted, box_converted) _check_error() -def tnumberinst_set_tbox(inst: "const TInstant *", box: "TBox *") -> None: +def tnumberinst_set_tbox( + inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("TBox *", box) _lib.tnumberinst_set_tbox(inst_converted, box_converted) _check_error() -def tnumberseq_set_tbox(seq: "const TSequence *", box: "TBox *") -> None: +def tnumberseq_set_tbox( + seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("TBox *", box) _lib.tnumberseq_set_tbox(seq_converted, box_converted) _check_error() -def tnumberseqset_set_tbox(ss: "const TSequenceSet *", box: "TBox *") -> None: +def tnumberseqset_set_tbox( + ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "TBox *"] +) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("TBox *", box) _lib.tnumberseqset_set_tbox(ss_converted, box_converted) _check_error() -def tsequence_set_tstzspan(seq: "const TSequence *", s: "Span *") -> None: +def tsequence_set_tstzspan( + seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("Span *", s) _lib.tsequence_set_tstzspan(seq_converted, s_converted) _check_error() -def tsequenceset_set_tstzspan(ss: "const TSequenceSet *", s: "Span *") -> None: +def tsequenceset_set_tstzspan( + ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("Span *", s) _lib.tsequenceset_set_tstzspan(ss_converted, s_converted) _check_error() -def temporal_end_inst(temp: "const Temporal *") -> "const TInstant *": +def temporal_end_inst(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "const TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_inst(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_value(temp: "const Temporal *") -> "Datum": +def temporal_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_inst_n(temp: "const Temporal *", n: int) -> "const TInstant *": +def temporal_inst_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "const TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_inst_n(temp_converted, n) _check_error() @@ -16099,30 +16793,30 @@ def temporal_inst_n(temp: "const Temporal *", n: int) -> "const TInstant *": def temporal_instants_p( - temp: "const Temporal *", -) -> "Tuple['const TInstant **', 'int']": + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "const TInstant **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_instants_p(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_instants_p(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_max_value(temp: "const Temporal *") -> "Datum": +def temporal_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_mem_size(temp: "const Temporal *") -> "size_t": +def temporal_mem_size(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "size_t"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_mem_size(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_value(temp: "const Temporal *") -> "Datum": +def temporal_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_min_value(temp_converted) _check_error() @@ -16130,45 +16824,49 @@ def temporal_min_value(temp: "const Temporal *") -> "Datum": def temporal_sequences_p( - temp: "const Temporal *", -) -> "Tuple['const TSequence **', 'int']": + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "const TSequence **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_sequences_p(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_sequences_p(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_set_bbox(temp: "const Temporal *", box: "void *") -> None: +def temporal_set_bbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "void *"] +) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("void *", box) _lib.temporal_set_bbox(temp_converted, box_converted) _check_error() -def temporal_start_inst(temp: "const Temporal *") -> "const TInstant *": +def temporal_start_inst(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "const TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_inst(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_value(temp: "const Temporal *") -> "Datum": +def temporal_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_values_p(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": +def temporal_values_p( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_values_p(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_values_p(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_value_n(temp: "const Temporal *", n: int) -> "Datum *": +def temporal_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("Datum *") result = _lib.temporal_value_n(temp_converted, n, out_result) @@ -16178,66 +16876,74 @@ def temporal_value_n(temp: "const Temporal *", n: int) -> "Datum *": return None -def temporal_values(temp: "const Temporal *") -> "Tuple['Datum *', 'int']": +def temporal_values( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.temporal_values(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.temporal_values(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tinstant_hash(inst: "const TInstant *") -> "uint32": +def tinstant_hash(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[int, "uint32"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_hash(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_insts(inst: "const TInstant *") -> "Tuple['const TInstant **', 'int']": +def tinstant_insts( + inst: Annotated[cdata, "const TInstant *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "const TInstant **"]: inst_converted = _ffi.cast("const TInstant *", inst) - count = _ffi.new("int *") - result = _lib.tinstant_insts(inst_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tinstant_insts(inst_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tinstant_set_bbox(inst: "const TInstant *", box: "void *") -> None: +def tinstant_set_bbox( + inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "void *"] +) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("void *", box) _lib.tinstant_set_bbox(inst_converted, box_converted) _check_error() -def tinstant_time(inst: "const TInstant *") -> "SpanSet *": +def tinstant_time(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "SpanSet *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_time(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_timestamps(inst: "const TInstant *") -> "Tuple['TimestampTz *', 'int']": +def tinstant_timestamps( + inst: Annotated[cdata, "const TInstant *"], count: Annotated[cdata, "int *"] +) -> Annotated[int, "TimestampTz *"]: inst_converted = _ffi.cast("const TInstant *", inst) - count = _ffi.new("int *") - result = _lib.tinstant_timestamps(inst_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tinstant_timestamps(inst_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tinstant_value_p(inst: "const TInstant *") -> "Datum": +def tinstant_value_p(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "Datum"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_value_p(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value(inst: "const TInstant *") -> "Datum": +def tinstant_value(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "Datum"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_value(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value_at_timestamptz(inst: "const TInstant *", t: int) -> "Datum *": +def tinstant_value_at_timestamptz(inst: Annotated[cdata, "const TInstant *"], t: int) -> Annotated[cdata, "Datum *"]: inst_converted = _ffi.cast("const TInstant *", inst) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") @@ -16248,266 +16954,280 @@ def tinstant_value_at_timestamptz(inst: "const TInstant *", t: int) -> "Datum *" return None -def tinstant_values_p(inst: "const TInstant *") -> "Tuple['Datum *', 'int']": +def tinstant_values_p( + inst: Annotated[cdata, "const TInstant *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Datum *"]: inst_converted = _ffi.cast("const TInstant *", inst) - count = _ffi.new("int *") - result = _lib.tinstant_values_p(inst_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tinstant_values_p(inst_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnumber_set_span(temp: "const Temporal *", span: "Span *") -> None: +def tnumber_set_span( + temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "Span *"] +) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("Span *", span) _lib.tnumber_set_span(temp_converted, span_converted) _check_error() -def tnumberinst_valuespans(inst: "const TInstant *") -> "SpanSet *": +def tnumberinst_valuespans(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "SpanSet *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tnumberinst_valuespans(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_valuespans(seq: "const TSequence *") -> "SpanSet *": +def tnumberseq_valuespans(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "SpanSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_valuespans(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_valuespans(ss: "const TSequenceSet *") -> "SpanSet *": +def tnumberseqset_valuespans(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_valuespans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_duration(seq: "const TSequence *") -> "Interval *": +def tsequence_duration(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "Interval *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_duration(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_end_timestamptz(seq: "const TSequence *") -> "TimestampTz": +def tsequence_end_timestamptz(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[int, "TimestampTz"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_end_timestamptz(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_hash(seq: "const TSequence *") -> "uint32": +def tsequence_hash(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[int, "uint32"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_hash(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_insts_p(seq: "const TSequence *") -> "const TInstant **": +def tsequence_insts_p(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "const TInstant **"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_insts_p(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_inst(seq: "const TSequence *") -> "const TInstant *": +def tsequence_max_inst(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "const TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_max_inst(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_val(seq: "const TSequence *") -> "Datum": +def tsequence_max_val(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "Datum"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_max_val(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_min_inst(seq: "const TSequence *") -> "const TInstant *": +def tsequence_min_inst(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "const TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_min_inst(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_min_val(seq: "const TSequence *") -> "Datum": +def tsequence_min_val(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "Datum"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_min_val(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_segments(seq: "const TSequence *") -> "Tuple['TSequence **', 'int']": +def tsequence_segments( + seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TSequence **"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_segments(seq_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequence_segments(seq_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequence_seqs(seq: "const TSequence *") -> "Tuple['const TSequence **', 'int']": +def tsequence_seqs( + seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "const TSequence **"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_seqs(seq_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequence_seqs(seq_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequence_start_timestamptz(seq: "const TSequence *") -> "TimestampTz": +def tsequence_start_timestamptz(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[int, "TimestampTz"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_start_timestamptz(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_time(seq: "const TSequence *") -> "SpanSet *": +def tsequence_time(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "SpanSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_time(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_timestamps(seq: "const TSequence *") -> "Tuple['TimestampTz *', 'int']": +def tsequence_timestamps( + seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] +) -> Annotated[int, "TimestampTz *"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_timestamps(seq_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequence_timestamps(seq_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tsequence_value_at_timestamptz( - seq: "const TSequence *", t: int, strict: bool -) -> "Datum *": + seq: Annotated[cdata, "const TSequence *"], t: int, strict: bool +) -> Annotated[cdata, "Datum *"]: seq_converted = _ffi.cast("const TSequence *", seq) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") - result = _lib.tsequence_value_at_timestamptz( - seq_converted, t_converted, strict, out_result - ) + result = _lib.tsequence_value_at_timestamptz(seq_converted, t_converted, strict, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tsequence_values_p(seq: "const TSequence *") -> "Tuple['Datum *', 'int']": +def tsequence_values_p( + seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Datum *"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tsequence_values_p(seq_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequence_values_p(seq_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequenceset_duration(ss: "const TSequenceSet *", boundspan: bool) -> "Interval *": +def tsequenceset_duration( + ss: Annotated[cdata, "const TSequenceSet *"], boundspan: bool +) -> Annotated[cdata, "Interval *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_end_timestamptz(ss: "const TSequenceSet *") -> "TimestampTz": +def tsequenceset_end_timestamptz(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_hash(ss: "const TSequenceSet *") -> "uint32": +def tsequenceset_hash(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "uint32"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_inst_n(ss: "const TSequenceSet *", n: int) -> "const TInstant *": +def tsequenceset_inst_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) -> Annotated[cdata, "const TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_inst_n(ss_converted, n) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_insts_p(ss: "const TSequenceSet *") -> "const TInstant **": +def tsequenceset_insts_p(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TInstant **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_insts_p(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_inst(ss: "const TSequenceSet *") -> "const TInstant *": +def tsequenceset_max_inst(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_max_inst(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_val(ss: "const TSequenceSet *") -> "Datum": +def tsequenceset_max_val(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_max_val(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_min_inst(ss: "const TSequenceSet *") -> "const TInstant *": +def tsequenceset_min_inst(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_min_inst(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_min_val(ss: "const TSequenceSet *") -> "Datum": +def tsequenceset_min_val(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "Datum"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_min_val(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_instants(ss: "const TSequenceSet *") -> "int": +def tsequenceset_num_instants(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_num_instants(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_timestamps(ss: "const TSequenceSet *") -> "int": +def tsequenceset_num_timestamps(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_num_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_segments(ss: "const TSequenceSet *") -> "Tuple['TSequence **', 'int']": +def tsequenceset_segments( + ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TSequence **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tsequenceset_segments(ss_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequenceset_segments(ss_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tsequenceset_sequences_p(ss: "const TSequenceSet *") -> "const TSequence **": +def tsequenceset_sequences_p(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TSequence **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_sequences_p(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_start_timestamptz(ss: "const TSequenceSet *") -> "TimestampTz": +def tsequenceset_start_timestamptz(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_time(ss: "const TSequenceSet *") -> "SpanSet *": +def tsequenceset_time(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "SpanSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_time(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_timestamptz_n(ss: "const TSequenceSet *", n: int) -> int: +def tsequenceset_timestamptz_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) -> int: ss_converted = _ffi.cast("const TSequenceSet *", ss) out_result = _ffi.new("TimestampTz *") result = _lib.tsequenceset_timestamptz_n(ss_converted, n, out_result) @@ -16518,31 +17238,29 @@ def tsequenceset_timestamptz_n(ss: "const TSequenceSet *", n: int) -> int: def tsequenceset_timestamps( - ss: "const TSequenceSet *", -) -> "Tuple['TimestampTz *', 'int']": + ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] +) -> Annotated[int, "TimestampTz *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tsequenceset_timestamps(ss_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequenceset_timestamps(ss_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tsequenceset_value_at_timestamptz( - ss: "const TSequenceSet *", t: int, strict: bool -) -> "Datum *": + ss: Annotated[cdata, "const TSequenceSet *"], t: int, strict: bool +) -> Annotated[cdata, "Datum *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") - result = _lib.tsequenceset_value_at_timestamptz( - ss_converted, t_converted, strict, out_result - ) + result = _lib.tsequenceset_value_at_timestamptz(ss_converted, t_converted, strict, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None return None -def tsequenceset_value_n(ss: "const TSequenceSet *", n: int) -> "Datum *": +def tsequenceset_value_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) -> Annotated[cdata, "Datum *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) out_result = _ffi.new("Datum *") result = _lib.tsequenceset_value_n(ss_converted, n, out_result) @@ -16552,23 +17270,25 @@ def tsequenceset_value_n(ss: "const TSequenceSet *", n: int) -> "Datum *": return None -def tsequenceset_values_p(ss: "const TSequenceSet *") -> "Tuple['Datum *', 'int']": +def tsequenceset_values_p( + ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Datum *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tsequenceset_values_p(ss_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tsequenceset_values_p(ss_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def temporal_restart(temp: "Temporal *", count: int) -> None: +def temporal_restart(temp: Annotated[cdata, "Temporal *"], count: int) -> Annotated[None, "void"]: temp_converted = _ffi.cast("Temporal *", temp) _lib.temporal_restart(temp_converted, count) _check_error() def temporal_tsequence( - temp: "const Temporal *", interp: InterpolationType -) -> "TSequence *": + temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tsequence(temp_converted, interp) _check_error() @@ -16576,8 +17296,8 @@ def temporal_tsequence( def temporal_tsequenceset( - temp: "const Temporal *", interp: InterpolationType -) -> "TSequenceSet *": + temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tsequenceset(temp_converted, interp) _check_error() @@ -16585,8 +17305,8 @@ def temporal_tsequenceset( def tinstant_shift_time( - inst: "const TInstant *", interv: "const Interval *" -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], interv: Annotated[cdata, "const Interval *"] +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tinstant_shift_time(inst_converted, interv_converted) @@ -16595,8 +17315,8 @@ def tinstant_shift_time( def tinstant_to_tsequence( - inst: "const TInstant *", interp: InterpolationType -) -> "TSequence *": + inst: Annotated[cdata, "const TInstant *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_to_tsequence(inst_converted, interp) _check_error() @@ -16604,8 +17324,8 @@ def tinstant_to_tsequence( def tinstant_to_tsequence_free( - inst: "TInstant *", interp: InterpolationType -) -> "TSequence *": + inst: Annotated[cdata, "TInstant *"], interp: InterpolationType +) -> Annotated[cdata, "TSequence *"]: inst_converted = _ffi.cast("TInstant *", inst) result = _lib.tinstant_to_tsequence_free(inst_converted, interp) _check_error() @@ -16613,8 +17333,8 @@ def tinstant_to_tsequence_free( def tinstant_to_tsequenceset( - inst: "const TInstant *", interp: InterpolationType -) -> "TSequenceSet *": + inst: Annotated[cdata, "const TInstant *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_to_tsequenceset(inst_converted, interp) _check_error() @@ -16622,23 +17342,23 @@ def tinstant_to_tsequenceset( def tnumber_shift_scale_value( - temp: "const Temporal *", - shift: "Datum", - width: "Datum", + temp: Annotated[cdata, "const Temporal *"], + shift: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], hasshift: bool, haswidth: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) - result = _lib.tnumber_shift_scale_value( - temp_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.tnumber_shift_scale_value(temp_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def tnumberinst_shift_value(inst: "const TInstant *", shift: "Datum") -> "TInstant *": +def tnumberinst_shift_value( + inst: Annotated[cdata, "const TInstant *"], shift: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) shift_converted = _ffi.cast("Datum", shift) result = _lib.tnumberinst_shift_value(inst_converted, shift_converted) @@ -16647,48 +17367,44 @@ def tnumberinst_shift_value(inst: "const TInstant *", shift: "Datum") -> "TInsta def tnumberseq_shift_scale_value( - seq: "const TSequence *", - shift: "Datum", - width: "Datum", + seq: Annotated[cdata, "const TSequence *"], + shift: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], hasshift: bool, haswidth: bool, -) -> "TSequence *": +) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) - result = _lib.tnumberseq_shift_scale_value( - seq_converted, shift_converted, width_converted, hasshift, haswidth - ) + result = _lib.tnumberseq_shift_scale_value(seq_converted, shift_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None def tnumberseqset_shift_scale_value( - ss: "const TSequenceSet *", - start: "Datum", - width: "Datum", + ss: Annotated[cdata, "const TSequenceSet *"], + start: Annotated[cdata, "Datum"], + width: Annotated[cdata, "Datum"], hasshift: bool, haswidth: bool, -) -> "TSequenceSet *": +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) start_converted = _ffi.cast("Datum", start) width_converted = _ffi.cast("Datum", width) - result = _lib.tnumberseqset_shift_scale_value( - ss_converted, start_converted, width_converted, hasshift, haswidth - ) + result = _lib.tnumberseqset_shift_scale_value(ss_converted, start_converted, width_converted, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def tsequence_restart(seq: "TSequence *", count: int) -> None: +def tsequence_restart(seq: Annotated[cdata, "TSequence *"], count: int) -> Annotated[None, "void"]: seq_converted = _ffi.cast("TSequence *", seq) _lib.tsequence_restart(seq_converted, count) _check_error() def tsequence_set_interp( - seq: "const TSequence *", interp: InterpolationType -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], interp: InterpolationType +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_set_interp(seq_converted, interp) _check_error() @@ -16696,42 +17412,42 @@ def tsequence_set_interp( def tsequence_shift_scale_time( - seq: "const TSequence *", shift: "const Interval *", duration: "const Interval *" -) -> "TSequence *": + seq: Annotated[cdata, "const TSequence *"], + shift: Annotated[cdata, "const Interval *"], + duration: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) shift_converted = _ffi.cast("const Interval *", shift) duration_converted = _ffi.cast("const Interval *", duration) - result = _lib.tsequence_shift_scale_time( - seq_converted, shift_converted, duration_converted - ) + result = _lib.tsequence_shift_scale_time(seq_converted, shift_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None def tsequence_subseq( - seq: "const TSequence *", from_: int, to: int, lower_inc: bool, upper_inc: bool -) -> "TSequence *": + seq: Annotated[cdata, "const TSequence *"], from_: int, to: int, lower_inc: bool, upper_inc: bool +) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_subseq(seq_converted, from_, to, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tinstant(seq: "const TSequence *") -> "TInstant *": +def tsequence_to_tinstant(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tinstant(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset(seq: "const TSequence *") -> "TSequenceSet *": +def tsequence_to_tsequenceset(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tsequenceset(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset_free(seq: "TSequence *") -> "TSequenceSet *": +def tsequence_to_tsequenceset_free(seq: Annotated[cdata, "TSequence *"]) -> Annotated[cdata, "TSequenceSet *"]: seq_converted = _ffi.cast("TSequence *", seq) result = _lib.tsequence_to_tsequenceset_free(seq_converted) _check_error() @@ -16739,23 +17455,23 @@ def tsequence_to_tsequenceset_free(seq: "TSequence *") -> "TSequenceSet *": def tsequence_to_tsequenceset_interp( - seq: "const TSequence *", interp: InterpolationType -) -> "TSequenceSet *": + seq: Annotated[cdata, "const TSequence *"], interp: InterpolationType +) -> Annotated[cdata, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restart(ss: "TSequenceSet *", count: int) -> None: +def tsequenceset_restart(ss: Annotated[cdata, "TSequenceSet *"], count: int) -> Annotated[None, "void"]: ss_converted = _ffi.cast("TSequenceSet *", ss) _lib.tsequenceset_restart(ss_converted, count) _check_error() def tsequenceset_set_interp( - ss: "const TSequenceSet *", interp: InterpolationType -) -> "Temporal *": + ss: Annotated[cdata, "const TSequenceSet *"], interp: InterpolationType +) -> Annotated[cdata, "Temporal *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_set_interp(ss_converted, interp) _check_error() @@ -16763,47 +17479,47 @@ def tsequenceset_set_interp( def tsequenceset_shift_scale_time( - ss: "const TSequenceSet *", start: "const Interval *", duration: "const Interval *" -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], + start: Annotated[cdata, "const Interval *"], + duration: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) start_converted = _ffi.cast("const Interval *", start) duration_converted = _ffi.cast("const Interval *", duration) - result = _lib.tsequenceset_shift_scale_time( - ss_converted, start_converted, duration_converted - ) + result = _lib.tsequenceset_shift_scale_time(ss_converted, start_converted, duration_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_discrete(ss: "const TSequenceSet *") -> "TSequence *": +def tsequenceset_to_discrete(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequence *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_discrete(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_linear(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tsequenceset_to_linear(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_linear(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_step(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tsequenceset_to_step(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_step(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tinstant(ss: "const TSequenceSet *") -> "TInstant *": +def tsequenceset_to_tinstant(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_tinstant(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tsequence(ss: "const TSequenceSet *") -> "TSequence *": +def tsequenceset_to_tsequence(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequence *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_tsequence(ss_converted) _check_error() @@ -16811,8 +17527,8 @@ def tsequenceset_to_tsequence(ss: "const TSequenceSet *") -> "TSequence *": def tinstant_merge( - inst1: "const TInstant *", inst2: "const TInstant *" -) -> "Temporal *": + inst1: Annotated[cdata, "const TInstant *"], inst2: Annotated[cdata, "const TInstant *"] +) -> Annotated[cdata, "Temporal *"]: inst1_converted = _ffi.cast("const TInstant *", inst1) inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_merge(inst1_converted, inst2_converted) @@ -16820,7 +17536,7 @@ def tinstant_merge( return result if result != _ffi.NULL else None -def tinstant_merge_array(instants: "const TInstant **", count: int) -> "Temporal *": +def tinstant_merge_array(instants: Annotated[list, "const TInstant **"], count: int) -> Annotated[cdata, "Temporal *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] result = _lib.tinstant_merge_array(instants_converted, count) _check_error() @@ -16828,25 +17544,23 @@ def tinstant_merge_array(instants: "const TInstant **", count: int) -> "Temporal def tsequence_append_tinstant( - seq: "TSequence *", - inst: "const TInstant *", + seq: Annotated[cdata, "TSequence *"], + inst: Annotated[cdata, "const TInstant *"], maxdist: float, - maxt: "const Interval *", + maxt: Annotated[cdata, "const Interval *"], expand: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("TSequence *", seq) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) - result = _lib.tsequence_append_tinstant( - seq_converted, inst_converted, maxdist, maxt_converted, expand - ) + result = _lib.tsequence_append_tinstant(seq_converted, inst_converted, maxdist, maxt_converted, expand) _check_error() return result if result != _ffi.NULL else None def tsequence_append_tsequence( - seq1: "const TSequence *", seq2: "const TSequence *", expand: bool -) -> "Temporal *": + seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"], expand: bool +) -> Annotated[cdata, "Temporal *"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_append_tsequence(seq1_converted, seq2_converted, expand) @@ -16855,8 +17569,8 @@ def tsequence_append_tsequence( def tsequence_delete_timestamptz( - seq: "const TSequence *", t: int, connect: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], t: int, connect: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequence_delete_timestamptz(seq_converted, t_converted, connect) @@ -16865,8 +17579,8 @@ def tsequence_delete_timestamptz( def tsequence_delete_tstzset( - seq: "const TSequence *", s: "const Set *", connect: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "const Set *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequence_delete_tstzset(seq_converted, s_converted, connect) @@ -16875,8 +17589,8 @@ def tsequence_delete_tstzset( def tsequence_delete_tstzspan( - seq: "const TSequence *", s: "const Span *", connect: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "const Span *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequence_delete_tstzspan(seq_converted, s_converted, connect) @@ -16885,8 +17599,8 @@ def tsequence_delete_tstzspan( def tsequence_delete_tstzspanset( - seq: "const TSequence *", ss: "const SpanSet *", connect: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], ss: Annotated[cdata, "const SpanSet *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tsequence_delete_tstzspanset(seq_converted, ss_converted, connect) @@ -16895,8 +17609,8 @@ def tsequence_delete_tstzspanset( def tsequence_insert( - seq1: "const TSequence *", seq2: "const TSequence *", connect: bool -) -> "Temporal *": + seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"], connect: bool +) -> Annotated[cdata, "Temporal *"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_insert(seq1_converted, seq2_converted, connect) @@ -16905,8 +17619,8 @@ def tsequence_insert( def tsequence_merge( - seq1: "const TSequence *", seq2: "const TSequence *" -) -> "Temporal *": + seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"] +) -> Annotated[cdata, "Temporal *"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_merge(seq1_converted, seq2_converted) @@ -16914,7 +17628,9 @@ def tsequence_merge( return result if result != _ffi.NULL else None -def tsequence_merge_array(sequences: "const TSequence **", count: int) -> "Temporal *": +def tsequence_merge_array( + sequences: Annotated[list, "const TSequence **"], count: int +) -> Annotated[cdata, "Temporal *"]: sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequence_merge_array(sequences_converted, count) _check_error() @@ -16922,25 +17638,23 @@ def tsequence_merge_array(sequences: "const TSequence **", count: int) -> "Tempo def tsequenceset_append_tinstant( - ss: "TSequenceSet *", - inst: "const TInstant *", + ss: Annotated[cdata, "TSequenceSet *"], + inst: Annotated[cdata, "const TInstant *"], maxdist: float, - maxt: "const Interval *", + maxt: Annotated[cdata, "const Interval *"], expand: bool, -) -> "TSequenceSet *": +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("TSequenceSet *", ss) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) - result = _lib.tsequenceset_append_tinstant( - ss_converted, inst_converted, maxdist, maxt_converted, expand - ) + result = _lib.tsequenceset_append_tinstant(ss_converted, inst_converted, maxdist, maxt_converted, expand) _check_error() return result if result != _ffi.NULL else None def tsequenceset_append_tsequence( - ss: "TSequenceSet *", seq: "const TSequence *", expand: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "TSequenceSet *"], seq: Annotated[cdata, "const TSequence *"], expand: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("TSequenceSet *", ss) seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequenceset_append_tsequence(ss_converted, seq_converted, expand) @@ -16949,8 +17663,8 @@ def tsequenceset_append_tsequence( def tsequenceset_delete_timestamptz( - ss: "const TSequenceSet *", t: int -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], t: int +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequenceset_delete_timestamptz(ss_converted, t_converted) @@ -16959,8 +17673,8 @@ def tsequenceset_delete_timestamptz( def tsequenceset_delete_tstzset( - ss: "const TSequenceSet *", s: "const Set *" -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_delete_tstzset(ss_converted, s_converted) @@ -16969,8 +17683,8 @@ def tsequenceset_delete_tstzset( def tsequenceset_delete_tstzspan( - ss: "const TSequenceSet *", s: "const Span *" -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequenceset_delete_tstzspan(ss_converted, s_converted) @@ -16979,8 +17693,8 @@ def tsequenceset_delete_tstzspan( def tsequenceset_delete_tstzspanset( - ss: "const TSequenceSet *", ps: "const SpanSet *" -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], ps: Annotated[cdata, "const SpanSet *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) ps_converted = _ffi.cast("const SpanSet *", ps) result = _lib.tsequenceset_delete_tstzspanset(ss_converted, ps_converted) @@ -16989,8 +17703,8 @@ def tsequenceset_delete_tstzspanset( def tsequenceset_insert( - ss1: "const TSequenceSet *", ss2: "const TSequenceSet *" -) -> "TSequenceSet *": + ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_insert(ss1_converted, ss2_converted) @@ -16999,8 +17713,8 @@ def tsequenceset_insert( def tsequenceset_merge( - ss1: "const TSequenceSet *", ss2: "const TSequenceSet *" -) -> "TSequenceSet *": + ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] +) -> Annotated[cdata, "TSequenceSet *"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_merge(ss1_converted, ss2_converted) @@ -17009,36 +17723,44 @@ def tsequenceset_merge( def tsequenceset_merge_array( - seqsets: "const TSequenceSet **", count: int -) -> "TSequenceSet *": + seqsets: Annotated[list, "const TSequenceSet **"], count: int +) -> Annotated[cdata, "TSequenceSet *"]: seqsets_converted = [_ffi.cast("const TSequenceSet *", x) for x in seqsets] result = _lib.tsequenceset_merge_array(seqsets_converted, count) _check_error() return result if result != _ffi.NULL else None -def tsequence_expand_bbox(seq: "TSequence *", inst: "const TInstant *") -> None: +def tsequence_expand_bbox( + seq: Annotated[cdata, "TSequence *"], inst: Annotated[cdata, "const TInstant *"] +) -> Annotated[None, "void"]: seq_converted = _ffi.cast("TSequence *", seq) inst_converted = _ffi.cast("const TInstant *", inst) _lib.tsequence_expand_bbox(seq_converted, inst_converted) _check_error() -def tsequence_set_bbox(seq: "const TSequence *", box: "void *") -> None: +def tsequence_set_bbox( + seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "void *"] +) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("void *", box) _lib.tsequence_set_bbox(seq_converted, box_converted) _check_error() -def tsequenceset_expand_bbox(ss: "TSequenceSet *", seq: "const TSequence *") -> None: +def tsequenceset_expand_bbox( + ss: Annotated[cdata, "TSequenceSet *"], seq: Annotated[cdata, "const TSequence *"] +) -> Annotated[None, "void"]: ss_converted = _ffi.cast("TSequenceSet *", ss) seq_converted = _ffi.cast("const TSequence *", seq) _lib.tsequenceset_expand_bbox(ss_converted, seq_converted) _check_error() -def tsequenceset_set_bbox(ss: "const TSequenceSet *", box: "void *") -> None: +def tsequenceset_set_bbox( + ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "void *"] +) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("void *", box) _lib.tsequenceset_set_bbox(ss_converted, box_converted) @@ -17046,8 +17768,8 @@ def tsequenceset_set_bbox(ss: "const TSequenceSet *", box: "void *") -> None: def tdiscseq_restrict_minmax( - seq: "const TSequence *", min: bool, atfunc: bool -) -> "TSequence *": + seq: Annotated[cdata, "const TSequence *"], min: bool, atfunc: bool +) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tdiscseq_restrict_minmax(seq_converted, min, atfunc) _check_error() @@ -17055,15 +17777,17 @@ def tdiscseq_restrict_minmax( def tcontseq_restrict_minmax( - seq: "const TSequence *", min: bool, atfunc: bool -) -> "TSequenceSet *": + seq: Annotated[cdata, "const TSequence *"], min: bool, atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tcontseq_restrict_minmax(seq_converted, min, atfunc) _check_error() return result if result != _ffi.NULL else None -def temporal_bbox_restrict_set(temp: "const Temporal *", set: "const Set *") -> "bool": +def temporal_bbox_restrict_set( + temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_bbox_restrict_set(temp_converted, set_converted) @@ -17072,8 +17796,8 @@ def temporal_bbox_restrict_set(temp: "const Temporal *", set: "const Set *") -> def temporal_restrict_minmax( - temp: "const Temporal *", min: bool, atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], min: bool, atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_restrict_minmax(temp_converted, min, atfunc) _check_error() @@ -17081,8 +17805,8 @@ def temporal_restrict_minmax( def temporal_restrict_timestamptz( - temp: "const Temporal *", t: int, atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], t: int, atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_restrict_timestamptz(temp_converted, t_converted, atfunc) @@ -17091,8 +17815,8 @@ def temporal_restrict_timestamptz( def temporal_restrict_tstzset( - temp: "const Temporal *", s: "const Set *", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_restrict_tstzset(temp_converted, s_converted, atfunc) @@ -17101,8 +17825,8 @@ def temporal_restrict_tstzset( def temporal_restrict_tstzspan( - temp: "const Temporal *", s: "const Span *", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_restrict_tstzspan(temp_converted, s_converted, atfunc) @@ -17111,8 +17835,8 @@ def temporal_restrict_tstzspan( def temporal_restrict_tstzspanset( - temp: "const Temporal *", ss: "const SpanSet *", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_restrict_tstzspanset(temp_converted, ss_converted, atfunc) @@ -17121,8 +17845,8 @@ def temporal_restrict_tstzspanset( def temporal_restrict_value( - temp: "const Temporal *", value: "Datum", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.temporal_restrict_value(temp_converted, value_converted, atfunc) @@ -17131,8 +17855,8 @@ def temporal_restrict_value( def temporal_restrict_values( - temp: "const Temporal *", set: "const Set *", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_restrict_values(temp_converted, set_converted, atfunc) @@ -17141,14 +17865,12 @@ def temporal_restrict_values( def temporal_value_at_timestamptz( - temp: "const Temporal *", t: int, strict: bool -) -> "Datum *": + temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool +) -> Annotated[cdata, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") - result = _lib.temporal_value_at_timestamptz( - temp_converted, t_converted, strict, out_result - ) + result = _lib.temporal_value_at_timestamptz(temp_converted, t_converted, strict, out_result) _check_error() if result: return out_result if out_result != _ffi.NULL else None @@ -17156,8 +17878,8 @@ def temporal_value_at_timestamptz( def tinstant_restrict_tstzspan( - inst: "const TInstant *", period: "const Span *", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], period: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) period_converted = _ffi.cast("const Span *", period) result = _lib.tinstant_restrict_tstzspan(inst_converted, period_converted, atfunc) @@ -17166,8 +17888,8 @@ def tinstant_restrict_tstzspan( def tinstant_restrict_tstzspanset( - inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tinstant_restrict_tstzspanset(inst_converted, ss_converted, atfunc) @@ -17176,8 +17898,8 @@ def tinstant_restrict_tstzspanset( def tinstant_restrict_timestamptz( - inst: "const TInstant *", t: int, atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], t: int, atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tinstant_restrict_timestamptz(inst_converted, t_converted, atfunc) @@ -17186,8 +17908,8 @@ def tinstant_restrict_timestamptz( def tinstant_restrict_tstzset( - inst: "const TInstant *", s: "const Set *", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], s: Annotated[cdata, "const Set *"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) s_converted = _ffi.cast("const Set *", s) result = _lib.tinstant_restrict_tstzset(inst_converted, s_converted, atfunc) @@ -17196,8 +17918,8 @@ def tinstant_restrict_tstzset( def tinstant_restrict_value( - inst: "const TInstant *", value: "Datum", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], value: Annotated[cdata, "Datum"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) value_converted = _ffi.cast("Datum", value) result = _lib.tinstant_restrict_value(inst_converted, value_converted, atfunc) @@ -17206,8 +17928,8 @@ def tinstant_restrict_value( def tinstant_restrict_values( - inst: "const TInstant *", set: "const Set *", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], set: Annotated[cdata, "const Set *"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) set_converted = _ffi.cast("const Set *", set) result = _lib.tinstant_restrict_values(inst_converted, set_converted, atfunc) @@ -17216,8 +17938,8 @@ def tinstant_restrict_values( def tnumber_restrict_span( - temp: "const Temporal *", span: "const Span *", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_restrict_span(temp_converted, span_converted, atfunc) @@ -17226,8 +17948,8 @@ def tnumber_restrict_span( def tnumber_restrict_spanset( - temp: "const Temporal *", ss: "const SpanSet *", atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_restrict_spanset(temp_converted, ss_converted, atfunc) @@ -17236,8 +17958,8 @@ def tnumber_restrict_spanset( def tnumberinst_restrict_span( - inst: "const TInstant *", span: "const Span *", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], span: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) @@ -17246,8 +17968,8 @@ def tnumberinst_restrict_span( def tnumberinst_restrict_spanset( - inst: "const TInstant *", ss: "const SpanSet *", atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) @@ -17256,8 +17978,8 @@ def tnumberinst_restrict_spanset( def tnumberseqset_restrict_span( - ss: "const TSequenceSet *", span: "const Span *", atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], span: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) @@ -17266,18 +17988,16 @@ def tnumberseqset_restrict_span( def tnumberseqset_restrict_spanset( - ss: "const TSequenceSet *", spanset: "const SpanSet *", atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], spanset: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) spanset_converted = _ffi.cast("const SpanSet *", spanset) - result = _lib.tnumberseqset_restrict_spanset( - ss_converted, spanset_converted, atfunc - ) + result = _lib.tnumberseqset_restrict_spanset(ss_converted, spanset_converted, atfunc) _check_error() return result if result != _ffi.NULL else None -def tsequence_at_timestamptz(seq: "const TSequence *", t: int) -> "TInstant *": +def tsequence_at_timestamptz(seq: Annotated[cdata, "const TSequence *"], t: int) -> Annotated[cdata, "TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequence_at_timestamptz(seq_converted, t_converted) @@ -17286,8 +18006,8 @@ def tsequence_at_timestamptz(seq: "const TSequence *", t: int) -> "TInstant *": def tsequence_restrict_tstzspan( - seq: "const TSequence *", s: "const Span *", atfunc: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequence_restrict_tstzspan(seq_converted, s_converted, atfunc) @@ -17296,8 +18016,8 @@ def tsequence_restrict_tstzspan( def tsequence_restrict_tstzspanset( - seq: "const TSequence *", ss: "const SpanSet *", atfunc: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tsequence_restrict_tstzspanset(seq_converted, ss_converted, atfunc) @@ -17306,8 +18026,8 @@ def tsequence_restrict_tstzspanset( def tsequenceset_restrict_minmax( - ss: "const TSequenceSet *", min: bool, atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], min: bool, atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_restrict_minmax(ss_converted, min, atfunc) _check_error() @@ -17315,8 +18035,8 @@ def tsequenceset_restrict_minmax( def tsequenceset_restrict_tstzspan( - ss: "const TSequenceSet *", s: "const Span *", atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Span *"], atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequenceset_restrict_tstzspan(ss_converted, s_converted, atfunc) @@ -17325,8 +18045,8 @@ def tsequenceset_restrict_tstzspan( def tsequenceset_restrict_tstzspanset( - ss: "const TSequenceSet *", ps: "const SpanSet *", atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], ps: Annotated[cdata, "const SpanSet *"], atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) ps_converted = _ffi.cast("const SpanSet *", ps) result = _lib.tsequenceset_restrict_tstzspanset(ss_converted, ps_converted, atfunc) @@ -17335,8 +18055,8 @@ def tsequenceset_restrict_tstzspanset( def tsequenceset_restrict_timestamptz( - ss: "const TSequenceSet *", t: int, atfunc: bool -) -> "Temporal *": + ss: Annotated[cdata, "const TSequenceSet *"], t: int, atfunc: bool +) -> Annotated[cdata, "Temporal *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequenceset_restrict_timestamptz(ss_converted, t_converted, atfunc) @@ -17345,8 +18065,8 @@ def tsequenceset_restrict_timestamptz( def tsequenceset_restrict_tstzset( - ss: "const TSequenceSet *", s: "const Set *", atfunc: bool -) -> "Temporal *": + ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Set *"], atfunc: bool +) -> Annotated[cdata, "Temporal *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_restrict_tstzset(ss_converted, s_converted, atfunc) @@ -17355,8 +18075,8 @@ def tsequenceset_restrict_tstzset( def tsequenceset_restrict_value( - ss: "const TSequenceSet *", value: "Datum", atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], value: Annotated[cdata, "Datum"], atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.tsequenceset_restrict_value(ss_converted, value_converted, atfunc) @@ -17365,8 +18085,8 @@ def tsequenceset_restrict_value( def tsequenceset_restrict_values( - ss: "const TSequenceSet *", s: "const Set *", atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Set *"], atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_restrict_values(ss_converted, s_converted, atfunc) @@ -17374,7 +18094,9 @@ def tsequenceset_restrict_values( return result if result != _ffi.NULL else None -def tinstant_cmp(inst1: "const TInstant *", inst2: "const TInstant *") -> "int": +def tinstant_cmp( + inst1: Annotated[cdata, "const TInstant *"], inst2: Annotated[cdata, "const TInstant *"] +) -> Annotated[int, "int"]: inst1_converted = _ffi.cast("const TInstant *", inst1) inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_cmp(inst1_converted, inst2_converted) @@ -17382,7 +18104,9 @@ def tinstant_cmp(inst1: "const TInstant *", inst2: "const TInstant *") -> "int": return result if result != _ffi.NULL else None -def tinstant_eq(inst1: "const TInstant *", inst2: "const TInstant *") -> "bool": +def tinstant_eq( + inst1: Annotated[cdata, "const TInstant *"], inst2: Annotated[cdata, "const TInstant *"] +) -> Annotated[bool, "bool"]: inst1_converted = _ffi.cast("const TInstant *", inst1) inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_eq(inst1_converted, inst2_converted) @@ -17390,7 +18114,9 @@ def tinstant_eq(inst1: "const TInstant *", inst2: "const TInstant *") -> "bool": return result if result != _ffi.NULL else None -def tsequence_cmp(seq1: "const TSequence *", seq2: "const TSequence *") -> "int": +def tsequence_cmp( + seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"] +) -> Annotated[int, "int"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_cmp(seq1_converted, seq2_converted) @@ -17398,7 +18124,9 @@ def tsequence_cmp(seq1: "const TSequence *", seq2: "const TSequence *") -> "int" return result if result != _ffi.NULL else None -def tsequence_eq(seq1: "const TSequence *", seq2: "const TSequence *") -> "bool": +def tsequence_eq( + seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"] +) -> Annotated[bool, "bool"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_eq(seq1_converted, seq2_converted) @@ -17406,7 +18134,9 @@ def tsequence_eq(seq1: "const TSequence *", seq2: "const TSequence *") -> "bool" return result if result != _ffi.NULL else None -def tsequenceset_cmp(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> "int": +def tsequenceset_cmp( + ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] +) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_cmp(ss1_converted, ss2_converted) @@ -17414,7 +18144,9 @@ def tsequenceset_cmp(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") - return result if result != _ffi.NULL else None -def tsequenceset_eq(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> "bool": +def tsequenceset_eq( + ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] +) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_eq(ss1_converted, ss2_converted) @@ -17422,7 +18154,9 @@ def tsequenceset_eq(ss1: "const TSequenceSet *", ss2: "const TSequenceSet *") -> return result if result != _ffi.NULL else None -def always_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def always_eq_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_base_temporal(value_converted, temp_converted) @@ -17430,7 +18164,9 @@ def always_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def always_eq_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.always_eq_temporal_base(temp_converted, value_converted) @@ -17438,7 +18174,9 @@ def always_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def always_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def always_ne_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_base_temporal(value_converted, temp_converted) @@ -17446,7 +18184,9 @@ def always_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def always_ne_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.always_ne_temporal_base(temp_converted, value_converted) @@ -17454,7 +18194,9 @@ def always_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def always_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def always_ge_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_base_temporal(value_converted, temp_converted) @@ -17462,7 +18204,9 @@ def always_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def always_ge_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.always_ge_temporal_base(temp_converted, value_converted) @@ -17470,7 +18214,9 @@ def always_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def always_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def always_gt_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_base_temporal(value_converted, temp_converted) @@ -17478,7 +18224,9 @@ def always_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def always_gt_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.always_gt_temporal_base(temp_converted, value_converted) @@ -17486,7 +18234,9 @@ def always_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def always_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def always_le_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_base_temporal(value_converted, temp_converted) @@ -17494,7 +18244,9 @@ def always_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def always_le_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.always_le_temporal_base(temp_converted, value_converted) @@ -17502,7 +18254,9 @@ def always_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def always_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def always_lt_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_base_temporal(value_converted, temp_converted) @@ -17510,7 +18264,9 @@ def always_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def always_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def always_lt_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.always_lt_temporal_base(temp_converted, value_converted) @@ -17518,7 +18274,9 @@ def always_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def ever_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def ever_eq_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_base_temporal(value_converted, temp_converted) @@ -17526,7 +18284,9 @@ def ever_eq_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def ever_eq_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.ever_eq_temporal_base(temp_converted, value_converted) @@ -17534,7 +18294,9 @@ def ever_eq_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def ever_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def ever_ne_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_base_temporal(value_converted, temp_converted) @@ -17542,7 +18304,9 @@ def ever_ne_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def ever_ne_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.ever_ne_temporal_base(temp_converted, value_converted) @@ -17550,7 +18314,9 @@ def ever_ne_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def ever_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def ever_ge_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_base_temporal(value_converted, temp_converted) @@ -17558,7 +18324,9 @@ def ever_ge_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def ever_ge_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.ever_ge_temporal_base(temp_converted, value_converted) @@ -17566,7 +18334,9 @@ def ever_ge_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def ever_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def ever_gt_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_base_temporal(value_converted, temp_converted) @@ -17574,7 +18344,9 @@ def ever_gt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def ever_gt_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.ever_gt_temporal_base(temp_converted, value_converted) @@ -17582,7 +18354,9 @@ def ever_gt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def ever_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def ever_le_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_base_temporal(value_converted, temp_converted) @@ -17590,7 +18364,9 @@ def ever_le_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def ever_le_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.ever_le_temporal_base(temp_converted, value_converted) @@ -17598,7 +18374,9 @@ def ever_le_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def ever_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": +def ever_lt_base_temporal( + value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_base_temporal(value_converted, temp_converted) @@ -17606,7 +18384,9 @@ def ever_lt_base_temporal(value: "Datum", temp: "const Temporal *") -> "int": return result if result != _ffi.NULL else None -def ever_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": +def ever_lt_temporal_base( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.ever_lt_temporal_base(temp_converted, value_converted) @@ -17614,56 +18394,58 @@ def ever_lt_temporal_base(temp: "const Temporal *", value: "Datum") -> "int": return result if result != _ffi.NULL else None -def tnumberinst_abs(inst: "const TInstant *") -> "TInstant *": +def tnumberinst_abs(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tnumberinst_abs(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_abs(seq: "const TSequence *") -> "TSequence *": +def tnumberseq_abs(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_abs(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_angular_difference(seq: "const TSequence *") -> "TSequence *": +def tnumberseq_angular_difference(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_angular_difference(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_delta_value(seq: "const TSequence *") -> "TSequence *": +def tnumberseq_delta_value(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_delta_value(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_abs(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tnumberseqset_abs(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_abs(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_angular_difference(ss: "const TSequenceSet *") -> "TSequence *": +def tnumberseqset_angular_difference(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequence *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_angular_difference(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_delta_value(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tnumberseqset_delta_value(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_delta_value(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Temporal *": +def tdistance_tnumber_number( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.tdistance_tnumber_number(temp_converted, value_converted) @@ -17671,7 +18453,9 @@ def tdistance_tnumber_number(temp: "const Temporal *", value: "Datum") -> "Tempo return result if result != _ffi.NULL else None -def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "double": +def nad_tbox_tbox( + box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] +) -> Annotated[float, "double"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.nad_tbox_tbox(box1_converted, box2_converted) @@ -17679,7 +18463,9 @@ def nad_tbox_tbox(box1: "const TBox *", box2: "const TBox *") -> "double": return result if result != _ffi.NULL else None -def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "double": +def nad_tnumber_number( + temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.nad_tnumber_number(temp_converted, value_converted) @@ -17687,7 +18473,9 @@ def nad_tnumber_number(temp: "const Temporal *", value: "Datum") -> "double": return result if result != _ffi.NULL else None -def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": +def nad_tnumber_tbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.nad_tnumber_tbox(temp_converted, box_converted) @@ -17696,8 +18484,8 @@ def nad_tnumber_tbox(temp: "const Temporal *", box: "const TBox *") -> "double": def nad_tnumber_tnumber( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tnumber_tnumber(temp1_converted, temp2_converted) @@ -17705,81 +18493,79 @@ def nad_tnumber_tnumber( return result if result != _ffi.NULL else None -def tnumberseq_integral(seq: "const TSequence *") -> "double": +def tnumberseq_integral(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[float, "double"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_integral(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_twavg(seq: "const TSequence *") -> "double": +def tnumberseq_twavg(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[float, "double"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_twavg(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_integral(ss: "const TSequenceSet *") -> "double": +def tnumberseqset_integral(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_integral(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_twavg(ss: "const TSequenceSet *") -> "double": +def tnumberseqset_twavg(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_twavg(ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_compact(temp: "const Temporal *") -> "Temporal *": +def temporal_compact(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_compact(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_compact(seq: "const TSequence *") -> "TSequence *": +def tsequence_compact(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_compact(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_compact(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tsequenceset_compact(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_compact(ss_converted) _check_error() return result if result != _ffi.NULL else None -def skiplist_free(list: "SkipList *") -> None: +def skiplist_free(list: Annotated[cdata, "SkipList *"]) -> Annotated[None, "void"]: list_converted = _ffi.cast("SkipList *", list) _lib.skiplist_free(list_converted) _check_error() def temporal_app_tinst_transfn( - state: "Temporal *", - inst: "const TInstant *", + state: Annotated[cdata, "Temporal *"], + inst: Annotated[cdata, "const TInstant *"], interp: InterpolationType, maxdist: float, - maxt: "const Interval *", -) -> "Temporal *": + maxt: Annotated[cdata, "const Interval *"], +) -> Annotated[cdata, "Temporal *"]: state_converted = _ffi.cast("Temporal *", state) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) - result = _lib.temporal_app_tinst_transfn( - state_converted, inst_converted, interp, maxdist, maxt_converted - ) + result = _lib.temporal_app_tinst_transfn(state_converted, inst_converted, interp, maxdist, maxt_converted) _check_error() return result if result != _ffi.NULL else None def temporal_app_tseq_transfn( - state: "Temporal *", seq: "const TSequence *" -) -> "Temporal *": + state: Annotated[cdata, "Temporal *"], seq: Annotated[cdata, "const TSequence *"] +) -> Annotated[cdata, "Temporal *"]: state_converted = _ffi.cast("Temporal *", state) seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.temporal_app_tseq_transfn(state_converted, seq_converted) @@ -17788,93 +18574,100 @@ def temporal_app_tseq_transfn( def span_bins( - s: "const Span *", size: "Datum", origin: "Datum" -) -> "Tuple['Span *', 'int']": + s: Annotated[cdata, "const Span *"], + size: Annotated[cdata, "Datum"], + origin: Annotated[cdata, "Datum"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: s_converted = _ffi.cast("const Span *", s) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) - count = _ffi.new("int *") - result = _lib.span_bins(s_converted, size_converted, origin_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.span_bins(s_converted, size_converted, origin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def spanset_bins( - ss: "const SpanSet *", size: "Datum", origin: "Datum" -) -> "Tuple['Span *', 'int']": + ss: Annotated[cdata, "const SpanSet *"], + size: Annotated[cdata, "Datum"], + origin: Annotated[cdata, "Datum"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) - count = _ffi.new("int *") - result = _lib.spanset_bins(ss_converted, size_converted, origin_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.spanset_bins(ss_converted, size_converted, origin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tnumber_value_bins( - temp: "const Temporal *", size: "Datum", origin: "Datum" -) -> "Tuple['Span *', 'int']": + temp: Annotated[cdata, "const Temporal *"], + size: Annotated[cdata, "Datum"], + origin: Annotated[cdata, "Datum"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) - count = _ffi.new("int *") - result = _lib.tnumber_value_bins( - temp_converted, size_converted, origin_converted, count - ) + count_converted = _ffi.cast("int *", count) + result = _lib.tnumber_value_bins(temp_converted, size_converted, origin_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tnumber_value_time_boxes( - temp: "const Temporal *", - vsize: "Datum", - duration: "const Interval *", - vorigin: "Datum", + temp: Annotated[cdata, "const Temporal *"], + vsize: Annotated[cdata, "Datum"], + duration: Annotated[cdata, "const Interval *"], + vorigin: Annotated[cdata, "Datum"], torigin: int, -) -> "Tuple['TBox *', 'int']": + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) vsize_converted = _ffi.cast("Datum", vsize) duration_converted = _ffi.cast("const Interval *", duration) vorigin_converted = _ffi.cast("Datum", vorigin) torigin_converted = _ffi.cast("TimestampTz", torigin) - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tnumber_value_time_boxes( - temp_converted, - vsize_converted, - duration_converted, - vorigin_converted, - torigin_converted, - count, + temp_converted, vsize_converted, duration_converted, vorigin_converted, torigin_converted, count_converted ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tnumber_value_split( - temp: "const Temporal *", vsize: "Datum", vorigin: "Datum", bins: "Datum **" -) -> "Tuple['Temporal **', 'int']": + temp: Annotated[cdata, "const Temporal *"], + vsize: Annotated[cdata, "Datum"], + vorigin: Annotated[cdata, "Datum"], + bins: Annotated[list, "Datum **"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Temporal **"]: temp_converted = _ffi.cast("const Temporal *", temp) vsize_converted = _ffi.cast("Datum", vsize) vorigin_converted = _ffi.cast("Datum", vorigin) bins_converted = [_ffi.cast("Datum *", x) for x in bins] - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tnumber_value_split( - temp_converted, vsize_converted, vorigin_converted, bins_converted, count + temp_converted, vsize_converted, vorigin_converted, bins_converted, count_converted ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tbox_get_value_time_tile( - value: "Datum", + value: Annotated[cdata, "Datum"], t: int, - vsize: "Datum", - duration: "const Interval *", - vorigin: "Datum", + vsize: Annotated[cdata, "Datum"], + duration: Annotated[cdata, "const Interval *"], + vorigin: Annotated[cdata, "Datum"], torigin: int, - basetype: "meosType", - spantype: "meosType", -) -> "TBox *": + basetype: Annotated[cdata, "meosType"], + spantype: Annotated[cdata, "meosType"], +) -> Annotated[cdata, "TBox *"]: value_converted = _ffi.cast("Datum", value) t_converted = _ffi.cast("TimestampTz", t) vsize_converted = _ffi.cast("Datum", vsize) @@ -17898,14 +18691,15 @@ def tbox_get_value_time_tile( def tnumber_value_time_split( - temp: "const Temporal *", - size: "Datum", - duration: "const Interval *", - vorigin: "Datum", + temp: Annotated[cdata, "const Temporal *"], + size: Annotated[cdata, "Datum"], + duration: Annotated[cdata, "const Interval *"], + vorigin: Annotated[cdata, "Datum"], torigin: int, - value_bins: "Datum **", - time_bins: "TimestampTz **", -) -> "Tuple['Temporal **', 'int']": + value_bins: Annotated[list, "Datum **"], + time_bins: Annotated[list, "TimestampTz **"], + count: Annotated[cdata, "int *"], +) -> Annotated[cdata, "Temporal **"]: temp_converted = _ffi.cast("const Temporal *", temp) size_converted = _ffi.cast("Datum", size) duration_converted = _ffi.cast("const Interval *", duration) @@ -17913,7 +18707,7 @@ def tnumber_value_time_split( torigin_converted = _ffi.cast("TimestampTz", torigin) value_bins_converted = [_ffi.cast("Datum *", x) for x in value_bins] time_bins_converted = [_ffi.cast("TimestampTz *", x) for x in time_bins] - count = _ffi.new("int *") + count_converted = _ffi.cast("int *", count) result = _lib.tnumber_value_time_split( temp_converted, size_converted, @@ -17922,19 +18716,19 @@ def tnumber_value_time_split( torigin_converted, value_bins_converted, time_bins_converted, - count, + count_converted, ) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def proj_get_context() -> "PJ_CONTEXT *": +def proj_get_context() -> Annotated[cdata, "PJ_CONTEXT *"]: result = _lib.proj_get_context() _check_error() return result if result != _ffi.NULL else None -def datum_geo_round(value: "Datum", size: "Datum") -> "Datum": +def datum_geo_round(value: Annotated[cdata, "Datum"], size: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: value_converted = _ffi.cast("Datum", value) size_converted = _ffi.cast("Datum", size) result = _lib.datum_geo_round(value_converted, size_converted) @@ -17942,7 +18736,7 @@ def datum_geo_round(value: "Datum", size: "Datum") -> "Datum": return result if result != _ffi.NULL else None -def point_round(gs: "const GSERIALIZED *", maxdd: int) -> "GSERIALIZED *": +def point_round(gs: Annotated[cdata, "const GSERIALIZED *"], maxdd: int) -> Annotated[cdata, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.point_round(gs_converted, maxdd) _check_error() @@ -17960,30 +18754,19 @@ def stbox_set( ymax: float, zmin: float, zmax: float, - s: "const Span *", - box: "STBox *", -) -> None: + s: Annotated[cdata, "const Span *"], + box: Annotated[cdata, "STBox *"], +) -> Annotated[None, "void"]: srid_converted = _ffi.cast("int32", srid) s_converted = _ffi.cast("const Span *", s) box_converted = _ffi.cast("STBox *", box) - _lib.stbox_set( - hasx, - hasz, - geodetic, - srid_converted, - xmin, - xmax, - ymin, - ymax, - zmin, - zmax, - s_converted, - box_converted, - ) + _lib.stbox_set(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted, box_converted) _check_error() -def gbox_set_stbox(box: "const GBOX *", srid: "int32_t") -> "STBox *": +def gbox_set_stbox( + box: Annotated[cdata, "const GBOX *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[cdata, "STBox *"]: box_converted = _ffi.cast("const GBOX *", box) srid_converted = _ffi.cast("int32_t", srid) out_result = _ffi.new("STBox *") @@ -17992,7 +18775,9 @@ def gbox_set_stbox(box: "const GBOX *", srid: "int32_t") -> "STBox *": return out_result if out_result != _ffi.NULL else None -def geo_set_stbox(gs: "const GSERIALIZED *", box: "STBox *") -> "bool": +def geo_set_stbox( + gs: Annotated[cdata, "const GSERIALIZED *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[bool, "bool"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) box_converted = _ffi.cast("STBox *", box) result = _lib.geo_set_stbox(gs_converted, box_converted) @@ -18000,14 +18785,18 @@ def geo_set_stbox(gs: "const GSERIALIZED *", box: "STBox *") -> "bool": return result if result != _ffi.NULL else None -def geoarr_set_stbox(values: "const Datum *", count: int, box: "STBox *") -> None: +def geoarr_set_stbox( + values: Annotated[cdata, "const Datum *"], count: int, box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: values_converted = _ffi.cast("const Datum *", values) box_converted = _ffi.cast("STBox *", box) _lib.geoarr_set_stbox(values_converted, count, box_converted) _check_error() -def spatial_set_stbox(d: "Datum", basetype: "meosType", box: "STBox *") -> "bool": +def spatial_set_stbox( + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], box: Annotated[cdata, "STBox *"] +) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) box_converted = _ffi.cast("STBox *", box) @@ -18016,56 +18805,66 @@ def spatial_set_stbox(d: "Datum", basetype: "meosType", box: "STBox *") -> "bool return result if result != _ffi.NULL else None -def spatialset_set_stbox(set: "const Set *", box: "STBox *") -> None: +def spatialset_set_stbox( + set: Annotated[cdata, "const Set *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: set_converted = _ffi.cast("const Set *", set) box_converted = _ffi.cast("STBox *", box) _lib.spatialset_set_stbox(set_converted, box_converted) _check_error() -def stbox_set_box3d(box: "const STBox *", box3d: "BOX3D *") -> None: +def stbox_set_box3d( + box: Annotated[cdata, "const STBox *"], box3d: Annotated[cdata, "BOX3D *"] +) -> Annotated[None, "void"]: box_converted = _ffi.cast("const STBox *", box) box3d_converted = _ffi.cast("BOX3D *", box3d) _lib.stbox_set_box3d(box_converted, box3d_converted) _check_error() -def stbox_set_gbox(box: "const STBox *", gbox: "GBOX *") -> None: +def stbox_set_gbox(box: Annotated[cdata, "const STBox *"], gbox: Annotated[cdata, "GBOX *"]) -> Annotated[None, "void"]: box_converted = _ffi.cast("const STBox *", box) gbox_converted = _ffi.cast("GBOX *", gbox) _lib.stbox_set_gbox(box_converted, gbox_converted) _check_error() -def tstzset_set_stbox(s: "const Set *", box: "STBox *") -> None: +def tstzset_set_stbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "STBox *"]) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("STBox *", box) _lib.tstzset_set_stbox(s_converted, box_converted) _check_error() -def tstzspan_set_stbox(s: "const Span *", box: "STBox *") -> None: +def tstzspan_set_stbox( + s: Annotated[cdata, "const Span *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Span *", s) box_converted = _ffi.cast("STBox *", box) _lib.tstzspan_set_stbox(s_converted, box_converted) _check_error() -def tstzspanset_set_stbox(s: "const SpanSet *", box: "STBox *") -> None: +def tstzspanset_set_stbox( + s: Annotated[cdata, "const SpanSet *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const SpanSet *", s) box_converted = _ffi.cast("STBox *", box) _lib.tstzspanset_set_stbox(s_converted, box_converted) _check_error() -def stbox_expand(box1: "const STBox *", box2: "STBox *") -> None: +def stbox_expand(box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "STBox *"]) -> Annotated[None, "void"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("STBox *", box2) _lib.stbox_expand(box1_converted, box2_converted) _check_error() -def inter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *": +def inter_stbox_stbox( + box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] +) -> Annotated[cdata, "STBox *"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) out_result = _ffi.new("STBox *") @@ -18076,119 +18875,127 @@ def inter_stbox_stbox(box1: "const STBox *", box2: "const STBox *") -> "STBox *" return None -def stbox_geo(box: "const STBox *") -> "GSERIALIZED *": +def stbox_geo(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "GSERIALIZED *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointinst_in(string: str) -> "TInstant *": +def tgeogpointinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tgeogpointseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpointseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeogpointseqset_in(string: str) -> "TSequenceSet *": +def tgeogpointseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointinst_in(string: str) -> "TInstant *": +def tgeompointinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeompointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tgeompointseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeompointseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeompointseqset_in(string: str) -> "TSequenceSet *": +def tgeompointseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeompointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyinst_in(string: str) -> "TInstant *": +def tgeographyinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeographyinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tgeographyseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeographyseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeographyseqset_in(string: str) -> "TSequenceSet *": +def tgeographyseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeographyseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryinst_in(string: str) -> "TInstant *": +def tgeometryinst_in(string: str) -> Annotated[cdata, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeometryinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryseq_in(string: str, interp: InterpolationType) -> "TSequence *": +def tgeometryseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeometryseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeometryseqset_in(string: str) -> "TSequenceSet *": +def tgeometryseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeometryseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_set_stbox(temp: "const Temporal *", box: "STBox *") -> None: +def tspatial_set_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("STBox *", box) _lib.tspatial_set_stbox(temp_converted, box_converted) _check_error() -def tgeoinst_set_stbox(inst: "const TInstant *", box: "STBox *") -> None: +def tgeoinst_set_stbox( + inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("STBox *", box) _lib.tgeoinst_set_stbox(inst_converted, box_converted) _check_error() -def tspatialseq_set_stbox(seq: "const TSequence *", box: "STBox *") -> None: +def tspatialseq_set_stbox( + seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("STBox *", box) _lib.tspatialseq_set_stbox(seq_converted, box_converted) _check_error() -def tspatialseqset_set_stbox(ss: "const TSequenceSet *", box: "STBox *") -> None: +def tspatialseqset_set_stbox( + ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "STBox *"] +) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("STBox *", box) _lib.tspatialseqset_set_stbox(ss_converted, box_converted) @@ -18196,24 +19003,22 @@ def tspatialseqset_set_stbox(ss: "const TSequenceSet *", box: "STBox *") -> None def tgeo_restrict_geom( - temp: "const Temporal *", - gs: "const GSERIALIZED *", - zspan: "const Span *", + temp: Annotated[cdata, "const Temporal *"], + gs: Annotated[cdata, "const GSERIALIZED *"], + zspan: Annotated[cdata, "const Span *"], atfunc: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tgeo_restrict_geom( - temp_converted, gs_converted, zspan_converted, atfunc - ) + result = _lib.tgeo_restrict_geom(temp_converted, gs_converted, zspan_converted, atfunc) _check_error() return result if result != _ffi.NULL else None def tgeo_restrict_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_restrict_stbox(temp_converted, box_converted, border_inc, atfunc) @@ -18222,90 +19027,78 @@ def tgeo_restrict_stbox( def tgeoinst_restrict_geom( - inst: "const TInstant *", - gs: "const GSERIALIZED *", - zspan: "const Span *", + inst: Annotated[cdata, "const TInstant *"], + gs: Annotated[cdata, "const GSERIALIZED *"], + zspan: Annotated[cdata, "const Span *"], atfunc: bool, -) -> "TInstant *": +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tgeoinst_restrict_geom( - inst_converted, gs_converted, zspan_converted, atfunc - ) + result = _lib.tgeoinst_restrict_geom(inst_converted, gs_converted, zspan_converted, atfunc) _check_error() return result if result != _ffi.NULL else None def tgeoinst_restrict_stbox( - inst: "const TInstant *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "TInstant *": + inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool +) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("const STBox *", box) - result = _lib.tgeoinst_restrict_stbox( - inst_converted, box_converted, border_inc, atfunc - ) + result = _lib.tgeoinst_restrict_stbox(inst_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None def tgeoseq_restrict_geom( - seq: "const TSequence *", - gs: "const GSERIALIZED *", - zspan: "const Span *", + seq: Annotated[cdata, "const TSequence *"], + gs: Annotated[cdata, "const GSERIALIZED *"], + zspan: Annotated[cdata, "const Span *"], atfunc: bool, -) -> "Temporal *": +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tgeoseq_restrict_geom( - seq_converted, gs_converted, zspan_converted, atfunc - ) + result = _lib.tgeoseq_restrict_geom(seq_converted, gs_converted, zspan_converted, atfunc) _check_error() return result if result != _ffi.NULL else None def tgeoseq_restrict_stbox( - seq: "const TSequence *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "Temporal *": + seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool +) -> Annotated[cdata, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("const STBox *", box) - result = _lib.tgeoseq_restrict_stbox( - seq_converted, box_converted, border_inc, atfunc - ) + result = _lib.tgeoseq_restrict_stbox(seq_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None def tgeoseqset_restrict_geom( - ss: "const TSequenceSet *", - gs: "const GSERIALIZED *", - zspan: "const Span *", + ss: Annotated[cdata, "const TSequenceSet *"], + gs: Annotated[cdata, "const GSERIALIZED *"], + zspan: Annotated[cdata, "const Span *"], atfunc: bool, -) -> "TSequenceSet *": +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) - result = _lib.tgeoseqset_restrict_geom( - ss_converted, gs_converted, zspan_converted, atfunc - ) + result = _lib.tgeoseqset_restrict_geom(ss_converted, gs_converted, zspan_converted, atfunc) _check_error() return result if result != _ffi.NULL else None def tgeoseqset_restrict_stbox( - ss: "const TSequenceSet *", box: "const STBox *", border_inc: bool, atfunc: bool -) -> "TSequenceSet *": + ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("const STBox *", box) - result = _lib.tgeoseqset_restrict_stbox( - ss_converted, box_converted, border_inc, atfunc - ) + result = _lib.tgeoseqset_restrict_stbox(ss_converted, box_converted, border_inc, atfunc) _check_error() return result if result != _ffi.NULL else None -def spatial_srid(d: "Datum", basetype: "meosType") -> "int32_t": +def spatial_srid(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "int32_t"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.spatial_srid(d_converted, basetype_converted) @@ -18313,7 +19106,9 @@ def spatial_srid(d: "Datum", basetype: "meosType") -> "int32_t": return result if result != _ffi.NULL else None -def spatial_set_srid(d: "Datum", basetype: "meosType", srid: "int32_t") -> "bool": +def spatial_set_srid( + d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) srid_converted = _ffi.cast("int32_t", srid) @@ -18322,14 +19117,14 @@ def spatial_set_srid(d: "Datum", basetype: "meosType", srid: "int32_t") -> "bool return result if result != _ffi.NULL else None -def tspatialinst_srid(inst: "const TInstant *") -> "int": +def tspatialinst_srid(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[int, "int"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tspatialinst_srid(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_azimuth(seq: "const TSequence *") -> "TSequenceSet *": +def tpointseq_azimuth(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_azimuth(seq_converted) _check_error() @@ -18337,22 +19132,22 @@ def tpointseq_azimuth(seq: "const TSequence *") -> "TSequenceSet *": def tpointseq_cumulative_length( - seq: "const TSequence *", prevlength: float -) -> "TSequence *": + seq: Annotated[cdata, "const TSequence *"], prevlength: float +) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_cumulative_length(seq_converted, prevlength) _check_error() return result if result != _ffi.NULL else None -def tpointseq_is_simple(seq: "const TSequence *") -> "bool": +def tpointseq_is_simple(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[bool, "bool"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_is_simple(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_length(seq: "const TSequence *") -> "double": +def tpointseq_length(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[float, "double"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_length(seq_converted) _check_error() @@ -18360,136 +19155,148 @@ def tpointseq_length(seq: "const TSequence *") -> "double": def tpointseq_linear_trajectory( - seq: "const TSequence *", unary_union: bool -) -> "GSERIALIZED *": + seq: Annotated[cdata, "const TSequence *"], unary_union: bool +) -> Annotated[cdata, "GSERIALIZED *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_linear_trajectory(seq_converted, unary_union) _check_error() return result if result != _ffi.NULL else None -def tgeoseq_stboxes(seq: "const TSequence *") -> "Tuple['STBox *', 'int']": +def tgeoseq_stboxes( + seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tgeoseq_stboxes(seq_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeoseq_stboxes(seq_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeoseq_split_n_stboxes( - seq: "const TSequence *", max_count: int -) -> "Tuple['STBox *', 'int']": + seq: Annotated[cdata, "const TSequence *"], max_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tgeoseq_split_n_stboxes(seq_converted, max_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeoseq_split_n_stboxes(seq_converted, max_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpointseqset_azimuth(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tpointseqset_azimuth(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_azimuth(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_cumulative_length(ss: "const TSequenceSet *") -> "TSequenceSet *": +def tpointseqset_cumulative_length(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_cumulative_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_is_simple(ss: "const TSequenceSet *") -> "bool": +def tpointseqset_is_simple(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_is_simple(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_length(ss: "const TSequenceSet *") -> "double": +def tpointseqset_length(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tgeoseqset_stboxes(ss: "const TSequenceSet *") -> "Tuple['STBox *', 'int']": +def tgeoseqset_stboxes( + ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tgeoseqset_stboxes(ss_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeoseqset_stboxes(ss_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None def tgeoseqset_split_n_stboxes( - ss: "const TSequenceSet *", max_count: int -) -> "Tuple['STBox *', 'int']": + ss: Annotated[cdata, "const TSequenceSet *"], max_count: int, count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "STBox *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tgeoseqset_split_n_stboxes(ss_converted, max_count, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tgeoseqset_split_n_stboxes(ss_converted, max_count, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tpoint_get_coord(temp: "const Temporal *", coord: int) -> "Temporal *": +def tpoint_get_coord(temp: Annotated[cdata, "const Temporal *"], coord: int) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_coord(temp_converted, coord) _check_error() return result if result != _ffi.NULL else None -def tgeominst_tgeoginst(inst: "const TInstant *", oper: bool) -> "TInstant *": +def tgeominst_tgeoginst(inst: Annotated[cdata, "const TInstant *"], oper: bool) -> Annotated[cdata, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tgeominst_tgeoginst(inst_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeomseq_tgeogseq(seq: "const TSequence *", oper: bool) -> "TSequence *": +def tgeomseq_tgeogseq(seq: Annotated[cdata, "const TSequence *"], oper: bool) -> Annotated[cdata, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tgeomseq_tgeogseq(seq_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeomseqset_tgeogseqset(ss: "const TSequenceSet *", oper: bool) -> "TSequenceSet *": +def tgeomseqset_tgeogseqset( + ss: Annotated[cdata, "const TSequenceSet *"], oper: bool +) -> Annotated[cdata, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tgeomseqset_tgeogseqset(ss_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeom_tgeog(temp: "const Temporal *", oper: bool) -> "Temporal *": +def tgeom_tgeog(temp: Annotated[cdata, "const Temporal *"], oper: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeom_tgeog(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeo_tpoint(temp: "const Temporal *", oper: bool) -> "Temporal *": +def tgeo_tpoint(temp: Annotated[cdata, "const Temporal *"], oper: bool) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_tpoint(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tspatialinst_set_srid(inst: "TInstant *", srid: "int32_t") -> None: +def tspatialinst_set_srid( + inst: Annotated[cdata, "TInstant *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[None, "void"]: inst_converted = _ffi.cast("TInstant *", inst) srid_converted = _ffi.cast("int32_t", srid) _lib.tspatialinst_set_srid(inst_converted, srid_converted) _check_error() -def tpointseq_make_simple(seq: "const TSequence *") -> "Tuple['TSequence **', 'int']": +def tpointseq_make_simple( + seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TSequence **"]: seq_converted = _ffi.cast("const TSequence *", seq) - count = _ffi.new("int *") - result = _lib.tpointseq_make_simple(seq_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tpointseq_make_simple(seq_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tspatialseq_set_srid(seq: "TSequence *", srid: "int32_t") -> None: +def tspatialseq_set_srid( + seq: Annotated[cdata, "TSequence *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[None, "void"]: seq_converted = _ffi.cast("TSequence *", seq) srid_converted = _ffi.cast("int32_t", srid) _lib.tspatialseq_set_srid(seq_converted, srid_converted) @@ -18497,37 +19304,39 @@ def tspatialseq_set_srid(seq: "TSequence *", srid: "int32_t") -> None: def tpointseqset_make_simple( - ss: "const TSequenceSet *", -) -> "Tuple['TSequence **', 'int']": + ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "TSequence **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) - count = _ffi.new("int *") - result = _lib.tpointseqset_make_simple(ss_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tpointseqset_make_simple(ss_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tspatialseqset_set_srid(ss: "TSequenceSet *", srid: "int32_t") -> None: +def tspatialseqset_set_srid( + ss: Annotated[cdata, "TSequenceSet *"], srid: Annotated[cdata, "int32_t"] +) -> Annotated[None, "void"]: ss_converted = _ffi.cast("TSequenceSet *", ss) srid_converted = _ffi.cast("int32_t", srid) _lib.tspatialseqset_set_srid(ss_converted, srid_converted) _check_error() -def tpointseq_twcentroid(seq: "const TSequence *") -> "GSERIALIZED *": +def tpointseq_twcentroid(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "GSERIALIZED *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_twcentroid(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_twcentroid(ss: "const TSequenceSet *") -> "GSERIALIZED *": +def tpointseqset_twcentroid(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "GSERIALIZED *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_twcentroid(ss_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_as_ewkt(np: "const Npoint *", maxdd: int) -> str: +def npoint_as_ewkt(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_as_ewkt(np_converted, maxdd) _check_error() @@ -18535,7 +19344,9 @@ def npoint_as_ewkt(np: "const Npoint *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def npoint_as_hexwkb(np: "const Npoint *", variant: int) -> "Tuple[str, 'size_t *']": +def npoint_as_hexwkb( + np: Annotated[cdata, "const Npoint *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: np_converted = _ffi.cast("const Npoint *", np) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -18545,7 +19356,7 @@ def npoint_as_hexwkb(np: "const Npoint *", variant: int) -> "Tuple[str, 'size_t return result if result != _ffi.NULL else None, size_out[0] -def npoint_as_text(np: "const Npoint *", maxdd: int) -> str: +def npoint_as_text(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_as_text(np_converted, maxdd) _check_error() @@ -18554,8 +19365,8 @@ def npoint_as_text(np: "const Npoint *", maxdd: int) -> str: def npoint_as_wkb( - np: "const Npoint *", variant: int -) -> "Tuple['uint8_t *', 'size_t *']": + np: Annotated[cdata, "const Npoint *"], variant: int +) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: np_converted = _ffi.cast("const Npoint *", np) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -18564,14 +19375,16 @@ def npoint_as_wkb( return result if result != _ffi.NULL else None, size_out[0] -def npoint_from_hexwkb(hexwkb: str) -> "Npoint *": +def npoint_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Npoint *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.npoint_from_hexwkb(hexwkb_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_from_wkb(wkb: "const uint8_t *", size: "size_t") -> "Npoint *": +def npoint_from_wkb( + wkb: Annotated[cdata, "const uint8_t *"], size: Annotated[cdata, "size_t"] +) -> Annotated[cdata, "Npoint *"]: wkb_converted = _ffi.cast("const uint8_t *", wkb) size_converted = _ffi.cast("size_t", size) result = _lib.npoint_from_wkb(wkb_converted, size_converted) @@ -18579,14 +19392,14 @@ def npoint_from_wkb(wkb: "const uint8_t *", size: "size_t") -> "Npoint *": return result if result != _ffi.NULL else None -def npoint_in(string: str) -> "Npoint *": +def npoint_in(string: str) -> Annotated[cdata, "Npoint *"]: string_converted = string.encode("utf-8") result = _lib.npoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_out(np: "const Npoint *", maxdd: int) -> str: +def npoint_out(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_out(np_converted, maxdd) _check_error() @@ -18594,14 +19407,14 @@ def npoint_out(np: "const Npoint *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def nsegment_in(string: str) -> "Nsegment *": +def nsegment_in(string: str) -> Annotated[cdata, "Nsegment *"]: string_converted = string.encode("utf-8") result = _lib.nsegment_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_out(ns: "const Nsegment *", maxdd: int) -> str: +def nsegment_out(ns: Annotated[cdata, "const Nsegment *"], maxdd: int) -> Annotated[str, "char *"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_out(ns_converted, maxdd) _check_error() @@ -18609,77 +19422,77 @@ def nsegment_out(ns: "const Nsegment *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def npoint_make(rid: int, pos: float) -> "Npoint *": +def npoint_make(rid: int, pos: float) -> Annotated[cdata, "Npoint *"]: rid_converted = _ffi.cast("int64", rid) result = _lib.npoint_make(rid_converted, pos) _check_error() return result if result != _ffi.NULL else None -def nsegment_make(rid: int, pos1: float, pos2: float) -> "Nsegment *": +def nsegment_make(rid: int, pos1: float, pos2: float) -> Annotated[cdata, "Nsegment *"]: rid_converted = _ffi.cast("int64", rid) result = _lib.nsegment_make(rid_converted, pos1, pos2) _check_error() return result if result != _ffi.NULL else None -def geompoint_to_npoint(gs: "const GSERIALIZED *") -> "Npoint *": +def geompoint_to_npoint(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Npoint *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geompoint_to_npoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_to_nsegment(gs: "const GSERIALIZED *") -> "Nsegment *": +def geom_to_nsegment(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Nsegment *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_to_nsegment(gs_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_geompoint(np: "const Npoint *") -> "GSERIALIZED *": +def npoint_to_geompoint(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "GSERIALIZED *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_geompoint(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_nsegment(np: "const Npoint *") -> "Nsegment *": +def npoint_to_nsegment(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "Nsegment *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_nsegment(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_stbox(np: "const Npoint *") -> "STBox *": +def npoint_to_stbox(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "STBox *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_to_geom(ns: "const Nsegment *") -> "GSERIALIZED *": +def nsegment_to_geom(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[cdata, "GSERIALIZED *"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_to_geom(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_to_stbox(np: "const Nsegment *") -> "STBox *": +def nsegment_to_stbox(np: Annotated[cdata, "const Nsegment *"]) -> Annotated[cdata, "STBox *"]: np_converted = _ffi.cast("const Nsegment *", np) result = _lib.nsegment_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_hash(np: "const Npoint *") -> "uint32": +def npoint_hash(np: Annotated[cdata, "const Npoint *"]) -> Annotated[int, "uint32"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_hash(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_hash_extended(np: "const Npoint *", seed: int) -> "uint64": +def npoint_hash_extended(np: Annotated[cdata, "const Npoint *"], seed: int) -> Annotated[int, "uint64"]: np_converted = _ffi.cast("const Npoint *", np) seed_converted = _ffi.cast("uint64", seed) result = _lib.npoint_hash_extended(np_converted, seed_converted) @@ -18687,97 +19500,97 @@ def npoint_hash_extended(np: "const Npoint *", seed: int) -> "uint64": return result if result != _ffi.NULL else None -def npoint_position(np: "const Npoint *") -> "double": +def npoint_position(np: Annotated[cdata, "const Npoint *"]) -> Annotated[float, "double"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_position(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_route(np: "const Npoint *") -> "int64": +def npoint_route(np: Annotated[cdata, "const Npoint *"]) -> Annotated[int, "int64"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_route(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_end_position(ns: "const Nsegment *") -> "double": +def nsegment_end_position(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[float, "double"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_end_position(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_route(ns: "const Nsegment *") -> "int64": +def nsegment_route(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[int, "int64"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_route(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_start_position(ns: "const Nsegment *") -> "double": +def nsegment_start_position(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[float, "double"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_start_position(ns_converted) _check_error() return result if result != _ffi.NULL else None -def route_exists(rid: int) -> "bool": +def route_exists(rid: int) -> Annotated[bool, "bool"]: rid_converted = _ffi.cast("int64", rid) result = _lib.route_exists(rid_converted) _check_error() return result if result != _ffi.NULL else None -def route_geom(rid: int) -> "GSERIALIZED *": +def route_geom(rid: int) -> Annotated[cdata, "GSERIALIZED *"]: rid_converted = _ffi.cast("int64", rid) result = _lib.route_geom(rid_converted) _check_error() return result if result != _ffi.NULL else None -def route_length(rid: int) -> "double": +def route_length(rid: int) -> Annotated[float, "double"]: rid_converted = _ffi.cast("int64", rid) result = _lib.route_length(rid_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_round(np: "const Npoint *", maxdd: int) -> "Npoint *": +def npoint_round(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[cdata, "Npoint *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_round(np_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def nsegment_round(ns: "const Nsegment *", maxdd: int) -> "Nsegment *": +def nsegment_round(ns: Annotated[cdata, "const Nsegment *"], maxdd: int) -> Annotated[cdata, "Nsegment *"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_round(ns_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def get_srid_ways() -> "int32_t": +def get_srid_ways() -> Annotated[cdata, "int32_t"]: result = _lib.get_srid_ways() _check_error() return result if result != _ffi.NULL else None -def npoint_srid(np: "const Npoint *") -> "int32_t": +def npoint_srid(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "int32_t"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_srid(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_srid(ns: "const Nsegment *") -> "int32_t": +def nsegment_srid(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[cdata, "int32_t"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_srid(ns_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_timestamptz_to_stbox(np: "const Npoint *", t: int) -> "STBox *": +def npoint_timestamptz_to_stbox(np: Annotated[cdata, "const Npoint *"], t: int) -> Annotated[cdata, "STBox *"]: np_converted = _ffi.cast("const Npoint *", np) t_converted = _ffi.cast("TimestampTz", t) result = _lib.npoint_timestamptz_to_stbox(np_converted, t_converted) @@ -18785,7 +19598,9 @@ def npoint_timestamptz_to_stbox(np: "const Npoint *", t: int) -> "STBox *": return result if result != _ffi.NULL else None -def npoint_tstzspan_to_stbox(np: "const Npoint *", s: "const Span *") -> "STBox *": +def npoint_tstzspan_to_stbox( + np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Span *"] +) -> Annotated[cdata, "STBox *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Span *", s) result = _lib.npoint_tstzspan_to_stbox(np_converted, s_converted) @@ -18793,7 +19608,9 @@ def npoint_tstzspan_to_stbox(np: "const Npoint *", s: "const Span *") -> "STBox return result if result != _ffi.NULL else None -def npoint_cmp(np1: "const Npoint *", np2: "const Npoint *") -> "int": +def npoint_cmp( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[int, "int"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_cmp(np1_converted, np2_converted) @@ -18801,7 +19618,9 @@ def npoint_cmp(np1: "const Npoint *", np2: "const Npoint *") -> "int": return result if result != _ffi.NULL else None -def npoint_eq(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_eq( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_eq(np1_converted, np2_converted) @@ -18809,7 +19628,9 @@ def npoint_eq(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def npoint_ge(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_ge( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_ge(np1_converted, np2_converted) @@ -18817,7 +19638,9 @@ def npoint_ge(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def npoint_gt(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_gt( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_gt(np1_converted, np2_converted) @@ -18825,7 +19648,9 @@ def npoint_gt(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def npoint_le(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_le( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_le(np1_converted, np2_converted) @@ -18833,7 +19658,9 @@ def npoint_le(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def npoint_lt(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_lt( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_lt(np1_converted, np2_converted) @@ -18841,7 +19668,9 @@ def npoint_lt(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def npoint_ne(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_ne( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_ne(np1_converted, np2_converted) @@ -18849,7 +19678,9 @@ def npoint_ne(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def npoint_same(np1: "const Npoint *", np2: "const Npoint *") -> "bool": +def npoint_same( + np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] +) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) result = _lib.npoint_same(np1_converted, np2_converted) @@ -18857,7 +19688,9 @@ def npoint_same(np1: "const Npoint *", np2: "const Npoint *") -> "bool": return result if result != _ffi.NULL else None -def nsegment_cmp(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "int": +def nsegment_cmp( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[int, "int"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_cmp(ns1_converted, ns2_converted) @@ -18865,7 +19698,9 @@ def nsegment_cmp(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "int": return result if result != _ffi.NULL else None -def nsegment_eq(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": +def nsegment_eq( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_eq(ns1_converted, ns2_converted) @@ -18873,7 +19708,9 @@ def nsegment_eq(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": return result if result != _ffi.NULL else None -def nsegment_ge(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": +def nsegment_ge( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_ge(ns1_converted, ns2_converted) @@ -18881,7 +19718,9 @@ def nsegment_ge(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": return result if result != _ffi.NULL else None -def nsegment_gt(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": +def nsegment_gt( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_gt(ns1_converted, ns2_converted) @@ -18889,7 +19728,9 @@ def nsegment_gt(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": return result if result != _ffi.NULL else None -def nsegment_le(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": +def nsegment_le( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_le(ns1_converted, ns2_converted) @@ -18897,7 +19738,9 @@ def nsegment_le(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": return result if result != _ffi.NULL else None -def nsegment_lt(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": +def nsegment_lt( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_lt(ns1_converted, ns2_converted) @@ -18905,7 +19748,9 @@ def nsegment_lt(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": return result if result != _ffi.NULL else None -def nsegment_ne(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": +def nsegment_ne( + ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] +) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) result = _lib.nsegment_ne(ns1_converted, ns2_converted) @@ -18913,14 +19758,14 @@ def nsegment_ne(ns1: "const Nsegment *", ns2: "const Nsegment *") -> "bool": return result if result != _ffi.NULL else None -def npointset_in(string: str) -> "Set *": +def npointset_in(string: str) -> Annotated[cdata, "Set *"]: string_converted = string.encode("utf-8") result = _lib.npointset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_out(s: "const Set *", maxdd: int) -> str: +def npointset_out(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_out(s_converted, maxdd) _check_error() @@ -18928,42 +19773,42 @@ def npointset_out(s: "const Set *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def npointset_make(values: "const Npoint **", count: int) -> "Set *": +def npointset_make(values: Annotated[list, "const Npoint **"], count: int) -> Annotated[cdata, "Set *"]: values_converted = [_ffi.cast("const Npoint *", x) for x in values] result = _lib.npointset_make(values_converted, count) _check_error() return result if result != _ffi.NULL else None -def npoint_to_set(np: "const Npoint *") -> "Set *": +def npoint_to_set(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_set(np_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_end_value(s: "const Set *") -> "Npoint *": +def npointset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Npoint *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_routes(s: "const Set *") -> "Set *": +def npointset_routes(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_routes(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_start_value(s: "const Set *") -> "Npoint *": +def npointset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Npoint *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_value_n(s: "const Set *", n: int) -> "Npoint **": +def npointset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list, "Npoint **"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Npoint **") result = _lib.npointset_value_n(s_converted, n, out_result) @@ -18973,14 +19818,16 @@ def npointset_value_n(s: "const Set *", n: int) -> "Npoint **": return None -def npointset_values(s: "const Set *") -> "Npoint **": +def npointset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Npoint **"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_npoint_set(np: "const Npoint *", s: "const Set *") -> "bool": +def contained_npoint_set( + np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[bool, "bool"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_npoint_set(np_converted, s_converted) @@ -18988,7 +19835,9 @@ def contained_npoint_set(np: "const Npoint *", s: "const Set *") -> "bool": return result if result != _ffi.NULL else None -def contains_set_npoint(s: "const Set *", np: "Npoint *") -> "bool": +def contains_set_npoint( + s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "Npoint *"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("Npoint *", np) result = _lib.contains_set_npoint(s_converted, np_converted) @@ -18996,7 +19845,9 @@ def contains_set_npoint(s: "const Set *", np: "Npoint *") -> "bool": return result if result != _ffi.NULL else None -def intersection_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": +def intersection_npoint_set( + np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_npoint_set(np_converted, s_converted) @@ -19004,7 +19855,9 @@ def intersection_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def intersection_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": +def intersection_set_npoint( + s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("const Npoint *", np) result = _lib.intersection_set_npoint(s_converted, np_converted) @@ -19012,7 +19865,9 @@ def intersection_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": return result if result != _ffi.NULL else None -def minus_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": +def minus_npoint_set( + np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_npoint_set(np_converted, s_converted) @@ -19020,7 +19875,9 @@ def minus_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def minus_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": +def minus_set_npoint( + s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("const Npoint *", np) result = _lib.minus_set_npoint(s_converted, np_converted) @@ -19028,7 +19885,9 @@ def minus_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": return result if result != _ffi.NULL else None -def npoint_union_transfn(state: "Set *", np: "const Npoint *") -> "Set *": +def npoint_union_transfn( + state: Annotated[cdata, "Set *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Set *"]: state_converted = _ffi.cast("Set *", state) np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_union_transfn(state_converted, np_converted) @@ -19036,7 +19895,9 @@ def npoint_union_transfn(state: "Set *", np: "const Npoint *") -> "Set *": return result if result != _ffi.NULL else None -def union_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": +def union_npoint_set( + np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.union_npoint_set(np_converted, s_converted) @@ -19044,7 +19905,9 @@ def union_npoint_set(np: "const Npoint *", s: "const Set *") -> "Set *": return result if result != _ffi.NULL else None -def union_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": +def union_set_npoint( + s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Set *"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("const Npoint *", np) result = _lib.union_set_npoint(s_converted, np_converted) @@ -19052,14 +19915,14 @@ def union_set_npoint(s: "const Set *", np: "const Npoint *") -> "Set *": return result if result != _ffi.NULL else None -def tnpoint_in(string: str) -> "Temporal *": +def tnpoint_in(string: str) -> Annotated[cdata, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tnpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_out(temp: "const Temporal *", maxdd: int) -> str: +def tnpoint_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_out(temp_converted, maxdd) _check_error() @@ -19067,7 +19930,7 @@ def tnpoint_out(temp: "const Temporal *", maxdd: int) -> str: return result if result != _ffi.NULL else None -def tnpointinst_make(np: "const Npoint *", t: int) -> "TInstant *": +def tnpointinst_make(np: Annotated[cdata, "const Npoint *"], t: int) -> Annotated[cdata, "TInstant *"]: np_converted = _ffi.cast("const Npoint *", np) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tnpointinst_make(np_converted, t_converted) @@ -19075,71 +19938,73 @@ def tnpointinst_make(np: "const Npoint *", t: int) -> "TInstant *": return result if result != _ffi.NULL else None -def tgeompoint_to_tnpoint(temp: "const Temporal *") -> "Temporal *": +def tgeompoint_to_tnpoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeompoint_to_tnpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_to_tgeompoint(temp: "const Temporal *") -> "Temporal *": +def tnpoint_to_tgeompoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_cumulative_length(temp: "const Temporal *") -> "Temporal *": +def tnpoint_cumulative_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_length(temp: "const Temporal *") -> "double": +def tnpoint_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_positions(temp: "const Temporal *") -> "Tuple['Nsegment **', 'int']": +def tnpoint_positions( + temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] +) -> Annotated[cdata, "Nsegment **"]: temp_converted = _ffi.cast("const Temporal *", temp) - count = _ffi.new("int *") - result = _lib.tnpoint_positions(temp_converted, count) + count_converted = _ffi.cast("int *", count) + result = _lib.tnpoint_positions(temp_converted, count_converted) _check_error() - return result if result != _ffi.NULL else None, count[0] + return result if result != _ffi.NULL else None -def tnpoint_route(temp: "const Temporal *") -> "int64": +def tnpoint_route(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int64"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_route(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_routes(temp: "const Temporal *") -> "Set *": +def tnpoint_routes(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Set *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_routes(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_speed(temp: "const Temporal *") -> "Temporal *": +def tnpoint_speed(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_speed(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_trajectory(temp: "const Temporal *") -> "GSERIALIZED *": +def tnpoint_trajectory(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_trajectory(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_twcentroid(temp: "const Temporal *") -> "GSERIALIZED *": +def tnpoint_twcentroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_twcentroid(temp_converted) _check_error() @@ -19147,8 +20012,8 @@ def tnpoint_twcentroid(temp: "const Temporal *") -> "GSERIALIZED *": def tnpoint_at_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tnpoint_at_geom(temp_converted, gs_converted) @@ -19156,7 +20021,9 @@ def tnpoint_at_geom( return result if result != _ffi.NULL else None -def tnpoint_at_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Temporal *": +def tnpoint_at_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tnpoint_at_npoint(temp_converted, np_converted) @@ -19164,7 +20031,9 @@ def tnpoint_at_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Tempor return result if result != _ffi.NULL else None -def tnpoint_at_npointset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": +def tnpoint_at_npointset( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.tnpoint_at_npointset(temp_converted, s_converted) @@ -19173,8 +20042,8 @@ def tnpoint_at_npointset(temp: "const Temporal *", s: "const Set *") -> "Tempora def tnpoint_at_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tnpoint_at_stbox(temp_converted, box_converted, border_inc) @@ -19183,8 +20052,8 @@ def tnpoint_at_stbox( def tnpoint_minus_geom( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tnpoint_minus_geom(temp_converted, gs_converted) @@ -19193,8 +20062,8 @@ def tnpoint_minus_geom( def tnpoint_minus_npoint( - temp: "const Temporal *", np: "const Npoint *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tnpoint_minus_npoint(temp_converted, np_converted) @@ -19202,7 +20071,9 @@ def tnpoint_minus_npoint( return result if result != _ffi.NULL else None -def tnpoint_minus_npointset(temp: "const Temporal *", s: "const Set *") -> "Temporal *": +def tnpoint_minus_npointset( + temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.tnpoint_minus_npointset(temp_converted, s_converted) @@ -19211,8 +20082,8 @@ def tnpoint_minus_npointset(temp: "const Temporal *", s: "const Set *") -> "Temp def tnpoint_minus_stbox( - temp: "const Temporal *", box: "const STBox *", border_inc: bool -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tnpoint_minus_stbox(temp_converted, box_converted, border_inc) @@ -19221,8 +20092,8 @@ def tnpoint_minus_stbox( def tdistance_tnpoint_npoint( - temp: "const Temporal *", np: "const Npoint *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tdistance_tnpoint_npoint(temp_converted, np_converted) @@ -19231,8 +20102,8 @@ def tdistance_tnpoint_npoint( def tdistance_tnpoint_point( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "Temporal *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdistance_tnpoint_point(temp_converted, gs_converted) @@ -19241,8 +20112,8 @@ def tdistance_tnpoint_point( def tdistance_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "Temporal *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19250,7 +20121,9 @@ def tdistance_tnpoint_tnpoint( return result if result != _ffi.NULL else None -def nad_tnpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "double": +def nad_tnpoint_geo( + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nad_tnpoint_geo(temp_converted, gs_converted) @@ -19258,7 +20131,9 @@ def nad_tnpoint_geo(temp: "const Temporal *", gs: "const GSERIALIZED *") -> "dou return result if result != _ffi.NULL else None -def nad_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "double": +def nad_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.nad_tnpoint_npoint(temp_converted, np_converted) @@ -19266,7 +20141,9 @@ def nad_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "doubl return result if result != _ffi.NULL else None -def nad_tnpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "double": +def nad_tnpoint_stbox( + temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] +) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.nad_tnpoint_stbox(temp_converted, box_converted) @@ -19275,8 +20152,8 @@ def nad_tnpoint_stbox(temp: "const Temporal *", box: "const STBox *") -> "double def nad_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "double": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nad_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19285,8 +20162,8 @@ def nad_tnpoint_tnpoint( def nai_tnpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "TInstant *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nai_tnpoint_geo(temp_converted, gs_converted) @@ -19294,7 +20171,9 @@ def nai_tnpoint_geo( return result if result != _ffi.NULL else None -def nai_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "TInstant *": +def nai_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.nai_tnpoint_npoint(temp_converted, np_converted) @@ -19303,8 +20182,8 @@ def nai_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "TInst def nai_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "TInstant *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "TInstant *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nai_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19313,8 +20192,8 @@ def nai_tnpoint_tnpoint( def shortestline_tnpoint_geo( - temp: "const Temporal *", gs: "const GSERIALIZED *" -) -> "GSERIALIZED *": + temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] +) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.shortestline_tnpoint_geo(temp_converted, gs_converted) @@ -19323,8 +20202,8 @@ def shortestline_tnpoint_geo( def shortestline_tnpoint_npoint( - temp: "const Temporal *", np: "const Npoint *" -) -> "GSERIALIZED *": + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.shortestline_tnpoint_npoint(temp_converted, np_converted) @@ -19333,8 +20212,8 @@ def shortestline_tnpoint_npoint( def shortestline_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "GSERIALIZED *": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[cdata, "GSERIALIZED *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.shortestline_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19342,7 +20221,9 @@ def shortestline_tnpoint_tnpoint( return result if result != _ffi.NULL else None -def tnpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipList *": +def tnpoint_tcentroid_transfn( + state: Annotated[cdata, "SkipList *"], temp: Annotated[cdata, "Temporal *"] +) -> Annotated[cdata, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("Temporal *", temp) result = _lib.tnpoint_tcentroid_transfn(state_converted, temp_converted) @@ -19350,7 +20231,9 @@ def tnpoint_tcentroid_transfn(state: "SkipList *", temp: "Temporal *") -> "SkipL return result if result != _ffi.NULL else None -def always_eq_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": +def always_eq_npoint_tnpoint( + np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_npoint_tnpoint(np_converted, temp_converted) @@ -19358,7 +20241,9 @@ def always_eq_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def always_eq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": +def always_eq_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.always_eq_tnpoint_npoint(temp_converted, np_converted) @@ -19367,8 +20252,8 @@ def always_eq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> def always_eq_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_eq_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19376,7 +20261,9 @@ def always_eq_tnpoint_tnpoint( return result if result != _ffi.NULL else None -def always_ne_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": +def always_ne_npoint_tnpoint( + np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_npoint_tnpoint(np_converted, temp_converted) @@ -19384,7 +20271,9 @@ def always_ne_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> return result if result != _ffi.NULL else None -def always_ne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": +def always_ne_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.always_ne_tnpoint_npoint(temp_converted, np_converted) @@ -19393,8 +20282,8 @@ def always_ne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> def always_ne_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.always_ne_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19402,7 +20291,9 @@ def always_ne_tnpoint_tnpoint( return result if result != _ffi.NULL else None -def ever_eq_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": +def ever_eq_npoint_tnpoint( + np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_npoint_tnpoint(np_converted, temp_converted) @@ -19410,7 +20301,9 @@ def ever_eq_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "i return result if result != _ffi.NULL else None -def ever_eq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": +def ever_eq_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.ever_eq_tnpoint_npoint(temp_converted, np_converted) @@ -19419,8 +20312,8 @@ def ever_eq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "i def ever_eq_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_eq_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19428,7 +20321,9 @@ def ever_eq_tnpoint_tnpoint( return result if result != _ffi.NULL else None -def ever_ne_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "int": +def ever_ne_npoint_tnpoint( + np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_npoint_tnpoint(np_converted, temp_converted) @@ -19436,7 +20331,9 @@ def ever_ne_npoint_tnpoint(np: "const Npoint *", temp: "const Temporal *") -> "i return result if result != _ffi.NULL else None -def ever_ne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "int": +def ever_ne_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.ever_ne_tnpoint_npoint(temp_converted, np_converted) @@ -19445,8 +20342,8 @@ def ever_ne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "i def ever_ne_tnpoint_tnpoint( - temp1: "const Temporal *", temp2: "const Temporal *" -) -> "int": + temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] +) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ever_ne_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -19454,7 +20351,9 @@ def ever_ne_tnpoint_tnpoint( return result if result != _ffi.NULL else None -def teq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Temporal *": +def teq_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.teq_tnpoint_npoint(temp_converted, np_converted) @@ -19462,7 +20361,9 @@ def teq_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Tempo return result if result != _ffi.NULL else None -def tne_tnpoint_npoint(temp: "const Temporal *", np: "const Npoint *") -> "Temporal *": +def tne_tnpoint_npoint( + temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] +) -> Annotated[cdata, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tne_tnpoint_npoint(temp_converted, np_converted) diff --git a/setup.py b/setup.py index 8337b77..5da93d7 100644 --- a/setup.py +++ b/setup.py @@ -6,9 +6,7 @@ def package_proj_data() -> str: print("Copying PROJ data to package data") - projdatadir = os.environ.get( - "PROJ_DATA", os.environ.get("PROJ_LIB", "/usr/local/share/proj") - ) + projdatadir = os.environ.get("PROJ_DATA", os.environ.get("PROJ_LIB", "/usr/local/share/proj")) if os.path.exists(projdatadir): shutil.rmtree("pymeos_cffi/proj_data", ignore_errors=True) shutil.copytree( @@ -18,17 +16,14 @@ def package_proj_data() -> str: ) # Don't copy .tiff files and their related .txt files else: raise FileNotFoundError( - f"PROJ data directory not found at {projdatadir}. " - f"Unable to generate self-contained wheel." + f"PROJ data directory not found at {projdatadir}. Unable to generate self-contained wheel." ) return "proj_data/*" def package_meos_data() -> str: print("Copying MEOS spatial reference table to package data") - spatial_ref_sys_path = os.environ.get( - "MEOS_SPATIAL_REF_SYS_PATH", "/usr/local/share/spatial_ref_sys.csv" - ) + spatial_ref_sys_path = os.environ.get("MEOS_SPATIAL_REF_SYS_PATH", "/usr/local/share/spatial_ref_sys.csv") shutil.rmtree("pymeos_cffi/meos_data", ignore_errors=True) os.makedirs("pymeos_cffi/meos_data", exist_ok=True) shutil.copy( From 137f452b310d2b4397dde692c5b6555c14e4f5cf Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 18:42:47 +0200 Subject: [PATCH 31/36] Remove builds for 3.8 and 3.9 and bring back macOS 13 --- .github/workflows/build_pymeos_cffi.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index df05246..c874238 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -112,7 +112,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.10 cache: "pip" - name: Setup pip @@ -137,8 +137,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: -# os: [ ubuntu-latest, macos-13, macos-14 ] - os: [ ubuntu-latest, macos-14 ] + os: [ ubuntu-latest, macos-13, macos-14 ] include: - ld_prefix: "/usr/local" - os: macos-14 @@ -156,11 +155,7 @@ jobs: - name: Update brew if: matrix.os == 'macos-13' - # Necessary to avoid issue with macOS runners. See - # https://github.com/actions/runner-images/issues/4020 run: | - brew reinstall python@3.12 || brew link --overwrite python@3.12 - brew reinstall python@3.11 || brew link --overwrite python@3.11 brew update - name: Get PROJ version @@ -211,8 +206,8 @@ jobs: export PACKAGE_DATA=1 python -m cibuildwheel --output-dir wheelhouse env: - # Disable builds on musllinux and python 3.14 - CIBW_SKIP: "*musllinux* cp314*" + # Disable builds on musllinux and python 3.8, 3.9 and 3.14 + CIBW_SKIP: "*musllinux* cp38* cp39* cp314*" # Disable builds in linux architectures other than x86_64 CIBW_ARCHS_LINUX: "x86_64" CIBW_ENVIRONMENT_PASS_LINUX: PACKAGE_DATA LD_LIBRARY_PATH PROJ_DATA C_INCLUDE_PATH @@ -246,9 +241,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ] + python-version: [ "3.10", "3.11", "3.12", "3.13" ] os: [ ubuntu-latest, macos-13, macos-14 ] -# os: [ ubuntu-latest, macos-14 ] steps: - name: Checkout From f034a03984964fdc5c5be511ee6400019ad4fea3 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 18:51:07 +0200 Subject: [PATCH 32/36] Use master branch if no tag is found --- .github/workflows/build_pymeos_cffi.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index c874238..ddc8797 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -16,6 +16,7 @@ jobs: is_rc: ${{ steps.check_rc.outputs.is_rc }} is_prerelease: ${{ steps.check_prerelease.outputs.is_prerelease }} branch: ${{ steps.check_branch.outputs.branch }} + meos_branch: ${{ steps.check_branch.outputs.meos_branch }} version: ${{ steps.check_version.outputs.version }} steps: @@ -90,8 +91,19 @@ jobs: run: | raw=$(git branch -r --contains ${{ github.ref }}) branch=${raw##*/} - echo "branch=$branch" >> $GITHUB_OUTPUT echo "Branch is $branch." + if [ -z "$branch" ]; then + branch="master" + echo "Branch not found. Using master." + fi + echo "branch=$branch" >> $GITHUB_OUTPUT + exists=$(git ls-remote https://github.com/MobilityDB/MobilityDB $branch) + meos_branch="master" + if [ -n "$exists" ]; then + meos_branch=$branch + fi + echo "MEOS branch is $meos_branch." + echo "meos_branch=$meos_branch" >> $GITHUB_OUTPUT - name: Check version id: check_version @@ -169,7 +181,7 @@ jobs: - name: Install MEOS if: runner.os == 'macOS' run: | - git clone --depth 1 --branch ${{ needs.checks.outputs.branch }} https://github.com/MobilityDB/MobilityDB + git clone --depth 1 https://github.com/MobilityDB/MobilityDB mkdir MobilityDB/build cd MobilityDB/build export MACOSX_DEPLOYMENT_TARGET="${{ matrix.os == 'macos-14' && 14 || 13.6 }}" @@ -218,7 +230,7 @@ jobs: dnf -qy module disable postgresql && dnf -y update && dnf -y install gcc gcc-c++ make cmake postgresql16-devel proj81-devel geos39-devel gsl-devel json-c-devel && - git clone --depth 1 --branch ${{ needs.checks.outputs.branch }} https://github.com/MobilityDB/MobilityDB && + git clone --depth 1 --branch ${{ needs.checks.outputs.meos_branch }} https://github.com/MobilityDB/MobilityDB && mkdir MobilityDB/build && cd MobilityDB/build && cmake .. -DMEOS=on -DGEOS_INCLUDE_DIR=/usr/geos39/include/ -DGEOS_LIBRARY=/usr/geos39/lib64/libgeos_c.so -DGEOS_CONFIG=/usr/geos39/bin/geos-config -DPROJ_INCLUDE_DIRS=/usr/proj81/include/ -DPROJ_LIBRARIES=/usr/proj81/lib/libproj.so && From 05157625939cd3413cff7cf9b2fcc715d81937bf Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 19:19:40 +0200 Subject: [PATCH 33/36] Update pyproject.toml --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0167864..3ec57ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,10 +20,10 @@ classifiers = [ 'Programming Language :: C', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: Implementation :: CPython', 'Operating System :: POSIX', @@ -32,7 +32,7 @@ classifiers = [ readme = 'README.md' license = { file = 'LICENSE' } -requires-python = '>=3.8' +requires-python = '>=3.10' dependencies = [ 'cffi', 'python-dateutil', From 4e4b60f6eec27bae726d47518bc8d5da75bb0060 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 19:26:44 +0200 Subject: [PATCH 34/36] Update cdata typing (_ffi.CData) --- builder/build_pymeos_functions.py | 4 +- builder/build_pymeos_functions_modifiers.py | 12 +- builder/meos.h | 23 +- builder/templates/functions.py | 17 +- pymeos_cffi/functions.py | 6220 ++++++++++--------- pyproject.toml | 1 - 6 files changed, 3324 insertions(+), 2953 deletions(-) diff --git a/builder/build_pymeos_functions.py b/builder/build_pymeos_functions.py index a7b1c2d..cf30396 100644 --- a/builder/build_pymeos_functions.py +++ b/builder/build_pymeos_functions.py @@ -376,7 +376,7 @@ def get_param_conversion(param_type: str) -> Conversion: else: return Conversion( param_type, - f"Annotated[cdata, '{param_type}']", + f"Annotated[_ffi.CData, '{param_type}']", lambda name: f"_ffi.cast('{param_type}', {name})", lambda name: name, ) @@ -393,7 +393,7 @@ def get_return_type(inner_return_type) -> ReturnType: conversion.c_to_p("result") if conversion.c_to_p else None, ) # Otherwise, don't transform anything - return ReturnType(inner_return_type, "cdata", None) + return ReturnType(inner_return_type, "_ffi.CData", None) def build_function_string(function_name: str, return_type: ReturnType, parameters: list[Parameter]) -> str: diff --git a/builder/build_pymeos_functions_modifiers.py b/builder/build_pymeos_functions_modifiers.py index c68e2ac..df851e1 100644 --- a/builder/build_pymeos_functions_modifiers.py +++ b/builder/build_pymeos_functions_modifiers.py @@ -10,7 +10,7 @@ def array_length_remover_modifier(list_name: str, length_param_name: str = "coun def array_parameter_modifier(list_name: str, length_param_name: str | None = None) -> Callable[[str], str]: def custom_array_modifier(function: str) -> str: - type_regex = list_name + r": Annotated\[(?:(?:cdata)|(?:list)), '([\w \*]+)'\]" + type_regex = list_name + r": Annotated\[(?:(?:_ffi\.CData)|(?:list)), '([\w \*]+)'\]" match = next(re.finditer(type_regex, function)) whole_type = match.group(1) base_type = " ".join(whole_type.split(" ")[:-1]) @@ -107,13 +107,15 @@ def tstzset_make_modifier(function: str) -> str: def spanset_make_modifier(function: str) -> str: return ( - function.replace("spans: Annotated[cdata, 'Span *'], count: int", "spans: list[Annotated[cdata, 'Span *']]") + function.replace( + "spans: Annotated[_ffi.CData, 'Span *'], count: int", "spans: list[Annotated[_ffi.CData, 'Span *']]" + ) .replace("_ffi.cast('Span *', spans)", "_ffi.new('Span []', spans)") .replace(", count", ", len(spans)") ) def mi_span_span_modifier(function: str) -> str: - return function.replace('-> Annotated[cdata, "Span *"]', '-> tuple[Annotated[cdata, "Span *"], int]').replace( - "return out_result", "return out_result, result" - ) + return function.replace( + '-> Annotated[_ffi.CData, "Span *"]', '-> tuple[Annotated[_ffi.CData, "Span *"], int]' + ).replace("return out_result", "return out_result, result") diff --git a/builder/meos.h b/builder/meos.h index ac238bc..07baee7 100644 --- a/builder/meos.h +++ b/builder/meos.h @@ -283,7 +283,6 @@ extern void meos_finalize(void); extern DateADT add_date_int(DateADT d, int32 days); extern Interval *add_interval_interval(const Interval *interv1, const Interval *interv2); extern TimestampTz add_timestamptz_interval(TimestampTz t, const Interval *interv); -/* extern TimestampTz sub_timestamptz_interval(TimestampTz t, const Interval *interv); (undefined) */ extern bool bool_in(const char *str); extern char *bool_out(bool b); extern text *cstring2text(const char *str); @@ -304,8 +303,6 @@ extern char *pg_date_out(DateADT d); extern int pg_interval_cmp(const Interval *interv1, const Interval *interv2); extern Interval *pg_interval_in(const char *str, int32 typmod); extern char *pg_interval_out(const Interval *interv); -/* extern TimeADT pg_time_in(const char *str, int32 typmod); (undefined) */ -/* extern char *pg_time_out(TimeADT t); (undefined) */ extern Timestamp pg_timestamp_in(const char *str, int32 typmod); extern char *pg_timestamp_out(Timestamp t); extern TimestampTz pg_timestamptz_in(const char *str, int32 typmod); @@ -1704,6 +1701,7 @@ typedef struct /* extern bool temptype_subtype(tempSubtype subtype); (undefined) */ /* extern bool temptype_subtype_all(tempSubtype subtype); (undefined) */ + extern const char *tempsubtype_name(tempSubtype subtype); extern bool tempsubtype_from_string(const char *str, int16 *subtype); extern const char *meosoper_name(meosOper oper); @@ -1720,11 +1718,11 @@ extern meosType spansettype_spantype(meosType type); extern meosType basetype_spantype(meosType type); extern meosType basetype_settype(meosType type); -/* extern bool meos_basetype(meosType type); (undefined) */ extern bool tnumber_basetype(meosType type); +extern bool geo_basetype(meosType type); +/* extern bool meos_basetype(meosType type); (undefined) */ /* extern bool alphanum_basetype(meosType type); (undefined) */ /* extern bool alphanum_temptype(meosType type); (undefined) */ -extern bool geo_basetype(meosType type); extern bool time_type(meosType type); /* extern bool set_basetype(meosType type); (undefined) */ @@ -1759,11 +1757,13 @@ extern bool ensure_timespanset_type(meosType type); extern bool temporal_type(meosType type); /* extern bool temporal_basetype(meosType type); (undefined) */ + extern bool temptype_continuous(meosType type); extern bool basetype_byvalue(meosType type); extern bool basetype_varlength(meosType type); extern int16 basetype_length(meosType type); /* extern bool talphanum_type(meosType type); (undefined) */ + extern bool talpha_type(meosType type); extern bool tnumber_type(meosType type); extern bool ensure_tnumber_type(meosType type); @@ -2176,6 +2176,7 @@ extern GSERIALIZED *geog_to_geom(const GSERIALIZED *geog); extern bool geo_is_empty(const GSERIALIZED *g); /* extern bool geo_is_unitary(const GSERIALIZED *gs); (undefined) */ + extern const char *geo_typename(int type); extern double geog_area(const GSERIALIZED *g, bool use_spheroid); extern GSERIALIZED *geog_centroid(const GSERIALIZED *g, bool use_spheroid); @@ -2202,6 +2203,7 @@ extern int geo_ngeos(const GSERIALIZED *gs); extern GSERIALIZED *geo_geoN(const GSERIALIZED *geom, int n); /* extern GSERIALIZED **geo_pointarr(const GSERIALIZED *gs, int *count); (undefined) */ /* extern GSERIALIZED *geo_points(const GSERIALIZED *gs); (undefined) */ + extern GSERIALIZED *geom_array_union(GSERIALIZED **gsarr, int count); extern GSERIALIZED *geom_boundary(const GSERIALIZED *gs); extern GSERIALIZED *geom_buffer(const GSERIALIZED *gs, double size, char *params); @@ -2211,6 +2213,7 @@ extern GSERIALIZED *geom_difference2d(const GSERIALIZED *gs1, const GSERIALIZED extern GSERIALIZED *geom_intersection2d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); /* extern GSERIALIZED *geom_intersection2d_coll(const GSERIALIZED *gs1, const GSERIALIZED *gs2); (undefined) */ /* extern GSERIALIZED *geom_min_bounding_radius(const GSERIALIZED *geom, double *radius); (undefined) */ + extern GSERIALIZED *geom_shortestline2d(const GSERIALIZED *gs1, const GSERIALIZED *s2); extern GSERIALIZED *geom_shortestline3d(const GSERIALIZED *gs1, const GSERIALIZED *s2); extern GSERIALIZED *geom_unary_union(GSERIALIZED *gs, double prec); @@ -2230,7 +2233,6 @@ extern bool geom_intersects3d(const GSERIALIZED *gs1, const GSERIALIZED *gs2); extern bool geom_relate_pattern(const GSERIALIZED *gs1, const GSERIALIZED *gs2, char *patt); extern bool geom_touches(const GSERIALIZED *gs1, const GSERIALIZED *gs2); -/* extern STBox *geo_expand_space(const GSERIALIZED *gs, double d); (undefined) */ extern STBox *geo_stboxes(const GSERIALIZED *gs, int *count); extern STBox *geo_split_each_n_stboxes(const GSERIALIZED *gs, int elem_count, int *count); extern STBox *geo_split_n_stboxes(const GSERIALIZED *gs, int box_count, int *count); @@ -2463,7 +2465,6 @@ extern Temporal *teq_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); extern Temporal *tne_geo_tgeo(const GSERIALIZED *gs, const Temporal *temp); extern Temporal *tne_tgeo_geo(const Temporal *temp, const GSERIALIZED *gs); -/* extern STBox *tspatial_expand_space(const Temporal *temp, double d); (undefined) */ extern STBox *tgeo_stboxes(const Temporal *temp, int *count); extern STBox *tgeo_space_boxes(const Temporal *temp, double xsize, double ysize, double zsize, const GSERIALIZED *sorigin, bool bitmatrix, bool border_inc, int *count); extern STBox *tgeo_space_time_boxes(const Temporal *temp, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool bitmatrix, bool border_inc, int *count); @@ -2771,7 +2772,6 @@ extern void datespan_set_tstzspan(const Span *s1, Span *s2); extern void floatspan_set_intspan(const Span *s1, Span *s2); extern void intspan_set_floatspan(const Span *s1, Span *s2); extern Set *numset_shift_scale(const Set *s, Datum shift, Datum width, bool hasshift, bool haswidth); -/* extern Span *numspan_expand(const Span *s, Datum value); (repeated) */ extern Span *numspan_shift_scale(const Span *s, Datum shift, Datum width, bool hasshift, bool haswidth); extern SpanSet *numspanset_shift_scale(const SpanSet *ss, Datum shift, Datum width, bool hasshift, bool haswidth); extern Set *set_compact(const Set *s); @@ -2863,11 +2863,9 @@ extern void number_set_tbox(Datum d, meosType basetype, TBox *box); extern TBox *number_tbox(Datum value, meosType basetype); extern void numset_set_tbox(const Set *s, TBox *box); extern void numspan_set_tbox(const Span *span, TBox *box); -/* extern void numspanset_set_tbox(const SpanSet *ss, TBox *box); (undefined) */ extern void timestamptz_set_tbox(TimestampTz t, TBox *box); extern void tstzset_set_tbox(const Set *s, TBox *box); extern void tstzspan_set_tbox(const Span *s, TBox *box); -/* extern void tstzspanset_set_tbox(const SpanSet *ss, TBox *box); (undefined) */ extern TBox *tbox_shift_scale_value(const TBox *box, Datum shift, Datum width, bool hasshift, bool haswidth); extern void tbox_expand(const TBox *box1, TBox *box2); @@ -3121,8 +3119,6 @@ extern int ever_le_temporal_base(const Temporal *temp, Datum value); extern int ever_lt_base_temporal(Datum value, const Temporal *temp); extern int ever_lt_temporal_base(const Temporal *temp, Datum value); -/* extern TSequence *tfloatseq_derivative(const TSequence *seq); (undefined) */ -/* extern TSequenceSet *tfloatseqset_derivative(const TSequenceSet *ss); (undefined) */ extern TInstant *tnumberinst_abs(const TInstant *inst); extern TSequence *tnumberseq_abs(const TSequence *seq); extern TSequence *tnumberseq_angular_difference(const TSequence *seq); @@ -3179,7 +3175,6 @@ extern GSERIALIZED *point_round(const GSERIALIZED *gs, int maxdd); extern void stbox_set(bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *s, STBox *box); -/* extern STBox *box3d_to_stbox(const BOX3D *box); (repeated) */ extern void gbox_set_stbox(const GBOX *box, int32_t srid, STBox *result); extern bool geo_set_stbox(const GSERIALIZED *gs, STBox *box); extern void geoarr_set_stbox(const Datum *values, int count, STBox *box); @@ -3243,14 +3238,12 @@ extern TSequence *tpointseq_cumulative_length(const TSequence *seq, double prevl extern bool tpointseq_is_simple(const TSequence *seq); extern double tpointseq_length(const TSequence *seq); extern GSERIALIZED *tpointseq_linear_trajectory(const TSequence *seq, bool unary_union); -/* extern TSequence *tpointseq_speed(const TSequence *seq); (undefined) */ extern STBox *tgeoseq_stboxes(const TSequence *seq, int *count); extern STBox *tgeoseq_split_n_stboxes(const TSequence *seq, int max_count, int *count); extern TSequenceSet *tpointseqset_azimuth(const TSequenceSet *ss); extern TSequenceSet *tpointseqset_cumulative_length(const TSequenceSet *ss); extern bool tpointseqset_is_simple(const TSequenceSet *ss); extern double tpointseqset_length(const TSequenceSet *ss); -/* extern TSequenceSet *tpointseqset_speed(const TSequenceSet *ss); (undefined) */ extern STBox *tgeoseqset_stboxes(const TSequenceSet *ss, int *count); extern STBox *tgeoseqset_split_n_stboxes(const TSequenceSet *ss, int max_count, int *count); extern Temporal *tpoint_get_coord(const Temporal *temp, int coord); diff --git a/builder/templates/functions.py b/builder/templates/functions.py index 9082a78..dcb2e73 100644 --- a/builder/templates/functions.py +++ b/builder/templates/functions.py @@ -5,7 +5,6 @@ import _meos_cffi import shapely.geometry as spg -from cffi import cdata from dateutil.parser import parse from shapely import get_srid, set_srid, wkt from shapely.geometry.base import BaseGeometry @@ -44,11 +43,11 @@ def py_error_handler(error_level, error_code, error_msg): logger.debug(f"ERROR Handler called: Level: {_error} | Code: {_error_level} | Message: {_error_message}") -def create_pointer(object: "Any", type: str) -> Annotated[cdata, "Any *"]: +def create_pointer(object: "Any", type: str) -> Annotated[_ffi.CData, "Any *"]: return _ffi.new(f"{type} *", object) -def get_address(value: "Any") -> Annotated[cdata, "Any *"]: +def get_address(value: "Any") -> Annotated[_ffi.CData, "Any *"]: return _ffi.addressof(value) @@ -80,14 +79,14 @@ def interval_to_timedelta(interval: Any) -> timedelta: return timedelta(days=interval.day, microseconds=interval.time) -def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> Annotated[_ffi.CData, "GSERIALIZED *"]: if geodetic: return geography_to_gserialized(geom) else: return geometry_to_gserialized(geom) -def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: +def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[_ffi.CData, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -95,7 +94,7 @@ def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED return gs -def geography_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: +def geography_to_gserialized(geom: BaseGeometry) -> Annotated[_ffi.CData, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -121,15 +120,15 @@ def gserialized_to_shapely_geometry(geom: "const GSERIALIZED *", precision: int return geometry -def as_tinstant(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def as_tinstant(temporal: Annotated[_ffi.CData, "Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: return _ffi.cast("TInstant *", temporal) -def as_tsequence(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequence *"]: +def as_tsequence(temporal: Annotated[_ffi.CData, "Temporal *"]) -> Annotated[_ffi.CData, "TSequence *"]: return _ffi.cast("TSequence *", temporal) -def as_tsequenceset(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequenceSet *"]: +def as_tsequenceset(temporal: Annotated[_ffi.CData, "Temporal *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: return _ffi.cast("TSequenceSet *", temporal) diff --git a/pymeos_cffi/functions.py b/pymeos_cffi/functions.py index 981b157..b5d46eb 100644 --- a/pymeos_cffi/functions.py +++ b/pymeos_cffi/functions.py @@ -5,7 +5,6 @@ import _meos_cffi import shapely.geometry as spg -from cffi import cdata from dateutil.parser import parse from shapely import get_srid, set_srid, wkt from shapely.geometry.base import BaseGeometry @@ -44,11 +43,11 @@ def py_error_handler(error_level, error_code, error_msg): logger.debug(f"ERROR Handler called: Level: {_error} | Code: {_error_level} | Message: {_error_message}") -def create_pointer(object: "Any", type: str) -> Annotated[cdata, "Any *"]: +def create_pointer(object: "Any", type: str) -> Annotated[_ffi.CData, "Any *"]: return _ffi.new(f"{type} *", object) -def get_address(value: "Any") -> Annotated[cdata, "Any *"]: +def get_address(value: "Any") -> Annotated[_ffi.CData, "Any *"]: return _ffi.addressof(value) @@ -80,14 +79,14 @@ def interval_to_timedelta(interval: Any) -> timedelta: return timedelta(days=interval.day, microseconds=interval.time) -def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_to_gserialized(geom: BaseGeometry, geodetic: bool) -> Annotated[_ffi.CData, "GSERIALIZED *"]: if geodetic: return geography_to_gserialized(geom) else: return geometry_to_gserialized(geom) -def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: +def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[_ffi.CData, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -95,7 +94,7 @@ def geometry_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED return gs -def geography_to_gserialized(geom: BaseGeometry) -> Annotated[cdata, "GSERIALIZED *"]: +def geography_to_gserialized(geom: BaseGeometry) -> Annotated[_ffi.CData, "GSERIALIZED *"]: text = wkt.dumps(geom) if get_srid(geom) > 0: text = f"SRID={get_srid(geom)};{text}" @@ -121,15 +120,15 @@ def gserialized_to_shapely_geometry(geom: "const GSERIALIZED *", precision: int return geometry -def as_tinstant(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def as_tinstant(temporal: Annotated[_ffi.CData, "Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: return _ffi.cast("TInstant *", temporal) -def as_tsequence(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequence *"]: +def as_tsequence(temporal: Annotated[_ffi.CData, "Temporal *"]) -> Annotated[_ffi.CData, "TSequence *"]: return _ffi.cast("TSequence *", temporal) -def as_tsequenceset(temporal: Annotated[cdata, "Temporal *"]) -> Annotated[cdata, "TSequenceSet *"]: +def as_tsequenceset(temporal: Annotated[_ffi.CData, "Temporal *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: return _ffi.cast("TSequenceSet *", temporal) @@ -152,7 +151,7 @@ def date_out(d: int) -> Annotated[str, "char *"]: def interval_cmp( - interv1: Annotated[cdata, "const Interval *"], interv2: Annotated[cdata, "const Interval *"] + interv1: Annotated[_ffi.CData, "const Interval *"], interv2: Annotated[_ffi.CData, "const Interval *"] ) -> Annotated[int, "int"]: interv1_converted = _ffi.cast("const Interval *", interv1) interv2_converted = _ffi.cast("const Interval *", interv2) @@ -161,7 +160,7 @@ def interval_cmp( return result if result != _ffi.NULL else None -def interval_in(string: str, typmod: int) -> Annotated[cdata, "Interval *"]: +def interval_in(string: str, typmod: int) -> Annotated[_ffi.CData, "Interval *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.interval_in(string_converted, typmod_converted) @@ -169,7 +168,7 @@ def interval_in(string: str, typmod: int) -> Annotated[cdata, "Interval *"]: return result if result != _ffi.NULL else None -def interval_out(interv: Annotated[cdata, "const Interval *"]) -> Annotated[str, "char *"]: +def interval_out(interv: Annotated[_ffi.CData, "const Interval *"]) -> Annotated[str, "char *"]: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.interval_out(interv_converted) _check_error() @@ -177,7 +176,7 @@ def interval_out(interv: Annotated[cdata, "const Interval *"]) -> Annotated[str, return result if result != _ffi.NULL else None -def time_in(string: str, typmod: int) -> Annotated[cdata, "TimeADT"]: +def time_in(string: str, typmod: int) -> Annotated[_ffi.CData, "TimeADT"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.time_in(string_converted, typmod_converted) @@ -185,7 +184,7 @@ def time_in(string: str, typmod: int) -> Annotated[cdata, "TimeADT"]: return result if result != _ffi.NULL else None -def time_out(t: Annotated[cdata, "TimeADT"]) -> Annotated[str, "char *"]: +def time_out(t: Annotated[_ffi.CData, "TimeADT"]) -> Annotated[str, "char *"]: t_converted = _ffi.cast("TimeADT", t) result = _lib.time_out(t_converted) _check_error() @@ -259,7 +258,7 @@ def meos_finalize_ways() -> Annotated[None, "void"]: _check_error() -def meos_set_datestyle(newval: str, extra: Annotated[cdata, "void *"]) -> Annotated[bool, "bool"]: +def meos_set_datestyle(newval: str, extra: Annotated[_ffi.CData, "void *"]) -> Annotated[bool, "bool"]: newval_converted = newval.encode("utf-8") extra_converted = _ffi.cast("void *", extra) result = _lib.meos_set_datestyle(newval_converted, extra_converted) @@ -289,7 +288,7 @@ def meos_get_intervalstyle() -> Annotated[str, "char *"]: return result if result != _ffi.NULL else None -def meos_set_spatial_ref_sys_csv(path: Annotated[cdata, "const char*"]) -> Annotated[None, "void"]: +def meos_set_spatial_ref_sys_csv(path: Annotated[_ffi.CData, "const char*"]) -> Annotated[None, "void"]: path_converted = _ffi.cast("const char*", path) _lib.meos_set_spatial_ref_sys_csv(path_converted) _check_error() @@ -330,8 +329,8 @@ def add_date_int(d: int, days: int) -> Annotated[int, "DateADT"]: def add_interval_interval( - interv1: Annotated[cdata, "const Interval *"], interv2: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "Interval *"]: + interv1: Annotated[_ffi.CData, "const Interval *"], interv2: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "Interval *"]: interv1_converted = _ffi.cast("const Interval *", interv1) interv2_converted = _ffi.cast("const Interval *", interv2) result = _lib.add_interval_interval(interv1_converted, interv2_converted) @@ -339,7 +338,9 @@ def add_interval_interval( return result if result != _ffi.NULL else None -def add_timestamptz_interval(t: int, interv: Annotated[cdata, "const Interval *"]) -> Annotated[int, "TimestampTz"]: +def add_timestamptz_interval( + t: int, interv: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.add_timestamptz_interval(t_converted, interv_converted) @@ -407,7 +408,7 @@ def float_round(d: float, maxdd: int) -> Annotated[float, "double"]: def interval_make( years: int, months: int, weeks: int, days: int, hours: int, mins: int, secs: float -) -> Annotated[cdata, "Interval *"]: +) -> Annotated[_ffi.CData, "Interval *"]: years_converted = _ffi.cast("int32", years) months_converted = _ffi.cast("int32", months) weeks_converted = _ffi.cast("int32", weeks) @@ -421,7 +422,7 @@ def interval_make( return result if result != _ffi.NULL else None -def minus_date_date(d1: int, d2: int) -> Annotated[cdata, "Interval *"]: +def minus_date_date(d1: int, d2: int) -> Annotated[_ffi.CData, "Interval *"]: d1_converted = _ffi.cast("DateADT", d1) d2_converted = _ffi.cast("DateADT", d2) result = _lib.minus_date_date(d1_converted, d2_converted) @@ -437,7 +438,9 @@ def minus_date_int(d: int, days: int) -> Annotated[int, "DateADT"]: return result if result != _ffi.NULL else None -def minus_timestamptz_interval(t: int, interv: Annotated[cdata, "const Interval *"]) -> Annotated[int, "TimestampTz"]: +def minus_timestamptz_interval( + t: int, interv: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.minus_timestamptz_interval(t_converted, interv_converted) @@ -445,7 +448,7 @@ def minus_timestamptz_interval(t: int, interv: Annotated[cdata, "const Interval return result if result != _ffi.NULL else None -def minus_timestamptz_timestamptz(t1: int, t2: int) -> Annotated[cdata, "Interval *"]: +def minus_timestamptz_timestamptz(t1: int, t2: int) -> Annotated[_ffi.CData, "Interval *"]: t1_converted = _ffi.cast("TimestampTz", t1) t2_converted = _ffi.cast("TimestampTz", t2) result = _lib.minus_timestamptz_timestamptz(t1_converted, t2_converted) @@ -453,7 +456,9 @@ def minus_timestamptz_timestamptz(t1: int, t2: int) -> Annotated[cdata, "Interva return result if result != _ffi.NULL else None -def mul_interval_double(interv: Annotated[cdata, "const Interval *"], factor: float) -> Annotated[cdata, "Interval *"]: +def mul_interval_double( + interv: Annotated[_ffi.CData, "const Interval *"], factor: float +) -> Annotated[_ffi.CData, "Interval *"]: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.mul_interval_double(interv_converted, factor) _check_error() @@ -476,7 +481,7 @@ def pg_date_out(d: int) -> Annotated[str, "char *"]: def pg_interval_cmp( - interv1: Annotated[cdata, "const Interval *"], interv2: Annotated[cdata, "const Interval *"] + interv1: Annotated[_ffi.CData, "const Interval *"], interv2: Annotated[_ffi.CData, "const Interval *"] ) -> Annotated[int, "int"]: interv1_converted = _ffi.cast("const Interval *", interv1) interv2_converted = _ffi.cast("const Interval *", interv2) @@ -485,7 +490,7 @@ def pg_interval_cmp( return result if result != _ffi.NULL else None -def pg_interval_in(string: str, typmod: int) -> Annotated[cdata, "Interval *"]: +def pg_interval_in(string: str, typmod: int) -> Annotated[_ffi.CData, "Interval *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.pg_interval_in(string_converted, typmod_converted) @@ -493,7 +498,7 @@ def pg_interval_in(string: str, typmod: int) -> Annotated[cdata, "Interval *"]: return result if result != _ffi.NULL else None -def pg_interval_out(interv: Annotated[cdata, "const Interval *"]) -> Annotated[str, "char *"]: +def pg_interval_out(interv: Annotated[_ffi.CData, "const Interval *"]) -> Annotated[str, "char *"]: interv_converted = _ffi.cast("const Interval *", interv) result = _lib.pg_interval_out(interv_converted) _check_error() @@ -596,7 +601,7 @@ def textcat_text_text(txt1: str, txt2: str) -> Annotated[str, "text *"]: return result if result != _ffi.NULL else None -def timestamptz_shift(t: int, interv: Annotated[cdata, "const Interval *"]) -> Annotated[int, "TimestampTz"]: +def timestamptz_shift(t: int, interv: Annotated[_ffi.CData, "const Interval *"]) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.timestamptz_shift(t_converted, interv_converted) @@ -618,14 +623,14 @@ def timestamptz_to_date(t: int) -> Annotated[int, "DateADT"]: return result if result != _ffi.NULL else None -def bigintset_in(string: str) -> Annotated[cdata, "Set *"]: +def bigintset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.bigintset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: +def bigintset_out(set: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.bigintset_out(set_converted) _check_error() @@ -633,14 +638,14 @@ def bigintset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char return result if result != _ffi.NULL else None -def bigintspan_in(string: str) -> Annotated[cdata, "Span *"]: +def bigintspan_in(string: str) -> Annotated[_ffi.CData, "Span *"]: string_converted = string.encode("utf-8") result = _lib.bigintspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: +def bigintspan_out(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_out(s_converted) _check_error() @@ -648,14 +653,14 @@ def bigintspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char return result if result != _ffi.NULL else None -def bigintspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: +def bigintspanset_in(string: str) -> Annotated[_ffi.CData, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.bigintspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: +def bigintspanset_out(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_out(ss_converted) _check_error() @@ -663,14 +668,14 @@ def bigintspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, return result if result != _ffi.NULL else None -def dateset_in(string: str) -> Annotated[cdata, "Set *"]: +def dateset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.dateset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_out(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: +def dateset_out(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_out(s_converted) _check_error() @@ -678,14 +683,14 @@ def dateset_out(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: return result if result != _ffi.NULL else None -def datespan_in(string: str) -> Annotated[cdata, "Span *"]: +def datespan_in(string: str) -> Annotated[_ffi.CData, "Span *"]: string_converted = string.encode("utf-8") result = _lib.datespan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: +def datespan_out(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_out(s_converted) _check_error() @@ -693,14 +698,14 @@ def datespan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *" return result if result != _ffi.NULL else None -def datespanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: +def datespanset_in(string: str) -> Annotated[_ffi.CData, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.datespanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: +def datespanset_out(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_out(ss_converted) _check_error() @@ -708,14 +713,14 @@ def datespanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, " return result if result != _ffi.NULL else None -def floatset_in(string: str) -> Annotated[cdata, "Set *"]: +def floatset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.floatset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_out(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: +def floatset_out(set: Annotated[_ffi.CData, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.floatset_out(set_converted, maxdd) _check_error() @@ -723,14 +728,14 @@ def floatset_out(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[ return result if result != _ffi.NULL else None -def floatspan_in(string: str) -> Annotated[cdata, "Span *"]: +def floatspan_in(string: str) -> Annotated[_ffi.CData, "Span *"]: string_converted = string.encode("utf-8") result = _lib.floatspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_out(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[str, "char *"]: +def floatspan_out(s: Annotated[_ffi.CData, "const Span *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_out(s_converted, maxdd) _check_error() @@ -738,14 +743,14 @@ def floatspan_out(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[ return result if result != _ffi.NULL else None -def floatspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_in(string: str) -> Annotated[_ffi.CData, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.floatspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_out(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotated[str, "char *"]: +def floatspanset_out(ss: Annotated[_ffi.CData, "const SpanSet *"], maxdd: int) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_out(ss_converted, maxdd) _check_error() @@ -753,14 +758,14 @@ def floatspanset_out(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Ann return result if result != _ffi.NULL else None -def intset_in(string: str) -> Annotated[cdata, "Set *"]: +def intset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.intset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: +def intset_out(set: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.intset_out(set_converted) _check_error() @@ -768,14 +773,14 @@ def intset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"] return result if result != _ffi.NULL else None -def intspan_in(string: str) -> Annotated[cdata, "Span *"]: +def intspan_in(string: str) -> Annotated[_ffi.CData, "Span *"]: string_converted = string.encode("utf-8") result = _lib.intspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: +def intspan_out(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_out(s_converted) _check_error() @@ -783,14 +788,14 @@ def intspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"] return result if result != _ffi.NULL else None -def intspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: +def intspanset_in(string: str) -> Annotated[_ffi.CData, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.intspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: +def intspanset_out(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_out(ss_converted) _check_error() @@ -799,8 +804,8 @@ def intspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "c def set_as_hexwkb( - s: Annotated[cdata, "const Set *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + s: Annotated[_ffi.CData, "const Set *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: s_converted = _ffi.cast("const Set *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -811,8 +816,8 @@ def set_as_hexwkb( def set_as_wkb( - s: Annotated[cdata, "const Set *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + s: Annotated[_ffi.CData, "const Set *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: s_converted = _ffi.cast("const Set *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -822,7 +827,7 @@ def set_as_wkb( return result_converted -def set_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Set *"]: +def set_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "Set *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.set_from_hexwkb(hexwkb_converted) _check_error() @@ -836,8 +841,8 @@ def set_from_wkb(wkb: bytes) -> "Set *": def span_as_hexwkb( - s: Annotated[cdata, "const Span *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + s: Annotated[_ffi.CData, "const Span *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: s_converted = _ffi.cast("const Span *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -848,8 +853,8 @@ def span_as_hexwkb( def span_as_wkb( - s: Annotated[cdata, "const Span *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + s: Annotated[_ffi.CData, "const Span *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: s_converted = _ffi.cast("const Span *", s) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -859,7 +864,7 @@ def span_as_wkb( return result_converted -def span_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Span *"]: +def span_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "Span *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.span_from_hexwkb(hexwkb_converted) _check_error() @@ -873,8 +878,8 @@ def span_from_wkb(wkb: bytes) -> "Span *": def spanset_as_hexwkb( - ss: Annotated[cdata, "const SpanSet *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + ss: Annotated[_ffi.CData, "const SpanSet *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: ss_converted = _ffi.cast("const SpanSet *", ss) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -885,8 +890,8 @@ def spanset_as_hexwkb( def spanset_as_wkb( - ss: Annotated[cdata, "const SpanSet *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + ss: Annotated[_ffi.CData, "const SpanSet *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: ss_converted = _ffi.cast("const SpanSet *", ss) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -896,7 +901,7 @@ def spanset_as_wkb( return result_converted -def spanset_from_hexwkb(hexwkb: str) -> Annotated[cdata, "SpanSet *"]: +def spanset_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "SpanSet *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.spanset_from_hexwkb(hexwkb_converted) _check_error() @@ -909,14 +914,14 @@ def spanset_from_wkb(wkb: bytes) -> "SpanSet *": return result if result != _ffi.NULL else None -def textset_in(string: str) -> Annotated[cdata, "Set *"]: +def textset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.textset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def textset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: +def textset_out(set: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.textset_out(set_converted) _check_error() @@ -924,14 +929,14 @@ def textset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *" return result if result != _ffi.NULL else None -def tstzset_in(string: str) -> Annotated[cdata, "Set *"]: +def tstzset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.tstzset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *"]: +def tstzset_out(set: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.tstzset_out(set_converted) _check_error() @@ -939,14 +944,14 @@ def tstzset_out(set: Annotated[cdata, "const Set *"]) -> Annotated[str, "char *" return result if result != _ffi.NULL else None -def tstzspan_in(string: str) -> Annotated[cdata, "Span *"]: +def tstzspan_in(string: str) -> Annotated[_ffi.CData, "Span *"]: string_converted = string.encode("utf-8") result = _lib.tstzspan_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *"]: +def tstzspan_out(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_out(s_converted) _check_error() @@ -954,14 +959,14 @@ def tstzspan_out(s: Annotated[cdata, "const Span *"]) -> Annotated[str, "char *" return result if result != _ffi.NULL else None -def tstzspanset_in(string: str) -> Annotated[cdata, "SpanSet *"]: +def tstzspanset_in(string: str) -> Annotated[_ffi.CData, "SpanSet *"]: string_converted = string.encode("utf-8") result = _lib.tstzspanset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, "char *"]: +def tstzspanset_out(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_out(ss_converted) _check_error() @@ -969,14 +974,14 @@ def tstzspanset_out(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[str, " return result if result != _ffi.NULL else None -def bigintset_make(values: "list[const int64]") -> Annotated[cdata, "Set *"]: +def bigintset_make(values: "list[const int64]") -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.new("const int64 []", values) result = _lib.bigintset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def bigintspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: +def bigintspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[_ffi.CData, "Span *"]: lower_converted = _ffi.cast("int64", lower) upper_converted = _ffi.cast("int64", upper) result = _lib.bigintspan_make(lower_converted, upper_converted, lower_inc, upper_inc) @@ -984,14 +989,14 @@ def bigintspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> return result if result != _ffi.NULL else None -def dateset_make(values: "list[const DateADT]") -> Annotated[cdata, "Set *"]: +def dateset_make(values: "list[const DateADT]") -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.new("const DateADT []", values) result = _lib.dateset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def datespan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: +def datespan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[_ffi.CData, "Span *"]: lower_converted = _ffi.cast("DateADT", lower) upper_converted = _ffi.cast("DateADT", upper) result = _lib.datespan_make(lower_converted, upper_converted, lower_inc, upper_inc) @@ -999,75 +1004,75 @@ def datespan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> A return result if result != _ffi.NULL else None -def floatset_make(values: "list[const double]") -> Annotated[cdata, "Set *"]: +def floatset_make(values: "list[const double]") -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.new("const double []", values) result = _lib.floatset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def floatspan_make(lower: float, upper: float, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: +def floatspan_make(lower: float, upper: float, lower_inc: bool, upper_inc: bool) -> Annotated[_ffi.CData, "Span *"]: result = _lib.floatspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def intset_make(values: "list[const int]") -> Annotated[cdata, "Set *"]: +def intset_make(values: "list[const int]") -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.new("const int []", values) result = _lib.intset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: +def intspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[_ffi.CData, "Span *"]: result = _lib.intspan_make(lower, upper, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def set_copy(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def set_copy(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_copy(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def span_copy(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_copy(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_copy(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def spanset_copy(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_copy(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_make(spans: list[Annotated[cdata, "Span *"]]) -> Annotated[cdata, "SpanSet *"]: +def spanset_make(spans: list[Annotated[_ffi.CData, "Span *"]]) -> Annotated[_ffi.CData, "SpanSet *"]: spans_converted = _ffi.new("Span []", spans) result = _lib.spanset_make(spans_converted, len(spans)) _check_error() return result if result != _ffi.NULL else None -def textset_make(values: list[str]) -> Annotated[cdata, "Set *"]: +def textset_make(values: list[str]) -> Annotated[_ffi.CData, "Set *"]: values_converted = [cstring2text(x) for x in values] result = _lib.textset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzset_make(values: list[int]) -> Annotated[cdata, "Set *"]: +def tstzset_make(values: list[int]) -> Annotated[_ffi.CData, "Set *"]: values_converted = [_ffi.cast("const TimestampTz", x) for x in values] result = _lib.tstzset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[cdata, "Span *"]: +def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> Annotated[_ffi.CData, "Span *"]: lower_converted = _ffi.cast("TimestampTz", lower) upper_converted = _ffi.cast("TimestampTz", upper) result = _lib.tstzspan_make(lower_converted, upper_converted, lower_inc, upper_inc) @@ -1075,230 +1080,230 @@ def tstzspan_make(lower: int, upper: int, lower_inc: bool, upper_inc: bool) -> A return result if result != _ffi.NULL else None -def bigint_to_set(i: int) -> Annotated[cdata, "Set *"]: +def bigint_to_set(i: int) -> Annotated[_ffi.CData, "Set *"]: i_converted = _ffi.cast("int64", i) result = _lib.bigint_to_set(i_converted) _check_error() return result if result != _ffi.NULL else None -def bigint_to_span(i: int) -> Annotated[cdata, "Span *"]: +def bigint_to_span(i: int) -> Annotated[_ffi.CData, "Span *"]: result = _lib.bigint_to_span(i) _check_error() return result if result != _ffi.NULL else None -def bigint_to_spanset(i: int) -> Annotated[cdata, "SpanSet *"]: +def bigint_to_spanset(i: int) -> Annotated[_ffi.CData, "SpanSet *"]: result = _lib.bigint_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def date_to_set(d: int) -> Annotated[cdata, "Set *"]: +def date_to_set(d: int) -> Annotated[_ffi.CData, "Set *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_set(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_span(d: int) -> Annotated[cdata, "Span *"]: +def date_to_span(d: int) -> Annotated[_ffi.CData, "Span *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_span(d_converted) _check_error() return result if result != _ffi.NULL else None -def date_to_spanset(d: int) -> Annotated[cdata, "SpanSet *"]: +def date_to_spanset(d: int) -> Annotated[_ffi.CData, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) result = _lib.date_to_spanset(d_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_to_tstzset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def dateset_to_tstzset(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_to_tstzset(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_to_tstzspan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def datespan_to_tstzspan(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_to_tstzspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_to_tstzspanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def datespanset_to_tstzspanset(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_to_tstzspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def float_to_set(d: float) -> Annotated[cdata, "Set *"]: +def float_to_set(d: float) -> Annotated[_ffi.CData, "Set *"]: result = _lib.float_to_set(d) _check_error() return result if result != _ffi.NULL else None -def float_to_span(d: float) -> Annotated[cdata, "Span *"]: +def float_to_span(d: float) -> Annotated[_ffi.CData, "Span *"]: result = _lib.float_to_span(d) _check_error() return result if result != _ffi.NULL else None -def float_to_spanset(d: float) -> Annotated[cdata, "SpanSet *"]: +def float_to_spanset(d: float) -> Annotated[_ffi.CData, "SpanSet *"]: result = _lib.float_to_spanset(d) _check_error() return result if result != _ffi.NULL else None -def floatset_to_intset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def floatset_to_intset(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_to_intset(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_to_intspan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def floatspan_to_intspan(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_to_intspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_to_intspanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_to_intspanset(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_to_intspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def int_to_set(i: int) -> Annotated[cdata, "Set *"]: +def int_to_set(i: int) -> Annotated[_ffi.CData, "Set *"]: result = _lib.int_to_set(i) _check_error() return result if result != _ffi.NULL else None -def int_to_span(i: int) -> Annotated[cdata, "Span *"]: +def int_to_span(i: int) -> Annotated[_ffi.CData, "Span *"]: result = _lib.int_to_span(i) _check_error() return result if result != _ffi.NULL else None -def int_to_spanset(i: int) -> Annotated[cdata, "SpanSet *"]: +def int_to_spanset(i: int) -> Annotated[_ffi.CData, "SpanSet *"]: result = _lib.int_to_spanset(i) _check_error() return result if result != _ffi.NULL else None -def intset_to_floatset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intset_to_floatset(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_to_floatset(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_to_floatspan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def intspan_to_floatspan(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_to_floatspan(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_to_floatspanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def intspanset_to_floatspanset(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_to_floatspanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: +def set_to_span(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_to_spanset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "SpanSet *"]: +def set_to_spanset(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_spanset(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def span_to_spanset(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_to_spanset(s_converted) _check_error() return result if result != _ffi.NULL else None -def text_to_set(txt: str) -> Annotated[cdata, "Set *"]: +def text_to_set(txt: str) -> Annotated[_ffi.CData, "Set *"]: txt_converted = cstring2text(txt) result = _lib.text_to_set(txt_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_set(t: int) -> Annotated[cdata, "Set *"]: +def timestamptz_to_set(t: int) -> Annotated[_ffi.CData, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_set(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_span(t: int) -> Annotated[cdata, "Span *"]: +def timestamptz_to_span(t: int) -> Annotated[_ffi.CData, "Span *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_span(t_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_spanset(t: int) -> Annotated[cdata, "SpanSet *"]: +def timestamptz_to_spanset(t: int) -> Annotated[_ffi.CData, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_spanset(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_dateset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def tstzset_to_dateset(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_to_dateset(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_datespan(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def tstzspan_to_datespan(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_to_datespan(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_datespanset(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def tstzspanset_to_datespanset(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_to_datespanset(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int64"]: +def bigintset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int64"]: +def bigintset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "int64"]: +def bigintset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[_ffi.CData, "int64"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("int64 *") result = _lib.bigintset_value_n(s_converted, n, out_result) @@ -1308,70 +1313,70 @@ def bigintset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[c return None -def bigintset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int64 *"]: +def bigintset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "int64 *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.bigintset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int64"]: +def bigintspan_lower(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int64"]: +def bigintspan_upper(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int64"]: +def bigintspan_width(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) result = _lib.bigintspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int64"]: +def bigintspanset_lower(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int64"]: +def bigintspanset_upper(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def bigintspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[int, "int64"]: +def bigintspanset_width(ss: Annotated[_ffi.CData, "const SpanSet *"], boundspan: bool) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.bigintspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def dateset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "DateADT"]: +def dateset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "DateADT"]: +def dateset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def dateset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "DateADT *"]: +def dateset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[_ffi.CData, "DateADT *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("DateADT *") result = _lib.dateset_value_n(s_converted, n, out_result) @@ -1381,35 +1386,35 @@ def dateset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cda return None -def dateset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "DateADT *"]: +def dateset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "DateADT *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_duration(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Interval *"]: +def datespan_duration(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Interval *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "DateADT"]: +def datespan_lower(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "DateADT"]: +def datespan_upper(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "DateADT"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_date_n(ss: Annotated[cdata, "const SpanSet *"], n: int) -> Annotated[cdata, "DateADT *"]: +def datespanset_date_n(ss: Annotated[_ffi.CData, "const SpanSet *"], n: int) -> Annotated[_ffi.CData, "DateADT *"]: ss_converted = _ffi.cast("const SpanSet *", ss) out_result = _ffi.new("DateADT *") result = _lib.datespanset_date_n(ss_converted, n, out_result) @@ -1419,56 +1424,58 @@ def datespanset_date_n(ss: Annotated[cdata, "const SpanSet *"], n: int) -> Annot return None -def datespanset_dates(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Set *"]: +def datespanset_dates(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Set *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_duration(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[cdata, "Interval *"]: +def datespanset_duration( + ss: Annotated[_ffi.CData, "const SpanSet *"], boundspan: bool +) -> Annotated[_ffi.CData, "Interval *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def datespanset_end_date(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "DateADT"]: +def datespanset_end_date(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "DateADT"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_end_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_num_dates(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: +def datespanset_num_dates(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_num_dates(ss_converted) _check_error() return result if result != _ffi.NULL else None -def datespanset_start_date(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "DateADT"]: +def datespanset_start_date(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "DateADT"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_start_date(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[float, "double"]: +def floatset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[float, "double"]: +def floatset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "double"]: +def floatset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[_ffi.CData, "double"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("double *") result = _lib.floatset_value_n(s_converted, n, out_result) @@ -1478,70 +1485,70 @@ def floatset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cd return None -def floatset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "double *"]: +def floatset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "double *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[float, "double"]: +def floatspan_lower(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[float, "double"]: +def floatspan_upper(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[float, "double"]: +def floatspan_width(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[float, "double"]: +def floatspanset_lower(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[float, "double"]: +def floatspanset_upper(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[float, "double"]: +def floatspanset_width(ss: Annotated[_ffi.CData, "const SpanSet *"], boundspan: bool) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def intset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: +def intset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: +def intset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def intset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "int"]: +def intset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[_ffi.CData, "int"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("int *") result = _lib.intset_value_n(s_converted, n, out_result) @@ -1551,63 +1558,63 @@ def intset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdat return None -def intset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int *"]: +def intset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "int *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: +def intspan_lower(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: +def intspan_upper(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: +def intspan_width(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: +def intspanset_lower(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: +def intspanset_upper(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_upper(ss_converted) _check_error() return result if result != _ffi.NULL else None -def intspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[int, "int"]: +def intspanset_width(ss: Annotated[_ffi.CData, "const SpanSet *"], boundspan: bool) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_hash(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "uint32"]: +def set_hash(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "uint32"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_hash_extended(s: Annotated[cdata, "const Set *"], seed: int) -> Annotated[int, "uint64"]: +def set_hash_extended(s: Annotated[_ffi.CData, "const Set *"], seed: int) -> Annotated[int, "uint64"]: s_converted = _ffi.cast("const Set *", s) seed_converted = _ffi.cast("uint64", seed) result = _lib.set_hash_extended(s_converted, seed_converted) @@ -1615,21 +1622,21 @@ def set_hash_extended(s: Annotated[cdata, "const Set *"], seed: int) -> Annotate return result if result != _ffi.NULL else None -def set_num_values(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: +def set_num_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_num_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "uint32"]: +def span_hash(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "uint32"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_hash(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_hash_extended(s: Annotated[cdata, "const Span *"], seed: int) -> Annotated[int, "uint64"]: +def span_hash_extended(s: Annotated[_ffi.CData, "const Span *"], seed: int) -> Annotated[int, "uint64"]: s_converted = _ffi.cast("const Span *", s) seed_converted = _ffi.cast("uint64", seed) result = _lib.span_hash_extended(s_converted, seed_converted) @@ -1637,35 +1644,35 @@ def span_hash_extended(s: Annotated[cdata, "const Span *"], seed: int) -> Annota return result if result != _ffi.NULL else None -def span_lower_inc(s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_lower_inc(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_lower_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_upper_inc(s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_upper_inc(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_upper_inc(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_end_span(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: +def spanset_end_span(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_end_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "uint32"]: +def spanset_hash(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "uint32"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_hash_extended(ss: Annotated[cdata, "const SpanSet *"], seed: int) -> Annotated[int, "uint64"]: +def spanset_hash_extended(ss: Annotated[_ffi.CData, "const SpanSet *"], seed: int) -> Annotated[int, "uint64"]: ss_converted = _ffi.cast("const SpanSet *", ss) seed_converted = _ffi.cast("uint64", seed) result = _lib.spanset_hash_extended(ss_converted, seed_converted) @@ -1673,56 +1680,56 @@ def spanset_hash_extended(ss: Annotated[cdata, "const SpanSet *"], seed: int) -> return result if result != _ffi.NULL else None -def spanset_lower_inc(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def spanset_lower_inc(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_lower_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_num_spans(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: +def spanset_num_spans(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_num_spans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: +def spanset_span(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_span_n(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "Span *"]: +def spanset_span_n(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_span_n(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def spanset_spanarr(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span **"]: +def spanset_spanarr(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Span **"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_spanarr(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_start_span(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: +def spanset_start_span(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_start_span(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper_inc(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def spanset_upper_inc(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_upper_inc(ss_converted) _check_error() return result if result != _ffi.NULL else None -def textset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "text *"]: +def textset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "text *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_end_value(s_converted) _check_error() @@ -1730,7 +1737,7 @@ def textset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "tex return result if result != _ffi.NULL else None -def textset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "text *"]: +def textset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[str, "text *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_start_value(s_converted) _check_error() @@ -1738,7 +1745,7 @@ def textset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[str, "t return result if result != _ffi.NULL else None -def textset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list, "text **"]: +def textset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[list, "text **"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("text **") result = _lib.textset_value_n(s_converted, n, out_result) @@ -1748,28 +1755,28 @@ def textset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[lis return None -def textset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "text **"]: +def textset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "text **"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "TimestampTz"]: +def tstzset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "TimestampTz"]: +def tstzset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> int: +def tstzset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> int: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("TimestampTz *") result = _lib.tstzset_value_n(s_converted, n, out_result) @@ -1779,77 +1786,79 @@ def tstzset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> int: return None -def tstzset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "TimestampTz *"]: +def tstzset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "TimestampTz *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_duration(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Interval *"]: +def tstzspan_duration(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Interval *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_duration(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_lower(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "TimestampTz"]: +def tstzspan_lower(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_upper(s: Annotated[cdata, "const Span *"]) -> Annotated[int, "TimestampTz"]: +def tstzspan_upper(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[int, "TimestampTz"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_upper(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_duration(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[cdata, "Interval *"]: +def tstzspanset_duration( + ss: Annotated[_ffi.CData, "const SpanSet *"], boundspan: bool +) -> Annotated[_ffi.CData, "Interval *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_end_timestamptz(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: +def tstzspanset_end_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: +def tstzspanset_lower(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_num_timestamps(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: +def tstzspanset_num_timestamps(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_num_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_start_timestamptz(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: +def tstzspanset_start_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamps(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Set *"]: +def tstzspanset_timestamps(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Set *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_timestamps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_timestamptz_n(ss: Annotated[cdata, "const SpanSet *"], n: int) -> int: +def tstzspanset_timestamptz_n(ss: Annotated[_ffi.CData, "const SpanSet *"], n: int) -> int: ss_converted = _ffi.cast("const SpanSet *", ss) out_result = _ffi.new("TimestampTz *") result = _lib.tstzspanset_timestamptz_n(ss_converted, n, out_result) @@ -1859,7 +1868,7 @@ def tstzspanset_timestamptz_n(ss: Annotated[cdata, "const SpanSet *"], n: int) - return None -def tstzspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: +def tstzspanset_upper(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_upper(ss_converted) _check_error() @@ -1867,8 +1876,8 @@ def tstzspanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, def bigintset_shift_scale( - s: Annotated[cdata, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) shift_converted = _ffi.cast("int64", shift) width_converted = _ffi.cast("int64", width) @@ -1878,8 +1887,8 @@ def bigintset_shift_scale( def bigintspan_shift_scale( - s: Annotated[cdata, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) shift_converted = _ffi.cast("int64", shift) width_converted = _ffi.cast("int64", width) @@ -1889,8 +1898,8 @@ def bigintspan_shift_scale( def bigintspanset_shift_scale( - ss: Annotated[cdata, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) shift_converted = _ffi.cast("int64", shift) width_converted = _ffi.cast("int64", width) @@ -1900,8 +1909,8 @@ def bigintspanset_shift_scale( def dateset_shift_scale( - s: Annotated[cdata, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.dateset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -1909,8 +1918,8 @@ def dateset_shift_scale( def datespan_shift_scale( - s: Annotated[cdata, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.datespan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -1918,36 +1927,36 @@ def datespan_shift_scale( def datespanset_shift_scale( - ss: Annotated[cdata, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.datespanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatset_ceil(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def floatset_ceil(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_degrees(s: Annotated[cdata, "const Set *"], normalize: bool) -> Annotated[cdata, "Set *"]: +def floatset_degrees(s: Annotated[_ffi.CData, "const Set *"], normalize: bool) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatset_floor(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def floatset_floor(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatset_radians(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def floatset_radians(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_radians(s_converted) _check_error() @@ -1955,43 +1964,43 @@ def floatset_radians(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Se def floatset_shift_scale( - s: Annotated[cdata, "const Set *"], shift: float, width: float, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.floatset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspan_ceil(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def floatspan_ceil(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_ceil(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_degrees(s: Annotated[cdata, "const Span *"], normalize: bool) -> Annotated[cdata, "Span *"]: +def floatspan_degrees(s: Annotated[_ffi.CData, "const Span *"], normalize: bool) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_degrees(s_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspan_floor(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def floatspan_floor(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_floor(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_radians(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Span *"]: +def floatspan_radians(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_radians(s_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[cdata, "Span *"]: +def floatspan_round(s: Annotated[_ffi.CData, "const Span *"], maxdd: int) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_round(s_converted, maxdd) _check_error() @@ -1999,43 +2008,45 @@ def floatspan_round(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotate def floatspan_shift_scale( - s: Annotated[cdata, "const Span *"], shift: float, width: float, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.floatspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def floatspanset_ceil(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_ceil(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_ceil(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_floor(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_floor(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_floor(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_degrees(ss: Annotated[cdata, "const SpanSet *"], normalize: bool) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_degrees( + ss: Annotated[_ffi.CData, "const SpanSet *"], normalize: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_degrees(ss_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def floatspanset_radians(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_radians(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_radians(ss_converted) _check_error() return result if result != _ffi.NULL else None -def floatspanset_round(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotated[cdata, "SpanSet *"]: +def floatspanset_round(ss: Annotated[_ffi.CData, "const SpanSet *"], maxdd: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_round(ss_converted, maxdd) _check_error() @@ -2043,8 +2054,8 @@ def floatspanset_round(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> A def floatspanset_shift_scale( - ss: Annotated[cdata, "const SpanSet *"], shift: float, width: float, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.floatspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() @@ -2052,8 +2063,8 @@ def floatspanset_shift_scale( def intset_shift_scale( - s: Annotated[cdata, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intset_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -2061,8 +2072,8 @@ def intset_shift_scale( def intspan_shift_scale( - s: Annotated[cdata, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intspan_shift_scale(s_converted, shift, width, hasshift, haswidth) _check_error() @@ -2070,15 +2081,17 @@ def intspan_shift_scale( def intspanset_shift_scale( - ss: Annotated[cdata, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intspanset_shift_scale(ss_converted, shift, width, hasshift, haswidth) _check_error() return result if result != _ffi.NULL else None -def numspan_expand(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Span *"]: +def numspan_expand( + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.numspan_expand(s_converted, value_converted) @@ -2087,8 +2100,8 @@ def numspan_expand(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, def tstzspan_expand( - s: Annotated[cdata, "const Span *"], interv: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], interv: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tstzspan_expand(s_converted, interv_converted) @@ -2096,14 +2109,14 @@ def tstzspan_expand( return result if result != _ffi.NULL else None -def set_round(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[cdata, "Set *"]: +def set_round(s: Annotated[_ffi.CData, "const Set *"], maxdd: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_round(s_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def textcat_text_textset(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def textcat_text_textset(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.textcat_text_textset(txt_converted, s_converted) @@ -2111,7 +2124,7 @@ def textcat_text_textset(txt: str, s: Annotated[cdata, "const Set *"]) -> Annota return result if result != _ffi.NULL else None -def textcat_textset_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: +def textcat_textset_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text(s_converted, txt_converted) @@ -2119,21 +2132,21 @@ def textcat_textset_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annota return result if result != _ffi.NULL else None -def textset_initcap(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def textset_initcap(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_initcap(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_lower(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def textset_lower(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_lower(s_converted) _check_error() return result if result != _ffi.NULL else None -def textset_upper(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def textset_upper(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.textset_upper(s_converted) _check_error() @@ -2141,7 +2154,7 @@ def textset_upper(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set * def timestamptz_tprecision( - t: int, duration: Annotated[cdata, "const Interval *"], torigin: int + t: int, duration: Annotated[_ffi.CData, "const Interval *"], torigin: int ) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) @@ -2152,10 +2165,10 @@ def timestamptz_tprecision( def tstzset_shift_scale( - s: Annotated[cdata, "const Set *"], - shift: Annotated[cdata, "const Interval *"] | None, - duration: Annotated[cdata, "const Interval *"] | None, -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], + shift: Annotated[_ffi.CData, "const Interval *"] | None, + duration: Annotated[_ffi.CData, "const Interval *"] | None, +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL @@ -2165,8 +2178,8 @@ def tstzset_shift_scale( def tstzset_tprecision( - s: Annotated[cdata, "const Set *"], duration: Annotated[cdata, "const Interval *"], torigin: int -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], duration: Annotated[_ffi.CData, "const Interval *"], torigin: int +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -2176,10 +2189,10 @@ def tstzset_tprecision( def tstzspan_shift_scale( - s: Annotated[cdata, "const Span *"], - shift: Annotated[cdata, "const Interval *"] | None, - duration: Annotated[cdata, "const Interval *"] | None, -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], + shift: Annotated[_ffi.CData, "const Interval *"] | None, + duration: Annotated[_ffi.CData, "const Interval *"] | None, +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL @@ -2189,8 +2202,8 @@ def tstzspan_shift_scale( def tstzspan_tprecision( - s: Annotated[cdata, "const Span *"], duration: Annotated[cdata, "const Interval *"], torigin: int -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], duration: Annotated[_ffi.CData, "const Interval *"], torigin: int +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -2200,10 +2213,10 @@ def tstzspan_tprecision( def tstzspanset_shift_scale( - ss: Annotated[cdata, "const SpanSet *"], - shift: Annotated[cdata, "const Interval *"] | None, - duration: Annotated[cdata, "const Interval *"] | None, -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], + shift: Annotated[_ffi.CData, "const Interval *"] | None, + duration: Annotated[_ffi.CData, "const Interval *"] | None, +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL @@ -2213,8 +2226,8 @@ def tstzspanset_shift_scale( def tstzspanset_tprecision( - ss: Annotated[cdata, "const SpanSet *"], duration: Annotated[cdata, "const Interval *"], torigin: int -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], duration: Annotated[_ffi.CData, "const Interval *"], torigin: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -2223,7 +2236,9 @@ def tstzspanset_tprecision( return result if result != _ffi.NULL else None -def set_cmp(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: +def set_cmp( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_cmp(s1_converted, s2_converted) @@ -2231,7 +2246,9 @@ def set_cmp(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def set_eq(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def set_eq( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_eq(s1_converted, s2_converted) @@ -2239,7 +2256,9 @@ def set_eq(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def set_ge(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def set_ge( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_ge(s1_converted, s2_converted) @@ -2247,7 +2266,9 @@ def set_ge(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def set_gt(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def set_gt( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_gt(s1_converted, s2_converted) @@ -2255,7 +2276,9 @@ def set_gt(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def set_le(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def set_le( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_le(s1_converted, s2_converted) @@ -2263,7 +2286,9 @@ def set_le(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def set_lt(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def set_lt( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_lt(s1_converted, s2_converted) @@ -2271,7 +2296,9 @@ def set_lt(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def set_ne(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def set_ne( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.set_ne(s1_converted, s2_converted) @@ -2279,7 +2306,9 @@ def set_ne(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set return result if result != _ffi.NULL else None -def span_cmp(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[int, "int"]: +def span_cmp( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_cmp(s1_converted, s2_converted) @@ -2287,7 +2316,9 @@ def span_cmp(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const S return result if result != _ffi.NULL else None -def span_eq(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_eq( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_eq(s1_converted, s2_converted) @@ -2295,7 +2326,9 @@ def span_eq(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Sp return result if result != _ffi.NULL else None -def span_ge(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_ge( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_ge(s1_converted, s2_converted) @@ -2303,7 +2336,9 @@ def span_ge(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Sp return result if result != _ffi.NULL else None -def span_gt(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_gt( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_gt(s1_converted, s2_converted) @@ -2311,7 +2346,9 @@ def span_gt(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Sp return result if result != _ffi.NULL else None -def span_le(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_le( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_le(s1_converted, s2_converted) @@ -2319,7 +2356,9 @@ def span_le(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Sp return result if result != _ffi.NULL else None -def span_lt(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_lt( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_lt(s1_converted, s2_converted) @@ -2327,7 +2366,9 @@ def span_lt(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Sp return result if result != _ffi.NULL else None -def span_ne(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def span_ne( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.span_ne(s1_converted, s2_converted) @@ -2336,7 +2377,7 @@ def span_ne(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Sp def spanset_cmp( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2346,7 +2387,7 @@ def spanset_cmp( def spanset_eq( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2356,7 +2397,7 @@ def spanset_eq( def spanset_ge( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2366,7 +2407,7 @@ def spanset_ge( def spanset_gt( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2376,7 +2417,7 @@ def spanset_gt( def spanset_le( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2386,7 +2427,7 @@ def spanset_le( def spanset_lt( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2396,7 +2437,7 @@ def spanset_lt( def spanset_ne( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2405,7 +2446,7 @@ def spanset_ne( return result if result != _ffi.NULL else None -def set_spans(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: +def set_spans(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_spans(s_converted) _check_error() @@ -2413,8 +2454,8 @@ def set_spans(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: def set_split_each_n_spans( - s: Annotated[cdata, "const Set *"], elems_per_span: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Set *"], elems_per_span: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) count_converted = _ffi.cast("int *", count) result = _lib.set_split_each_n_spans(s_converted, elems_per_span, count_converted) @@ -2423,8 +2464,8 @@ def set_split_each_n_spans( def set_split_n_spans( - s: Annotated[cdata, "const Set *"], span_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Set *"], span_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) count_converted = _ffi.cast("int *", count) result = _lib.set_split_n_spans(s_converted, span_count, count_converted) @@ -2432,7 +2473,7 @@ def set_split_n_spans( return result if result != _ffi.NULL else None -def spanset_spans(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Span *"]: +def spanset_spans(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_spans(ss_converted) _check_error() @@ -2440,8 +2481,8 @@ def spanset_spans(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, " def spanset_split_each_n_spans( - ss: Annotated[cdata, "const SpanSet *"], elems_per_span: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], elems_per_span: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.spanset_split_each_n_spans(ss_converted, elems_per_span, count_converted) @@ -2450,8 +2491,8 @@ def spanset_split_each_n_spans( def spanset_split_n_spans( - ss: Annotated[cdata, "const SpanSet *"], span_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], span_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.spanset_split_n_spans(ss_converted, span_count, count_converted) @@ -2459,7 +2500,7 @@ def spanset_split_n_spans( return result if result != _ffi.NULL else None -def adjacent_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def adjacent_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.adjacent_span_bigint(s_converted, i_converted) @@ -2467,7 +2508,7 @@ def adjacent_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotat return result if result != _ffi.NULL else None -def adjacent_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: +def adjacent_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.adjacent_span_date(s_converted, d_converted) @@ -2475,14 +2516,14 @@ def adjacent_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated return result if result != _ffi.NULL else None -def adjacent_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: +def adjacent_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def adjacent_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.adjacent_span_int(s_converted, i) _check_error() @@ -2490,7 +2531,7 @@ def adjacent_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ def adjacent_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -2500,7 +2541,7 @@ def adjacent_span_span( def adjacent_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -2509,7 +2550,7 @@ def adjacent_span_spanset( return result if result != _ffi.NULL else None -def adjacent_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: +def adjacent_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.adjacent_span_timestamptz(s_converted, t_converted) @@ -2517,7 +2558,7 @@ def adjacent_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> An return result if result != _ffi.NULL else None -def adjacent_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def adjacent_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.adjacent_spanset_bigint(ss_converted, i_converted) @@ -2525,7 +2566,7 @@ def adjacent_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> return result if result != _ffi.NULL else None -def adjacent_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: +def adjacent_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.adjacent_spanset_date(ss_converted, d_converted) @@ -2533,21 +2574,21 @@ def adjacent_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> An return result if result != _ffi.NULL else None -def adjacent_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: +def adjacent_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def adjacent_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.adjacent_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def adjacent_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: +def adjacent_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.adjacent_spanset_timestamptz(ss_converted, t_converted) @@ -2556,7 +2597,7 @@ def adjacent_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int def adjacent_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -2566,7 +2607,7 @@ def adjacent_spanset_span( def adjacent_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2575,7 +2616,7 @@ def adjacent_spanset_spanset( return result if result != _ffi.NULL else None -def contained_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def contained_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_bigint_set(i_converted, s_converted) @@ -2583,7 +2624,7 @@ def contained_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotate return result if result != _ffi.NULL else None -def contained_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def contained_bigint_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_bigint_span(i_converted, s_converted) @@ -2591,7 +2632,7 @@ def contained_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annota return result if result != _ffi.NULL else None -def contained_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def contained_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_bigint_spanset(i_converted, ss_converted) @@ -2599,7 +2640,7 @@ def contained_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> return result if result != _ffi.NULL else None -def contained_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def contained_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_date_set(d_converted, s_converted) @@ -2607,7 +2648,7 @@ def contained_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[ return result if result != _ffi.NULL else None -def contained_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def contained_date_span(d: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_date_span(d_converted, s_converted) @@ -2615,7 +2656,7 @@ def contained_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotate return result if result != _ffi.NULL else None -def contained_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def contained_date_spanset(d: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_date_spanset(d_converted, ss_converted) @@ -2623,42 +2664,42 @@ def contained_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> A return result if result != _ffi.NULL else None -def contained_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def contained_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contained_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def contained_float_span(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contained_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def contained_float_spanset(d: float, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def contained_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contained_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def contained_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contained_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def contained_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def contained_int_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_int_spanset(i, ss_converted) _check_error() @@ -2666,7 +2707,7 @@ def contained_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> An def contained_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -2676,7 +2717,7 @@ def contained_set_set( def contained_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -2686,7 +2727,7 @@ def contained_span_span( def contained_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -2696,7 +2737,7 @@ def contained_span_spanset( def contained_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -2706,7 +2747,7 @@ def contained_spanset_span( def contained_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2715,7 +2756,7 @@ def contained_spanset_spanset( return result if result != _ffi.NULL else None -def contained_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def contained_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_text_set(txt_converted, s_converted) @@ -2723,7 +2764,7 @@ def contained_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotate return result if result != _ffi.NULL else None -def contained_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def contained_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.contained_timestamptz_set(t_converted, s_converted) @@ -2731,7 +2772,7 @@ def contained_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Ann return result if result != _ffi.NULL else None -def contained_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def contained_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.contained_timestamptz_span(t_converted, s_converted) @@ -2739,7 +2780,7 @@ def contained_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> A return result if result != _ffi.NULL else None -def contained_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def contained_timestamptz_spanset(t: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contained_timestamptz_spanset(t_converted, ss_converted) @@ -2747,7 +2788,7 @@ def contained_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *" return result if result != _ffi.NULL else None -def contains_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def contains_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.contains_set_bigint(s_converted, i_converted) @@ -2755,7 +2796,7 @@ def contains_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated return result if result != _ffi.NULL else None -def contains_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: +def contains_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.contains_set_date(s_converted, d_converted) @@ -2763,14 +2804,14 @@ def contains_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[b return result if result != _ffi.NULL else None -def contains_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: +def contains_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def contains_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.contains_set_int(s_converted, i) _check_error() @@ -2778,7 +2819,7 @@ def contains_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bo def contains_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -2787,7 +2828,7 @@ def contains_set_set( return result if result != _ffi.NULL else None -def contains_set_text(s: Annotated[cdata, "const Set *"], t: str) -> Annotated[bool, "bool"]: +def contains_set_text(s: Annotated[_ffi.CData, "const Set *"], t: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = cstring2text(t) result = _lib.contains_set_text(s_converted, t_converted) @@ -2795,7 +2836,7 @@ def contains_set_text(s: Annotated[cdata, "const Set *"], t: str) -> Annotated[b return result if result != _ffi.NULL else None -def contains_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: +def contains_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_set_timestamptz(s_converted, t_converted) @@ -2803,7 +2844,7 @@ def contains_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Anno return result if result != _ffi.NULL else None -def contains_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def contains_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.contains_span_bigint(s_converted, i_converted) @@ -2811,7 +2852,7 @@ def contains_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotat return result if result != _ffi.NULL else None -def contains_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: +def contains_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.contains_span_date(s_converted, d_converted) @@ -2819,14 +2860,14 @@ def contains_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated return result if result != _ffi.NULL else None -def contains_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: +def contains_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contains_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def contains_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.contains_span_int(s_converted, i) _check_error() @@ -2834,7 +2875,7 @@ def contains_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ def contains_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -2844,7 +2885,7 @@ def contains_span_span( def contains_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -2853,7 +2894,7 @@ def contains_span_spanset( return result if result != _ffi.NULL else None -def contains_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: +def contains_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_span_timestamptz(s_converted, t_converted) @@ -2861,7 +2902,7 @@ def contains_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> An return result if result != _ffi.NULL else None -def contains_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def contains_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.contains_spanset_bigint(ss_converted, i_converted) @@ -2869,7 +2910,7 @@ def contains_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> return result if result != _ffi.NULL else None -def contains_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: +def contains_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.contains_spanset_date(ss_converted, d_converted) @@ -2877,14 +2918,14 @@ def contains_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> An return result if result != _ffi.NULL else None -def contains_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: +def contains_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def contains_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def contains_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.contains_spanset_int(ss_converted, i) _check_error() @@ -2892,7 +2933,7 @@ def contains_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Ann def contains_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -2902,7 +2943,7 @@ def contains_spanset_span( def contains_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2911,7 +2952,7 @@ def contains_spanset_spanset( return result if result != _ffi.NULL else None -def contains_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: +def contains_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.contains_spanset_timestamptz(ss_converted, t_converted) @@ -2920,7 +2961,7 @@ def contains_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int def overlaps_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -2930,7 +2971,7 @@ def overlaps_set_set( def overlaps_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -2940,7 +2981,7 @@ def overlaps_span_span( def overlaps_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -2950,7 +2991,7 @@ def overlaps_span_spanset( def overlaps_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -2960,7 +3001,7 @@ def overlaps_spanset_span( def overlaps_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -2969,7 +3010,7 @@ def overlaps_spanset_spanset( return result if result != _ffi.NULL else None -def after_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def after_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.after_date_set(d_converted, s_converted) @@ -2977,7 +3018,7 @@ def after_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool return result if result != _ffi.NULL else None -def after_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def after_date_span(d: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.after_date_span(d_converted, s_converted) @@ -2985,7 +3026,7 @@ def after_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bo return result if result != _ffi.NULL else None -def after_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def after_date_spanset(d: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.after_date_spanset(d_converted, ss_converted) @@ -2993,7 +3034,7 @@ def after_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annot return result if result != _ffi.NULL else None -def after_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: +def after_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.after_set_date(s_converted, d_converted) @@ -3001,7 +3042,7 @@ def after_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool return result if result != _ffi.NULL else None -def after_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: +def after_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_set_timestamptz(s_converted, t_converted) @@ -3009,7 +3050,7 @@ def after_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotat return result if result != _ffi.NULL else None -def after_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: +def after_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.after_span_date(s_converted, d_converted) @@ -3017,7 +3058,7 @@ def after_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bo return result if result != _ffi.NULL else None -def after_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: +def after_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_span_timestamptz(s_converted, t_converted) @@ -3025,7 +3066,7 @@ def after_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annot return result if result != _ffi.NULL else None -def after_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: +def after_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.after_spanset_date(ss_converted, d_converted) @@ -3033,7 +3074,7 @@ def after_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annot return result if result != _ffi.NULL else None -def after_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: +def after_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.after_spanset_timestamptz(ss_converted, t_converted) @@ -3041,7 +3082,7 @@ def after_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) - return result if result != _ffi.NULL else None -def after_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def after_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.after_timestamptz_set(t_converted, s_converted) @@ -3049,7 +3090,7 @@ def after_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotat return result if result != _ffi.NULL else None -def after_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def after_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.after_timestamptz_span(t_converted, s_converted) @@ -3057,7 +3098,7 @@ def after_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annot return result if result != _ffi.NULL else None -def after_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def after_timestamptz_spanset(t: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.after_timestamptz_spanset(t_converted, ss_converted) @@ -3065,7 +3106,7 @@ def after_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) - return result if result != _ffi.NULL else None -def before_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def before_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.before_date_set(d_converted, s_converted) @@ -3073,7 +3114,7 @@ def before_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[boo return result if result != _ffi.NULL else None -def before_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def before_date_span(d: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.before_date_span(d_converted, s_converted) @@ -3081,7 +3122,7 @@ def before_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[b return result if result != _ffi.NULL else None -def before_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def before_date_spanset(d: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.before_date_spanset(d_converted, ss_converted) @@ -3089,7 +3130,7 @@ def before_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Anno return result if result != _ffi.NULL else None -def before_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: +def before_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.before_set_date(s_converted, d_converted) @@ -3097,7 +3138,7 @@ def before_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[boo return result if result != _ffi.NULL else None -def before_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: +def before_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_set_timestamptz(s_converted, t_converted) @@ -3105,7 +3146,7 @@ def before_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annota return result if result != _ffi.NULL else None -def before_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: +def before_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.before_span_date(s_converted, d_converted) @@ -3113,7 +3154,7 @@ def before_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[b return result if result != _ffi.NULL else None -def before_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: +def before_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_span_timestamptz(s_converted, t_converted) @@ -3121,7 +3162,7 @@ def before_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Anno return result if result != _ffi.NULL else None -def before_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: +def before_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.before_spanset_date(ss_converted, d_converted) @@ -3129,7 +3170,7 @@ def before_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Anno return result if result != _ffi.NULL else None -def before_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: +def before_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.before_spanset_timestamptz(ss_converted, t_converted) @@ -3137,7 +3178,7 @@ def before_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) return result if result != _ffi.NULL else None -def before_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def before_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.before_timestamptz_set(t_converted, s_converted) @@ -3145,7 +3186,7 @@ def before_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annota return result if result != _ffi.NULL else None -def before_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def before_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.before_timestamptz_span(t_converted, s_converted) @@ -3153,7 +3194,7 @@ def before_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Anno return result if result != _ffi.NULL else None -def before_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def before_timestamptz_spanset(t: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.before_timestamptz_spanset(t_converted, ss_converted) @@ -3161,7 +3202,7 @@ def before_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) return result if result != _ffi.NULL else None -def left_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def left_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.left_bigint_set(i_converted, s_converted) @@ -3169,7 +3210,7 @@ def left_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[boo return result if result != _ffi.NULL else None -def left_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def left_bigint_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.left_bigint_span(i_converted, s_converted) @@ -3177,7 +3218,7 @@ def left_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[b return result if result != _ffi.NULL else None -def left_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def left_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_bigint_spanset(i_converted, ss_converted) @@ -3185,49 +3226,49 @@ def left_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Anno return result if result != _ffi.NULL else None -def left_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def left_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def left_float_span(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def left_float_spanset(d: float, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def left_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def left_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def left_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def left_int_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def left_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def left_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.left_set_bigint(s_converted, i_converted) @@ -3235,21 +3276,23 @@ def left_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[boo return result if result != _ffi.NULL else None -def left_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: +def left_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def left_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.left_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def left_set_set(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def left_set_set( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.left_set_set(s1_converted, s2_converted) @@ -3257,7 +3300,7 @@ def left_set_set(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def left_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: +def left_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.left_set_text(s_converted, txt_converted) @@ -3265,7 +3308,7 @@ def left_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[boo return result if result != _ffi.NULL else None -def left_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def left_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.left_span_bigint(s_converted, i_converted) @@ -3273,14 +3316,14 @@ def left_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[b return result if result != _ffi.NULL else None -def left_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: +def left_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def left_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.left_span_int(s_converted, i) _check_error() @@ -3288,7 +3331,7 @@ def left_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool def left_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -3298,7 +3341,7 @@ def left_span_span( def left_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -3307,7 +3350,7 @@ def left_span_spanset( return result if result != _ffi.NULL else None -def left_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def left_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.left_spanset_bigint(ss_converted, i_converted) @@ -3315,14 +3358,14 @@ def left_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Anno return result if result != _ffi.NULL else None -def left_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: +def left_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def left_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def left_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.left_spanset_int(ss_converted, i) _check_error() @@ -3330,7 +3373,7 @@ def left_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotat def left_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -3340,7 +3383,7 @@ def left_spanset_span( def left_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -3349,7 +3392,7 @@ def left_spanset_spanset( return result if result != _ffi.NULL else None -def left_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def left_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.left_text_set(txt_converted, s_converted) @@ -3357,7 +3400,7 @@ def left_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[boo return result if result != _ffi.NULL else None -def overafter_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overafter_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.overafter_date_set(d_converted, s_converted) @@ -3365,7 +3408,7 @@ def overafter_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[ return result if result != _ffi.NULL else None -def overafter_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overafter_date_span(d: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_date_span(d_converted, s_converted) @@ -3373,7 +3416,7 @@ def overafter_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotate return result if result != _ffi.NULL else None -def overafter_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overafter_date_spanset(d: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overafter_date_spanset(d_converted, ss_converted) @@ -3381,7 +3424,7 @@ def overafter_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> A return result if result != _ffi.NULL else None -def overafter_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: +def overafter_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_set_date(s_converted, d_converted) @@ -3389,7 +3432,7 @@ def overafter_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[ return result if result != _ffi.NULL else None -def overafter_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: +def overafter_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_set_timestamptz(s_converted, t_converted) @@ -3397,7 +3440,7 @@ def overafter_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Ann return result if result != _ffi.NULL else None -def overafter_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: +def overafter_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_span_date(s_converted, d_converted) @@ -3405,7 +3448,7 @@ def overafter_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotate return result if result != _ffi.NULL else None -def overafter_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: +def overafter_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_span_timestamptz(s_converted, t_converted) @@ -3413,7 +3456,7 @@ def overafter_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> A return result if result != _ffi.NULL else None -def overafter_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: +def overafter_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.overafter_spanset_date(ss_converted, d_converted) @@ -3421,7 +3464,7 @@ def overafter_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> A return result if result != _ffi.NULL else None -def overafter_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: +def overafter_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overafter_spanset_timestamptz(ss_converted, t_converted) @@ -3429,7 +3472,7 @@ def overafter_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: in return result if result != _ffi.NULL else None -def overafter_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overafter_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.overafter_timestamptz_set(t_converted, s_converted) @@ -3437,7 +3480,7 @@ def overafter_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Ann return result if result != _ffi.NULL else None -def overafter_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overafter_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.overafter_timestamptz_span(t_converted, s_converted) @@ -3445,7 +3488,7 @@ def overafter_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> A return result if result != _ffi.NULL else None -def overafter_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overafter_timestamptz_spanset(t: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overafter_timestamptz_spanset(t_converted, ss_converted) @@ -3453,7 +3496,7 @@ def overafter_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *" return result if result != _ffi.NULL else None -def overbefore_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overbefore_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.overbefore_date_set(d_converted, s_converted) @@ -3461,7 +3504,7 @@ def overbefore_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated return result if result != _ffi.NULL else None -def overbefore_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overbefore_date_span(d: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_date_span(d_converted, s_converted) @@ -3469,7 +3512,7 @@ def overbefore_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotat return result if result != _ffi.NULL else None -def overbefore_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overbefore_date_spanset(d: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overbefore_date_spanset(d_converted, ss_converted) @@ -3477,7 +3520,7 @@ def overbefore_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> return result if result != _ffi.NULL else None -def overbefore_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[bool, "bool"]: +def overbefore_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_set_date(s_converted, d_converted) @@ -3485,7 +3528,7 @@ def overbefore_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated return result if result != _ffi.NULL else None -def overbefore_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[bool, "bool"]: +def overbefore_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_set_timestamptz(s_converted, t_converted) @@ -3493,7 +3536,7 @@ def overbefore_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> An return result if result != _ffi.NULL else None -def overbefore_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[bool, "bool"]: +def overbefore_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_span_date(s_converted, d_converted) @@ -3501,7 +3544,7 @@ def overbefore_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotat return result if result != _ffi.NULL else None -def overbefore_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[bool, "bool"]: +def overbefore_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_span_timestamptz(s_converted, t_converted) @@ -3509,7 +3552,7 @@ def overbefore_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> return result if result != _ffi.NULL else None -def overbefore_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: +def overbefore_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.overbefore_spanset_date(ss_converted, d_converted) @@ -3517,7 +3560,7 @@ def overbefore_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> return result if result != _ffi.NULL else None -def overbefore_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: +def overbefore_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.overbefore_spanset_timestamptz(ss_converted, t_converted) @@ -3525,7 +3568,7 @@ def overbefore_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: i return result if result != _ffi.NULL else None -def overbefore_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overbefore_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.overbefore_timestamptz_set(t_converted, s_converted) @@ -3533,7 +3576,7 @@ def overbefore_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> An return result if result != _ffi.NULL else None -def overbefore_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overbefore_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.overbefore_timestamptz_span(t_converted, s_converted) @@ -3541,7 +3584,7 @@ def overbefore_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> return result if result != _ffi.NULL else None -def overbefore_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overbefore_timestamptz_spanset(t: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overbefore_timestamptz_spanset(t_converted, ss_converted) @@ -3549,7 +3592,7 @@ def overbefore_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet * return result if result != _ffi.NULL else None -def overleft_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overleft_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_bigint_set(i_converted, s_converted) @@ -3557,7 +3600,7 @@ def overleft_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated return result if result != _ffi.NULL else None -def overleft_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overleft_bigint_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_bigint_span(i_converted, s_converted) @@ -3565,7 +3608,7 @@ def overleft_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotat return result if result != _ffi.NULL else None -def overleft_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overleft_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_bigint_spanset(i_converted, ss_converted) @@ -3573,49 +3616,49 @@ def overleft_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> return result if result != _ffi.NULL else None -def overleft_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overleft_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overleft_float_span(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overleft_float_spanset(d: float, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overleft_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overleft_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overleft_int_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overleft_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def overleft_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.overleft_set_bigint(s_converted, i_converted) @@ -3623,14 +3666,14 @@ def overleft_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated return result if result != _ffi.NULL else None -def overleft_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: +def overleft_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def overleft_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_set_int(s_converted, i) _check_error() @@ -3638,7 +3681,7 @@ def overleft_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bo def overleft_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -3647,7 +3690,7 @@ def overleft_set_set( return result if result != _ffi.NULL else None -def overleft_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: +def overleft_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.overleft_set_text(s_converted, txt_converted) @@ -3655,7 +3698,7 @@ def overleft_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated return result if result != _ffi.NULL else None -def overleft_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def overleft_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.overleft_span_bigint(s_converted, i_converted) @@ -3663,14 +3706,14 @@ def overleft_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotat return result if result != _ffi.NULL else None -def overleft_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: +def overleft_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def overleft_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overleft_span_int(s_converted, i) _check_error() @@ -3678,7 +3721,7 @@ def overleft_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ def overleft_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -3688,7 +3731,7 @@ def overleft_span_span( def overleft_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -3697,7 +3740,7 @@ def overleft_span_spanset( return result if result != _ffi.NULL else None -def overleft_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def overleft_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.overleft_spanset_bigint(ss_converted, i_converted) @@ -3705,14 +3748,14 @@ def overleft_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> return result if result != _ffi.NULL else None -def overleft_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: +def overleft_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overleft_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def overleft_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overleft_spanset_int(ss_converted, i) _check_error() @@ -3720,7 +3763,7 @@ def overleft_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Ann def overleft_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -3730,7 +3773,7 @@ def overleft_spanset_span( def overleft_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -3739,7 +3782,7 @@ def overleft_spanset_spanset( return result if result != _ffi.NULL else None -def overleft_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overleft_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_text_set(txt_converted, s_converted) @@ -3747,7 +3790,7 @@ def overleft_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated return result if result != _ffi.NULL else None -def overright_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overright_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.overright_bigint_set(i_converted, s_converted) @@ -3755,7 +3798,7 @@ def overright_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotate return result if result != _ffi.NULL else None -def overright_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overright_bigint_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.overright_bigint_span(i_converted, s_converted) @@ -3763,7 +3806,7 @@ def overright_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annota return result if result != _ffi.NULL else None -def overright_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overright_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_bigint_spanset(i_converted, ss_converted) @@ -3771,49 +3814,49 @@ def overright_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> return result if result != _ffi.NULL else None -def overright_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overright_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overright_float_span(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overright_float_spanset(d: float, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overright_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def overright_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def overright_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def overright_int_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def overright_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def overright_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.overright_set_bigint(s_converted, i_converted) @@ -3821,14 +3864,14 @@ def overright_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotate return result if result != _ffi.NULL else None -def overright_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: +def overright_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def overright_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.overright_set_int(s_converted, i) _check_error() @@ -3836,7 +3879,7 @@ def overright_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[b def overright_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -3845,7 +3888,7 @@ def overright_set_set( return result if result != _ffi.NULL else None -def overright_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: +def overright_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.overright_set_text(s_converted, txt_converted) @@ -3853,7 +3896,7 @@ def overright_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotate return result if result != _ffi.NULL else None -def overright_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def overright_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.overright_span_bigint(s_converted, i_converted) @@ -3861,14 +3904,14 @@ def overright_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annota return result if result != _ffi.NULL else None -def overright_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: +def overright_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def overright_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.overright_span_int(s_converted, i) _check_error() @@ -3876,7 +3919,7 @@ def overright_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated def overright_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -3886,7 +3929,7 @@ def overright_span_span( def overright_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -3895,7 +3938,7 @@ def overright_span_spanset( return result if result != _ffi.NULL else None -def overright_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def overright_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.overright_spanset_bigint(ss_converted, i_converted) @@ -3903,14 +3946,14 @@ def overright_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> return result if result != _ffi.NULL else None -def overright_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: +def overright_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def overright_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def overright_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.overright_spanset_int(ss_converted, i) _check_error() @@ -3918,7 +3961,7 @@ def overright_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> An def overright_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -3928,7 +3971,7 @@ def overright_spanset_span( def overright_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -3937,7 +3980,7 @@ def overright_spanset_spanset( return result if result != _ffi.NULL else None -def overright_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overright_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.overright_text_set(txt_converted, s_converted) @@ -3945,7 +3988,7 @@ def overright_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotate return result if result != _ffi.NULL else None -def right_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def right_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.right_bigint_set(i_converted, s_converted) @@ -3953,7 +3996,7 @@ def right_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bo return result if result != _ffi.NULL else None -def right_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def right_bigint_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.right_bigint_span(i_converted, s_converted) @@ -3961,7 +4004,7 @@ def right_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[ return result if result != _ffi.NULL else None -def right_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def right_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_bigint_spanset(i_converted, ss_converted) @@ -3969,49 +4012,49 @@ def right_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Ann return result if result != _ffi.NULL else None -def right_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def right_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def right_float_span(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def right_float_spanset(d: float, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def right_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def right_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def right_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[bool, "bool"]: +def right_int_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def right_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def right_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.right_set_bigint(s_converted, i_converted) @@ -4019,21 +4062,23 @@ def right_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bo return result if result != _ffi.NULL else None -def right_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[bool, "bool"]: +def right_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[bool, "bool"]: +def right_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) result = _lib.right_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def right_set_set(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def right_set_set( + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.right_set_set(s1_converted, s2_converted) @@ -4041,7 +4086,7 @@ def right_set_set(s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "con return result if result != _ffi.NULL else None -def right_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bool, "bool"]: +def right_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.right_set_text(s_converted, txt_converted) @@ -4049,7 +4094,7 @@ def right_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[bo return result if result != _ffi.NULL else None -def right_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def right_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.right_span_bigint(s_converted, i_converted) @@ -4057,14 +4102,14 @@ def right_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ return result if result != _ffi.NULL else None -def right_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[bool, "bool"]: +def right_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[bool, "bool"]: +def right_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) result = _lib.right_span_int(s_converted, i) _check_error() @@ -4072,7 +4117,7 @@ def right_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[boo def right_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -4082,7 +4127,7 @@ def right_span_span( def right_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -4091,7 +4136,7 @@ def right_span_spanset( return result if result != _ffi.NULL else None -def right_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def right_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.right_spanset_bigint(ss_converted, i_converted) @@ -4099,14 +4144,14 @@ def right_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Ann return result if result != _ffi.NULL else None -def right_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: +def right_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def right_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: +def right_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.right_spanset_int(ss_converted, i) _check_error() @@ -4114,7 +4159,7 @@ def right_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annota def right_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -4124,7 +4169,7 @@ def right_spanset_span( def right_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -4133,7 +4178,7 @@ def right_spanset_spanset( return result if result != _ffi.NULL else None -def right_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def right_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[bool, "bool"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.right_text_set(txt_converted, s_converted) @@ -4141,7 +4186,7 @@ def right_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[bo return result if result != _ffi.NULL else None -def intersection_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intersection_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_bigint_set(i_converted, s_converted) @@ -4149,7 +4194,7 @@ def intersection_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annot return result if result != _ffi.NULL else None -def intersection_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intersection_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_date_set(d_converted, s_converted) @@ -4157,21 +4202,21 @@ def intersection_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotat return result if result != _ffi.NULL else None -def intersection_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intersection_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intersection_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def intersection_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: +def intersection_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.intersection_set_bigint(s_converted, i_converted) @@ -4179,7 +4224,7 @@ def intersection_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annot return result if result != _ffi.NULL else None -def intersection_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdata, "Set *"]: +def intersection_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_set_date(s_converted, d_converted) @@ -4187,14 +4232,14 @@ def intersection_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotat return result if result != _ffi.NULL else None -def intersection_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[cdata, "Set *"]: +def intersection_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: +def intersection_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_set_int(s_converted, i) _check_error() @@ -4202,8 +4247,8 @@ def intersection_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotate def intersection_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.intersection_set_set(s1_converted, s2_converted) @@ -4211,7 +4256,7 @@ def intersection_set_set( return result if result != _ffi.NULL else None -def intersection_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: +def intersection_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.intersection_set_text(s_converted, txt_converted) @@ -4219,7 +4264,7 @@ def intersection_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annot return result if result != _ffi.NULL else None -def intersection_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[cdata, "Set *"]: +def intersection_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_set_timestamptz(s_converted, t_converted) @@ -4227,7 +4272,7 @@ def intersection_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> return result if result != _ffi.NULL else None -def intersection_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "Span *"]: +def intersection_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.intersection_span_bigint(s_converted, i_converted) @@ -4235,7 +4280,7 @@ def intersection_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Ann return result if result != _ffi.NULL else None -def intersection_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "Span *"]: +def intersection_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_span_date(s_converted, d_converted) @@ -4243,14 +4288,14 @@ def intersection_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annot return result if result != _ffi.NULL else None -def intersection_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "Span *"]: +def intersection_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "Span *"]: +def intersection_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_span_int(s_converted, i) _check_error() @@ -4258,8 +4303,8 @@ def intersection_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annota def intersection_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.intersection_span_span(s1_converted, s2_converted) @@ -4268,8 +4313,8 @@ def intersection_span_span( def intersection_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_span_spanset(s_converted, ss_converted) @@ -4277,7 +4322,7 @@ def intersection_span_spanset( return result if result != _ffi.NULL else None -def intersection_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "Span *"]: +def intersection_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_span_timestamptz(s_converted, t_converted) @@ -4285,7 +4330,9 @@ def intersection_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) - return result if result != _ffi.NULL else None -def intersection_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def intersection_spanset_bigint( + ss: Annotated[_ffi.CData, "const SpanSet *"], i: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.intersection_spanset_bigint(ss_converted, i_converted) @@ -4293,7 +4340,9 @@ def intersection_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) return result if result != _ffi.NULL else None -def intersection_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[cdata, "SpanSet *"]: +def intersection_spanset_date( + ss: Annotated[_ffi.CData, "const SpanSet *"], d: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.intersection_spanset_date(ss_converted, d_converted) @@ -4301,14 +4350,18 @@ def intersection_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) - return result if result != _ffi.NULL else None -def intersection_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[cdata, "SpanSet *"]: +def intersection_spanset_float( + ss: Annotated[_ffi.CData, "const SpanSet *"], d: float +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def intersection_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def intersection_spanset_int( + ss: Annotated[_ffi.CData, "const SpanSet *"], i: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_spanset_int(ss_converted, i) _check_error() @@ -4316,8 +4369,8 @@ def intersection_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> def intersection_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_spanset_span(ss_converted, s_converted) @@ -4326,8 +4379,8 @@ def intersection_spanset_span( def intersection_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.intersection_spanset_spanset(ss1_converted, ss2_converted) @@ -4335,7 +4388,9 @@ def intersection_spanset_spanset( return result if result != _ffi.NULL else None -def intersection_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[cdata, "SpanSet *"]: +def intersection_spanset_timestamptz( + ss: Annotated[_ffi.CData, "const SpanSet *"], t: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.intersection_spanset_timestamptz(ss_converted, t_converted) @@ -4343,7 +4398,7 @@ def intersection_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: return result if result != _ffi.NULL else None -def intersection_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intersection_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_text_set(txt_converted, s_converted) @@ -4351,7 +4406,7 @@ def intersection_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annot return result if result != _ffi.NULL else None -def intersection_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def intersection_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_timestamptz_set(t_converted, s_converted) @@ -4359,7 +4414,7 @@ def intersection_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> return result if result != _ffi.NULL else None -def minus_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_bigint_set(i_converted, s_converted) @@ -4367,7 +4422,7 @@ def minus_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cd return result if result != _ffi.NULL else None -def minus_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_bigint_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_bigint_span(i_converted, s_converted) @@ -4375,7 +4430,7 @@ def minus_bigint_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[ return result if result != _ffi.NULL else None -def minus_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_bigint_spanset(i_converted, ss_converted) @@ -4383,7 +4438,7 @@ def minus_bigint_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Ann return result if result != _ffi.NULL else None -def minus_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_date_set(d_converted, s_converted) @@ -4391,7 +4446,7 @@ def minus_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdat return result if result != _ffi.NULL else None -def minus_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_date_span(d: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_date_span(d_converted, s_converted) @@ -4399,7 +4454,7 @@ def minus_date_span(d: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cd return result if result != _ffi.NULL else None -def minus_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_date_spanset(d: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_date_spanset(d_converted, ss_converted) @@ -4407,49 +4462,49 @@ def minus_date_spanset(d: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annot return result if result != _ffi.NULL else None -def minus_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_span(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_float_span(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_float_span(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_float_spanset(d: float, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_float_spanset(d: float, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def minus_int_spanset(i: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_int_spanset(i: int, ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def minus_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: +def minus_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.minus_set_bigint(s_converted, i_converted) @@ -4457,7 +4512,7 @@ def minus_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cd return result if result != _ffi.NULL else None -def minus_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdata, "Set *"]: +def minus_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.minus_set_date(s_converted, d_converted) @@ -4465,14 +4520,14 @@ def minus_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdat return result if result != _ffi.NULL else None -def minus_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[cdata, "Set *"]: +def minus_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: +def minus_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.minus_set_int(s_converted, i) _check_error() @@ -4480,8 +4535,8 @@ def minus_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata def minus_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.minus_set_set(s1_converted, s2_converted) @@ -4489,7 +4544,7 @@ def minus_set_set( return result if result != _ffi.NULL else None -def minus_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: +def minus_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.minus_set_text(s_converted, txt_converted) @@ -4497,7 +4552,7 @@ def minus_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cd return result if result != _ffi.NULL else None -def minus_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[cdata, "Set *"]: +def minus_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_set_timestamptz(s_converted, t_converted) @@ -4505,7 +4560,7 @@ def minus_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotat return result if result != _ffi.NULL else None -def minus_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def minus_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.minus_span_bigint(s_converted, i_converted) @@ -4513,7 +4568,7 @@ def minus_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ return result if result != _ffi.NULL else None -def minus_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "SpanSet *"]: +def minus_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.minus_span_date(s_converted, d_converted) @@ -4521,14 +4576,14 @@ def minus_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cd return result if result != _ffi.NULL else None -def minus_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "SpanSet *"]: +def minus_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def minus_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.minus_span_int(s_converted, i) _check_error() @@ -4536,8 +4591,8 @@ def minus_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cda def minus_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.minus_span_span(s1_converted, s2_converted) @@ -4546,8 +4601,8 @@ def minus_span_span( def minus_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_span_spanset(s_converted, ss_converted) @@ -4555,7 +4610,7 @@ def minus_span_spanset( return result if result != _ffi.NULL else None -def minus_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "SpanSet *"]: +def minus_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_span_timestamptz(s_converted, t_converted) @@ -4563,7 +4618,7 @@ def minus_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annot return result if result != _ffi.NULL else None -def minus_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def minus_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.minus_spanset_bigint(ss_converted, i_converted) @@ -4571,7 +4626,7 @@ def minus_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Ann return result if result != _ffi.NULL else None -def minus_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[cdata, "SpanSet *"]: +def minus_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.minus_spanset_date(ss_converted, d_converted) @@ -4579,14 +4634,14 @@ def minus_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annot return result if result != _ffi.NULL else None -def minus_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[cdata, "SpanSet *"]: +def minus_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def minus_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def minus_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_spanset_int(ss_converted, i) _check_error() @@ -4594,8 +4649,8 @@ def minus_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annota def minus_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_spanset_span(ss_converted, s_converted) @@ -4604,8 +4659,8 @@ def minus_spanset_span( def minus_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.minus_spanset_spanset(ss1_converted, ss2_converted) @@ -4613,7 +4668,9 @@ def minus_spanset_spanset( return result if result != _ffi.NULL else None -def minus_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[cdata, "SpanSet *"]: +def minus_spanset_timestamptz( + ss: Annotated[_ffi.CData, "const SpanSet *"], t: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.minus_spanset_timestamptz(ss_converted, t_converted) @@ -4621,7 +4678,7 @@ def minus_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) - return result if result != _ffi.NULL else None -def minus_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_text_set(txt_converted, s_converted) @@ -4629,7 +4686,7 @@ def minus_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cd return result if result != _ffi.NULL else None -def minus_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_timestamptz_set(t_converted, s_converted) @@ -4637,7 +4694,7 @@ def minus_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotat return result if result != _ffi.NULL else None -def minus_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_timestamptz_span(t_converted, s_converted) @@ -4645,7 +4702,9 @@ def minus_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annot return result if result != _ffi.NULL else None -def minus_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def minus_timestamptz_spanset( + t: int, ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_timestamptz_spanset(t_converted, ss_converted) @@ -4653,7 +4712,7 @@ def minus_timestamptz_spanset(t: int, ss: Annotated[cdata, "const SpanSet *"]) - return result if result != _ffi.NULL else None -def union_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_bigint_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: i_converted = _ffi.cast("int64", i) s_converted = _ffi.cast("const Set *", s) result = _lib.union_bigint_set(i_converted, s_converted) @@ -4661,7 +4720,7 @@ def union_bigint_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cd return result if result != _ffi.NULL else None -def union_bigint_span(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def union_bigint_span(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.union_bigint_span(s_converted, i_converted) @@ -4669,7 +4728,7 @@ def union_bigint_span(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ return result if result != _ffi.NULL else None -def union_bigint_spanset(i: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def union_bigint_spanset(i: int, ss: Annotated[_ffi.CData, "SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: i_converted = _ffi.cast("int64", i) ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_bigint_spanset(i_converted, ss_converted) @@ -4677,7 +4736,7 @@ def union_bigint_spanset(i: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated return result if result != _ffi.NULL else None -def union_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_date_set(d: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: d_converted = _ffi.cast("DateADT", d) s_converted = _ffi.cast("const Set *", s) result = _lib.union_date_set(d_converted, s_converted) @@ -4685,7 +4744,7 @@ def union_date_set(d: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdat return result if result != _ffi.NULL else None -def union_date_span(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "SpanSet *"]: +def union_date_span(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.union_date_span(s_converted, d_converted) @@ -4693,7 +4752,7 @@ def union_date_span(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cd return result if result != _ffi.NULL else None -def union_date_spanset(d: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def union_date_spanset(d: int, ss: Annotated[_ffi.CData, "SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: d_converted = _ffi.cast("DateADT", d) ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_date_spanset(d_converted, ss_converted) @@ -4701,49 +4760,49 @@ def union_date_spanset(d: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[c return result if result != _ffi.NULL else None -def union_float_set(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_float_set(d: float, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_float_set(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_float_span(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "SpanSet *"]: +def union_float_span(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_float_span(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_float_spanset(d: float, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def union_float_spanset(d: float, ss: Annotated[_ffi.CData, "SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_float_spanset(d, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_set(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_int_set(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_int_set(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_span(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def union_int_span(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_int_span(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def union_int_spanset(i: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def union_int_spanset(i: int, ss: Annotated[_ffi.CData, "SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_int_spanset(i, ss_converted) _check_error() return result if result != _ffi.NULL else None -def union_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: +def union_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.union_set_bigint(s_converted, i_converted) @@ -4751,7 +4810,7 @@ def union_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cd return result if result != _ffi.NULL else None -def union_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdata, "Set *"]: +def union_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.union_set_date(s_converted, d_converted) @@ -4759,14 +4818,14 @@ def union_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[cdat return result if result != _ffi.NULL else None -def union_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[cdata, "Set *"]: +def union_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata, "Set *"]: +def union_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.union_set_int(s_converted, i) _check_error() @@ -4774,8 +4833,8 @@ def union_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[cdata def union_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.union_set_set(s1_converted, s2_converted) @@ -4783,7 +4842,7 @@ def union_set_set( return result if result != _ffi.NULL else None -def union_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cdata, "Set *"]: +def union_set_text(s: Annotated[_ffi.CData, "const Set *"], txt: str) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.union_set_text(s_converted, txt_converted) @@ -4791,7 +4850,7 @@ def union_set_text(s: Annotated[cdata, "const Set *"], txt: str) -> Annotated[cd return result if result != _ffi.NULL else None -def union_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[cdata, "Set *"]: +def union_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_set_timestamptz(s_converted, t_converted) @@ -4799,7 +4858,7 @@ def union_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotat return result if result != _ffi.NULL else None -def union_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def union_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.union_span_bigint(s_converted, i_converted) @@ -4807,7 +4866,7 @@ def union_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[ return result if result != _ffi.NULL else None -def union_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cdata, "SpanSet *"]: +def union_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.union_span_date(s_converted, d_converted) @@ -4815,14 +4874,14 @@ def union_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[cd return result if result != _ffi.NULL else None -def union_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[cdata, "SpanSet *"]: +def union_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def union_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.union_span_int(s_converted, i) _check_error() @@ -4830,8 +4889,8 @@ def union_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[cda def union_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.union_span_span(s1_converted, s2_converted) @@ -4840,8 +4899,8 @@ def union_span_span( def union_span_spanset( - s: Annotated[cdata, "const Span *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + s: Annotated[_ffi.CData, "const Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_span_spanset(s_converted, ss_converted) @@ -4849,7 +4908,7 @@ def union_span_spanset( return result if result != _ffi.NULL else None -def union_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "SpanSet *"]: +def union_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_span_timestamptz(s_converted, t_converted) @@ -4857,7 +4916,7 @@ def union_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annot return result if result != _ffi.NULL else None -def union_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def union_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.union_spanset_bigint(ss_converted, i_converted) @@ -4865,7 +4924,7 @@ def union_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Ann return result if result != _ffi.NULL else None -def union_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[cdata, "SpanSet *"]: +def union_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.union_spanset_date(ss_converted, d_converted) @@ -4873,14 +4932,14 @@ def union_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annot return result if result != _ffi.NULL else None -def union_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[cdata, "SpanSet *"]: +def union_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def union_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[cdata, "SpanSet *"]: +def union_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_spanset_int(ss_converted, i) _check_error() @@ -4888,8 +4947,8 @@ def union_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annota def union_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.union_spanset_span(ss_converted, s_converted) @@ -4898,8 +4957,8 @@ def union_spanset_span( def union_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.union_spanset_spanset(ss1_converted, ss2_converted) @@ -4907,7 +4966,9 @@ def union_spanset_spanset( return result if result != _ffi.NULL else None -def union_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[cdata, "SpanSet *"]: +def union_spanset_timestamptz( + ss: Annotated[_ffi.CData, "const SpanSet *"], t: int +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.union_spanset_timestamptz(ss_converted, t_converted) @@ -4915,7 +4976,7 @@ def union_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) - return result if result != _ffi.NULL else None -def union_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_text_set(txt: str, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.union_text_set(txt_converted, s_converted) @@ -4923,7 +4984,7 @@ def union_text_set(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cd return result if result != _ffi.NULL else None -def union_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_timestamptz_set(t: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Set *", s) result = _lib.union_timestamptz_set(t_converted, s_converted) @@ -4931,7 +4992,7 @@ def union_timestamptz_set(t: int, s: Annotated[cdata, "const Set *"]) -> Annotat return result if result != _ffi.NULL else None -def union_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "SpanSet *"]: +def union_timestamptz_span(t: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) s_converted = _ffi.cast("const Span *", s) result = _lib.union_timestamptz_span(t_converted, s_converted) @@ -4939,7 +5000,7 @@ def union_timestamptz_span(t: int, s: Annotated[cdata, "const Span *"]) -> Annot return result if result != _ffi.NULL else None -def union_timestamptz_spanset(t: int, ss: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def union_timestamptz_spanset(t: int, ss: Annotated[_ffi.CData, "SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: t_converted = _ffi.cast("TimestampTz", t) ss_converted = _ffi.cast("SpanSet *", ss) result = _lib.union_timestamptz_spanset(t_converted, ss_converted) @@ -4948,7 +5009,7 @@ def union_timestamptz_spanset(t: int, ss: Annotated[cdata, "SpanSet *"]) -> Anno def distance_bigintset_bigintset( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[int, "int64"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -4958,7 +5019,7 @@ def distance_bigintset_bigintset( def distance_bigintspan_bigintspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[int, "int64"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -4968,7 +5029,7 @@ def distance_bigintspan_bigintspan( def distance_bigintspanset_bigintspan( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -4978,7 +5039,7 @@ def distance_bigintspanset_bigintspan( def distance_bigintspanset_bigintspanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[int, "int64"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -4988,7 +5049,7 @@ def distance_bigintspanset_bigintspanset( def distance_dateset_dateset( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -4998,7 +5059,7 @@ def distance_dateset_dateset( def distance_datespan_datespan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -5008,7 +5069,7 @@ def distance_datespan_datespan( def distance_datespanset_datespan( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -5018,7 +5079,7 @@ def distance_datespanset_datespan( def distance_datespanset_datespanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -5028,7 +5089,7 @@ def distance_datespanset_datespanset( def distance_floatset_floatset( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -5038,7 +5099,7 @@ def distance_floatset_floatset( def distance_floatspan_floatspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -5048,7 +5109,7 @@ def distance_floatspan_floatspan( def distance_floatspanset_floatspan( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -5058,7 +5119,7 @@ def distance_floatspanset_floatspan( def distance_floatspanset_floatspanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[float, "double"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -5068,7 +5129,7 @@ def distance_floatspanset_floatspanset( def distance_intset_intset( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -5078,7 +5139,7 @@ def distance_intset_intset( def distance_intspan_intspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[int, "int"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -5088,7 +5149,7 @@ def distance_intspan_intspan( def distance_intspanset_intspan( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -5098,7 +5159,7 @@ def distance_intspanset_intspan( def distance_intspanset_intspanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -5107,7 +5168,7 @@ def distance_intspanset_intspanset( return result if result != _ffi.NULL else None -def distance_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[int, "int64"]: +def distance_set_bigint(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Set *", s) i_converted = _ffi.cast("int64", i) result = _lib.distance_set_bigint(s_converted, i_converted) @@ -5115,7 +5176,7 @@ def distance_set_bigint(s: Annotated[cdata, "const Set *"], i: int) -> Annotated return result if result != _ffi.NULL else None -def distance_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[int, "int"]: +def distance_set_date(s: Annotated[_ffi.CData, "const Set *"], d: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.distance_set_date(s_converted, d_converted) @@ -5123,21 +5184,21 @@ def distance_set_date(s: Annotated[cdata, "const Set *"], d: int) -> Annotated[i return result if result != _ffi.NULL else None -def distance_set_float(s: Annotated[cdata, "const Set *"], d: float) -> Annotated[float, "double"]: +def distance_set_float(s: Annotated[_ffi.CData, "const Set *"], d: float) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) result = _lib.distance_set_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_set_int(s: Annotated[cdata, "const Set *"], i: int) -> Annotated[int, "int"]: +def distance_set_int(s: Annotated[_ffi.CData, "const Set *"], i: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.distance_set_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Annotated[float, "double"]: +def distance_set_timestamptz(s: Annotated[_ffi.CData, "const Set *"], t: int) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Set *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_set_timestamptz(s_converted, t_converted) @@ -5145,7 +5206,7 @@ def distance_set_timestamptz(s: Annotated[cdata, "const Set *"], t: int) -> Anno return result if result != _ffi.NULL else None -def distance_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[int, "int64"]: +def distance_span_bigint(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[int, "int64"]: s_converted = _ffi.cast("const Span *", s) i_converted = _ffi.cast("int64", i) result = _lib.distance_span_bigint(s_converted, i_converted) @@ -5153,7 +5214,7 @@ def distance_span_bigint(s: Annotated[cdata, "const Span *"], i: int) -> Annotat return result if result != _ffi.NULL else None -def distance_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated[int, "int"]: +def distance_span_date(s: Annotated[_ffi.CData, "const Span *"], d: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) d_converted = _ffi.cast("DateADT", d) result = _lib.distance_span_date(s_converted, d_converted) @@ -5161,21 +5222,21 @@ def distance_span_date(s: Annotated[cdata, "const Span *"], d: int) -> Annotated return result if result != _ffi.NULL else None -def distance_span_float(s: Annotated[cdata, "const Span *"], d: float) -> Annotated[float, "double"]: +def distance_span_float(s: Annotated[_ffi.CData, "const Span *"], d: float) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) result = _lib.distance_span_float(s_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_span_int(s: Annotated[cdata, "const Span *"], i: int) -> Annotated[int, "int"]: +def distance_span_int(s: Annotated[_ffi.CData, "const Span *"], i: int) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Span *", s) result = _lib.distance_span_int(s_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> Annotated[float, "double"]: +def distance_span_timestamptz(s: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[float, "double"]: s_converted = _ffi.cast("const Span *", s) t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_span_timestamptz(s_converted, t_converted) @@ -5183,7 +5244,7 @@ def distance_span_timestamptz(s: Annotated[cdata, "const Span *"], t: int) -> An return result if result != _ffi.NULL else None -def distance_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[int, "int64"]: +def distance_spanset_bigint(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[int, "int64"]: ss_converted = _ffi.cast("const SpanSet *", ss) i_converted = _ffi.cast("int64", i) result = _lib.distance_spanset_bigint(ss_converted, i_converted) @@ -5191,7 +5252,7 @@ def distance_spanset_bigint(ss: Annotated[cdata, "const SpanSet *"], i: int) -> return result if result != _ffi.NULL else None -def distance_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> Annotated[int, "int"]: +def distance_spanset_date(ss: Annotated[_ffi.CData, "const SpanSet *"], d: int) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) d_converted = _ffi.cast("DateADT", d) result = _lib.distance_spanset_date(ss_converted, d_converted) @@ -5199,21 +5260,21 @@ def distance_spanset_date(ss: Annotated[cdata, "const SpanSet *"], d: int) -> An return result if result != _ffi.NULL else None -def distance_spanset_float(ss: Annotated[cdata, "const SpanSet *"], d: float) -> Annotated[float, "double"]: +def distance_spanset_float(ss: Annotated[_ffi.CData, "const SpanSet *"], d: float) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.distance_spanset_float(ss_converted, d) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_int(ss: Annotated[cdata, "const SpanSet *"], i: int) -> Annotated[int, "int"]: +def distance_spanset_int(ss: Annotated[_ffi.CData, "const SpanSet *"], i: int) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.distance_spanset_int(ss_converted, i) _check_error() return result if result != _ffi.NULL else None -def distance_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int) -> Annotated[float, "double"]: +def distance_spanset_timestamptz(ss: Annotated[_ffi.CData, "const SpanSet *"], t: int) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.distance_spanset_timestamptz(ss_converted, t_converted) @@ -5222,7 +5283,7 @@ def distance_spanset_timestamptz(ss: Annotated[cdata, "const SpanSet *"], t: int def distance_tstzset_tstzset( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) @@ -5232,7 +5293,7 @@ def distance_tstzset_tstzset( def distance_tstzspan_tstzspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[float, "double"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -5242,7 +5303,7 @@ def distance_tstzspan_tstzspan( def distance_tstzspanset_tstzspan( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) @@ -5252,7 +5313,7 @@ def distance_tstzspanset_tstzspan( def distance_tstzspanset_tstzspanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[float, "double"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) @@ -5261,7 +5322,7 @@ def distance_tstzspanset_tstzspanset( return result if result != _ffi.NULL else None -def bigint_extent_transfn(state: Annotated[cdata, "Span *"], i: int) -> Annotated[cdata, "Span *"]: +def bigint_extent_transfn(state: Annotated[_ffi.CData, "Span *"], i: int) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) i_converted = _ffi.cast("int64", i) result = _lib.bigint_extent_transfn(state_converted, i_converted) @@ -5269,7 +5330,7 @@ def bigint_extent_transfn(state: Annotated[cdata, "Span *"], i: int) -> Annotate return result if result != _ffi.NULL else None -def bigint_union_transfn(state: Annotated[cdata, "Set *"], i: int) -> Annotated[cdata, "Set *"]: +def bigint_union_transfn(state: Annotated[_ffi.CData, "Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) i_converted = _ffi.cast("int64", i) result = _lib.bigint_union_transfn(state_converted, i_converted) @@ -5277,7 +5338,7 @@ def bigint_union_transfn(state: Annotated[cdata, "Set *"], i: int) -> Annotated[ return result if result != _ffi.NULL else None -def date_extent_transfn(state: Annotated[cdata, "Span *"], d: int) -> Annotated[cdata, "Span *"]: +def date_extent_transfn(state: Annotated[_ffi.CData, "Span *"], d: int) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) d_converted = _ffi.cast("DateADT", d) result = _lib.date_extent_transfn(state_converted, d_converted) @@ -5285,7 +5346,7 @@ def date_extent_transfn(state: Annotated[cdata, "Span *"], d: int) -> Annotated[ return result if result != _ffi.NULL else None -def date_union_transfn(state: Annotated[cdata, "Set *"], d: int) -> Annotated[cdata, "Set *"]: +def date_union_transfn(state: Annotated[_ffi.CData, "Set *"], d: int) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) d_converted = _ffi.cast("DateADT", d) result = _lib.date_union_transfn(state_converted, d_converted) @@ -5293,28 +5354,28 @@ def date_union_transfn(state: Annotated[cdata, "Set *"], d: int) -> Annotated[cd return result if result != _ffi.NULL else None -def float_extent_transfn(state: Annotated[cdata, "Span *"], d: float) -> Annotated[cdata, "Span *"]: +def float_extent_transfn(state: Annotated[_ffi.CData, "Span *"], d: float) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) result = _lib.float_extent_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def float_union_transfn(state: Annotated[cdata, "Set *"], d: float) -> Annotated[cdata, "Set *"]: +def float_union_transfn(state: Annotated[_ffi.CData, "Set *"], d: float) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) result = _lib.float_union_transfn(state_converted, d) _check_error() return result if result != _ffi.NULL else None -def int_extent_transfn(state: Annotated[cdata, "Span *"], i: int) -> Annotated[cdata, "Span *"]: +def int_extent_transfn(state: Annotated[_ffi.CData, "Span *"], i: int) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) result = _lib.int_extent_transfn(state_converted, i) _check_error() return result if result != _ffi.NULL else None -def int_union_transfn(state: Annotated[cdata, "Set *"], i: int) -> Annotated[cdata, "Set *"]: +def int_union_transfn(state: Annotated[_ffi.CData, "Set *"], i: int) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) i_converted = _ffi.cast("int32", i) result = _lib.int_union_transfn(state_converted, i_converted) @@ -5323,8 +5384,8 @@ def int_union_transfn(state: Annotated[cdata, "Set *"], i: int) -> Annotated[cda def set_extent_transfn( - state: Annotated[cdata, "Span *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Span *"]: + state: Annotated[_ffi.CData, "Span *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) s_converted = _ffi.cast("const Set *", s) result = _lib.set_extent_transfn(state_converted, s_converted) @@ -5332,14 +5393,16 @@ def set_extent_transfn( return result if result != _ffi.NULL else None -def set_union_finalfn(state: Annotated[cdata, "Set *"]) -> Annotated[cdata, "Set *"]: +def set_union_finalfn(state: Annotated[_ffi.CData, "Set *"]) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) result = _lib.set_union_finalfn(state_converted) _check_error() return result if result != _ffi.NULL else None -def set_union_transfn(state: Annotated[cdata, "Set *"], s: Annotated[cdata, "Set *"]) -> Annotated[cdata, "Set *"]: +def set_union_transfn( + state: Annotated[_ffi.CData, "Set *"], s: Annotated[_ffi.CData, "Set *"] +) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) s_converted = _ffi.cast("Set *", s) result = _lib.set_union_transfn(state_converted, s_converted) @@ -5348,8 +5411,8 @@ def set_union_transfn(state: Annotated[cdata, "Set *"], s: Annotated[cdata, "Set def span_extent_transfn( - state: Annotated[cdata, "Span *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + state: Annotated[_ffi.CData, "Span *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) s_converted = _ffi.cast("const Span *", s) result = _lib.span_extent_transfn(state_converted, s_converted) @@ -5358,8 +5421,8 @@ def span_extent_transfn( def span_union_transfn( - state: Annotated[cdata, "SpanSet *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + state: Annotated[_ffi.CData, "SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: state_converted = _ffi.cast("SpanSet *", state) s_converted = _ffi.cast("const Span *", s) result = _lib.span_union_transfn(state_converted, s_converted) @@ -5368,8 +5431,8 @@ def span_union_transfn( def spanset_extent_transfn( - state: Annotated[cdata, "Span *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "Span *"]: + state: Annotated[_ffi.CData, "Span *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_extent_transfn(state_converted, ss_converted) @@ -5377,7 +5440,7 @@ def spanset_extent_transfn( return result if result != _ffi.NULL else None -def spanset_union_finalfn(state: Annotated[cdata, "SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def spanset_union_finalfn(state: Annotated[_ffi.CData, "SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: state_converted = _ffi.cast("SpanSet *", state) result = _lib.spanset_union_finalfn(state_converted) _check_error() @@ -5385,8 +5448,8 @@ def spanset_union_finalfn(state: Annotated[cdata, "SpanSet *"]) -> Annotated[cda def spanset_union_transfn( - state: Annotated[cdata, "SpanSet *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + state: Annotated[_ffi.CData, "SpanSet *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: state_converted = _ffi.cast("SpanSet *", state) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_union_transfn(state_converted, ss_converted) @@ -5394,7 +5457,7 @@ def spanset_union_transfn( return result if result != _ffi.NULL else None -def text_union_transfn(state: Annotated[cdata, "Set *"], txt: str) -> Annotated[cdata, "Set *"]: +def text_union_transfn(state: Annotated[_ffi.CData, "Set *"], txt: str) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) txt_converted = cstring2text(txt) result = _lib.text_union_transfn(state_converted, txt_converted) @@ -5402,7 +5465,7 @@ def text_union_transfn(state: Annotated[cdata, "Set *"], txt: str) -> Annotated[ return result if result != _ffi.NULL else None -def timestamptz_extent_transfn(state: Annotated[cdata, "Span *"], t: int) -> Annotated[cdata, "Span *"]: +def timestamptz_extent_transfn(state: Annotated[_ffi.CData, "Span *"], t: int) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_extent_transfn(state_converted, t_converted) @@ -5410,7 +5473,7 @@ def timestamptz_extent_transfn(state: Annotated[cdata, "Span *"], t: int) -> Ann return result if result != _ffi.NULL else None -def timestamptz_union_transfn(state: Annotated[cdata, "Set *"], t: int) -> Annotated[cdata, "Set *"]: +def timestamptz_union_transfn(state: Annotated[_ffi.CData, "Set *"], t: int) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_union_transfn(state_converted, t_converted) @@ -5428,8 +5491,8 @@ def bigint_get_bin(value: int, vsize: int, vorigin: int) -> Annotated[int, "int6 def bigintspan_bins( - s: Annotated[cdata, "const Span *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], vsize: int, vorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) vsize_converted = _ffi.cast("int64", vsize) vorigin_converted = _ffi.cast("int64", vorigin) @@ -5440,8 +5503,8 @@ def bigintspan_bins( def bigintspanset_bins( - ss: Annotated[cdata, "const SpanSet *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], vsize: int, vorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) vsize_converted = _ffi.cast("int64", vsize) vorigin_converted = _ffi.cast("int64", vorigin) @@ -5451,7 +5514,9 @@ def bigintspanset_bins( return result if result != _ffi.NULL else None -def date_get_bin(d: int, duration: Annotated[cdata, "const Interval *"], torigin: int) -> Annotated[int, "DateADT"]: +def date_get_bin( + d: int, duration: Annotated[_ffi.CData, "const Interval *"], torigin: int +) -> Annotated[int, "DateADT"]: d_converted = _ffi.cast("DateADT", d) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("DateADT", torigin) @@ -5461,11 +5526,11 @@ def date_get_bin(d: int, duration: Annotated[cdata, "const Interval *"], torigin def datespan_bins( - s: Annotated[cdata, "const Span *"], - duration: Annotated[cdata, "const Interval *"], + s: Annotated[_ffi.CData, "const Span *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("DateADT", torigin) @@ -5476,11 +5541,11 @@ def datespan_bins( def datespanset_bins( - ss: Annotated[cdata, "const SpanSet *"], - duration: Annotated[cdata, "const Interval *"], + ss: Annotated[_ffi.CData, "const SpanSet *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("DateADT", torigin) @@ -5497,8 +5562,8 @@ def float_get_bin(value: float, vsize: float, vorigin: float) -> Annotated[float def floatspan_bins( - s: Annotated[cdata, "const Span *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], vsize: float, vorigin: float, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) count_converted = _ffi.cast("int *", count) result = _lib.floatspan_bins(s_converted, vsize, vorigin, count_converted) @@ -5507,8 +5572,8 @@ def floatspan_bins( def floatspanset_bins( - ss: Annotated[cdata, "const SpanSet *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], vsize: float, vorigin: float, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.floatspanset_bins(ss_converted, vsize, vorigin, count_converted) @@ -5523,8 +5588,8 @@ def int_get_bin(value: int, vsize: int, vorigin: int) -> Annotated[int, "int"]: def intspan_bins( - s: Annotated[cdata, "const Span *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], vsize: int, vorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) count_converted = _ffi.cast("int *", count) result = _lib.intspan_bins(s_converted, vsize, vorigin, count_converted) @@ -5533,8 +5598,8 @@ def intspan_bins( def intspanset_bins( - ss: Annotated[cdata, "const SpanSet *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], vsize: int, vorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.intspanset_bins(ss_converted, vsize, vorigin, count_converted) @@ -5543,7 +5608,7 @@ def intspanset_bins( def timestamptz_get_bin( - t: int, duration: Annotated[cdata, "const Interval *"], torigin: int + t: int, duration: Annotated[_ffi.CData, "const Interval *"], torigin: int ) -> Annotated[int, "TimestampTz"]: t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) @@ -5554,11 +5619,11 @@ def timestamptz_get_bin( def tstzspan_bins( - s: Annotated[cdata, "const Span *"], - duration: Annotated[cdata, "const Interval *"], + s: Annotated[_ffi.CData, "const Span *"], + duration: Annotated[_ffi.CData, "const Interval *"], origin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) @@ -5569,11 +5634,11 @@ def tstzspan_bins( def tstzspanset_bins( - ss: Annotated[cdata, "const SpanSet *"], - duration: Annotated[cdata, "const Interval *"], + ss: Annotated[_ffi.CData, "const SpanSet *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -5584,8 +5649,8 @@ def tstzspanset_bins( def tbox_as_hexwkb( - box: Annotated[cdata, "const TBox *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + box: Annotated[_ffi.CData, "const TBox *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: box_converted = _ffi.cast("const TBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size = _ffi.new("size_t *") @@ -5596,8 +5661,8 @@ def tbox_as_hexwkb( def tbox_as_wkb( - box: Annotated[cdata, "const TBox *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + box: Annotated[_ffi.CData, "const TBox *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: box_converted = _ffi.cast("const TBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -5607,7 +5672,7 @@ def tbox_as_wkb( return result_converted -def tbox_from_hexwkb(hexwkb: str) -> Annotated[cdata, "TBox *"]: +def tbox_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "TBox *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.tbox_from_hexwkb(hexwkb_converted) _check_error() @@ -5620,14 +5685,14 @@ def tbox_from_wkb(wkb: bytes) -> "TBOX *": return result if result != _ffi.NULL else None -def tbox_in(string: str) -> Annotated[cdata, "TBox *"]: +def tbox_in(string: str) -> Annotated[_ffi.CData, "TBox *"]: string_converted = string.encode("utf-8") result = _lib.tbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_out(box: Annotated[cdata, "const TBox *"], maxdd: int) -> Annotated[str, "char *"]: +def tbox_out(box: Annotated[_ffi.CData, "const TBox *"], maxdd: int) -> Annotated[str, "char *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_out(box_converted, maxdd) _check_error() @@ -5635,28 +5700,28 @@ def tbox_out(box: Annotated[cdata, "const TBox *"], maxdd: int) -> Annotated[str return result if result != _ffi.NULL else None -def float_timestamptz_to_tbox(d: float, t: int) -> Annotated[cdata, "TBox *"]: +def float_timestamptz_to_tbox(d: float, t: int) -> Annotated[_ffi.CData, "TBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.float_timestamptz_to_tbox(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def float_tstzspan_to_tbox(d: float, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TBox *"]: +def float_tstzspan_to_tbox(d: float, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "TBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.float_tstzspan_to_tbox(d, s_converted) _check_error() return result if result != _ffi.NULL else None -def int_timestamptz_to_tbox(i: int, t: int) -> Annotated[cdata, "TBox *"]: +def int_timestamptz_to_tbox(i: int, t: int) -> Annotated[_ffi.CData, "TBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.int_timestamptz_to_tbox(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def int_tstzspan_to_tbox(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TBox *"]: +def int_tstzspan_to_tbox(i: int, s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "TBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.int_tstzspan_to_tbox(i, s_converted) _check_error() @@ -5664,8 +5729,8 @@ def int_tstzspan_to_tbox(i: int, s: Annotated[cdata, "const Span *"]) -> Annotat def numspan_tstzspan_to_tbox( - span: Annotated[cdata, "const Span *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "TBox *"]: + span: Annotated[_ffi.CData, "const Span *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "TBox *"]: span_converted = _ffi.cast("const Span *", span) s_converted = _ffi.cast("const Span *", s) result = _lib.numspan_tstzspan_to_tbox(span_converted, s_converted) @@ -5673,7 +5738,7 @@ def numspan_tstzspan_to_tbox( return result if result != _ffi.NULL else None -def numspan_timestamptz_to_tbox(span: Annotated[cdata, "const Span *"], t: int) -> Annotated[cdata, "TBox *"]: +def numspan_timestamptz_to_tbox(span: Annotated[_ffi.CData, "const Span *"], t: int) -> Annotated[_ffi.CData, "TBox *"]: span_converted = _ffi.cast("const Span *", span) t_converted = _ffi.cast("TimestampTz", t) result = _lib.numspan_timestamptz_to_tbox(span_converted, t_converted) @@ -5681,7 +5746,7 @@ def numspan_timestamptz_to_tbox(span: Annotated[cdata, "const Span *"], t: int) return result if result != _ffi.NULL else None -def tbox_copy(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "TBox *"]: +def tbox_copy(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_copy(box_converted) _check_error() @@ -5689,8 +5754,8 @@ def tbox_copy(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "TBox * def tbox_make( - s: Annotated[cdata, "const Span *"] | None, p: Annotated[cdata, "const Span *"] | None -) -> Annotated[cdata, "TBox *"]: + s: Annotated[_ffi.CData, "const Span *"] | None, p: Annotated[_ffi.CData, "const Span *"] | None +) -> Annotated[_ffi.CData, "TBox *"]: s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL p_converted = _ffi.cast("const Span *", p) if p is not None else _ffi.NULL result = _lib.tbox_make(s_converted, p_converted) @@ -5698,82 +5763,82 @@ def tbox_make( return result if result != _ffi.NULL else None -def float_to_tbox(d: float) -> Annotated[cdata, "TBox *"]: +def float_to_tbox(d: float) -> Annotated[_ffi.CData, "TBox *"]: result = _lib.float_to_tbox(d) _check_error() return result if result != _ffi.NULL else None -def int_to_tbox(i: int) -> Annotated[cdata, "TBox *"]: +def int_to_tbox(i: int) -> Annotated[_ffi.CData, "TBox *"]: result = _lib.int_to_tbox(i) _check_error() return result if result != _ffi.NULL else None -def set_to_tbox(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TBox *"]: +def set_to_tbox(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "TBox *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_to_tbox(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TBox *"]: +def span_to_tbox(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "TBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_to_tbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_to_tbox(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "TBox *"]: +def spanset_to_tbox(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "TBox *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_to_tbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_intspan(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "Span *"]: +def tbox_to_intspan(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "Span *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_intspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_floatspan(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "Span *"]: +def tbox_to_floatspan(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "Span *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_floatspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_to_tstzspan(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "Span *"]: +def tbox_to_tstzspan(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "Span *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_tbox(t: int) -> Annotated[cdata, "TBox *"]: +def timestamptz_to_tbox(t: int) -> Annotated[_ffi.CData, "TBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_tbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hast(box: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_hast(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_hasx(box: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_hasx(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def tbox_tmax(box: Annotated[cdata, "const TBox *"]) -> int: +def tbox_tmax(box: Annotated[_ffi.CData, "const TBox *"]) -> int: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.tbox_tmax(box_converted, out_result) @@ -5783,7 +5848,7 @@ def tbox_tmax(box: Annotated[cdata, "const TBox *"]) -> int: return None -def tbox_tmax_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: +def tbox_tmax_inc(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_tmax_inc(box_converted, out_result) @@ -5793,7 +5858,7 @@ def tbox_tmax_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bo return None -def tbox_tmin(box: Annotated[cdata, "const TBox *"]) -> int: +def tbox_tmin(box: Annotated[_ffi.CData, "const TBox *"]) -> int: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.tbox_tmin(box_converted, out_result) @@ -5803,7 +5868,7 @@ def tbox_tmin(box: Annotated[cdata, "const TBox *"]) -> int: return None -def tbox_tmin_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: +def tbox_tmin_inc(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_tmin_inc(box_converted, out_result) @@ -5813,7 +5878,7 @@ def tbox_tmin_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bo return None -def tbox_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: +def tbox_xmax(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tbox_xmax(box_converted, out_result) @@ -5823,7 +5888,7 @@ def tbox_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double return None -def tbox_xmax_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: +def tbox_xmax_inc(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_xmax_inc(box_converted, out_result) @@ -5833,7 +5898,7 @@ def tbox_xmax_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bo return None -def tbox_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: +def tbox_xmin(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tbox_xmin(box_converted, out_result) @@ -5843,7 +5908,7 @@ def tbox_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double return None -def tbox_xmin_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bool"]: +def tbox_xmin_inc(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "bool"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("bool *") result = _lib.tbox_xmin_inc(box_converted, out_result) @@ -5853,7 +5918,7 @@ def tbox_xmin_inc(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "bo return None -def tboxfloat_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: +def tboxfloat_xmax(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tboxfloat_xmax(box_converted, out_result) @@ -5863,7 +5928,7 @@ def tboxfloat_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "d return None -def tboxfloat_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "double"]: +def tboxfloat_xmin(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("double *") result = _lib.tboxfloat_xmin(box_converted, out_result) @@ -5873,7 +5938,7 @@ def tboxfloat_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "d return None -def tboxint_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "int"]: +def tboxint_xmax(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "int"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("int *") result = _lib.tboxint_xmax(box_converted, out_result) @@ -5883,7 +5948,7 @@ def tboxint_xmax(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "int return None -def tboxint_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "int"]: +def tboxint_xmin(box: Annotated[_ffi.CData, "const TBox *"]) -> Annotated[_ffi.CData, "int"]: box_converted = _ffi.cast("const TBox *", box) out_result = _ffi.new("int *") result = _lib.tboxint_xmin(box_converted, out_result) @@ -5893,14 +5958,14 @@ def tboxint_xmin(box: Annotated[cdata, "const TBox *"]) -> Annotated[cdata, "int return None -def tbox_expand_float(box: Annotated[cdata, "const TBox *"], d: float) -> Annotated[cdata, "TBox *"]: +def tbox_expand_float(box: Annotated[_ffi.CData, "const TBox *"], d: float) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_expand_float(box_converted, d) _check_error() return result if result != _ffi.NULL else None -def tbox_expand_int(box: Annotated[cdata, "const TBox *"], i: int) -> Annotated[cdata, "TBox *"]: +def tbox_expand_int(box: Annotated[_ffi.CData, "const TBox *"], i: int) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_expand_int(box_converted, i) _check_error() @@ -5908,8 +5973,8 @@ def tbox_expand_int(box: Annotated[cdata, "const TBox *"], i: int) -> Annotated[ def tbox_expand_time( - box: Annotated[cdata, "const TBox *"], interv: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], interv: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tbox_expand_time(box_converted, interv_converted) @@ -5917,7 +5982,7 @@ def tbox_expand_time( return result if result != _ffi.NULL else None -def tbox_round(box: Annotated[cdata, "const TBox *"], maxdd: int) -> Annotated[cdata, "TBox *"]: +def tbox_round(box: Annotated[_ffi.CData, "const TBox *"], maxdd: int) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_round(box_converted, maxdd) _check_error() @@ -5925,8 +5990,8 @@ def tbox_round(box: Annotated[cdata, "const TBox *"], maxdd: int) -> Annotated[c def tbox_shift_scale_float( - box: Annotated[cdata, "const TBox *"], shift: float, width: float, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], shift: float, width: float, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_shift_scale_float(box_converted, shift, width, hasshift, haswidth) _check_error() @@ -5934,8 +5999,8 @@ def tbox_shift_scale_float( def tbox_shift_scale_int( - box: Annotated[cdata, "const TBox *"], shift: int, width: int, hasshift: bool, haswidth: bool -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], shift: int, width: int, hasshift: bool, haswidth: bool +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) result = _lib.tbox_shift_scale_int(box_converted, shift, width, hasshift, haswidth) _check_error() @@ -5943,10 +6008,10 @@ def tbox_shift_scale_int( def tbox_shift_scale_time( - box: Annotated[cdata, "const TBox *"], - shift: Annotated[cdata, "const Interval *"] | None, - duration: Annotated[cdata, "const Interval *"] | None, -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], + shift: Annotated[_ffi.CData, "const Interval *"] | None, + duration: Annotated[_ffi.CData, "const Interval *"] | None, +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL @@ -5956,8 +6021,8 @@ def tbox_shift_scale_time( def union_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"], strict: bool -) -> Annotated[cdata, "TBox *"]: + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"], strict: bool +) -> Annotated[_ffi.CData, "TBox *"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.union_tbox_tbox(box1_converted, box2_converted, strict) @@ -5966,8 +6031,8 @@ def union_tbox_tbox( def intersection_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] -) -> Annotated[cdata, "TBox *"]: + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[_ffi.CData, "TBox *"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.intersection_tbox_tbox(box1_converted, box2_converted) @@ -5976,7 +6041,7 @@ def intersection_tbox_tbox( def adjacent_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -5986,7 +6051,7 @@ def adjacent_tbox_tbox( def contained_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -5996,7 +6061,7 @@ def contained_tbox_tbox( def contains_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6006,7 +6071,7 @@ def contains_tbox_tbox( def overlaps_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6016,7 +6081,7 @@ def overlaps_tbox_tbox( def same_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6026,7 +6091,7 @@ def same_tbox_tbox( def after_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6036,7 +6101,7 @@ def after_tbox_tbox( def before_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6046,7 +6111,7 @@ def before_tbox_tbox( def left_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6056,7 +6121,7 @@ def left_tbox_tbox( def overafter_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6066,7 +6131,7 @@ def overafter_tbox_tbox( def overbefore_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6076,7 +6141,7 @@ def overbefore_tbox_tbox( def overleft_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6086,7 +6151,7 @@ def overleft_tbox_tbox( def overright_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6096,7 +6161,7 @@ def overright_tbox_tbox( def right_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -6105,7 +6170,9 @@ def right_tbox_tbox( return result if result != _ffi.NULL else None -def tbox_cmp(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[int, "int"]: +def tbox_cmp( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[int, "int"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_cmp(box1_converted, box2_converted) @@ -6113,7 +6180,9 @@ def tbox_cmp(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "con return result if result != _ffi.NULL else None -def tbox_eq(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_eq( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_eq(box1_converted, box2_converted) @@ -6121,7 +6190,9 @@ def tbox_eq(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def tbox_ge(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_ge( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_ge(box1_converted, box2_converted) @@ -6129,7 +6200,9 @@ def tbox_ge(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def tbox_gt(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_gt( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_gt(box1_converted, box2_converted) @@ -6137,7 +6210,9 @@ def tbox_gt(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def tbox_le(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_le( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_le(box1_converted, box2_converted) @@ -6145,7 +6220,9 @@ def tbox_le(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def tbox_lt(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_lt( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_lt(box1_converted, box2_converted) @@ -6153,7 +6230,9 @@ def tbox_lt(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def tbox_ne(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"]) -> Annotated[bool, "bool"]: +def tbox_ne( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) result = _lib.tbox_ne(box1_converted, box2_converted) @@ -6161,21 +6240,21 @@ def tbox_ne(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "cons return result if result != _ffi.NULL else None -def tbool_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def tbool_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tbool_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tbool_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tbool_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char *"]: +def tbool_out(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_out(temp_converted) _check_error() @@ -6184,8 +6263,8 @@ def tbool_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "cha def temporal_as_hexwkb( - temp: Annotated[cdata, "const Temporal *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + temp: Annotated[_ffi.CData, "const Temporal *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: temp_converted = _ffi.cast("const Temporal *", temp) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -6196,7 +6275,7 @@ def temporal_as_hexwkb( def temporal_as_mfjson( - temp: Annotated[cdata, "const Temporal *"], with_bbox: bool, flags: int, precision: int, srs: str | None + temp: Annotated[_ffi.CData, "const Temporal *"], with_bbox: bool, flags: int, precision: int, srs: str | None ) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL @@ -6207,8 +6286,8 @@ def temporal_as_mfjson( def temporal_as_wkb( - temp: Annotated[cdata, "const Temporal *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + temp: Annotated[_ffi.CData, "const Temporal *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: temp_converted = _ffi.cast("const Temporal *", temp) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -6218,7 +6297,7 @@ def temporal_as_wkb( return result_converted -def temporal_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Temporal *"]: +def temporal_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "Temporal *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.temporal_from_hexwkb(hexwkb_converted) _check_error() @@ -6231,21 +6310,21 @@ def temporal_from_wkb(wkb: bytes) -> "Temporal *": return result if result != _ffi.NULL else None -def tfloat_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def tfloat_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tfloat_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tfloat_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tfloat_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: +def tfloat_out(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_out(temp_converted, maxdd) _check_error() @@ -6253,21 +6332,21 @@ def tfloat_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annota return result if result != _ffi.NULL else None -def tint_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def tint_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tint_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tint_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char *"]: +def tint_out(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_out(temp_converted) _check_error() @@ -6275,21 +6354,21 @@ def tint_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char return result if result != _ffi.NULL else None -def ttext_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def ttext_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.ttext_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_in(string: str) -> Annotated[cdata, "Temporal *"]: +def ttext_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.ttext_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "char *"]: +def ttext_out(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_out(temp_converted) _check_error() @@ -6297,28 +6376,34 @@ def ttext_out(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "cha return result if result != _ffi.NULL else None -def tbool_from_base_temp(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tbool_from_base_temp( + b: bool, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_from_base_temp(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tboolinst_make(b: bool, t: int) -> Annotated[cdata, "TInstant *"]: +def tboolinst_make(b: bool, t: int) -> Annotated[_ffi.CData, "TInstant *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.tboolinst_make(b, t_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzset(b: bool, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: +def tboolseq_from_base_tstzset( + b: bool, s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "TSequence *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tboolseq_from_base_tstzset(b, s_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_from_base_tstzspan(b: bool, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TSequence *"]: +def tboolseq_from_base_tstzspan( + b: bool, s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "TSequence *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tboolseq_from_base_tstzspan(b, s_converted) _check_error() @@ -6326,36 +6411,40 @@ def tboolseq_from_base_tstzspan(b: bool, s: Annotated[cdata, "const Span *"]) -> def tboolseqset_from_base_tstzspanset( - b: bool, ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "TSequenceSet *"]: + b: bool, ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tboolseqset_from_base_tstzspanset(b, ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_copy(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_copy(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_copy(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_from_base_temp(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_from_base_temp( + d: float, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_from_base_temp(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_make(d: float, t: int) -> Annotated[cdata, "TInstant *"]: +def tfloatinst_make(d: float, t: int) -> Annotated[_ffi.CData, "TInstant *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.tfloatinst_make(d, t_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_from_base_tstzset(d: float, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: +def tfloatseq_from_base_tstzset( + d: float, s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "TSequence *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tfloatseq_from_base_tstzset(d, s_converted) _check_error() @@ -6363,8 +6452,8 @@ def tfloatseq_from_base_tstzset(d: float, s: Annotated[cdata, "const Set *"]) -> def tfloatseq_from_base_tstzspan( - d: float, s: Annotated[cdata, "const Span *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + d: float, s: Annotated[_ffi.CData, "const Span *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequence *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tfloatseq_from_base_tstzspan(d, s_converted, interp) _check_error() @@ -6372,36 +6461,38 @@ def tfloatseq_from_base_tstzspan( def tfloatseqset_from_base_tstzspanset( - d: float, ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + d: float, ss: Annotated[_ffi.CData, "const SpanSet *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tfloatseqset_from_base_tstzspanset(d, ss_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tint_from_base_temp(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tint_from_base_temp(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_from_base_temp(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tintinst_make(i: int, t: int) -> Annotated[cdata, "TInstant *"]: +def tintinst_make(i: int, t: int) -> Annotated[_ffi.CData, "TInstant *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.tintinst_make(i, t_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzset(i: int, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: +def tintseq_from_base_tstzset(i: int, s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "TSequence *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tintseq_from_base_tstzset(i, s_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_from_base_tstzspan(i: int, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TSequence *"]: +def tintseq_from_base_tstzspan( + i: int, s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "TSequence *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tintseq_from_base_tstzspan(i, s_converted) _check_error() @@ -6409,8 +6500,8 @@ def tintseq_from_base_tstzspan(i: int, s: Annotated[cdata, "const Span *"]) -> A def tintseqset_from_base_tstzspanset( - i: int, ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "TSequenceSet *"]: + i: int, ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tintseqset_from_base_tstzspanset(i, ss_converted) _check_error() @@ -6424,7 +6515,7 @@ def tsequence_make( upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> Annotated[cdata, "TSequence *"]: +) -> Annotated[_ffi.CData, "TSequence *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] result = _lib.tsequence_make(instants_converted, count, lower_inc, upper_inc, interp, normalize) _check_error() @@ -6433,7 +6524,7 @@ def tsequence_make( def tsequenceset_make( sequences: Annotated[list, "const TSequence **"], count: int, normalize: bool -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequenceset_make(sequences_converted, count, normalize) _check_error() @@ -6443,9 +6534,9 @@ def tsequenceset_make( def tsequenceset_make_gaps( instants: Annotated[list, "const TInstant **"], interp: InterpolationType, - maxt: Annotated[cdata, "const Interval *"] | None, + maxt: Annotated[_ffi.CData, "const Interval *"] | None, maxdist: float, -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] maxt_converted = _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL result = _lib.tsequenceset_make_gaps(instants_converted, len(instants), interp, maxt_converted, maxdist) @@ -6453,7 +6544,9 @@ def tsequenceset_make_gaps( return result if result != _ffi.NULL else None -def ttext_from_base_temp(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def ttext_from_base_temp( + txt: str, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_from_base_temp(txt_converted, temp_converted) @@ -6461,7 +6554,7 @@ def ttext_from_base_temp(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def ttextinst_make(txt: str, t: int) -> Annotated[cdata, "TInstant *"]: +def ttextinst_make(txt: str, t: int) -> Annotated[_ffi.CData, "TInstant *"]: txt_converted = cstring2text(txt) t_converted = _ffi.cast("TimestampTz", t) result = _lib.ttextinst_make(txt_converted, t_converted) @@ -6469,7 +6562,9 @@ def ttextinst_make(txt: str, t: int) -> Annotated[cdata, "TInstant *"]: return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzset(txt: str, s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "TSequence *"]: +def ttextseq_from_base_tstzset( + txt: str, s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "TSequence *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Set *", s) result = _lib.ttextseq_from_base_tstzset(txt_converted, s_converted) @@ -6477,7 +6572,9 @@ def ttextseq_from_base_tstzset(txt: str, s: Annotated[cdata, "const Set *"]) -> return result if result != _ffi.NULL else None -def ttextseq_from_base_tstzspan(txt: str, s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "TSequence *"]: +def ttextseq_from_base_tstzspan( + txt: str, s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "TSequence *"]: txt_converted = cstring2text(txt) s_converted = _ffi.cast("const Span *", s) result = _lib.ttextseq_from_base_tstzspan(txt_converted, s_converted) @@ -6486,8 +6583,8 @@ def ttextseq_from_base_tstzspan(txt: str, s: Annotated[cdata, "const Span *"]) - def ttextseqset_from_base_tstzspanset( - txt: str, ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "TSequenceSet *"]: + txt: str, ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: txt_converted = cstring2text(txt) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.ttextseqset_from_base_tstzspanset(txt_converted, ss_converted) @@ -6495,56 +6592,56 @@ def ttextseqset_from_base_tstzspanset( return result if result != _ffi.NULL else None -def tbool_to_tint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tbool_to_tint(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_to_tstzspan(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Span *"]: +def temporal_to_tstzspan(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tstzspan(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_to_tint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_to_tint(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_to_tint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_to_tfloat(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tint_to_tfloat(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_to_tfloat(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_span(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Span *"]: +def tnumber_to_span(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_to_span(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_to_tbox(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TBox *"]: +def tnumber_to_tbox(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_to_tbox(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: +def tbool_end_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tbool_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: +def tbool_start_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_start_value(temp_converted) _check_error() @@ -6552,8 +6649,8 @@ def tbool_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[b def tbool_value_at_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool -) -> Annotated[cdata, "bool"]: + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, strict: bool +) -> Annotated[_ffi.CData, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("bool *") @@ -6564,7 +6661,7 @@ def tbool_value_at_timestamptz( return None -def tbool_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "bool"]: +def tbool_value_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[_ffi.CData, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("bool *") result = _lib.tbool_value_n(temp_converted, n, out_result) @@ -6575,8 +6672,8 @@ def tbool_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotat def tbool_values( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "bool *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "bool *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tbool_values(temp_converted, count_converted) @@ -6584,42 +6681,44 @@ def tbool_values( return result if result != _ffi.NULL else None -def temporal_duration(temp: Annotated[cdata, "const Temporal *"], boundspan: bool) -> Annotated[cdata, "Interval *"]: +def temporal_duration( + temp: Annotated[_ffi.CData, "const Temporal *"], boundspan: bool +) -> Annotated[_ffi.CData, "Interval *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_duration(temp_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def temporal_end_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def temporal_end_instant(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_sequence(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TSequence *"]: +def temporal_end_sequence(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_timestamptz(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "TimestampTz"]: +def temporal_end_timestamptz(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "TimestampTz"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_timestamptz(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_hash(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "uint32"]: +def temporal_hash(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "uint32"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_hash(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_instant_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "TInstant *"]: +def temporal_instant_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_instant_n(temp_converted, n) _check_error() @@ -6627,8 +6726,8 @@ def temporal_instant_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> An def temporal_instants( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TInstant **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TInstant **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_instants(temp_converted, count_converted) @@ -6636,7 +6735,7 @@ def temporal_instants( return result if result != _ffi.NULL else None -def temporal_interp(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "const char *"]: +def temporal_interp(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "const char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_interp(temp_converted) _check_error() @@ -6644,42 +6743,42 @@ def temporal_interp(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str return result if result != _ffi.NULL else None -def temporal_lower_inc(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: +def temporal_lower_inc(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_lower_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_max_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def temporal_max_instant(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_max_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def temporal_min_instant(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_min_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_instants(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def temporal_num_instants(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_instants(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_sequences(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def temporal_num_sequences(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_sequences(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_num_timestamps(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def temporal_num_timestamps(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_num_timestamps(temp_converted) _check_error() @@ -6687,8 +6786,8 @@ def temporal_num_timestamps(temp: Annotated[cdata, "const Temporal *"]) -> Annot def temporal_segments( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TSequence **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TSequence **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_segments(temp_converted, count_converted) @@ -6696,7 +6795,9 @@ def temporal_segments( return result if result != _ffi.NULL else None -def temporal_sequence_n(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "TSequence *"]: +def temporal_sequence_n( + temp: Annotated[_ffi.CData, "const Temporal *"], i: int +) -> Annotated[_ffi.CData, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_sequence_n(temp_converted, i) _check_error() @@ -6704,8 +6805,8 @@ def temporal_sequence_n(temp: Annotated[cdata, "const Temporal *"], i: int) -> A def temporal_sequences( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TSequence **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TSequence **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_sequences(temp_converted, count_converted) @@ -6713,21 +6814,21 @@ def temporal_sequences( return result if result != _ffi.NULL else None -def temporal_start_instant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def temporal_start_instant(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_instant(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_sequence(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TSequence *"]: +def temporal_start_sequence(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_sequence(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_timestamptz(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "TimestampTz"]: +def temporal_start_timestamptz(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "TimestampTz"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_timestamptz(temp_converted) _check_error() @@ -6735,8 +6836,10 @@ def temporal_start_timestamptz(temp: Annotated[cdata, "const Temporal *"]) -> An def temporal_stops( - temp: Annotated[cdata, "const Temporal *"], maxdist: float, minduration: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "TSequenceSet *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + maxdist: float, + minduration: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) minduration_converted = _ffi.cast("const Interval *", minduration) result = _lib.temporal_stops(temp_converted, maxdist, minduration_converted) @@ -6744,7 +6847,7 @@ def temporal_stops( return result if result != _ffi.NULL else None -def temporal_subtype(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "const char *"]: +def temporal_subtype(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "const char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_subtype(temp_converted) _check_error() @@ -6752,7 +6855,7 @@ def temporal_subtype(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[st return result if result != _ffi.NULL else None -def temporal_time(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "SpanSet *"]: +def temporal_time(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "SpanSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_time(temp_converted) _check_error() @@ -6760,7 +6863,7 @@ def temporal_time(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata def temporal_timestamps( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] ) -> Annotated[int, "TimestampTz *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) @@ -6769,7 +6872,7 @@ def temporal_timestamps( return result if result != _ffi.NULL else None -def temporal_timestamptz_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> int: +def temporal_timestamptz_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> int: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("TimestampTz *") result = _lib.temporal_timestamptz_n(temp_converted, n, out_result) @@ -6779,35 +6882,35 @@ def temporal_timestamptz_n(temp: Annotated[cdata, "const Temporal *"], n: int) - return None -def temporal_upper_inc(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: +def temporal_upper_inc(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_upper_inc(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tfloat_end_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tfloat_max_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tfloat_min_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tfloat_start_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_start_value(temp_converted) _check_error() @@ -6815,8 +6918,8 @@ def tfloat_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[ def tfloat_value_at_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool -) -> Annotated[cdata, "double"]: + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, strict: bool +) -> Annotated[_ffi.CData, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("double *") @@ -6827,7 +6930,7 @@ def tfloat_value_at_timestamptz( return None -def tfloat_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "double"]: +def tfloat_value_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[_ffi.CData, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("double *") result = _lib.tfloat_value_n(temp_converted, n, out_result) @@ -6838,8 +6941,8 @@ def tfloat_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annota def tfloat_values( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "double *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "double *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tfloat_values(temp_converted, count_converted) @@ -6847,28 +6950,28 @@ def tfloat_values( return result if result != _ffi.NULL else None -def tint_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def tint_end_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def tint_max_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def tint_min_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_min_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tint_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def tint_start_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_start_value(temp_converted) _check_error() @@ -6876,8 +6979,8 @@ def tint_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[in def tint_value_at_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool -) -> Annotated[cdata, "int"]: + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, strict: bool +) -> Annotated[_ffi.CData, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("int *") @@ -6888,7 +6991,7 @@ def tint_value_at_timestamptz( return None -def tint_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "int"]: +def tint_value_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[_ffi.CData, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("int *") result = _lib.tint_value_n(temp_converted, n, out_result) @@ -6899,8 +7002,8 @@ def tint_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotate def tint_values( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "int *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "int *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tint_values(temp_converted, count_converted) @@ -6908,28 +7011,28 @@ def tint_values( return result if result != _ffi.NULL else None -def tnumber_integral(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tnumber_integral(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_integral(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_twavg(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tnumber_twavg(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_twavg(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_valuespans(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "SpanSet *"]: +def tnumber_valuespans(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "SpanSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_valuespans(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: +def ttext_end_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_end_value(temp_converted) _check_error() @@ -6937,7 +7040,7 @@ def ttext_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str return result if result != _ffi.NULL else None -def ttext_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: +def ttext_max_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_max_value(temp_converted) _check_error() @@ -6945,7 +7048,7 @@ def ttext_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str return result if result != _ffi.NULL else None -def ttext_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: +def ttext_min_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_min_value(temp_converted) _check_error() @@ -6953,7 +7056,7 @@ def ttext_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str return result if result != _ffi.NULL else None -def ttext_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[str, "text *"]: +def ttext_start_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[str, "text *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_start_value(temp_converted) _check_error() @@ -6962,7 +7065,7 @@ def ttext_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[s def ttext_value_at_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, strict: bool ) -> Annotated[list, "text **"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) @@ -6974,7 +7077,7 @@ def ttext_value_at_timestamptz( return None -def ttext_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[list, "text **"]: +def ttext_value_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[list, "text **"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("text **") result = _lib.ttext_value_n(temp_converted, n, out_result) @@ -6985,8 +7088,8 @@ def ttext_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotat def ttext_values( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "text **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "text **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.ttext_values(temp_converted, count_converted) @@ -7002,14 +7105,14 @@ def float_degrees(value: float, normalize: bool) -> Annotated[float, "double"]: def temparr_round( temp: Annotated[list, "const Temporal **"], count: int, maxdd: int -) -> Annotated[cdata, "Temporal **"]: +) -> Annotated[_ffi.CData, "Temporal **"]: temp_converted = [_ffi.cast("const Temporal *", x) for x in temp] result = _lib.temparr_round(temp_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def temporal_round(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[cdata, "Temporal *"]: +def temporal_round(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_round(temp_converted, maxdd) _check_error() @@ -7017,8 +7120,8 @@ def temporal_round(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> An def temporal_scale_time( - temp: Annotated[cdata, "const Temporal *"], duration: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], duration: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) result = _lib.temporal_scale_time(temp_converted, duration_converted) @@ -7027,8 +7130,8 @@ def temporal_scale_time( def temporal_set_interp( - temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_set_interp(temp_converted, interp) _check_error() @@ -7036,10 +7139,10 @@ def temporal_set_interp( def temporal_shift_scale_time( - temp: Annotated[cdata, "const Temporal *"], - shift: Annotated[cdata, "const Interval *"] | None, - duration: Annotated[cdata, "const Interval *"] | None, -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + shift: Annotated[_ffi.CData, "const Interval *"] | None, + duration: Annotated[_ffi.CData, "const Interval *"] | None, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL @@ -7049,8 +7152,8 @@ def temporal_shift_scale_time( def temporal_shift_time( - temp: Annotated[cdata, "const Temporal *"], shift: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], shift: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) shift_converted = _ffi.cast("const Interval *", shift) result = _lib.temporal_shift_time(temp_converted, shift_converted) @@ -7058,7 +7161,7 @@ def temporal_shift_time( return result if result != _ffi.NULL else None -def temporal_to_tinstant(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "TInstant *"]: +def temporal_to_tinstant(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tinstant(temp_converted) _check_error() @@ -7066,8 +7169,8 @@ def temporal_to_tinstant(temp: Annotated[cdata, "const Temporal *"]) -> Annotate def temporal_to_tsequence( - temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tsequence(temp_converted, interp) _check_error() @@ -7075,43 +7178,47 @@ def temporal_to_tsequence( def temporal_to_tsequenceset( - temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequenceSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_to_tsequenceset(temp_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tfloat_ceil(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_ceil(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_ceil(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_degrees(temp: Annotated[cdata, "const Temporal *"], normalize: bool) -> Annotated[cdata, "Temporal *"]: +def tfloat_degrees( + temp: Annotated[_ffi.CData, "const Temporal *"], normalize: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_degrees(temp_converted, normalize) _check_error() return result if result != _ffi.NULL else None -def tfloat_floor(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_floor(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_floor(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_radians(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_radians(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_radians(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_scale_value(temp: Annotated[cdata, "const Temporal *"], width: float) -> Annotated[cdata, "Temporal *"]: +def tfloat_scale_value( + temp: Annotated[_ffi.CData, "const Temporal *"], width: float +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_scale_value(temp_converted, width) _check_error() @@ -7119,22 +7226,26 @@ def tfloat_scale_value(temp: Annotated[cdata, "const Temporal *"], width: float) def tfloat_shift_scale_value( - temp: Annotated[cdata, "const Temporal *"], shift: float, width: float -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], shift: float, width: float +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tfloat_shift_value(temp: Annotated[cdata, "const Temporal *"], shift: float) -> Annotated[cdata, "Temporal *"]: +def tfloat_shift_value( + temp: Annotated[_ffi.CData, "const Temporal *"], shift: float +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_shift_value(temp_converted, shift) _check_error() return result if result != _ffi.NULL else None -def tint_scale_value(temp: Annotated[cdata, "const Temporal *"], width: int) -> Annotated[cdata, "Temporal *"]: +def tint_scale_value( + temp: Annotated[_ffi.CData, "const Temporal *"], width: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_scale_value(temp_converted, width) _check_error() @@ -7142,15 +7253,17 @@ def tint_scale_value(temp: Annotated[cdata, "const Temporal *"], width: int) -> def tint_shift_scale_value( - temp: Annotated[cdata, "const Temporal *"], shift: int, width: int -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], shift: int, width: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_shift_scale_value(temp_converted, shift, width) _check_error() return result if result != _ffi.NULL else None -def tint_shift_value(temp: Annotated[cdata, "const Temporal *"], shift: int) -> Annotated[cdata, "Temporal *"]: +def tint_shift_value( + temp: Annotated[_ffi.CData, "const Temporal *"], shift: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_shift_value(temp_converted, shift) _check_error() @@ -7158,13 +7271,13 @@ def tint_shift_value(temp: Annotated[cdata, "const Temporal *"], shift: int) -> def temporal_append_tinstant( - temp: Annotated[cdata, "Temporal *"], - inst: Annotated[cdata, "const TInstant *"], + temp: Annotated[_ffi.CData, "Temporal *"], + inst: Annotated[_ffi.CData, "const TInstant *"], interp: InterpolationType, maxdist: float, - maxt: Annotated[cdata, "const Interval *"] | None, + maxt: Annotated[_ffi.CData, "const Interval *"] | None, expand: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("Temporal *", temp) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) if maxt is not None else _ffi.NULL @@ -7174,8 +7287,8 @@ def temporal_append_tinstant( def temporal_append_tsequence( - temp: Annotated[cdata, "Temporal *"], seq: Annotated[cdata, "const TSequence *"], expand: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "Temporal *"], seq: Annotated[_ffi.CData, "const TSequence *"], expand: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("Temporal *", temp) seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.temporal_append_tsequence(temp_converted, seq_converted, expand) @@ -7184,8 +7297,8 @@ def temporal_append_tsequence( def temporal_delete_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, connect: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_delete_timestamptz(temp_converted, t_converted, connect) @@ -7194,8 +7307,8 @@ def temporal_delete_timestamptz( def temporal_delete_tstzset( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Set *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_delete_tstzset(temp_converted, s_converted, connect) @@ -7204,8 +7317,8 @@ def temporal_delete_tstzset( def temporal_delete_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_delete_tstzspan(temp_converted, s_converted, connect) @@ -7214,8 +7327,8 @@ def temporal_delete_tstzspan( def temporal_delete_tstzspanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_delete_tstzspanset(temp_converted, ss_converted, connect) @@ -7224,8 +7337,8 @@ def temporal_delete_tstzspanset( def temporal_insert( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_insert(temp1_converted, temp2_converted, connect) @@ -7234,8 +7347,8 @@ def temporal_insert( def temporal_merge( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_merge(temp1_converted, temp2_converted) @@ -7243,7 +7356,9 @@ def temporal_merge( return result if result != _ffi.NULL else None -def temporal_merge_array(temparr: Annotated[list, "const Temporal **"], count: int) -> Annotated[cdata, "Temporal *"]: +def temporal_merge_array( + temparr: Annotated[list, "const Temporal **"], count: int +) -> Annotated[_ffi.CData, "Temporal *"]: temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] result = _lib.temporal_merge_array(temparr_converted, count) _check_error() @@ -7251,8 +7366,8 @@ def temporal_merge_array(temparr: Annotated[list, "const Temporal **"], count: i def temporal_update( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.temporal_update(temp1_converted, temp2_converted, connect) @@ -7260,35 +7375,37 @@ def temporal_update( return result if result != _ffi.NULL else None -def tbool_at_value(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: +def tbool_at_value(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_at_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def tbool_minus_value(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: +def tbool_minus_value(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_minus_value(temp_converted, b) _check_error() return result if result != _ffi.NULL else None -def temporal_at_max(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_at_max(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_at_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_min(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_at_min(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_at_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_at_timestamptz(temp: Annotated[cdata, "const Temporal *"], t: int) -> Annotated[cdata, "Temporal *"]: +def temporal_at_timestamptz( + temp: Annotated[_ffi.CData, "const Temporal *"], t: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_at_timestamptz(temp_converted, t_converted) @@ -7297,8 +7414,8 @@ def temporal_at_timestamptz(temp: Annotated[cdata, "const Temporal *"], t: int) def temporal_at_tstzset( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_at_tstzset(temp_converted, s_converted) @@ -7307,8 +7424,8 @@ def temporal_at_tstzset( def temporal_at_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_at_tstzspan(temp_converted, s_converted) @@ -7317,8 +7434,8 @@ def temporal_at_tstzspan( def temporal_at_tstzspanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_at_tstzspanset(temp_converted, ss_converted) @@ -7327,8 +7444,8 @@ def temporal_at_tstzspanset( def temporal_at_values( - temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], set: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_at_values(temp_converted, set_converted) @@ -7336,21 +7453,23 @@ def temporal_at_values( return result if result != _ffi.NULL else None -def temporal_minus_max(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_minus_max(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_minus_max(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_min(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_minus_min(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_minus_min(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_minus_timestamptz(temp: Annotated[cdata, "const Temporal *"], t: int) -> Annotated[cdata, "Temporal *"]: +def temporal_minus_timestamptz( + temp: Annotated[_ffi.CData, "const Temporal *"], t: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_minus_timestamptz(temp_converted, t_converted) @@ -7359,8 +7478,8 @@ def temporal_minus_timestamptz(temp: Annotated[cdata, "const Temporal *"], t: in def temporal_minus_tstzset( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_minus_tstzset(temp_converted, s_converted) @@ -7369,8 +7488,8 @@ def temporal_minus_tstzset( def temporal_minus_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_minus_tstzspan(temp_converted, s_converted) @@ -7379,8 +7498,8 @@ def temporal_minus_tstzspan( def temporal_minus_tstzspanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_minus_tstzspanset(temp_converted, ss_converted) @@ -7389,8 +7508,8 @@ def temporal_minus_tstzspanset( def temporal_minus_values( - temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], set: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_minus_values(temp_converted, set_converted) @@ -7398,28 +7517,30 @@ def temporal_minus_values( return result if result != _ffi.NULL else None -def tfloat_at_value(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tfloat_at_value(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_at_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tfloat_minus_value(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tfloat_minus_value( + temp: Annotated[_ffi.CData, "const Temporal *"], d: float +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_minus_value(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tint_at_value(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tint_at_value(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_at_value(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tint_minus_value(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tint_minus_value(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_minus_value(temp_converted, i) _check_error() @@ -7427,8 +7548,8 @@ def tint_minus_value(temp: Annotated[cdata, "const Temporal *"], i: int) -> Anno def tnumber_at_span( - temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], span: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_at_span(temp_converted, span_converted) @@ -7437,8 +7558,8 @@ def tnumber_at_span( def tnumber_at_spanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_at_spanset(temp_converted, ss_converted) @@ -7447,8 +7568,8 @@ def tnumber_at_spanset( def tnumber_at_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.tnumber_at_tbox(temp_converted, box_converted) @@ -7457,8 +7578,8 @@ def tnumber_at_tbox( def tnumber_minus_span( - temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], span: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_minus_span(temp_converted, span_converted) @@ -7467,8 +7588,8 @@ def tnumber_minus_span( def tnumber_minus_spanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_minus_spanset(temp_converted, ss_converted) @@ -7477,8 +7598,8 @@ def tnumber_minus_spanset( def tnumber_minus_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) result = _lib.tnumber_minus_tbox(temp_converted, box_converted) @@ -7486,7 +7607,7 @@ def tnumber_minus_tbox( return result if result != _ffi.NULL else None -def ttext_at_value(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def ttext_at_value(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ttext_at_value(temp_converted, txt_converted) @@ -7494,7 +7615,7 @@ def ttext_at_value(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno return result if result != _ffi.NULL else None -def ttext_minus_value(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def ttext_minus_value(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ttext_minus_value(temp_converted, txt_converted) @@ -7503,7 +7624,7 @@ def ttext_minus_value(temp: Annotated[cdata, "const Temporal *"], txt: str) -> A def temporal_cmp( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7513,7 +7634,7 @@ def temporal_cmp( def temporal_eq( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7523,7 +7644,7 @@ def temporal_eq( def temporal_ge( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7533,7 +7654,7 @@ def temporal_ge( def temporal_gt( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7543,7 +7664,7 @@ def temporal_gt( def temporal_le( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7553,7 +7674,7 @@ def temporal_le( def temporal_lt( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7563,7 +7684,7 @@ def temporal_lt( def temporal_ne( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7572,28 +7693,28 @@ def temporal_ne( return result if result != _ffi.NULL else None -def always_eq_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_eq_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_eq_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_eq_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_eq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: +def always_eq_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tbool_bool(temp_converted, b) _check_error() @@ -7601,7 +7722,7 @@ def always_eq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> def always_eq_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7610,7 +7731,7 @@ def always_eq_temporal_temporal( return result if result != _ffi.NULL else None -def always_eq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_eq_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_text_ttext(txt_converted, temp_converted) @@ -7618,21 +7739,21 @@ def always_eq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def always_eq_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def always_eq_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_eq_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def always_eq_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_eq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def always_eq_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_eq_ttext_text(temp_converted, txt_converted) @@ -7640,14 +7761,14 @@ def always_eq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) - return result if result != _ffi.NULL else None -def always_ge_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ge_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ge_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_int_tint(i, temp_converted) _check_error() @@ -7655,7 +7776,7 @@ def always_ge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> An def always_ge_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7664,7 +7785,7 @@ def always_ge_temporal_temporal( return result if result != _ffi.NULL else None -def always_ge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ge_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_text_ttext(txt_converted, temp_converted) @@ -7672,21 +7793,21 @@ def always_ge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def always_ge_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def always_ge_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ge_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def always_ge_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def always_ge_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_ge_ttext_text(temp_converted, txt_converted) @@ -7694,14 +7815,14 @@ def always_ge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) - return result if result != _ffi.NULL else None -def always_gt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_gt_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_gt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_gt_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_int_tint(i, temp_converted) _check_error() @@ -7709,7 +7830,7 @@ def always_gt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> An def always_gt_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7718,7 +7839,7 @@ def always_gt_temporal_temporal( return result if result != _ffi.NULL else None -def always_gt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_gt_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_text_ttext(txt_converted, temp_converted) @@ -7726,21 +7847,21 @@ def always_gt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def always_gt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def always_gt_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_gt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def always_gt_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_gt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def always_gt_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_gt_ttext_text(temp_converted, txt_converted) @@ -7748,14 +7869,14 @@ def always_gt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) - return result if result != _ffi.NULL else None -def always_le_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_le_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_le_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_le_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_int_tint(i, temp_converted) _check_error() @@ -7763,7 +7884,7 @@ def always_le_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> An def always_le_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7772,7 +7893,7 @@ def always_le_temporal_temporal( return result if result != _ffi.NULL else None -def always_le_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_le_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_text_ttext(txt_converted, temp_converted) @@ -7780,21 +7901,21 @@ def always_le_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def always_le_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def always_le_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_le_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def always_le_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_le_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def always_le_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_le_ttext_text(temp_converted, txt_converted) @@ -7802,14 +7923,14 @@ def always_le_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) - return result if result != _ffi.NULL else None -def always_lt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_lt_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_lt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_lt_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_int_tint(i, temp_converted) _check_error() @@ -7817,7 +7938,7 @@ def always_lt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> An def always_lt_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7826,7 +7947,7 @@ def always_lt_temporal_temporal( return result if result != _ffi.NULL else None -def always_lt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_lt_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_text_ttext(txt_converted, temp_converted) @@ -7834,21 +7955,21 @@ def always_lt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def always_lt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def always_lt_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_lt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def always_lt_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_lt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def always_lt_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_lt_ttext_text(temp_converted, txt_converted) @@ -7856,28 +7977,28 @@ def always_lt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) - return result if result != _ffi.NULL else None -def always_ne_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ne_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ne_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ne_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def always_ne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: +def always_ne_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tbool_bool(temp_converted, b) _check_error() @@ -7885,7 +8006,7 @@ def always_ne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> def always_ne_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7894,7 +8015,7 @@ def always_ne_temporal_temporal( return result if result != _ffi.NULL else None -def always_ne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def always_ne_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_text_ttext(txt_converted, temp_converted) @@ -7902,21 +8023,21 @@ def always_ne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) - return result if result != _ffi.NULL else None -def always_ne_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def always_ne_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def always_ne_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def always_ne_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.always_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def always_ne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def always_ne_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.always_ne_ttext_text(temp_converted, txt_converted) @@ -7924,28 +8045,28 @@ def always_ne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) - return result if result != _ffi.NULL else None -def ever_eq_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_eq_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_eq_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_eq_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: +def ever_eq_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tbool_bool(temp_converted, b) _check_error() @@ -7953,7 +8074,7 @@ def ever_eq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> A def ever_eq_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -7962,7 +8083,7 @@ def ever_eq_temporal_temporal( return result if result != _ffi.NULL else None -def ever_eq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_eq_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_text_ttext(txt_converted, temp_converted) @@ -7970,21 +8091,21 @@ def ever_eq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def ever_eq_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def ever_eq_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_eq_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def ever_eq_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_eq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_eq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def ever_eq_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_eq_ttext_text(temp_converted, txt_converted) @@ -7992,14 +8113,14 @@ def ever_eq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> return result if result != _ffi.NULL else None -def ever_ge_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ge_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ge_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_int_tint(i, temp_converted) _check_error() @@ -8007,7 +8128,7 @@ def ever_ge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Anno def ever_ge_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8016,7 +8137,7 @@ def ever_ge_temporal_temporal( return result if result != _ffi.NULL else None -def ever_ge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ge_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_text_ttext(txt_converted, temp_converted) @@ -8024,21 +8145,21 @@ def ever_ge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def ever_ge_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def ever_ge_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ge_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def ever_ge_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def ever_ge_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_ge_ttext_text(temp_converted, txt_converted) @@ -8046,14 +8167,14 @@ def ever_ge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> return result if result != _ffi.NULL else None -def ever_gt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_gt_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_gt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_gt_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_int_tint(i, temp_converted) _check_error() @@ -8061,7 +8182,7 @@ def ever_gt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Anno def ever_gt_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8070,7 +8191,7 @@ def ever_gt_temporal_temporal( return result if result != _ffi.NULL else None -def ever_gt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_gt_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_text_ttext(txt_converted, temp_converted) @@ -8078,21 +8199,21 @@ def ever_gt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def ever_gt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def ever_gt_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_gt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def ever_gt_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_gt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_gt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def ever_gt_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_gt_ttext_text(temp_converted, txt_converted) @@ -8100,14 +8221,14 @@ def ever_gt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> return result if result != _ffi.NULL else None -def ever_le_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_le_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_le_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_le_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_int_tint(i, temp_converted) _check_error() @@ -8115,7 +8236,7 @@ def ever_le_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Anno def ever_le_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8124,7 +8245,7 @@ def ever_le_temporal_temporal( return result if result != _ffi.NULL else None -def ever_le_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_le_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_text_ttext(txt_converted, temp_converted) @@ -8132,21 +8253,21 @@ def ever_le_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def ever_le_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def ever_le_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_le_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def ever_le_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_le_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_le_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def ever_le_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_le_ttext_text(temp_converted, txt_converted) @@ -8154,14 +8275,14 @@ def ever_le_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> return result if result != _ffi.NULL else None -def ever_lt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_lt_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_lt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_lt_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_int_tint(i, temp_converted) _check_error() @@ -8169,7 +8290,7 @@ def ever_lt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Anno def ever_lt_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8178,7 +8299,7 @@ def ever_lt_temporal_temporal( return result if result != _ffi.NULL else None -def ever_lt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_lt_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_text_ttext(txt_converted, temp_converted) @@ -8186,21 +8307,21 @@ def ever_lt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def ever_lt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def ever_lt_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_lt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def ever_lt_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_lt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_lt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def ever_lt_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_lt_ttext_text(temp_converted, txt_converted) @@ -8208,28 +8329,28 @@ def ever_lt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> return result if result != _ffi.NULL else None -def ever_ne_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ne_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ne_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ne_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[int, "int"]: +def ever_ne_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tbool_bool(temp_converted, b) _check_error() @@ -8237,7 +8358,7 @@ def ever_ne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> A def ever_ne_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8246,7 +8367,7 @@ def ever_ne_temporal_temporal( return result if result != _ffi.NULL else None -def ever_ne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int"]: +def ever_ne_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_text_ttext(txt_converted, temp_converted) @@ -8254,21 +8375,21 @@ def ever_ne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def ever_ne_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[int, "int"]: +def ever_ne_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def ever_ne_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def ever_ne_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ever_ne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def ever_ne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[int, "int"]: +def ever_ne_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.ever_ne_ttext_text(temp_converted, txt_converted) @@ -8276,28 +8397,28 @@ def ever_ne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> return result if result != _ffi.NULL else None -def teq_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def teq_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def teq_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def teq_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def teq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: +def teq_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tbool_bool(temp_converted, b) _check_error() @@ -8305,8 +8426,8 @@ def teq_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annot def teq_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.teq_temporal_temporal(temp1_converted, temp2_converted) @@ -8314,7 +8435,7 @@ def teq_temporal_temporal( return result if result != _ffi.NULL else None -def teq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def teq_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_text_ttext(txt_converted, temp_converted) @@ -8322,21 +8443,21 @@ def teq_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Anno return result if result != _ffi.NULL else None -def teq_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def teq_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def teq_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def teq_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def teq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def teq_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.teq_ttext_text(temp_converted, txt_converted) @@ -8344,14 +8465,14 @@ def teq_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno return result if result != _ffi.NULL else None -def tge_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tge_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tge_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_int_tint(i, temp_converted) _check_error() @@ -8359,8 +8480,8 @@ def tge_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotate def tge_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tge_temporal_temporal(temp1_converted, temp2_converted) @@ -8368,7 +8489,7 @@ def tge_temporal_temporal( return result if result != _ffi.NULL else None -def tge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tge_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_text_ttext(txt_converted, temp_converted) @@ -8376,21 +8497,21 @@ def tge_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Anno return result if result != _ffi.NULL else None -def tge_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tge_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tge_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tge_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tge_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def tge_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tge_ttext_text(temp_converted, txt_converted) @@ -8398,14 +8519,14 @@ def tge_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno return result if result != _ffi.NULL else None -def tgt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgt_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgt_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_int_tint(i, temp_converted) _check_error() @@ -8413,8 +8534,8 @@ def tgt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotate def tgt_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tgt_temporal_temporal(temp1_converted, temp2_converted) @@ -8422,7 +8543,7 @@ def tgt_temporal_temporal( return result if result != _ffi.NULL else None -def tgt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgt_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_text_ttext(txt_converted, temp_converted) @@ -8430,21 +8551,21 @@ def tgt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Anno return result if result != _ffi.NULL else None -def tgt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tgt_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tgt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tgt_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tgt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def tgt_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tgt_ttext_text(temp_converted, txt_converted) @@ -8452,14 +8573,14 @@ def tgt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno return result if result != _ffi.NULL else None -def tle_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tle_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tle_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tle_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_int_tint(i, temp_converted) _check_error() @@ -8467,8 +8588,8 @@ def tle_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotate def tle_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tle_temporal_temporal(temp1_converted, temp2_converted) @@ -8476,7 +8597,7 @@ def tle_temporal_temporal( return result if result != _ffi.NULL else None -def tle_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tle_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_text_ttext(txt_converted, temp_converted) @@ -8484,21 +8605,21 @@ def tle_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Anno return result if result != _ffi.NULL else None -def tle_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tle_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tle_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tle_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tle_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tle_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def tle_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tle_ttext_text(temp_converted, txt_converted) @@ -8506,14 +8627,14 @@ def tle_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno return result if result != _ffi.NULL else None -def tlt_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tlt_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tlt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tlt_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_int_tint(i, temp_converted) _check_error() @@ -8521,8 +8642,8 @@ def tlt_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotate def tlt_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tlt_temporal_temporal(temp1_converted, temp2_converted) @@ -8530,7 +8651,7 @@ def tlt_temporal_temporal( return result if result != _ffi.NULL else None -def tlt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tlt_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_text_ttext(txt_converted, temp_converted) @@ -8538,21 +8659,21 @@ def tlt_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Anno return result if result != _ffi.NULL else None -def tlt_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tlt_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tlt_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tlt_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tlt_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tlt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def tlt_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tlt_ttext_text(temp_converted, txt_converted) @@ -8560,28 +8681,28 @@ def tlt_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno return result if result != _ffi.NULL else None -def tne_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tne_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_float_tfloat(d: float, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tne_float_tfloat(d: float, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_float_tfloat(d, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_int_tint(i: int, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tne_int_tint(i: int, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_int_tint(i, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: +def tne_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tbool_bool(temp_converted, b) _check_error() @@ -8589,8 +8710,8 @@ def tne_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annot def tne_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tne_temporal_temporal(temp1_converted, temp2_converted) @@ -8598,7 +8719,7 @@ def tne_temporal_temporal( return result if result != _ffi.NULL else None -def tne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tne_text_ttext(txt: str, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_text_ttext(txt_converted, temp_converted) @@ -8606,21 +8727,21 @@ def tne_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Anno return result if result != _ffi.NULL else None -def tne_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tne_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tne_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tne_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_tint_int(temp_converted, i) _check_error() return result if result != _ffi.NULL else None -def tne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def tne_ttext_text(temp: Annotated[_ffi.CData, "const Temporal *"], txt: str) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.tne_ttext_text(temp_converted, txt_converted) @@ -8629,8 +8750,8 @@ def tne_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Anno def temporal_spans( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_spans(temp_converted, count_converted) @@ -8639,8 +8760,8 @@ def temporal_spans( def temporal_split_each_n_spans( - temp: Annotated[cdata, "const Temporal *"], elem_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], elem_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_split_each_n_spans(temp_converted, elem_count, count_converted) @@ -8649,8 +8770,8 @@ def temporal_split_each_n_spans( def temporal_split_n_spans( - temp: Annotated[cdata, "const Temporal *"], span_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], span_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_split_n_spans(temp_converted, span_count, count_converted) @@ -8659,8 +8780,8 @@ def temporal_split_n_spans( def tnumber_split_each_n_tboxes( - temp: Annotated[cdata, "const Temporal *"], elem_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], elem_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tnumber_split_each_n_tboxes(temp_converted, elem_count, count_converted) @@ -8669,8 +8790,8 @@ def tnumber_split_each_n_tboxes( def tnumber_split_n_tboxes( - temp: Annotated[cdata, "const Temporal *"], box_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tnumber_split_n_tboxes(temp_converted, box_count, count_converted) @@ -8679,8 +8800,8 @@ def tnumber_split_n_tboxes( def tnumber_tboxes( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tnumber_tboxes(temp_converted, count_converted) @@ -8689,7 +8810,7 @@ def tnumber_tboxes( def adjacent_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8699,7 +8820,7 @@ def adjacent_numspan_tnumber( def adjacent_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8709,7 +8830,7 @@ def adjacent_tbox_tnumber( def adjacent_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8719,7 +8840,7 @@ def adjacent_temporal_temporal( def adjacent_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8729,7 +8850,7 @@ def adjacent_temporal_tstzspan( def adjacent_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8739,7 +8860,7 @@ def adjacent_tnumber_numspan( def adjacent_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -8749,7 +8870,7 @@ def adjacent_tnumber_tbox( def adjacent_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8759,7 +8880,7 @@ def adjacent_tnumber_tnumber( def adjacent_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8769,7 +8890,7 @@ def adjacent_tstzspan_temporal( def contained_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8779,7 +8900,7 @@ def contained_numspan_tnumber( def contained_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8789,7 +8910,7 @@ def contained_tbox_tnumber( def contained_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8799,7 +8920,7 @@ def contained_temporal_temporal( def contained_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8809,7 +8930,7 @@ def contained_temporal_tstzspan( def contained_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8819,7 +8940,7 @@ def contained_tnumber_numspan( def contained_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -8829,7 +8950,7 @@ def contained_tnumber_tbox( def contained_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8839,7 +8960,7 @@ def contained_tnumber_tnumber( def contained_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8849,7 +8970,7 @@ def contained_tstzspan_temporal( def contains_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8859,7 +8980,7 @@ def contains_numspan_tnumber( def contains_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8869,7 +8990,7 @@ def contains_tbox_tnumber( def contains_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8879,7 +9000,7 @@ def contains_temporal_tstzspan( def contains_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8889,7 +9010,7 @@ def contains_temporal_temporal( def contains_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8899,7 +9020,7 @@ def contains_tnumber_numspan( def contains_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -8909,7 +9030,7 @@ def contains_tnumber_tbox( def contains_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8919,7 +9040,7 @@ def contains_tnumber_tnumber( def contains_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8929,7 +9050,7 @@ def contains_tstzspan_temporal( def overlaps_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8939,7 +9060,7 @@ def overlaps_numspan_tnumber( def overlaps_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -8949,7 +9070,7 @@ def overlaps_tbox_tnumber( def overlaps_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8959,7 +9080,7 @@ def overlaps_temporal_temporal( def overlaps_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8969,7 +9090,7 @@ def overlaps_temporal_tstzspan( def overlaps_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -8979,7 +9100,7 @@ def overlaps_tnumber_numspan( def overlaps_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -8989,7 +9110,7 @@ def overlaps_tnumber_tbox( def overlaps_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -8999,7 +9120,7 @@ def overlaps_tnumber_tnumber( def overlaps_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9009,7 +9130,7 @@ def overlaps_tstzspan_temporal( def same_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9019,7 +9140,7 @@ def same_numspan_tnumber( def same_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9029,7 +9150,7 @@ def same_tbox_tnumber( def same_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9039,7 +9160,7 @@ def same_temporal_temporal( def same_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9049,7 +9170,7 @@ def same_temporal_tstzspan( def same_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9059,7 +9180,7 @@ def same_tnumber_numspan( def same_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9069,7 +9190,7 @@ def same_tnumber_tbox( def same_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9079,7 +9200,7 @@ def same_tnumber_tnumber( def same_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9089,7 +9210,7 @@ def same_tstzspan_temporal( def after_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9099,7 +9220,7 @@ def after_tbox_tnumber( def after_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9109,7 +9230,7 @@ def after_temporal_tstzspan( def after_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9119,7 +9240,7 @@ def after_temporal_temporal( def after_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9129,7 +9250,7 @@ def after_tnumber_tbox( def after_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9139,7 +9260,7 @@ def after_tnumber_tnumber( def after_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9149,7 +9270,7 @@ def after_tstzspan_temporal( def before_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9159,7 +9280,7 @@ def before_tbox_tnumber( def before_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9169,7 +9290,7 @@ def before_temporal_tstzspan( def before_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9179,7 +9300,7 @@ def before_temporal_temporal( def before_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9189,7 +9310,7 @@ def before_tnumber_tbox( def before_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9199,7 +9320,7 @@ def before_tnumber_tnumber( def before_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9209,7 +9330,7 @@ def before_tstzspan_temporal( def left_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9219,7 +9340,7 @@ def left_tbox_tnumber( def left_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9229,7 +9350,7 @@ def left_numspan_tnumber( def left_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9239,7 +9360,7 @@ def left_tnumber_numspan( def left_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9249,7 +9370,7 @@ def left_tnumber_tbox( def left_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9259,7 +9380,7 @@ def left_tnumber_tnumber( def overafter_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9269,7 +9390,7 @@ def overafter_tbox_tnumber( def overafter_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9279,7 +9400,7 @@ def overafter_temporal_tstzspan( def overafter_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9289,7 +9410,7 @@ def overafter_temporal_temporal( def overafter_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9299,7 +9420,7 @@ def overafter_tnumber_tbox( def overafter_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9309,7 +9430,7 @@ def overafter_tnumber_tnumber( def overafter_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9319,7 +9440,7 @@ def overafter_tstzspan_temporal( def overbefore_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9329,7 +9450,7 @@ def overbefore_tbox_tnumber( def overbefore_temporal_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9339,7 +9460,7 @@ def overbefore_temporal_tstzspan( def overbefore_temporal_temporal( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9349,7 +9470,7 @@ def overbefore_temporal_temporal( def overbefore_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9359,7 +9480,7 @@ def overbefore_tnumber_tbox( def overbefore_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9369,7 +9490,7 @@ def overbefore_tnumber_tnumber( def overbefore_tstzspan_temporal( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9379,7 +9500,7 @@ def overbefore_tstzspan_temporal( def overleft_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9389,7 +9510,7 @@ def overleft_numspan_tnumber( def overleft_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9399,7 +9520,7 @@ def overleft_tbox_tnumber( def overleft_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9409,7 +9530,7 @@ def overleft_tnumber_numspan( def overleft_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9419,7 +9540,7 @@ def overleft_tnumber_tbox( def overleft_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9429,7 +9550,7 @@ def overleft_tnumber_tnumber( def overright_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9439,7 +9560,7 @@ def overright_numspan_tnumber( def overright_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9449,7 +9570,7 @@ def overright_tbox_tnumber( def overright_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9459,7 +9580,7 @@ def overright_tnumber_numspan( def overright_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9469,7 +9590,7 @@ def overright_tnumber_tbox( def overright_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9479,7 +9600,7 @@ def overright_tnumber_tnumber( def right_numspan_tnumber( - s: Annotated[cdata, "const Span *"], temp: Annotated[cdata, "const Temporal *"] + s: Annotated[_ffi.CData, "const Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9489,7 +9610,7 @@ def right_numspan_tnumber( def right_tbox_tnumber( - box: Annotated[cdata, "const TBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const TBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const TBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -9499,7 +9620,7 @@ def right_tbox_tnumber( def right_tnumber_numspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) @@ -9509,7 +9630,7 @@ def right_tnumber_numspan( def right_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9519,7 +9640,7 @@ def right_tnumber_tbox( def right_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9528,14 +9649,14 @@ def right_tnumber_tnumber( return result if result != _ffi.NULL else None -def tand_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tand_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tand_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tand_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: +def tand_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tand_tbool_bool(temp_converted, b) _check_error() @@ -9543,8 +9664,8 @@ def tand_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Anno def tand_tbool_tbool( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tand_tbool_tbool(temp1_converted, temp2_converted) @@ -9552,28 +9673,28 @@ def tand_tbool_tbool( return result if result != _ffi.NULL else None -def tbool_when_true(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "SpanSet *"]: +def tbool_when_true(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "SpanSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_when_true(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnot_tbool(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnot_tbool(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnot_tbool(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_bool_tbool(b: bool, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tor_bool_tbool(b: bool, temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tor_bool_tbool(b, temp_converted) _check_error() return result if result != _ffi.NULL else None -def tor_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annotated[cdata, "Temporal *"]: +def tor_tbool_bool(temp: Annotated[_ffi.CData, "const Temporal *"], b: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tor_tbool_bool(temp_converted, b) _check_error() @@ -9581,8 +9702,8 @@ def tor_tbool_bool(temp: Annotated[cdata, "const Temporal *"], b: bool) -> Annot def tor_tbool_tbool( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tor_tbool_tbool(temp1_converted, temp2_converted) @@ -9590,28 +9711,32 @@ def tor_tbool_tbool( return result if result != _ffi.NULL else None -def add_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def add_float_tfloat( + d: float, tnumber: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def add_int_tint(i: int, tnumber: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def add_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def add_tfloat_float( + tnumber: Annotated[_ffi.CData, "const Temporal *"], d: float +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def add_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def add_tint_int(tnumber: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.add_tint_int(tnumber_converted, i) _check_error() @@ -9619,8 +9744,8 @@ def add_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annot def add_tnumber_tnumber( - tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + tnumber1: Annotated[_ffi.CData, "const Temporal *"], tnumber2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.add_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9628,28 +9753,32 @@ def add_tnumber_tnumber( return result if result != _ffi.NULL else None -def div_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def div_float_tfloat( + d: float, tnumber: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def div_int_tint(i: int, tnumber: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def div_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def div_tfloat_float( + tnumber: Annotated[_ffi.CData, "const Temporal *"], d: float +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def div_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def div_tint_int(tnumber: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.div_tint_int(tnumber_converted, i) _check_error() @@ -9657,8 +9786,8 @@ def div_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annot def div_tnumber_tnumber( - tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + tnumber1: Annotated[_ffi.CData, "const Temporal *"], tnumber2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.div_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9666,28 +9795,32 @@ def div_tnumber_tnumber( return result if result != _ffi.NULL else None -def mult_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def mult_float_tfloat( + d: float, tnumber: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def mult_int_tint(i: int, tnumber: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def mult_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def mult_tfloat_float( + tnumber: Annotated[_ffi.CData, "const Temporal *"], d: float +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def mult_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def mult_tint_int(tnumber: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.mult_tint_int(tnumber_converted, i) _check_error() @@ -9695,8 +9828,8 @@ def mult_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Anno def mult_tnumber_tnumber( - tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + tnumber1: Annotated[_ffi.CData, "const Temporal *"], tnumber2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.mult_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9704,28 +9837,32 @@ def mult_tnumber_tnumber( return result if result != _ffi.NULL else None -def sub_float_tfloat(d: float, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def sub_float_tfloat( + d: float, tnumber: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_float_tfloat(d, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_int_tint(i: int, tnumber: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def sub_int_tint(i: int, tnumber: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_int_tint(i, tnumber_converted) _check_error() return result if result != _ffi.NULL else None -def sub_tfloat_float(tnumber: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def sub_tfloat_float( + tnumber: Annotated[_ffi.CData, "const Temporal *"], d: float +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_tfloat_float(tnumber_converted, d) _check_error() return result if result != _ffi.NULL else None -def sub_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def sub_tint_int(tnumber: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: tnumber_converted = _ffi.cast("const Temporal *", tnumber) result = _lib.sub_tint_int(tnumber_converted, i) _check_error() @@ -9733,8 +9870,8 @@ def sub_tint_int(tnumber: Annotated[cdata, "const Temporal *"], i: int) -> Annot def sub_tnumber_tnumber( - tnumber1: Annotated[cdata, "const Temporal *"], tnumber2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + tnumber1: Annotated[_ffi.CData, "const Temporal *"], tnumber2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: tnumber1_converted = _ffi.cast("const Temporal *", tnumber1) tnumber2_converted = _ffi.cast("const Temporal *", tnumber2) result = _lib.sub_tnumber_tnumber(tnumber1_converted, tnumber2_converted) @@ -9742,35 +9879,35 @@ def sub_tnumber_tnumber( return result if result != _ffi.NULL else None -def temporal_derivative(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_derivative(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_derivative(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_exp(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_exp(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_exp(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_ln(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_ln(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_ln(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tfloat_log10(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tfloat_log10(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_log10(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_abs(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnumber_abs(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_abs(temp_converted) _check_error() @@ -9783,21 +9920,23 @@ def float_angular_difference(degrees1: float, degrees2: float) -> Annotated[floa return result if result != _ffi.NULL else None -def tnumber_angular_difference(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnumber_angular_difference(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_delta_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnumber_delta_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_delta_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def textcat_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def textcat_text_ttext( + txt: str, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: txt_converted = cstring2text(txt) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.textcat_text_ttext(txt_converted, temp_converted) @@ -9805,7 +9944,9 @@ def textcat_text_ttext(txt: str, temp: Annotated[cdata, "const Temporal *"]) -> return result if result != _ffi.NULL else None -def textcat_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> Annotated[cdata, "Temporal *"]: +def textcat_ttext_text( + temp: Annotated[_ffi.CData, "const Temporal *"], txt: str +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) txt_converted = cstring2text(txt) result = _lib.textcat_ttext_text(temp_converted, txt_converted) @@ -9814,8 +9955,8 @@ def textcat_ttext_text(temp: Annotated[cdata, "const Temporal *"], txt: str) -> def textcat_ttext_ttext( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.textcat_ttext_ttext(temp1_converted, temp2_converted) @@ -9823,35 +9964,37 @@ def textcat_ttext_ttext( return result if result != _ffi.NULL else None -def ttext_initcap(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def ttext_initcap(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_initcap(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_upper(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def ttext_upper(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_upper(temp_converted) _check_error() return result if result != _ffi.NULL else None -def ttext_lower(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def ttext_lower(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_lower(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tdistance_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[cdata, "Temporal *"]: +def tdistance_tfloat_float( + temp: Annotated[_ffi.CData, "const Temporal *"], d: float +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdistance_tfloat_float(temp_converted, d) _check_error() return result if result != _ffi.NULL else None -def tdistance_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[cdata, "Temporal *"]: +def tdistance_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdistance_tint_int(temp_converted, i) _check_error() @@ -9859,8 +10002,8 @@ def tdistance_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> An def tdistance_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tnumber_tnumber(temp1_converted, temp2_converted) @@ -9869,7 +10012,7 @@ def tdistance_tnumber_tnumber( def nad_tboxfloat_tboxfloat( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[float, "double"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -9879,7 +10022,7 @@ def nad_tboxfloat_tboxfloat( def nad_tboxint_tboxint( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[int, "int"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -9888,7 +10031,7 @@ def nad_tboxint_tboxint( return result if result != _ffi.NULL else None -def nad_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> Annotated[float, "double"]: +def nad_tfloat_float(temp: Annotated[_ffi.CData, "const Temporal *"], d: float) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.nad_tfloat_float(temp_converted, d) _check_error() @@ -9896,7 +10039,7 @@ def nad_tfloat_float(temp: Annotated[cdata, "const Temporal *"], d: float) -> An def nad_tfloat_tfloat( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9906,7 +10049,7 @@ def nad_tfloat_tfloat( def nad_tfloat_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9915,7 +10058,7 @@ def nad_tfloat_tbox( return result if result != _ffi.NULL else None -def nad_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotated[int, "int"]: +def nad_tint_int(temp: Annotated[_ffi.CData, "const Temporal *"], i: int) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.nad_tint_int(temp_converted, i) _check_error() @@ -9923,7 +10066,7 @@ def nad_tint_int(temp: Annotated[cdata, "const Temporal *"], i: int) -> Annotate def nad_tint_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -9933,7 +10076,7 @@ def nad_tint_tbox( def nad_tint_tint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -9943,8 +10086,8 @@ def nad_tint_tint( def tbool_tand_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_tand_transfn(state_converted, temp_converted) @@ -9953,8 +10096,8 @@ def tbool_tand_transfn( def tbool_tor_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tbool_tor_transfn(state_converted, temp_converted) @@ -9963,8 +10106,8 @@ def tbool_tor_transfn( def temporal_extent_transfn( - s: Annotated[cdata, "Span *"], temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "Span *"], temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("Span *", s) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_extent_transfn(s_converted, temp_converted) @@ -9972,7 +10115,7 @@ def temporal_extent_transfn( return result if result != _ffi.NULL else None -def temporal_tagg_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_tagg_finalfn(state: Annotated[_ffi.CData, "SkipList *"]) -> Annotated[_ffi.CData, "Temporal *"]: state_converted = _ffi.cast("SkipList *", state) result = _lib.temporal_tagg_finalfn(state_converted) _check_error() @@ -9980,8 +10123,8 @@ def temporal_tagg_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cd def temporal_tcount_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tcount_transfn(state_converted, temp_converted) @@ -9990,8 +10133,8 @@ def temporal_tcount_transfn( def tfloat_tmax_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tmax_transfn(state_converted, temp_converted) @@ -10000,8 +10143,8 @@ def tfloat_tmax_transfn( def tfloat_tmin_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tmin_transfn(state_converted, temp_converted) @@ -10010,8 +10153,8 @@ def tfloat_tmin_transfn( def tfloat_tsum_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tfloat_tsum_transfn(state_converted, temp_converted) @@ -10020,10 +10163,10 @@ def tfloat_tsum_transfn( def tfloat_wmax_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10033,10 +10176,10 @@ def tfloat_wmax_transfn( def tfloat_wmin_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10046,10 +10189,10 @@ def tfloat_wmin_transfn( def tfloat_wsum_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10058,7 +10201,9 @@ def tfloat_wsum_transfn( return result if result != _ffi.NULL else None -def timestamptz_tcount_transfn(state: Annotated[cdata, "SkipList *"] | None, t: int) -> Annotated[cdata, "SkipList *"]: +def timestamptz_tcount_transfn( + state: Annotated[_ffi.CData, "SkipList *"] | None, t: int +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_tcount_transfn(state_converted, t_converted) @@ -10067,8 +10212,8 @@ def timestamptz_tcount_transfn(state: Annotated[cdata, "SkipList *"] | None, t: def tint_tmax_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tmax_transfn(state_converted, temp_converted) @@ -10077,8 +10222,8 @@ def tint_tmax_transfn( def tint_tmin_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tmin_transfn(state_converted, temp_converted) @@ -10087,8 +10232,8 @@ def tint_tmin_transfn( def tint_tsum_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tint_tsum_transfn(state_converted, temp_converted) @@ -10097,10 +10242,10 @@ def tint_tsum_transfn( def tint_wmax_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10110,10 +10255,10 @@ def tint_wmax_transfn( def tint_wmin_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10123,10 +10268,10 @@ def tint_wmin_transfn( def tint_wsum_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10136,8 +10281,8 @@ def tint_wsum_transfn( def tnumber_extent_transfn( - box: Annotated[cdata, "TBox *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "TBox *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("TBox *", box) if box is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_extent_transfn(box_converted, temp_converted) @@ -10145,7 +10290,7 @@ def tnumber_extent_transfn( return result if result != _ffi.NULL else None -def tnumber_tavg_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cdata, "Temporal *"]: +def tnumber_tavg_finalfn(state: Annotated[_ffi.CData, "SkipList *"]) -> Annotated[_ffi.CData, "Temporal *"]: state_converted = _ffi.cast("SkipList *", state) result = _lib.tnumber_tavg_finalfn(state_converted) _check_error() @@ -10153,8 +10298,8 @@ def tnumber_tavg_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cda def tnumber_tavg_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnumber_tavg_transfn(state_converted, temp_converted) @@ -10163,10 +10308,10 @@ def tnumber_tavg_transfn( def tnumber_wavg_transfn( - state: Annotated[cdata, "SkipList *"], - temp: Annotated[cdata, "const Temporal *"], - interv: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + interv: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("const Temporal *", temp) interv_converted = _ffi.cast("const Interval *", interv) @@ -10176,8 +10321,8 @@ def tnumber_wavg_transfn( def tstzset_tcount_transfn( - state: Annotated[cdata, "SkipList *"] | None, s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_tcount_transfn(state_converted, s_converted) @@ -10186,8 +10331,8 @@ def tstzset_tcount_transfn( def tstzspan_tcount_transfn( - state: Annotated[cdata, "SkipList *"] | None, s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_tcount_transfn(state_converted, s_converted) @@ -10196,8 +10341,8 @@ def tstzspan_tcount_transfn( def tstzspanset_tcount_transfn( - state: Annotated[cdata, "SkipList *"] | None, ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_tcount_transfn(state_converted, ss_converted) @@ -10206,8 +10351,8 @@ def tstzspanset_tcount_transfn( def ttext_tmax_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_tmax_transfn(state_converted, temp_converted) @@ -10216,8 +10361,8 @@ def ttext_tmax_transfn( def ttext_tmin_transfn( - state: Annotated[cdata, "SkipList *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) if state is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttext_tmin_transfn(state_converted, temp_converted) @@ -10226,8 +10371,8 @@ def ttext_tmin_transfn( def temporal_simplify_dp( - temp: Annotated[cdata, "const Temporal *"], eps_dist: float, synchronized: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], eps_dist: float, synchronized: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_dp(temp_converted, eps_dist, synchronized) _check_error() @@ -10235,8 +10380,8 @@ def temporal_simplify_dp( def temporal_simplify_max_dist( - temp: Annotated[cdata, "const Temporal *"], eps_dist: float, synchronized: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], eps_dist: float, synchronized: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_max_dist(temp_converted, eps_dist, synchronized) _check_error() @@ -10244,8 +10389,8 @@ def temporal_simplify_max_dist( def temporal_simplify_min_dist( - temp: Annotated[cdata, "const Temporal *"], dist: float -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], dist: float +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_simplify_min_dist(temp_converted, dist) _check_error() @@ -10253,8 +10398,8 @@ def temporal_simplify_min_dist( def temporal_simplify_min_tdelta( - temp: Annotated[cdata, "const Temporal *"], mint: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], mint: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) mint_converted = _ffi.cast("const Interval *", mint) result = _lib.temporal_simplify_min_tdelta(temp_converted, mint_converted) @@ -10263,8 +10408,8 @@ def temporal_simplify_min_tdelta( def temporal_tprecision( - temp: Annotated[cdata, "const Temporal *"], duration: Annotated[cdata, "const Interval *"], origin: int -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], duration: Annotated[_ffi.CData, "const Interval *"], origin: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) @@ -10274,11 +10419,11 @@ def temporal_tprecision( def temporal_tsample( - temp: Annotated[cdata, "const Temporal *"], - duration: Annotated[cdata, "const Interval *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + duration: Annotated[_ffi.CData, "const Interval *"], origin: int, interp: InterpolationType, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) @@ -10288,7 +10433,7 @@ def temporal_tsample( def temporal_dyntimewarp_distance( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -10298,10 +10443,10 @@ def temporal_dyntimewarp_distance( def temporal_dyntimewarp_path( - temp1: Annotated[cdata, "const Temporal *"], - temp2: Annotated[cdata, "const Temporal *"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Match *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Match *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) count_converted = _ffi.cast("int *", count) @@ -10311,7 +10456,7 @@ def temporal_dyntimewarp_path( def temporal_frechet_distance( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -10321,10 +10466,10 @@ def temporal_frechet_distance( def temporal_frechet_path( - temp1: Annotated[cdata, "const Temporal *"], - temp2: Annotated[cdata, "const Temporal *"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Match *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Match *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) count_converted = _ffi.cast("int *", count) @@ -10334,7 +10479,7 @@ def temporal_frechet_path( def temporal_hausdorff_distance( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -10344,11 +10489,11 @@ def temporal_hausdorff_distance( def temporal_time_bins( - temp: Annotated[cdata, "const Temporal *"], - duration: Annotated[cdata, "const Interval *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + duration: Annotated[_ffi.CData, "const Interval *"], origin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) origin_converted = _ffi.cast("TimestampTz", origin) @@ -10359,8 +10504,8 @@ def temporal_time_bins( def temporal_time_split( - temp: Annotated[cdata, "const Temporal *"], duration: Annotated[cdata, "const Interval *"], torigin: int -) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "TimestampTz *"], Annotated[cdata, "int"]]: + temp: Annotated[_ffi.CData, "const Temporal *"], duration: Annotated[_ffi.CData, "const Interval *"], torigin: int +) -> tuple[Annotated[_ffi.CData, "Temporal **"], Annotated[list, "TimestampTz *"], Annotated[_ffi.CData, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10372,11 +10517,11 @@ def temporal_time_split( def tfloat_time_boxes( - temp: Annotated[cdata, "const Temporal *"], - duration: Annotated[cdata, "const Interval *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10387,8 +10532,8 @@ def tfloat_time_boxes( def tfloat_value_bins( - temp: Annotated[cdata, "const Temporal *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: float, vorigin: float, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tfloat_value_bins(temp_converted, vsize, vorigin, count_converted) @@ -10397,8 +10542,8 @@ def tfloat_value_bins( def tfloat_value_boxes( - temp: Annotated[cdata, "const Temporal *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: float, vorigin: float, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tfloat_value_boxes(temp_converted, vsize, vorigin, count_converted) @@ -10407,8 +10552,8 @@ def tfloat_value_boxes( def tfloat_value_split( - temp: Annotated[cdata, "const Temporal *"], size: float, origin: float -) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "double *"], Annotated[cdata, "int"]]: + temp: Annotated[_ffi.CData, "const Temporal *"], size: float, origin: float +) -> tuple[Annotated[_ffi.CData, "Temporal **"], Annotated[list, "double *"], Annotated[_ffi.CData, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) bins = _ffi.new("double **") count = _ffi.new("int *") @@ -10418,13 +10563,13 @@ def tfloat_value_split( def tfloat_value_time_boxes( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: float, - duration: Annotated[cdata, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], vorigin: float, torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10437,16 +10582,16 @@ def tfloat_value_time_boxes( def tfloat_value_time_split( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: float, - duration: Annotated[cdata, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], vorigin: float, torigin: int, ) -> tuple[ - Annotated[cdata, "Temporal **"], + Annotated[_ffi.CData, "Temporal **"], Annotated[list, "double *"], Annotated[list, "TimestampTz *"], - Annotated[cdata, "int"], + Annotated[_ffi.CData, "int"], ]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) @@ -10462,11 +10607,11 @@ def tfloat_value_time_split( def tfloatbox_time_tiles( - box: Annotated[cdata, "const TBox *"], - duration: Annotated[cdata, "const Interval *"], + box: Annotated[_ffi.CData, "const TBox *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10477,8 +10622,8 @@ def tfloatbox_time_tiles( def tfloatbox_value_tiles( - box: Annotated[cdata, "const TBox *"], vsize: float, vorigin: float, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], vsize: float, vorigin: float, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) count_converted = _ffi.cast("int *", count) result = _lib.tfloatbox_value_tiles(box_converted, vsize, vorigin, count_converted) @@ -10487,12 +10632,12 @@ def tfloatbox_value_tiles( def tfloatbox_value_time_tiles( - box: Annotated[cdata, "const TBox *"], + box: Annotated[_ffi.CData, "const TBox *"], vsize: float, - duration: Annotated[cdata, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], vorigin: float, torigin: int | None, -) -> tuple[Annotated[cdata, "TBox *"], Annotated[cdata, "int"]]: +) -> tuple[Annotated[_ffi.CData, "TBox *"], Annotated[_ffi.CData, "int"]]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) if torigin is not None else _ffi.NULL @@ -10505,11 +10650,11 @@ def tfloatbox_value_time_tiles( def tint_time_boxes( - temp: Annotated[cdata, "const Temporal *"], - duration: Annotated[cdata, "const Interval *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10520,8 +10665,8 @@ def tint_time_boxes( def tint_value_bins( - temp: Annotated[cdata, "const Temporal *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Span *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: int, vorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tint_value_bins(temp_converted, vsize, vorigin, count_converted) @@ -10530,8 +10675,8 @@ def tint_value_bins( def tint_value_boxes( - temp: Annotated[cdata, "const Temporal *"], vsize: int, vorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: int, vorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tint_value_boxes(temp_converted, vsize, vorigin, count_converted) @@ -10540,8 +10685,8 @@ def tint_value_boxes( def tint_value_split( - temp: Annotated[cdata, "const Temporal *"], vsize: int, vorigin: int -) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "int *"], Annotated[cdata, "int"]]: + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: int, vorigin: int +) -> tuple[Annotated[_ffi.CData, "Temporal **"], Annotated[list, "int *"], Annotated[_ffi.CData, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) bins = _ffi.new("int **") count = _ffi.new("int *") @@ -10551,13 +10696,13 @@ def tint_value_split( def tint_value_time_boxes( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], vsize: int, - duration: Annotated[cdata, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], vorigin: int, torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10570,13 +10715,16 @@ def tint_value_time_boxes( def tint_value_time_split( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], size: int, - duration: Annotated[cdata, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], vorigin: int, torigin: int, ) -> tuple[ - Annotated[cdata, "Temporal **"], Annotated[list, "int *"], Annotated[list, "TimestampTz *"], Annotated[cdata, "int"] + Annotated[_ffi.CData, "Temporal **"], + Annotated[list, "int *"], + Annotated[list, "TimestampTz *"], + Annotated[_ffi.CData, "int"], ]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) @@ -10592,11 +10740,11 @@ def tint_value_time_split( def tintbox_time_tiles( - box: Annotated[cdata, "const TBox *"], - duration: Annotated[cdata, "const Interval *"], + box: Annotated[_ffi.CData, "const TBox *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -10607,8 +10755,8 @@ def tintbox_time_tiles( def tintbox_value_tiles( - box: Annotated[cdata, "const TBox *"], xsize: int, xorigin: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], xsize: int, xorigin: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) count_converted = _ffi.cast("int *", count) result = _lib.tintbox_value_tiles(box_converted, xsize, xorigin, count_converted) @@ -10617,12 +10765,12 @@ def tintbox_value_tiles( def tintbox_value_time_tiles( - box: Annotated[cdata, "const TBox *"], + box: Annotated[_ffi.CData, "const TBox *"], xsize: int, - duration: Annotated[cdata, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], xorigin: int | None, torigin: int | None, -) -> tuple[Annotated[cdata, "TBox *"], Annotated[cdata, "int"]]: +) -> tuple[Annotated[_ffi.CData, "TBox *"], Annotated[_ffi.CData, "int"]]: box_converted = _ffi.cast("const TBox *", box) duration_converted = _ffi.cast("const Interval *", duration) xorigin_converted = xorigin if xorigin is not None else _ffi.NULL @@ -10635,7 +10783,7 @@ def tintbox_value_time_tiles( return result if result != _ffi.NULL else None, count[0] -def tempsubtype_name(subtype: Annotated[cdata, "tempSubtype"]) -> Annotated[str, "const char *"]: +def tempsubtype_name(subtype: Annotated[_ffi.CData, "tempSubtype"]) -> Annotated[str, "const char *"]: subtype_converted = _ffi.cast("tempSubtype", subtype) result = _lib.tempsubtype_name(subtype_converted) _check_error() @@ -10643,7 +10791,7 @@ def tempsubtype_name(subtype: Annotated[cdata, "tempSubtype"]) -> Annotated[str, return result if result != _ffi.NULL else None -def tempsubtype_from_string(string: str, subtype: Annotated[cdata, "int16 *"]) -> Annotated[bool, "bool"]: +def tempsubtype_from_string(string: str, subtype: Annotated[_ffi.CData, "int16 *"]) -> Annotated[bool, "bool"]: string_converted = string.encode("utf-8") subtype_converted = _ffi.cast("int16 *", subtype) result = _lib.tempsubtype_from_string(string_converted, subtype_converted) @@ -10651,7 +10799,7 @@ def tempsubtype_from_string(string: str, subtype: Annotated[cdata, "int16 *"]) - return result if result != _ffi.NULL else None -def meosoper_name(oper: Annotated[cdata, "meosOper"]) -> Annotated[str, "const char *"]: +def meosoper_name(oper: Annotated[_ffi.CData, "meosOper"]) -> Annotated[str, "const char *"]: oper_converted = _ffi.cast("meosOper", oper) result = _lib.meosoper_name(oper_converted) _check_error() @@ -10659,7 +10807,7 @@ def meosoper_name(oper: Annotated[cdata, "meosOper"]) -> Annotated[str, "const c return result if result != _ffi.NULL else None -def meosoper_from_string(name: str) -> Annotated[cdata, "meosOper"]: +def meosoper_from_string(name: str) -> Annotated[_ffi.CData, "meosOper"]: name_converted = name.encode("utf-8") result = _lib.meosoper_from_string(name_converted) _check_error() @@ -10680,7 +10828,7 @@ def interptype_from_string(interp_str: str) -> Annotated[InterpolationType, "int return result if result != _ffi.NULL else None -def meostype_name(type: Annotated[cdata, "meosType"]) -> Annotated[str, "const char *"]: +def meostype_name(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[str, "const char *"]: type_converted = _ffi.cast("meosType", type) result = _lib.meostype_name(type_converted) _check_error() @@ -10688,413 +10836,413 @@ def meostype_name(type: Annotated[cdata, "meosType"]) -> Annotated[str, "const c return result if result != _ffi.NULL else None -def temptype_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def temptype_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.temptype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def settype_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def settype_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.settype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def spantype_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.spantype_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spantype_spansettype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def spantype_spansettype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.spantype_spansettype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spansettype_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def spansettype_spantype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.spansettype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def basetype_spantype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_settype(type: Annotated[cdata, "meosType"]) -> Annotated[cdata, "meosType"]: +def basetype_settype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "meosType"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_settype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tnumber_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def geo_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def geo_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.geo_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def time_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def time_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.time_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def set_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.set_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def numset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_numset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_numset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timeset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def timeset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timeset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def set_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def set_spantype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_set_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_set_spantype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_set_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def alphanumset_type(settype: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def alphanumset_type(settype: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: settype_converted = _ffi.cast("meosType", settype) result = _lib.alphanumset_type(settype_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def geoset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_geoset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_geoset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_geoset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def spatialset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_spatialset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_spatialset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_spatialset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def span_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_canon_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def span_canon_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_canon_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def span_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def type_span_bbox(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def type_span_bbox(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.type_span_bbox(type_converted) _check_error() return result if result != _ffi.NULL else None -def span_tbox_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def span_tbox_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_span_tbox_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_span_tbox_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_span_tbox_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def numspan_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.numspan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def numspan_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def numspan_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_numspan_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_numspan_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_numspan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def timespan_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timespan_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespan_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def timespan_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timespan_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def spanset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.spanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def timespanset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def timespanset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_timespanset_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_timespanset_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_timespanset_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def temporal_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.temporal_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def temptype_continuous(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def temptype_continuous(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.temptype_continuous(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_byvalue(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def basetype_byvalue(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_byvalue(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_varlength(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def basetype_varlength(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_varlength(type_converted) _check_error() return result if result != _ffi.NULL else None -def basetype_length(type: Annotated[cdata, "meosType"]) -> Annotated[int, "int16"]: +def basetype_length(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[int, "int16"]: type_converted = _ffi.cast("meosType", type) result = _lib.basetype_length(type_converted) _check_error() return result if result != _ffi.NULL else None -def talpha_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def talpha_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.talpha_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tnumber_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tnumber_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tnumber_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tnumber_spantype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tnumber_spantype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tnumber_spantype(type_converted) _check_error() return result if result != _ffi.NULL else None -def spatial_basetype(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def spatial_basetype(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.spatial_basetype(type_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tspatial_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tspatial_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tspatial_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tspatial_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tpoint_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tpoint_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tpoint_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tgeo_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tgeo_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeo_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_type_all(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tgeo_type_all(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeo_type_all(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tgeo_type_all(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeo_type_all(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tgeometry_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeometry_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tgeometry_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeometry_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def tgeodetic_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def tgeodetic_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tgeodetic_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tgeodetic_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tgeodetic_type(type_converted) _check_error() return result if result != _ffi.NULL else None -def ensure_tnumber_tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[bool, "bool"]: +def ensure_tnumber_tpoint_type(type: Annotated[_ffi.CData, "meosType"]) -> Annotated[bool, "bool"]: type_converted = _ffi.cast("meosType", type) result = _lib.ensure_tnumber_tpoint_type(type_converted) _check_error() @@ -11102,8 +11250,8 @@ def ensure_tnumber_tpoint_type(type: Annotated[cdata, "meosType"]) -> Annotated[ def geo_as_ewkb( - gs: Annotated[cdata, "const GSERIALIZED *"], endian: str, size: Annotated[cdata, "size_t *"] -) -> Annotated[cdata, "uint8_t *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], endian: str, size: Annotated[_ffi.CData, "size_t *"] +) -> Annotated[_ffi.CData, "uint8_t *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) endian_converted = endian.encode("utf-8") size_converted = _ffi.cast("size_t *", size) @@ -11112,7 +11260,7 @@ def geo_as_ewkb( return result if result != _ffi.NULL else None -def geo_as_ewkt(gs: Annotated[cdata, "const GSERIALIZED *"], precision: int) -> Annotated[str, "char *"]: +def geo_as_ewkt(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], precision: int) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_as_ewkt(gs_converted, precision) _check_error() @@ -11121,7 +11269,7 @@ def geo_as_ewkt(gs: Annotated[cdata, "const GSERIALIZED *"], precision: int) -> def geo_as_geojson( - gs: Annotated[cdata, "const GSERIALIZED *"], option: int, precision: int, srs: str | None + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], option: int, precision: int, srs: str | None ) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) srs_converted = srs.encode("utf-8") if srs is not None else _ffi.NULL @@ -11131,7 +11279,7 @@ def geo_as_geojson( return result if result != _ffi.NULL else None -def geo_as_hexewkb(gs: Annotated[cdata, "const GSERIALIZED *"], endian: str) -> Annotated[str, "char *"]: +def geo_as_hexewkb(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], endian: str) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) endian_converted = endian.encode("utf-8") result = _lib.geo_as_hexewkb(gs_converted, endian_converted) @@ -11140,7 +11288,7 @@ def geo_as_hexewkb(gs: Annotated[cdata, "const GSERIALIZED *"], endian: str) -> return result if result != _ffi.NULL else None -def geo_as_text(gs: Annotated[cdata, "const GSERIALIZED *"], precision: int) -> Annotated[str, "char *"]: +def geo_as_text(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], precision: int) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_as_text(gs_converted, precision) _check_error() @@ -11149,8 +11297,8 @@ def geo_as_text(gs: Annotated[cdata, "const GSERIALIZED *"], precision: int) -> def geo_from_ewkb( - wkb: Annotated[cdata, "const uint8_t *"], wkb_size: Annotated[cdata, "size_t"], srid: int -) -> Annotated[cdata, "GSERIALIZED *"]: + wkb: Annotated[_ffi.CData, "const uint8_t *"], wkb_size: Annotated[_ffi.CData, "size_t"], srid: int +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: wkb_converted = _ffi.cast("const uint8_t *", wkb) wkb_size_converted = _ffi.cast("size_t", wkb_size) srid_converted = _ffi.cast("int32", srid) @@ -11159,14 +11307,14 @@ def geo_from_ewkb( return result if result != _ffi.NULL else None -def geo_from_geojson(geojson: str) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_from_geojson(geojson: str) -> Annotated[_ffi.CData, "GSERIALIZED *"]: geojson_converted = geojson.encode("utf-8") result = _lib.geo_from_geojson(geojson_converted) _check_error() return result if result != _ffi.NULL else None -def geo_from_text(wkt: str, srid: Annotated[cdata, "int32_t"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_from_text(wkt: str, srid: Annotated[_ffi.CData, "int32_t"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: wkt_converted = wkt.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) result = _lib.geo_from_text(wkt_converted, srid_converted) @@ -11174,7 +11322,7 @@ def geo_from_text(wkt: str, srid: Annotated[cdata, "int32_t"]) -> Annotated[cdat return result if result != _ffi.NULL else None -def geo_out(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[str, "char *"]: +def geo_out(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[str, "char *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_out(gs_converted) _check_error() @@ -11182,21 +11330,21 @@ def geo_out(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[str, "char return result if result != _ffi.NULL else None -def geog_from_binary(wkb_bytea: str) -> Annotated[cdata, "GSERIALIZED *"]: +def geog_from_binary(wkb_bytea: str) -> Annotated[_ffi.CData, "GSERIALIZED *"]: wkb_bytea_converted = wkb_bytea.encode("utf-8") result = _lib.geog_from_binary(wkb_bytea_converted) _check_error() return result if result != _ffi.NULL else None -def geog_from_hexewkb(wkt: str) -> Annotated[cdata, "GSERIALIZED *"]: +def geog_from_hexewkb(wkt: str) -> Annotated[_ffi.CData, "GSERIALIZED *"]: wkt_converted = wkt.encode("utf-8") result = _lib.geog_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def geog_in(string: str, typmod: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geog_in(string: str, typmod: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.geog_in(string_converted, typmod_converted) @@ -11204,14 +11352,14 @@ def geog_in(string: str, typmod: int) -> Annotated[cdata, "GSERIALIZED *"]: return result if result != _ffi.NULL else None -def geom_from_hexewkb(wkt: str) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_from_hexewkb(wkt: str) -> Annotated[_ffi.CData, "GSERIALIZED *"]: wkt_converted = wkt.encode("utf-8") result = _lib.geom_from_hexewkb(wkt_converted) _check_error() return result if result != _ffi.NULL else None -def geom_in(string: str, typmod: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_in(string: str, typmod: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: string_converted = string.encode("utf-8") typmod_converted = _ffi.cast("int32", typmod) result = _lib.geom_in(string_converted, typmod_converted) @@ -11219,14 +11367,16 @@ def geom_in(string: str, typmod: int) -> Annotated[cdata, "GSERIALIZED *"]: return result if result != _ffi.NULL else None -def geo_copy(g: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_copy(g: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geo_copy(g_converted) _check_error() return result if result != _ffi.NULL else None -def geogpoint_make2d(srid: Annotated[cdata, "int32_t"], x: float, y: float) -> Annotated[cdata, "GSERIALIZED *"]: +def geogpoint_make2d( + srid: Annotated[_ffi.CData, "int32_t"], x: float, y: float +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geogpoint_make2d(srid_converted, x, y) _check_error() @@ -11234,15 +11384,17 @@ def geogpoint_make2d(srid: Annotated[cdata, "int32_t"], x: float, y: float) -> A def geogpoint_make3dz( - srid: Annotated[cdata, "int32_t"], x: float, y: float, z: float -) -> Annotated[cdata, "GSERIALIZED *"]: + srid: Annotated[_ffi.CData, "int32_t"], x: float, y: float, z: float +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geogpoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def geompoint_make2d(srid: Annotated[cdata, "int32_t"], x: float, y: float) -> Annotated[cdata, "GSERIALIZED *"]: +def geompoint_make2d( + srid: Annotated[_ffi.CData, "int32_t"], x: float, y: float +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geompoint_make2d(srid_converted, x, y) _check_error() @@ -11250,29 +11402,29 @@ def geompoint_make2d(srid: Annotated[cdata, "int32_t"], x: float, y: float) -> A def geompoint_make3dz( - srid: Annotated[cdata, "int32_t"], x: float, y: float, z: float -) -> Annotated[cdata, "GSERIALIZED *"]: + srid: Annotated[_ffi.CData, "int32_t"], x: float, y: float, z: float +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: srid_converted = _ffi.cast("int32_t", srid) result = _lib.geompoint_make3dz(srid_converted, x, y, z) _check_error() return result if result != _ffi.NULL else None -def geom_to_geog(geom: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_to_geog(geom: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.geom_to_geog(geom_converted) _check_error() return result if result != _ffi.NULL else None -def geog_to_geom(geog: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geog_to_geom(geog: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: geog_converted = _ffi.cast("const GSERIALIZED *", geog) result = _lib.geog_to_geom(geog_converted) _check_error() return result if result != _ffi.NULL else None -def geo_is_empty(g: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[bool, "bool"]: +def geo_is_empty(g: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[bool, "bool"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geo_is_empty(g_converted) _check_error() @@ -11286,28 +11438,30 @@ def geo_typename(type: int) -> Annotated[str, "const char *"]: return result if result != _ffi.NULL else None -def geog_area(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: +def geog_area(g: Annotated[_ffi.CData, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_area(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_centroid(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[cdata, "GSERIALIZED *"]: +def geog_centroid( + g: Annotated[_ffi.CData, "const GSERIALIZED *"], use_spheroid: bool +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_centroid(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_length(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: +def geog_length(g: Annotated[_ffi.CData, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_length(g_converted, use_spheroid) _check_error() return result if result != _ffi.NULL else None -def geog_perimeter(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: +def geog_perimeter(g: Annotated[_ffi.CData, "const GSERIALIZED *"], use_spheroid: bool) -> Annotated[float, "double"]: g_converted = _ffi.cast("const GSERIALIZED *", g) result = _lib.geog_perimeter(g_converted, use_spheroid) _check_error() @@ -11315,8 +11469,8 @@ def geog_perimeter(g: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: boo def geom_azimuth( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "double"]: + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) out_result = _ffi.new("double *") @@ -11327,42 +11481,42 @@ def geom_azimuth( return None -def geom_length(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[float, "double"]: +def geom_length(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[float, "double"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_length(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_perimeter(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[float, "double"]: +def geom_perimeter(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[float, "double"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_perimeter(gs_converted) _check_error() return result if result != _ffi.NULL else None -def line_numpoints(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[int, "int"]: +def line_numpoints(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.line_numpoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def line_point_n(geom: Annotated[cdata, "const GSERIALIZED *"], n: int) -> Annotated[cdata, "GSERIALIZED *"]: +def line_point_n(geom: Annotated[_ffi.CData, "const GSERIALIZED *"], n: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.line_point_n(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def geo_reverse(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_reverse(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_reverse(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_round(gs: Annotated[cdata, "const GSERIALIZED *"], maxdd: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_round(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], maxdd: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_round(gs_converted, maxdd) _check_error() @@ -11370,8 +11524,8 @@ def geo_round(gs: Annotated[cdata, "const GSERIALIZED *"], maxdd: int) -> Annota def geo_set_srid( - gs: Annotated[cdata, "const GSERIALIZED *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "GSERIALIZED *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) srid_converted = _ffi.cast("int32_t", srid) result = _lib.geo_set_srid(gs_converted, srid_converted) @@ -11379,7 +11533,7 @@ def geo_set_srid( return result if result != _ffi.NULL else None -def geo_srid(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "int32_t"]: +def geo_srid(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "int32_t"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_srid(gs_converted) _check_error() @@ -11387,8 +11541,8 @@ def geo_srid(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "i def geo_transform( - geom: Annotated[cdata, "GSERIALIZED *"], srid_to: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "GSERIALIZED *"]: + geom: Annotated[_ffi.CData, "GSERIALIZED *"], srid_to: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: geom_converted = _ffi.cast("GSERIALIZED *", geom) srid_to_converted = _ffi.cast("int32_t", srid_to) result = _lib.geo_transform(geom_converted, srid_to_converted) @@ -11397,8 +11551,11 @@ def geo_transform( def geo_transform_pipeline( - gs: Annotated[cdata, "const GSERIALIZED *"], pipeline: str, srid_to: Annotated[cdata, "int32_t"], is_forward: bool -) -> Annotated[cdata, "GSERIALIZED *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + pipeline: str, + srid_to: Annotated[_ffi.CData, "int32_t"], + is_forward: bool, +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) pipeline_converted = pipeline.encode("utf-8") srid_to_converted = _ffi.cast("int32_t", srid_to) @@ -11407,49 +11564,49 @@ def geo_transform_pipeline( return result if result != _ffi.NULL else None -def geo_collect_garray(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_collect_garray(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geo_collect_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geo_makeline_garray(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_makeline_garray(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geo_makeline_garray(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geo_npoints(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[int, "int"]: +def geo_npoints(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_npoints(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_ngeos(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[int, "int"]: +def geo_ngeos(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_ngeos(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geo_geoN(geom: Annotated[cdata, "const GSERIALIZED *"], n: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geo_geoN(geom: Annotated[_ffi.CData, "const GSERIALIZED *"], n: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: geom_converted = _ffi.cast("const GSERIALIZED *", geom) result = _lib.geo_geoN(geom_converted, n) _check_error() return result if result != _ffi.NULL else None -def geom_array_union(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_array_union(gsarr: Annotated[list, "GSERIALIZED **"], count: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gsarr_converted = [_ffi.cast("GSERIALIZED *", x) for x in gsarr] result = _lib.geom_array_union(gsarr_converted, count) _check_error() return result if result != _ffi.NULL else None -def geom_boundary(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_boundary(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_boundary(gs_converted) _check_error() @@ -11457,8 +11614,8 @@ def geom_boundary(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdat def geom_buffer( - gs: Annotated[cdata, "const GSERIALIZED *"], size: float, params: str -) -> Annotated[cdata, "GSERIALIZED *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], size: float, params: str +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) params_converted = params.encode("utf-8") result = _lib.geom_buffer(gs_converted, size, params_converted) @@ -11466,14 +11623,14 @@ def geom_buffer( return result if result != _ffi.NULL else None -def geom_centroid(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_centroid(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_centroid(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_convex_hull(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_convex_hull(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_convex_hull(gs_converted) _check_error() @@ -11481,8 +11638,8 @@ def geom_convex_hull(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[c def geom_difference2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_difference2d(gs1_converted, gs2_converted) @@ -11491,8 +11648,8 @@ def geom_difference2d( def geom_intersection2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) result = _lib.geom_intersection2d(gs1_converted, gs2_converted) @@ -11501,8 +11658,8 @@ def geom_intersection2d( def geom_shortestline2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], s2: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], s2: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) s2_converted = _ffi.cast("const GSERIALIZED *", s2) result = _lib.geom_shortestline2d(gs1_converted, s2_converted) @@ -11511,8 +11668,8 @@ def geom_shortestline2d( def geom_shortestline3d( - gs1: Annotated[cdata, "const GSERIALIZED *"], s2: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], s2: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) s2_converted = _ffi.cast("const GSERIALIZED *", s2) result = _lib.geom_shortestline3d(gs1_converted, s2_converted) @@ -11520,7 +11677,7 @@ def geom_shortestline3d( return result if result != _ffi.NULL else None -def geom_unary_union(gs: Annotated[cdata, "GSERIALIZED *"], prec: float) -> Annotated[cdata, "GSERIALIZED *"]: +def geom_unary_union(gs: Annotated[_ffi.CData, "GSERIALIZED *"], prec: float) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.geom_unary_union(gs_converted, prec) _check_error() @@ -11528,8 +11685,8 @@ def geom_unary_union(gs: Annotated[cdata, "GSERIALIZED *"], prec: float) -> Anno def line_interpolate_point( - gs: Annotated[cdata, "GSERIALIZED *"], distance_fraction: float, repeat: bool -) -> Annotated[cdata, "GSERIALIZED *"]: + gs: Annotated[_ffi.CData, "GSERIALIZED *"], distance_fraction: float, repeat: bool +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.line_interpolate_point(gs_converted, distance_fraction, repeat) _check_error() @@ -11537,7 +11694,7 @@ def line_interpolate_point( def line_locate_point( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11547,8 +11704,8 @@ def line_locate_point( def line_substring( - gs: Annotated[cdata, "const GSERIALIZED *"], from_: float, to: float -) -> Annotated[cdata, "GSERIALIZED *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], from_: float, to: float +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.line_substring(gs_converted, from_, to) _check_error() @@ -11556,8 +11713,8 @@ def line_substring( def geog_dwithin( - g1: Annotated[cdata, "const GSERIALIZED *"], - g2: Annotated[cdata, "const GSERIALIZED *"], + g1: Annotated[_ffi.CData, "const GSERIALIZED *"], + g2: Annotated[_ffi.CData, "const GSERIALIZED *"], tolerance: float, use_spheroid: bool, ) -> Annotated[bool, "bool"]: @@ -11569,7 +11726,9 @@ def geog_dwithin( def geog_intersects( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], use_spheroid: bool + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], + gs2: Annotated[_ffi.CData, "const GSERIALIZED *"], + use_spheroid: bool, ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11579,7 +11738,7 @@ def geog_intersects( def geom_contains( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11589,7 +11748,7 @@ def geom_contains( def geom_covers( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11599,7 +11758,7 @@ def geom_covers( def geom_disjoint2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11609,7 +11768,9 @@ def geom_disjoint2d( def geom_dwithin2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], tolerance: float + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], + gs2: Annotated[_ffi.CData, "const GSERIALIZED *"], + tolerance: float, ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11619,7 +11780,9 @@ def geom_dwithin2d( def geom_dwithin3d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], tolerance: float + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], + gs2: Annotated[_ffi.CData, "const GSERIALIZED *"], + tolerance: float, ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11629,7 +11792,7 @@ def geom_dwithin3d( def geom_intersects2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11639,7 +11802,7 @@ def geom_intersects2d( def geom_intersects3d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11649,7 +11812,7 @@ def geom_intersects3d( def geom_relate_pattern( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"], patt: str + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"], patt: str ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11660,7 +11823,7 @@ def geom_relate_pattern( def geom_touches( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11670,8 +11833,8 @@ def geom_touches( def geo_stboxes( - gs: Annotated[cdata, "const GSERIALIZED *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) count_converted = _ffi.cast("int *", count) result = _lib.geo_stboxes(gs_converted, count_converted) @@ -11680,8 +11843,8 @@ def geo_stboxes( def geo_split_each_n_stboxes( - gs: Annotated[cdata, "const GSERIALIZED *"], elem_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], elem_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) count_converted = _ffi.cast("int *", count) result = _lib.geo_split_each_n_stboxes(gs_converted, elem_count, count_converted) @@ -11690,8 +11853,8 @@ def geo_split_each_n_stboxes( def geo_split_n_stboxes( - gs: Annotated[cdata, "const GSERIALIZED *"], box_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], box_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) count_converted = _ffi.cast("int *", count) result = _lib.geo_split_n_stboxes(gs_converted, box_count, count_converted) @@ -11700,7 +11863,7 @@ def geo_split_n_stboxes( def geog_distance( - g1: Annotated[cdata, "const GSERIALIZED *"], g2: Annotated[cdata, "const GSERIALIZED *"] + g1: Annotated[_ffi.CData, "const GSERIALIZED *"], g2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: g1_converted = _ffi.cast("const GSERIALIZED *", g1) g2_converted = _ffi.cast("const GSERIALIZED *", g2) @@ -11710,7 +11873,7 @@ def geog_distance( def geom_distance2d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11720,7 +11883,7 @@ def geom_distance2d( def geom_distance3d( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11730,7 +11893,7 @@ def geom_distance3d( def geo_equals( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11740,7 +11903,7 @@ def geo_equals( def geo_same( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[bool, "bool"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) @@ -11749,21 +11912,21 @@ def geo_same( return result if result != _ffi.NULL else None -def geogset_in(string: str) -> Annotated[cdata, "Set *"]: +def geogset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.geogset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def geomset_in(string: str) -> Annotated[cdata, "Set *"]: +def geomset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.geomset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_as_text(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: +def spatialset_as_text(set: Annotated[_ffi.CData, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.spatialset_as_text(set_converted, maxdd) _check_error() @@ -11771,7 +11934,7 @@ def spatialset_as_text(set: Annotated[cdata, "const Set *"], maxdd: int) -> Anno return result if result != _ffi.NULL else None -def spatialset_as_ewkt(set: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: +def spatialset_as_ewkt(set: Annotated[_ffi.CData, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: set_converted = _ffi.cast("const Set *", set) result = _lib.spatialset_as_ewkt(set_converted, maxdd) _check_error() @@ -11779,35 +11942,35 @@ def spatialset_as_ewkt(set: Annotated[cdata, "const Set *"], maxdd: int) -> Anno return result if result != _ffi.NULL else None -def geoset_make(values: Annotated[list, "const GSERIALIZED **"]) -> Annotated[cdata, "Set *"]: +def geoset_make(values: Annotated[list, "const GSERIALIZED **"]) -> Annotated[_ffi.CData, "Set *"]: values_converted = [_ffi.cast("const GSERIALIZED *", x) for x in values] result = _lib.geoset_make(values_converted, len(values)) _check_error() return result if result != _ffi.NULL else None -def geo_to_set(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Set *"]: +def geo_to_set(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_to_set(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geoset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def geoset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def geoset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list, "GSERIALIZED **"]: +def geoset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[list, "GSERIALIZED **"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("GSERIALIZED **") result = _lib.geoset_value_n(s_converted, n, out_result) @@ -11817,7 +11980,7 @@ def geoset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list return None -def geoset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERIALIZED **"]: +def geoset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "GSERIALIZED **"]: s_converted = _ffi.cast("const Set *", s) result = _lib.geoset_values(s_converted) _check_error() @@ -11825,7 +11988,7 @@ def geoset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "GSERI def contained_geo_set( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) @@ -11835,7 +11998,7 @@ def contained_geo_set( def contains_set_geo( - s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "GSERIALIZED *"] + s: Annotated[_ffi.CData, "const Set *"], gs: Annotated[_ffi.CData, "GSERIALIZED *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("GSERIALIZED *", gs) @@ -11845,8 +12008,8 @@ def contains_set_geo( def geo_union_transfn( - state: Annotated[cdata, "Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Set *"]: + state: Annotated[_ffi.CData, "Set *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_union_transfn(state_converted, gs_converted) @@ -11855,8 +12018,8 @@ def geo_union_transfn( def intersection_geo_set( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_geo_set(gs_converted, s_converted) @@ -11865,8 +12028,8 @@ def intersection_geo_set( def intersection_set_geo( - s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.intersection_set_geo(s_converted, gs_converted) @@ -11875,8 +12038,8 @@ def intersection_set_geo( def minus_geo_set( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_geo_set(gs_converted, s_converted) @@ -11885,8 +12048,8 @@ def minus_geo_set( def minus_set_geo( - s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.minus_set_geo(s_converted, gs_converted) @@ -11895,8 +12058,8 @@ def minus_set_geo( def union_geo_set( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.union_geo_set(gs_converted, s_converted) @@ -11905,8 +12068,8 @@ def union_geo_set( def union_set_geo( - s: Annotated[cdata, "const Set *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.union_set_geo(s_converted, gs_converted) @@ -11915,8 +12078,8 @@ def union_set_geo( def spatialset_set_srid( - s: Annotated[cdata, "const Set *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatialset_set_srid(s_converted, srid_converted) @@ -11924,7 +12087,7 @@ def spatialset_set_srid( return result if result != _ffi.NULL else None -def spatialset_srid(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int32_t"]: +def spatialset_srid(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "int32_t"]: s_converted = _ffi.cast("const Set *", s) result = _lib.spatialset_srid(s_converted) _check_error() @@ -11932,8 +12095,8 @@ def spatialset_srid(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "int def spatialset_transform( - s: Annotated[cdata, "const Set *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) srid_converted = _ffi.cast("int32_t", srid) result = _lib.spatialset_transform(s_converted, srid_converted) @@ -11942,8 +12105,8 @@ def spatialset_transform( def spatialset_transform_pipeline( - s: Annotated[cdata, "const Set *"], pipelinestr: str, srid: Annotated[cdata, "int32_t"], is_forward: bool -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], pipelinestr: str, srid: Annotated[_ffi.CData, "int32_t"], is_forward: bool +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) pipelinestr_converted = pipelinestr.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) @@ -11953,8 +12116,8 @@ def spatialset_transform_pipeline( def stbox_as_hexwkb( - box: Annotated[cdata, "const STBox *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + box: Annotated[_ffi.CData, "const STBox *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: box_converted = _ffi.cast("const STBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size = _ffi.new("size_t *") @@ -11965,8 +12128,8 @@ def stbox_as_hexwkb( def stbox_as_wkb( - box: Annotated[cdata, "const STBox *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + box: Annotated[_ffi.CData, "const STBox *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: box_converted = _ffi.cast("const STBox *", box) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -11976,7 +12139,7 @@ def stbox_as_wkb( return result_converted -def stbox_from_hexwkb(hexwkb: str) -> Annotated[cdata, "STBox *"]: +def stbox_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "STBox *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.stbox_from_hexwkb(hexwkb_converted) _check_error() @@ -11989,14 +12152,14 @@ def stbox_from_wkb(wkb: bytes) -> "STBOX *": return result if result != _ffi.NULL else None -def stbox_in(string: str) -> Annotated[cdata, "STBox *"]: +def stbox_in(string: str) -> Annotated[_ffi.CData, "STBox *"]: string_converted = string.encode("utf-8") result = _lib.stbox_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_out(box: Annotated[cdata, "const STBox *"], maxdd: int) -> Annotated[str, "char *"]: +def stbox_out(box: Annotated[_ffi.CData, "const STBox *"], maxdd: int) -> Annotated[str, "char *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_out(box_converted, maxdd) _check_error() @@ -12004,7 +12167,9 @@ def stbox_out(box: Annotated[cdata, "const STBox *"], maxdd: int) -> Annotated[s return result if result != _ffi.NULL else None -def geo_timestamptz_to_stbox(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annotated[cdata, "STBox *"]: +def geo_timestamptz_to_stbox( + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], t: int +) -> Annotated[_ffi.CData, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) t_converted = _ffi.cast("TimestampTz", t) result = _lib.geo_timestamptz_to_stbox(gs_converted, t_converted) @@ -12013,8 +12178,8 @@ def geo_timestamptz_to_stbox(gs: Annotated[cdata, "const GSERIALIZED *"], t: int def geo_tstzspan_to_stbox( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "STBox *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) result = _lib.geo_tstzspan_to_stbox(gs_converted, s_converted) @@ -12022,7 +12187,7 @@ def geo_tstzspan_to_stbox( return result if result != _ffi.NULL else None -def stbox_copy(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "STBox *"]: +def stbox_copy(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_copy(box_converted) _check_error() @@ -12040,8 +12205,8 @@ def stbox_make( ymax: float, zmin: float, zmax: float, - s: Annotated[cdata, "const Span *"] | None, -) -> Annotated[cdata, "STBox *"]: + s: Annotated[_ffi.CData, "const Span *"] | None, +) -> Annotated[_ffi.CData, "STBox *"]: srid_converted = _ffi.cast("int32", srid) s_converted = _ffi.cast("const Span *", s) if s is not None else _ffi.NULL result = _lib.stbox_make(hasx, hasz, geodetic, srid_converted, xmin, xmax, ymin, ymax, zmin, zmax, s_converted) @@ -12049,119 +12214,119 @@ def stbox_make( return result if result != _ffi.NULL else None -def geo_to_stbox(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "STBox *"]: +def geo_to_stbox(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "STBox *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geo_to_stbox(gs_converted) _check_error() return result if result != _ffi.NULL else None -def spatialset_to_stbox(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "STBox *"]: +def spatialset_to_stbox(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "STBox *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.spatialset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_box3d(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "BOX3D *"]: +def stbox_to_box3d(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "BOX3D *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_box3d(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_gbox(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "GBOX *"]: +def stbox_to_gbox(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "GBOX *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_gbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_geo(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def stbox_to_geo(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_to_tstzspan(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "Span *"]: +def stbox_to_tstzspan(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "Span *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_to_tstzspan(box_converted) _check_error() return result if result != _ffi.NULL else None -def timestamptz_to_stbox(t: int) -> Annotated[cdata, "STBox *"]: +def timestamptz_to_stbox(t: int) -> Annotated[_ffi.CData, "STBox *"]: t_converted = _ffi.cast("TimestampTz", t) result = _lib.timestamptz_to_stbox(t_converted) _check_error() return result if result != _ffi.NULL else None -def tstzset_to_stbox(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "STBox *"]: +def tstzset_to_stbox(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "STBox *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.tstzset_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspan_to_stbox(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "STBox *"]: +def tstzspan_to_stbox(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "STBox *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.tstzspan_to_stbox(s_converted) _check_error() return result if result != _ffi.NULL else None -def tstzspanset_to_stbox(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "STBox *"]: +def tstzspanset_to_stbox(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "STBox *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tstzspanset_to_stbox(ss_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_area(box: Annotated[cdata, "const STBox *"], spheroid: bool) -> Annotated[float, "double"]: +def stbox_area(box: Annotated[_ffi.CData, "const STBox *"], spheroid: bool) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_area(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def stbox_hast(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: +def stbox_hast(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hast(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_hasx(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: +def stbox_hasx(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hasx(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_hasz(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: +def stbox_hasz(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_hasz(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_isgeodetic(box: Annotated[cdata, "const STBox *"]) -> Annotated[bool, "bool"]: +def stbox_isgeodetic(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_isgeodetic(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_perimeter(box: Annotated[cdata, "const STBox *"], spheroid: bool) -> Annotated[float, "double"]: +def stbox_perimeter(box: Annotated[_ffi.CData, "const STBox *"], spheroid: bool) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_perimeter(box_converted, spheroid) _check_error() return result if result != _ffi.NULL else None -def stbox_tmax(box: Annotated[cdata, "const STBox *"]) -> int: +def stbox_tmax(box: Annotated[_ffi.CData, "const STBox *"]) -> int: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.stbox_tmax(box_converted, out_result) @@ -12171,7 +12336,7 @@ def stbox_tmax(box: Annotated[cdata, "const STBox *"]) -> int: return None -def stbox_tmax_inc(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "bool"]: +def stbox_tmax_inc(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "bool"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("bool *") result = _lib.stbox_tmax_inc(box_converted, out_result) @@ -12181,7 +12346,7 @@ def stbox_tmax_inc(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, " return None -def stbox_tmin(box: Annotated[cdata, "const STBox *"]) -> int: +def stbox_tmin(box: Annotated[_ffi.CData, "const STBox *"]) -> int: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("TimestampTz *") result = _lib.stbox_tmin(box_converted, out_result) @@ -12191,7 +12356,7 @@ def stbox_tmin(box: Annotated[cdata, "const STBox *"]) -> int: return None -def stbox_tmin_inc(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "bool"]: +def stbox_tmin_inc(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "bool"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("bool *") result = _lib.stbox_tmin_inc(box_converted, out_result) @@ -12201,14 +12366,14 @@ def stbox_tmin_inc(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, " return None -def stbox_volume(box: Annotated[cdata, "const STBox *"]) -> Annotated[float, "double"]: +def stbox_volume(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_volume(box_converted) _check_error() return result if result != _ffi.NULL else None -def stbox_xmax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: +def stbox_xmax(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_xmax(box_converted, out_result) @@ -12218,7 +12383,7 @@ def stbox_xmax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "doub return None -def stbox_xmin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: +def stbox_xmin(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_xmin(box_converted, out_result) @@ -12228,7 +12393,7 @@ def stbox_xmin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "doub return None -def stbox_ymax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: +def stbox_ymax(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_ymax(box_converted, out_result) @@ -12238,7 +12403,7 @@ def stbox_ymax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "doub return None -def stbox_ymin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: +def stbox_ymin(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_ymin(box_converted, out_result) @@ -12248,7 +12413,7 @@ def stbox_ymin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "doub return None -def stbox_zmax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: +def stbox_zmax(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_zmax(box_converted, out_result) @@ -12258,7 +12423,7 @@ def stbox_zmax(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "doub return None -def stbox_zmin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "double"]: +def stbox_zmin(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "double"]: box_converted = _ffi.cast("const STBox *", box) out_result = _ffi.new("double *") result = _lib.stbox_zmin(box_converted, out_result) @@ -12268,7 +12433,7 @@ def stbox_zmin(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "doub return None -def stbox_expand_space(box: Annotated[cdata, "const STBox *"], d: float) -> Annotated[cdata, "STBox *"]: +def stbox_expand_space(box: Annotated[_ffi.CData, "const STBox *"], d: float) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_expand_space(box_converted, d) _check_error() @@ -12276,8 +12441,8 @@ def stbox_expand_space(box: Annotated[cdata, "const STBox *"], d: float) -> Anno def stbox_expand_time( - box: Annotated[cdata, "const STBox *"], interv: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const STBox *"], interv: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.stbox_expand_time(box_converted, interv_converted) @@ -12285,7 +12450,7 @@ def stbox_expand_time( return result if result != _ffi.NULL else None -def stbox_get_space(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "STBox *"]: +def stbox_get_space(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_get_space(box_converted) _check_error() @@ -12293,8 +12458,8 @@ def stbox_get_space(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, def stbox_quad_split( - box: Annotated[cdata, "const STBox *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const STBox *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) count_converted = _ffi.cast("int *", count) result = _lib.stbox_quad_split(box_converted, count_converted) @@ -12302,7 +12467,7 @@ def stbox_quad_split( return result if result != _ffi.NULL else None -def stbox_round(box: Annotated[cdata, "const STBox *"], maxdd: int) -> Annotated[cdata, "STBox *"]: +def stbox_round(box: Annotated[_ffi.CData, "const STBox *"], maxdd: int) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_round(box_converted, maxdd) _check_error() @@ -12310,10 +12475,10 @@ def stbox_round(box: Annotated[cdata, "const STBox *"], maxdd: int) -> Annotated def stbox_shift_scale_time( - box: Annotated[cdata, "const STBox *"], - shift: Annotated[cdata, "const Interval *"] | None, - duration: Annotated[cdata, "const Interval *"] | None, -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const STBox *"], + shift: Annotated[_ffi.CData, "const Interval *"] | None, + duration: Annotated[_ffi.CData, "const Interval *"] | None, +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) shift_converted = _ffi.cast("const Interval *", shift) if shift is not None else _ffi.NULL duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL @@ -12322,7 +12487,9 @@ def stbox_shift_scale_time( return result if result != _ffi.NULL else None -def stboxarr_round(boxarr: Annotated[cdata, "const STBox *"], count: int, maxdd: int) -> Annotated[cdata, "STBox *"]: +def stboxarr_round( + boxarr: Annotated[_ffi.CData, "const STBox *"], count: int, maxdd: int +) -> Annotated[_ffi.CData, "STBox *"]: boxarr_converted = _ffi.cast("const STBox *", boxarr) result = _lib.stboxarr_round(boxarr_converted, count, maxdd) _check_error() @@ -12330,8 +12497,8 @@ def stboxarr_round(boxarr: Annotated[cdata, "const STBox *"], count: int, maxdd: def stbox_set_srid( - box: Annotated[cdata, "const STBox *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const STBox *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) srid_converted = _ffi.cast("int32_t", srid) result = _lib.stbox_set_srid(box_converted, srid_converted) @@ -12339,7 +12506,7 @@ def stbox_set_srid( return result if result != _ffi.NULL else None -def stbox_srid(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "int32_t"]: +def stbox_srid(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "int32_t"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_srid(box_converted) _check_error() @@ -12347,8 +12514,8 @@ def stbox_srid(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "int3 def stbox_transform( - box: Annotated[cdata, "const STBox *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const STBox *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) srid_converted = _ffi.cast("int32_t", srid) result = _lib.stbox_transform(box_converted, srid_converted) @@ -12357,8 +12524,11 @@ def stbox_transform( def stbox_transform_pipeline( - box: Annotated[cdata, "const STBox *"], pipelinestr: str, srid: Annotated[cdata, "int32_t"], is_forward: bool -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const STBox *"], + pipelinestr: str, + srid: Annotated[_ffi.CData, "int32_t"], + is_forward: bool, +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const STBox *", box) pipelinestr_converted = pipelinestr.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) @@ -12368,7 +12538,7 @@ def stbox_transform_pipeline( def adjacent_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12378,7 +12548,7 @@ def adjacent_stbox_stbox( def contained_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12388,7 +12558,7 @@ def contained_stbox_stbox( def contains_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12398,7 +12568,7 @@ def contains_stbox_stbox( def overlaps_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12408,7 +12578,7 @@ def overlaps_stbox_stbox( def same_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12418,7 +12588,7 @@ def same_stbox_stbox( def above_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12428,7 +12598,7 @@ def above_stbox_stbox( def after_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12438,7 +12608,7 @@ def after_stbox_stbox( def back_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12448,7 +12618,7 @@ def back_stbox_stbox( def before_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12458,7 +12628,7 @@ def before_stbox_stbox( def below_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12468,7 +12638,7 @@ def below_stbox_stbox( def front_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12478,7 +12648,7 @@ def front_stbox_stbox( def left_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12488,7 +12658,7 @@ def left_stbox_stbox( def overabove_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12498,7 +12668,7 @@ def overabove_stbox_stbox( def overafter_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12508,7 +12678,7 @@ def overafter_stbox_stbox( def overback_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12518,7 +12688,7 @@ def overback_stbox_stbox( def overbefore_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12528,7 +12698,7 @@ def overbefore_stbox_stbox( def overbelow_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12538,7 +12708,7 @@ def overbelow_stbox_stbox( def overfront_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12548,7 +12718,7 @@ def overfront_stbox_stbox( def overleft_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12558,7 +12728,7 @@ def overleft_stbox_stbox( def overright_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12568,7 +12738,7 @@ def overright_stbox_stbox( def right_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12578,8 +12748,8 @@ def right_stbox_stbox( def union_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"], strict: bool -) -> Annotated[cdata, "STBox *"]: + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"], strict: bool +) -> Annotated[_ffi.CData, "STBox *"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.union_stbox_stbox(box1_converted, box2_converted, strict) @@ -12588,8 +12758,8 @@ def union_stbox_stbox( def intersection_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] -) -> Annotated[cdata, "STBox *"]: + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] +) -> Annotated[_ffi.CData, "STBox *"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) result = _lib.intersection_stbox_stbox(box1_converted, box2_converted) @@ -12598,7 +12768,7 @@ def intersection_stbox_stbox( def stbox_cmp( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[int, "int"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12608,7 +12778,7 @@ def stbox_cmp( def stbox_eq( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12618,7 +12788,7 @@ def stbox_eq( def stbox_ge( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12628,7 +12798,7 @@ def stbox_ge( def stbox_gt( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12638,7 +12808,7 @@ def stbox_gt( def stbox_le( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12648,7 +12818,7 @@ def stbox_le( def stbox_lt( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12658,7 +12828,7 @@ def stbox_lt( def stbox_ne( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -12667,20 +12837,20 @@ def stbox_ne( return result if result != _ffi.NULL else None -def rtree_create_stbox() -> Annotated[cdata, "RTree *"]: +def rtree_create_stbox() -> Annotated[_ffi.CData, "RTree *"]: result = _lib.rtree_create_stbox() _check_error() return result if result != _ffi.NULL else None -def rtree_free(rtree: Annotated[cdata, "RTree *"]) -> Annotated[None, "void"]: +def rtree_free(rtree: Annotated[_ffi.CData, "RTree *"]) -> Annotated[None, "void"]: rtree_converted = _ffi.cast("RTree *", rtree) _lib.rtree_free(rtree_converted) _check_error() def rtree_insert( - rtree: Annotated[cdata, "RTree *"], box: Annotated[cdata, "STBox *"], id: int + rtree: Annotated[_ffi.CData, "RTree *"], box: Annotated[_ffi.CData, "STBox *"], id: int ) -> Annotated[None, "void"]: rtree_converted = _ffi.cast("RTree *", rtree) box_converted = _ffi.cast("STBox *", box) @@ -12690,8 +12860,10 @@ def rtree_insert( def rtree_search( - rtree: Annotated[cdata, "const RTree *"], query: Annotated[cdata, "const STBox *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "int *"]: + rtree: Annotated[_ffi.CData, "const RTree *"], + query: Annotated[_ffi.CData, "const STBox *"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "int *"]: rtree_converted = _ffi.cast("const RTree *", rtree) query_converted = _ffi.cast("const STBox *", query) count_converted = _ffi.cast("int *", count) @@ -12700,7 +12872,7 @@ def rtree_search( return result if result != _ffi.NULL else None -def tgeo_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: +def tgeo_out(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_out(temp_converted, maxdd) _check_error() @@ -12708,63 +12880,63 @@ def tgeo_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotate return result if result != _ffi.NULL else None -def tgeogpoint_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeogpoint_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeogpoint_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_from_mfjson(mfjson: str) -> Annotated[cdata, "Temporal *"]: +def tgeography_from_mfjson(mfjson: str) -> Annotated[_ffi.CData, "Temporal *"]: mfjson_converted = mfjson.encode("utf-8") result = _lib.tgeography_from_mfjson(mfjson_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeography_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeography_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeometry_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeometry_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeometry_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeometry_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_from_mfjson(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeompoint_from_mfjson(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeompoint_from_mfjson(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tgeompoint_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tgeompoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tspatial_as_ewkt(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: +def tspatial_as_ewkt(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_as_ewkt(temp_converted, maxdd) _check_error() @@ -12772,7 +12944,7 @@ def tspatial_as_ewkt(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> return result if result != _ffi.NULL else None -def tspatial_as_text(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: +def tspatial_as_text(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_as_text(temp_converted, maxdd) _check_error() @@ -12781,8 +12953,8 @@ def tspatial_as_text(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> def tgeo_from_base_temp( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_from_base_temp(gs_converted, temp_converted) @@ -12790,7 +12962,7 @@ def tgeo_from_base_temp( return result if result != _ffi.NULL else None -def tgeoinst_make(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annotated[cdata, "TInstant *"]: +def tgeoinst_make(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], t: int) -> Annotated[_ffi.CData, "TInstant *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tgeoinst_make(gs_converted, t_converted) @@ -12799,8 +12971,8 @@ def tgeoinst_make(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annota def tgeoseq_from_base_tstzset( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "TSequence *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.tgeoseq_from_base_tstzset(gs_converted, s_converted) @@ -12809,8 +12981,10 @@ def tgeoseq_from_base_tstzset( def tgeoseq_from_base_tstzspan( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Span *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + s: Annotated[_ffi.CData, "const Span *"], + interp: InterpolationType, +) -> Annotated[_ffi.CData, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) result = _lib.tgeoseq_from_base_tstzspan(gs_converted, s_converted, interp) @@ -12819,8 +12993,10 @@ def tgeoseq_from_base_tstzspan( def tgeoseqset_from_base_tstzspanset( - gs: Annotated[cdata, "const GSERIALIZED *"], ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + ss: Annotated[_ffi.CData, "const SpanSet *"], + interp: InterpolationType, +) -> Annotated[_ffi.CData, "TSequenceSet *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tgeoseqset_from_base_tstzspanset(gs_converted, ss_converted, interp) @@ -12829,8 +13005,8 @@ def tgeoseqset_from_base_tstzspanset( def tpoint_from_base_temp( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_from_base_temp(gs_converted, temp_converted) @@ -12838,7 +13014,7 @@ def tpoint_from_base_temp( return result if result != _ffi.NULL else None -def tpointinst_make(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Annotated[cdata, "TInstant *"]: +def tpointinst_make(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], t: int) -> Annotated[_ffi.CData, "TInstant *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tpointinst_make(gs_converted, t_converted) @@ -12847,8 +13023,8 @@ def tpointinst_make(gs: Annotated[cdata, "const GSERIALIZED *"], t: int) -> Anno def tpointseq_from_base_tstzset( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "TSequence *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Set *", s) result = _lib.tpointseq_from_base_tstzset(gs_converted, s_converted) @@ -12857,8 +13033,10 @@ def tpointseq_from_base_tstzset( def tpointseq_from_base_tstzspan( - gs: Annotated[cdata, "const GSERIALIZED *"], s: Annotated[cdata, "const Span *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + s: Annotated[_ffi.CData, "const Span *"], + interp: InterpolationType, +) -> Annotated[_ffi.CData, "TSequence *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) s_converted = _ffi.cast("const Span *", s) result = _lib.tpointseq_from_base_tstzspan(gs_converted, s_converted, interp) @@ -12867,9 +13045,9 @@ def tpointseq_from_base_tstzspan( def tpointseq_make_coords( - xcoords: Annotated[cdata, "const double *"], - ycoords: Annotated[cdata, "const double *"], - zcoords: Annotated[cdata, "const double *"], + xcoords: Annotated[_ffi.CData, "const double *"], + ycoords: Annotated[_ffi.CData, "const double *"], + zcoords: Annotated[_ffi.CData, "const double *"], times: int, count: int, srid: int, @@ -12878,7 +13056,7 @@ def tpointseq_make_coords( upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> Annotated[cdata, "TSequence *"]: +) -> Annotated[_ffi.CData, "TSequence *"]: xcoords_converted = _ffi.cast("const double *", xcoords) ycoords_converted = _ffi.cast("const double *", ycoords) zcoords_converted = _ffi.cast("const double *", zcoords) @@ -12902,8 +13080,10 @@ def tpointseq_make_coords( def tpointseqset_from_base_tstzspanset( - gs: Annotated[cdata, "const GSERIALIZED *"], ss: Annotated[cdata, "const SpanSet *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + ss: Annotated[_ffi.CData, "const SpanSet *"], + interp: InterpolationType, +) -> Annotated[_ffi.CData, "TSequenceSet *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tpointseqset_from_base_tstzspanset(gs_converted, ss_converted, interp) @@ -12911,63 +13091,63 @@ def tpointseqset_from_base_tstzspanset( return result if result != _ffi.NULL else None -def box3d_to_stbox(box: Annotated[cdata, "const BOX3D *"]) -> Annotated[cdata, "STBox *"]: +def box3d_to_stbox(box: Annotated[_ffi.CData, "const BOX3D *"]) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const BOX3D *", box) result = _lib.box3d_to_stbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def gbox_to_stbox(box: Annotated[cdata, "const GBOX *"]) -> Annotated[cdata, "STBox *"]: +def gbox_to_stbox(box: Annotated[_ffi.CData, "const GBOX *"]) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const GBOX *", box) result = _lib.gbox_to_stbox(box_converted) _check_error() return result if result != _ffi.NULL else None -def geomeas_to_tpoint(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Temporal *"]: +def geomeas_to_tpoint(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geomeas_to_tpoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpoint_to_tgeography(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeogpoint_to_tgeography(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeogpoint_to_tgeography(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_to_tgeogpoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeography_to_tgeogpoint(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeography_to_tgeogpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeography_to_tgeometry(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeography_to_tgeometry(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeography_to_tgeometry(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_to_tgeography(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeometry_to_tgeography(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeometry_to_tgeography(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometry_to_tgeompoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeometry_to_tgeompoint(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeometry_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompoint_to_tgeometry(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeompoint_to_tgeometry(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeompoint_to_tgeometry(temp_converted) _check_error() @@ -12975,14 +13155,14 @@ def tgeompoint_to_tgeometry(temp: Annotated[cdata, "const Temporal *"]) -> Annot def tpoint_as_mvtgeom( - temp: Annotated[cdata, "const Temporal *"], - bounds: Annotated[cdata, "const STBox *"], - extent: Annotated[cdata, "int32_t"], - buffer: Annotated[cdata, "int32_t"], + temp: Annotated[_ffi.CData, "const Temporal *"], + bounds: Annotated[_ffi.CData, "const STBox *"], + extent: Annotated[_ffi.CData, "int32_t"], + buffer: Annotated[_ffi.CData, "int32_t"], clip_geom: bool, gsarr: Annotated[list, "GSERIALIZED **"], timesarr: Annotated[list, "int64 **"], - count: Annotated[cdata, "int *"], + count: Annotated[_ffi.CData, "int *"], ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) bounds_converted = _ffi.cast("const STBox *", bounds) @@ -13006,7 +13186,9 @@ def tpoint_as_mvtgeom( def tpoint_tfloat_to_geomeas( - tpoint: Annotated[cdata, "const Temporal *"], measure: Annotated[cdata, "const Temporal *"], segmentize: bool + tpoint: Annotated[_ffi.CData, "const Temporal *"], + measure: Annotated[_ffi.CData, "const Temporal *"], + segmentize: bool, ) -> Annotated[list, "GSERIALIZED **"]: tpoint_converted = _ffi.cast("const Temporal *", tpoint) measure_converted = _ffi.cast("const Temporal *", measure) @@ -13018,7 +13200,7 @@ def tpoint_tfloat_to_geomeas( return None -def tspatial_to_stbox(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "STBox *"]: +def tspatial_to_stbox(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_to_stbox(temp_converted) _check_error() @@ -13026,8 +13208,8 @@ def tspatial_to_stbox(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[c def bearing_point_point( - gs1: Annotated[cdata, "const GSERIALIZED *"], gs2: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "double"]: + gs1: Annotated[_ffi.CData, "const GSERIALIZED *"], gs2: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "double"]: gs1_converted = _ffi.cast("const GSERIALIZED *", gs1) gs2_converted = _ffi.cast("const GSERIALIZED *", gs2) out_result = _ffi.new("double *") @@ -13039,8 +13221,8 @@ def bearing_point_point( def bearing_tpoint_point( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], invert: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"], invert: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.bearing_tpoint_point(temp_converted, gs_converted, invert) @@ -13049,8 +13231,8 @@ def bearing_tpoint_point( def bearing_tpoint_tpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.bearing_tpoint_tpoint(temp1_converted, temp2_converted) @@ -13058,28 +13240,28 @@ def bearing_tpoint_tpoint( return result if result != _ffi.NULL else None -def tgeo_centroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeo_centroid(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_centroid(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_convex_hull(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tgeo_convex_hull(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_convex_hull(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tgeo_end_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tgeo_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tgeo_start_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_start_value(temp_converted) _check_error() @@ -13087,8 +13269,8 @@ def tgeo_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cd def tgeo_traversed_area( - temp: Annotated[cdata, "const Temporal *"], unary_union: bool -) -> Annotated[cdata, "GSERIALIZED *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], unary_union: bool +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_traversed_area(temp_converted, unary_union) _check_error() @@ -13096,7 +13278,7 @@ def tgeo_traversed_area( def tgeo_value_at_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, strict: bool ) -> Annotated[list, "GSERIALIZED **"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) @@ -13108,7 +13290,7 @@ def tgeo_value_at_timestamptz( return None -def tgeo_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[list, "GSERIALIZED **"]: +def tgeo_value_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[list, "GSERIALIZED **"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("GSERIALIZED **") result = _lib.tgeo_value_n(temp_converted, n, out_result) @@ -13119,8 +13301,8 @@ def tgeo_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotate def tgeo_values( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "GSERIALIZED **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "GSERIALIZED **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tgeo_values(temp_converted, count_converted) @@ -13128,28 +13310,28 @@ def tgeo_values( return result if result != _ffi.NULL else None -def tpoint_angular_difference(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_angular_difference(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_angular_difference(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_azimuth(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_azimuth(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_azimuth(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_cumulative_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_cumulative_length(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_direction(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "double"]: +def tpoint_direction(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("double *") result = _lib.tpoint_direction(temp_converted, out_result) @@ -13159,42 +13341,42 @@ def tpoint_direction(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cd return None -def tpoint_get_x(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_get_x(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_x(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_get_y(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_get_y(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_y(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_get_z(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_get_z(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_z(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_is_simple(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[bool, "bool"]: +def tpoint_is_simple(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_is_simple(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tpoint_length(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tpoint_speed(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_speed(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_speed(temp_converted) _check_error() @@ -13202,15 +13384,15 @@ def tpoint_speed(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, def tpoint_trajectory( - temp: Annotated[cdata, "const Temporal *"], unary_union: bool -) -> Annotated[cdata, "GSERIALIZED *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], unary_union: bool +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_trajectory(temp_converted, unary_union) _check_error() return result if result != _ffi.NULL else None -def tpoint_twcentroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tpoint_twcentroid(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_twcentroid(temp_converted) _check_error() @@ -13218,8 +13400,8 @@ def tpoint_twcentroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[c def tgeo_affine( - temp: Annotated[cdata, "const Temporal *"], a: Annotated[cdata, "const AFFINE *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], a: Annotated[_ffi.CData, "const AFFINE *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) a_converted = _ffi.cast("const AFFINE *", a) result = _lib.tgeo_affine(temp_converted, a_converted) @@ -13228,10 +13410,10 @@ def tgeo_affine( def tgeo_scale( - temp: Annotated[cdata, "const Temporal *"], - scale: Annotated[cdata, "const GSERIALIZED *"], - sorigin: Annotated[cdata, "const GSERIALIZED *"], -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + scale: Annotated[_ffi.CData, "const GSERIALIZED *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) scale_converted = _ffi.cast("const GSERIALIZED *", scale) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) @@ -13241,8 +13423,8 @@ def tgeo_scale( def tpoint_make_simple( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Temporal **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Temporal **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tpoint_make_simple(temp_converted, count_converted) @@ -13250,7 +13432,7 @@ def tpoint_make_simple( return result if result != _ffi.NULL else None -def tspatial_srid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "int32_t"]: +def tspatial_srid(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "int32_t"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_srid(temp_converted) _check_error() @@ -13258,8 +13440,8 @@ def tspatial_srid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata def tspatial_set_srid( - temp: Annotated[cdata, "const Temporal *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) srid_converted = _ffi.cast("int32_t", srid) result = _lib.tspatial_set_srid(temp_converted, srid_converted) @@ -13268,8 +13450,8 @@ def tspatial_set_srid( def tspatial_transform( - temp: Annotated[cdata, "const Temporal *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) srid_converted = _ffi.cast("int32_t", srid) result = _lib.tspatial_transform(temp_converted, srid_converted) @@ -13278,8 +13460,11 @@ def tspatial_transform( def tspatial_transform_pipeline( - temp: Annotated[cdata, "const Temporal *"], pipelinestr: str, srid: Annotated[cdata, "int32_t"], is_forward: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + pipelinestr: str, + srid: Annotated[_ffi.CData, "int32_t"], + is_forward: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) pipelinestr_converted = pipelinestr.encode("utf-8") srid_converted = _ffi.cast("int32_t", srid) @@ -13289,8 +13474,8 @@ def tspatial_transform_pipeline( def tgeo_at_geom( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tgeo_at_geom(temp_converted, gs_converted) @@ -13299,8 +13484,8 @@ def tgeo_at_geom( def tgeo_at_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"], border_inc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_at_stbox(temp_converted, box_converted, border_inc) @@ -13309,8 +13494,8 @@ def tgeo_at_stbox( def tgeo_at_value( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tgeo_at_value(temp_converted, gs_converted) @@ -13319,8 +13504,8 @@ def tgeo_at_value( def tgeo_minus_geom( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tgeo_minus_geom(temp_converted, gs_converted) @@ -13329,8 +13514,8 @@ def tgeo_minus_geom( def tgeo_minus_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"], border_inc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_minus_stbox(temp_converted, box_converted, border_inc) @@ -13339,8 +13524,8 @@ def tgeo_minus_stbox( def tgeo_minus_value( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tgeo_minus_value(temp_converted, gs_converted) @@ -13349,10 +13534,10 @@ def tgeo_minus_value( def tpoint_at_geom( - temp: Annotated[cdata, "const Temporal *"], - gs: Annotated[cdata, "const GSERIALIZED *"], - zspan: Annotated[cdata, "const Span *"], -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + zspan: Annotated[_ffi.CData, "const Span *"], +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -13362,8 +13547,8 @@ def tpoint_at_geom( def tpoint_at_value( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tpoint_at_value(temp_converted, gs_converted) @@ -13372,10 +13557,10 @@ def tpoint_at_value( def tpoint_minus_geom( - temp: Annotated[cdata, "const Temporal *"], - gs: Annotated[cdata, "const GSERIALIZED *"], - zspan: Annotated[cdata, "const Span *"], -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + zspan: Annotated[_ffi.CData, "const Span *"], +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -13385,8 +13570,8 @@ def tpoint_minus_geom( def tpoint_minus_value( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("GSERIALIZED *", gs) result = _lib.tpoint_minus_value(temp_converted, gs_converted) @@ -13395,7 +13580,7 @@ def tpoint_minus_value( def always_eq_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13405,7 +13590,7 @@ def always_eq_geo_tgeo( def always_eq_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -13415,7 +13600,7 @@ def always_eq_tgeo_geo( def always_eq_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13425,7 +13610,7 @@ def always_eq_tgeo_tgeo( def always_ne_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13435,7 +13620,7 @@ def always_ne_geo_tgeo( def always_ne_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -13445,7 +13630,7 @@ def always_ne_tgeo_geo( def always_ne_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13455,7 +13640,7 @@ def always_ne_tgeo_tgeo( def ever_eq_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13465,7 +13650,7 @@ def ever_eq_geo_tgeo( def ever_eq_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -13475,7 +13660,7 @@ def ever_eq_tgeo_geo( def ever_eq_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13485,7 +13670,7 @@ def ever_eq_tgeo_tgeo( def ever_ne_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13495,7 +13680,7 @@ def ever_ne_geo_tgeo( def ever_ne_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -13505,7 +13690,7 @@ def ever_ne_tgeo_geo( def ever_ne_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13515,8 +13700,8 @@ def ever_ne_tgeo_tgeo( def teq_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.teq_geo_tgeo(gs_converted, temp_converted) @@ -13525,8 +13710,8 @@ def teq_geo_tgeo( def teq_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.teq_tgeo_geo(temp_converted, gs_converted) @@ -13535,8 +13720,8 @@ def teq_tgeo_geo( def tne_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tne_geo_tgeo(gs_converted, temp_converted) @@ -13545,8 +13730,8 @@ def tne_geo_tgeo( def tne_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tne_tgeo_geo(temp_converted, gs_converted) @@ -13555,8 +13740,8 @@ def tne_tgeo_geo( def tgeo_stboxes( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tgeo_stboxes(temp_converted, count_converted) @@ -13565,15 +13750,15 @@ def tgeo_stboxes( def tgeo_space_boxes( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], xsize: float, ysize: float, zsize: float, - sorigin: Annotated[cdata, "const GSERIALIZED *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], bitmatrix: bool, border_inc: bool, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "STBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) count_converted = _ffi.cast("int *", count) @@ -13585,17 +13770,17 @@ def tgeo_space_boxes( def tgeo_space_time_boxes( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], xsize: float, ysize: float, zsize: float, - duration: Annotated[cdata, "const Interval *"], - sorigin: Annotated[cdata, "const GSERIALIZED *"], + duration: Annotated[_ffi.CData, "const Interval *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], torigin: int, bitmatrix: bool, border_inc: bool, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "STBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) @@ -13618,8 +13803,8 @@ def tgeo_space_time_boxes( def tgeo_split_each_n_stboxes( - temp: Annotated[cdata, "const Temporal *"], elem_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], elem_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tgeo_split_each_n_stboxes(temp_converted, elem_count, count_converted) @@ -13628,8 +13813,8 @@ def tgeo_split_each_n_stboxes( def tgeo_split_n_stboxes( - temp: Annotated[cdata, "const Temporal *"], box_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tgeo_split_n_stboxes(temp_converted, box_count, count_converted) @@ -13638,7 +13823,7 @@ def tgeo_split_n_stboxes( def adjacent_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13648,7 +13833,7 @@ def adjacent_stbox_tspatial( def adjacent_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13658,7 +13843,7 @@ def adjacent_tspatial_stbox( def adjacent_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13668,7 +13853,7 @@ def adjacent_tspatial_tspatial( def contained_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13678,7 +13863,7 @@ def contained_stbox_tspatial( def contained_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13688,7 +13873,7 @@ def contained_tspatial_stbox( def contained_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13698,7 +13883,7 @@ def contained_tspatial_tspatial( def contains_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13708,7 +13893,7 @@ def contains_stbox_tspatial( def contains_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13718,7 +13903,7 @@ def contains_tspatial_stbox( def contains_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13728,7 +13913,7 @@ def contains_tspatial_tspatial( def overlaps_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13738,7 +13923,7 @@ def overlaps_stbox_tspatial( def overlaps_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13748,7 +13933,7 @@ def overlaps_tspatial_stbox( def overlaps_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13758,7 +13943,7 @@ def overlaps_tspatial_tspatial( def same_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13768,7 +13953,7 @@ def same_stbox_tspatial( def same_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13778,7 +13963,7 @@ def same_tspatial_stbox( def same_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13788,7 +13973,7 @@ def same_tspatial_tspatial( def above_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13798,7 +13983,7 @@ def above_stbox_tspatial( def above_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13808,7 +13993,7 @@ def above_tspatial_stbox( def above_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13818,7 +14003,7 @@ def above_tspatial_tspatial( def after_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13828,7 +14013,7 @@ def after_stbox_tspatial( def after_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13838,7 +14023,7 @@ def after_tspatial_stbox( def after_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13848,7 +14033,7 @@ def after_tspatial_tspatial( def back_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13858,7 +14043,7 @@ def back_stbox_tspatial( def back_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13868,7 +14053,7 @@ def back_tspatial_stbox( def back_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13878,7 +14063,7 @@ def back_tspatial_tspatial( def before_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13888,7 +14073,7 @@ def before_stbox_tspatial( def before_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13898,7 +14083,7 @@ def before_tspatial_stbox( def before_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13908,7 +14093,7 @@ def before_tspatial_tspatial( def below_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13918,7 +14103,7 @@ def below_stbox_tspatial( def below_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13928,7 +14113,7 @@ def below_tspatial_stbox( def below_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13938,7 +14123,7 @@ def below_tspatial_tspatial( def front_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13948,7 +14133,7 @@ def front_stbox_tspatial( def front_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13958,7 +14143,7 @@ def front_tspatial_stbox( def front_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13968,7 +14153,7 @@ def front_tspatial_tspatial( def left_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -13978,7 +14163,7 @@ def left_stbox_tspatial( def left_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -13988,7 +14173,7 @@ def left_tspatial_stbox( def left_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -13998,7 +14183,7 @@ def left_tspatial_tspatial( def overabove_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14008,7 +14193,7 @@ def overabove_stbox_tspatial( def overabove_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14018,7 +14203,7 @@ def overabove_tspatial_stbox( def overabove_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14028,7 +14213,7 @@ def overabove_tspatial_tspatial( def overafter_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14038,7 +14223,7 @@ def overafter_stbox_tspatial( def overafter_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14048,7 +14233,7 @@ def overafter_tspatial_stbox( def overafter_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14058,7 +14243,7 @@ def overafter_tspatial_tspatial( def overback_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14068,7 +14253,7 @@ def overback_stbox_tspatial( def overback_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14078,7 +14263,7 @@ def overback_tspatial_stbox( def overback_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14088,7 +14273,7 @@ def overback_tspatial_tspatial( def overbefore_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14098,7 +14283,7 @@ def overbefore_stbox_tspatial( def overbefore_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14108,7 +14293,7 @@ def overbefore_tspatial_stbox( def overbefore_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14118,7 +14303,7 @@ def overbefore_tspatial_tspatial( def overbelow_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14128,7 +14313,7 @@ def overbelow_stbox_tspatial( def overbelow_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14138,7 +14323,7 @@ def overbelow_tspatial_stbox( def overbelow_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14148,7 +14333,7 @@ def overbelow_tspatial_tspatial( def overfront_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14158,7 +14343,7 @@ def overfront_stbox_tspatial( def overfront_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14168,7 +14353,7 @@ def overfront_tspatial_stbox( def overfront_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14178,7 +14363,7 @@ def overfront_tspatial_tspatial( def overleft_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14188,7 +14373,7 @@ def overleft_stbox_tspatial( def overleft_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14198,7 +14383,7 @@ def overleft_tspatial_stbox( def overleft_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14208,7 +14393,7 @@ def overleft_tspatial_tspatial( def overright_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14218,7 +14403,7 @@ def overright_stbox_tspatial( def overright_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14228,7 +14413,7 @@ def overright_tspatial_stbox( def overright_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14238,7 +14423,7 @@ def overright_tspatial_tspatial( def right_stbox_tspatial( - box: Annotated[cdata, "const STBox *"], temp: Annotated[cdata, "const Temporal *"] + box: Annotated[_ffi.CData, "const STBox *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: box_converted = _ffi.cast("const STBox *", box) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14248,7 +14433,7 @@ def right_stbox_tspatial( def right_tspatial_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14258,7 +14443,7 @@ def right_tspatial_stbox( def right_tspatial_tspatial( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[bool, "bool"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14268,7 +14453,7 @@ def right_tspatial_tspatial( def acontains_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14278,7 +14463,7 @@ def acontains_geo_tgeo( def acontains_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14288,7 +14473,7 @@ def acontains_tgeo_geo( def acontains_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14298,7 +14483,7 @@ def acontains_tgeo_tgeo( def adisjoint_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14308,7 +14493,7 @@ def adisjoint_tgeo_geo( def adisjoint_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14318,7 +14503,7 @@ def adisjoint_tgeo_tgeo( def adwithin_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], dist: float + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"], dist: float ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14328,7 +14513,7 @@ def adwithin_tgeo_geo( def adwithin_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], dist: float + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"], dist: float ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14338,7 +14523,7 @@ def adwithin_tgeo_tgeo( def aintersects_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14348,7 +14533,7 @@ def aintersects_tgeo_geo( def aintersects_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14358,7 +14543,7 @@ def aintersects_tgeo_tgeo( def atouches_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14368,7 +14553,7 @@ def atouches_tgeo_geo( def atouches_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14378,7 +14563,7 @@ def atouches_tgeo_tgeo( def atouches_tpoint_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14388,7 +14573,7 @@ def atouches_tpoint_geo( def econtains_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14398,7 +14583,7 @@ def econtains_geo_tgeo( def econtains_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14408,7 +14593,7 @@ def econtains_tgeo_geo( def econtains_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14418,7 +14603,7 @@ def econtains_tgeo_tgeo( def ecovers_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) @@ -14428,7 +14613,7 @@ def ecovers_geo_tgeo( def ecovers_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14438,7 +14623,7 @@ def ecovers_tgeo_geo( def ecovers_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14448,7 +14633,7 @@ def ecovers_tgeo_tgeo( def edisjoint_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14458,7 +14643,7 @@ def edisjoint_tgeo_geo( def edisjoint_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14468,7 +14653,7 @@ def edisjoint_tgeo_tgeo( def edwithin_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], dist: float + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"], dist: float ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14478,7 +14663,7 @@ def edwithin_tgeo_geo( def edwithin_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], dist: float + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"], dist: float ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14488,7 +14673,7 @@ def edwithin_tgeo_tgeo( def eintersects_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14498,7 +14683,7 @@ def eintersects_tgeo_geo( def eintersects_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14508,7 +14693,7 @@ def eintersects_tgeo_tgeo( def etouches_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14518,7 +14703,7 @@ def etouches_tgeo_geo( def etouches_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14528,7 +14713,7 @@ def etouches_tgeo_tgeo( def etouches_tpoint_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14538,8 +14723,11 @@ def etouches_tpoint_geo( def tcontains_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tcontains_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14548,8 +14736,11 @@ def tcontains_geo_tgeo( def tcontains_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tcontains_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14558,8 +14749,11 @@ def tcontains_tgeo_geo( def tcontains_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tcontains_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14568,8 +14762,11 @@ def tcontains_tgeo_tgeo( def tcovers_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tcovers_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14578,8 +14775,11 @@ def tcovers_geo_tgeo( def tcovers_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tcovers_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14588,8 +14788,11 @@ def tcovers_tgeo_geo( def tcovers_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tcovers_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14598,8 +14801,11 @@ def tcovers_tgeo_tgeo( def tdisjoint_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdisjoint_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14608,8 +14814,11 @@ def tdisjoint_geo_tgeo( def tdisjoint_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdisjoint_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14618,8 +14827,11 @@ def tdisjoint_tgeo_geo( def tdisjoint_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdisjoint_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14628,12 +14840,12 @@ def tdisjoint_tgeo_tgeo( def tdwithin_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], - temp: Annotated[cdata, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], dist: float, restr: bool, atvalue: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tdwithin_geo_tgeo(gs_converted, temp_converted, dist, restr, atvalue) @@ -14642,12 +14854,12 @@ def tdwithin_geo_tgeo( def tdwithin_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], - gs: Annotated[cdata, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], dist: float, restr: bool, atvalue: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdwithin_tgeo_geo(temp_converted, gs_converted, dist, restr, atvalue) @@ -14656,12 +14868,12 @@ def tdwithin_tgeo_geo( def tdwithin_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], - temp2: Annotated[cdata, "const Temporal *"], + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], dist: float, restr: bool, atvalue: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdwithin_tgeo_tgeo(temp1_converted, temp2_converted, dist, restr, atvalue) @@ -14670,8 +14882,11 @@ def tdwithin_tgeo_tgeo( def tintersects_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tintersects_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14680,8 +14895,11 @@ def tintersects_geo_tgeo( def tintersects_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tintersects_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14690,8 +14908,11 @@ def tintersects_tgeo_geo( def tintersects_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tintersects_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14700,8 +14921,11 @@ def tintersects_tgeo_tgeo( def ttouches_geo_tgeo( - gs: Annotated[cdata, "const GSERIALIZED *"], temp: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.ttouches_geo_tgeo(gs_converted, temp_converted, restr, atvalue) @@ -14710,8 +14934,11 @@ def ttouches_geo_tgeo( def ttouches_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.ttouches_tgeo_geo(temp_converted, gs_converted, restr, atvalue) @@ -14720,8 +14947,11 @@ def ttouches_tgeo_geo( def ttouches_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"], restr: bool, atvalue: bool -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], + temp2: Annotated[_ffi.CData, "const Temporal *"], + restr: bool, + atvalue: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.ttouches_tgeo_tgeo(temp1_converted, temp2_converted, restr, atvalue) @@ -14730,8 +14960,8 @@ def ttouches_tgeo_tgeo( def tdistance_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdistance_tgeo_geo(temp_converted, gs_converted) @@ -14740,8 +14970,8 @@ def tdistance_tgeo_geo( def tdistance_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14750,7 +14980,7 @@ def tdistance_tgeo_tgeo( def nad_stbox_geo( - box: Annotated[cdata, "const STBox *"], gs: Annotated[cdata, "const GSERIALIZED *"] + box: Annotated[_ffi.CData, "const STBox *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: box_converted = _ffi.cast("const STBox *", box) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14760,7 +14990,7 @@ def nad_stbox_geo( def nad_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[float, "double"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) @@ -14770,7 +15000,7 @@ def nad_stbox_stbox( def nad_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -14780,7 +15010,7 @@ def nad_tgeo_geo( def nad_tgeo_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -14790,7 +15020,7 @@ def nad_tgeo_stbox( def nad_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -14800,8 +15030,8 @@ def nad_tgeo_tgeo( def nai_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "TInstant *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nai_tgeo_geo(temp_converted, gs_converted) @@ -14810,8 +15040,8 @@ def nai_tgeo_geo( def nai_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "TInstant *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "TInstant *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nai_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14820,8 +15050,8 @@ def nai_tgeo_tgeo( def shortestline_tgeo_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.shortestline_tgeo_geo(temp_converted, gs_converted) @@ -14830,8 +15060,8 @@ def shortestline_tgeo_geo( def shortestline_tgeo_tgeo( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.shortestline_tgeo_tgeo(temp1_converted, temp2_converted) @@ -14839,7 +15069,7 @@ def shortestline_tgeo_tgeo( return result if result != _ffi.NULL else None -def tpoint_tcentroid_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated[cdata, "Temporal *"]: +def tpoint_tcentroid_finalfn(state: Annotated[_ffi.CData, "SkipList *"]) -> Annotated[_ffi.CData, "Temporal *"]: state_converted = _ffi.cast("SkipList *", state) result = _lib.tpoint_tcentroid_finalfn(state_converted) _check_error() @@ -14847,8 +15077,8 @@ def tpoint_tcentroid_finalfn(state: Annotated[cdata, "SkipList *"]) -> Annotated def tpoint_tcentroid_transfn( - state: Annotated[cdata, "SkipList *"], temp: Annotated[cdata, "Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], temp: Annotated[_ffi.CData, "Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("Temporal *", temp) result = _lib.tpoint_tcentroid_transfn(state_converted, temp_converted) @@ -14857,8 +15087,8 @@ def tpoint_tcentroid_transfn( def tspatial_extent_transfn( - box: Annotated[cdata, "STBox *"] | None, temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "STBox *"] | None, temp: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("STBox *", box) if box is not None else _ffi.NULL temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tspatial_extent_transfn(box_converted, temp_converted) @@ -14867,12 +15097,12 @@ def tspatial_extent_transfn( def stbox_get_space_tile( - point: Annotated[cdata, "const GSERIALIZED *"], + point: Annotated[_ffi.CData, "const GSERIALIZED *"], xsize: float, ysize: float, zsize: float, - sorigin: Annotated[cdata, "const GSERIALIZED *"], -) -> Annotated[cdata, "STBox *"]: + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], +) -> Annotated[_ffi.CData, "STBox *"]: point_converted = _ffi.cast("const GSERIALIZED *", point) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) result = _lib.stbox_get_space_tile(point_converted, xsize, ysize, zsize, sorigin_converted) @@ -14881,15 +15111,15 @@ def stbox_get_space_tile( def stbox_get_space_time_tile( - point: Annotated[cdata, "const GSERIALIZED *"], + point: Annotated[_ffi.CData, "const GSERIALIZED *"], t: int, xsize: float, ysize: float, zsize: float, - duration: Annotated[cdata, "const Interval *"], - sorigin: Annotated[cdata, "const GSERIALIZED *"], + duration: Annotated[_ffi.CData, "const Interval *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], torigin: int, -) -> Annotated[cdata, "STBox *"]: +) -> Annotated[_ffi.CData, "STBox *"]: point_converted = _ffi.cast("const GSERIALIZED *", point) t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) @@ -14903,8 +15133,8 @@ def stbox_get_space_time_tile( def stbox_get_time_tile( - t: int, duration: Annotated[cdata, "const Interval *"], torigin: int -) -> Annotated[cdata, "STBox *"]: + t: int, duration: Annotated[_ffi.CData, "const Interval *"], torigin: int +) -> Annotated[_ffi.CData, "STBox *"]: t_converted = _ffi.cast("TimestampTz", t) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -14914,14 +15144,14 @@ def stbox_get_time_tile( def stbox_space_tiles( - bounds: Annotated[cdata, "const STBox *"], + bounds: Annotated[_ffi.CData, "const STBox *"], xsize: float, ysize: float, zsize: float, - sorigin: Annotated[cdata, "const GSERIALIZED *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], border_inc: bool, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "STBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "STBox *"]: bounds_converted = _ffi.cast("const STBox *", bounds) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) count_converted = _ffi.cast("int *", count) @@ -14933,15 +15163,15 @@ def stbox_space_tiles( def stbox_space_time_tiles( - bounds: Annotated[cdata, "const STBox *"], + bounds: Annotated[_ffi.CData, "const STBox *"], xsize: float, ysize: float, zsize: float, - duration: Annotated[cdata, "const Interval *"] | None, - sorigin: Annotated[cdata, "const GSERIALIZED *"], + duration: Annotated[_ffi.CData, "const Interval *"] | None, + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], torigin: int, border_inc: bool, -) -> tuple[Annotated[cdata, "STBox *"], Annotated[cdata, "int"]]: +) -> tuple[Annotated[_ffi.CData, "STBox *"], Annotated[_ffi.CData, "int"]]: bounds_converted = _ffi.cast("const STBox *", bounds) duration_converted = _ffi.cast("const Interval *", duration) if duration is not None else _ffi.NULL sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) @@ -14963,12 +15193,12 @@ def stbox_space_time_tiles( def stbox_time_tiles( - bounds: Annotated[cdata, "const STBox *"], - duration: Annotated[cdata, "const Interval *"], + bounds: Annotated[_ffi.CData, "const STBox *"], + duration: Annotated[_ffi.CData, "const Interval *"], torigin: int, border_inc: bool, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "STBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "STBox *"]: bounds_converted = _ffi.cast("const STBox *", bounds) duration_converted = _ffi.cast("const Interval *", duration) torigin_converted = _ffi.cast("TimestampTz", torigin) @@ -14979,14 +15209,14 @@ def stbox_time_tiles( def tgeo_space_split( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], xsize: float, ysize: float, zsize: float, - sorigin: Annotated[cdata, "const GSERIALIZED *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], bitmatrix: bool, border_inc: bool, -) -> tuple[Annotated[cdata, "Temporal **"], Annotated[list, "GSERIALIZED ***"], Annotated[cdata, "int"]]: +) -> tuple[Annotated[_ffi.CData, "Temporal **"], Annotated[list, "GSERIALIZED ***"], Annotated[_ffi.CData, "int"]]: temp_converted = _ffi.cast("const Temporal *", temp) sorigin_converted = _ffi.cast("const GSERIALIZED *", sorigin) space_bins = _ffi.new("GSERIALIZED ***") @@ -14999,20 +15229,20 @@ def tgeo_space_split( def tgeo_space_time_split( - temp: Annotated[cdata, "const Temporal *"], + temp: Annotated[_ffi.CData, "const Temporal *"], xsize: float, ysize: float, zsize: float, - duration: Annotated[cdata, "const Interval *"], - sorigin: Annotated[cdata, "const GSERIALIZED *"], + duration: Annotated[_ffi.CData, "const Interval *"], + sorigin: Annotated[_ffi.CData, "const GSERIALIZED *"], torigin: int, bitmatrix: bool, border_inc: bool, ) -> tuple[ - Annotated[cdata, "Temporal **"], + Annotated[_ffi.CData, "Temporal **"], Annotated[list, "GSERIALIZED ***"], Annotated[list, "TimestampTz *"], - Annotated[cdata, "int"], + Annotated[_ffi.CData, "int"], ]: temp_converted = _ffi.cast("const Temporal *", temp) duration_converted = _ffi.cast("const Interval *", duration) @@ -15041,9 +15271,9 @@ def tgeo_space_time_split( def geo_cluster_kmeans( geoms: Annotated[list, "const GSERIALIZED **"], - ngeoms: Annotated[cdata, "uint32_t"], - k: Annotated[cdata, "uint32_t"], -) -> Annotated[cdata, "int *"]: + ngeoms: Annotated[_ffi.CData, "uint32_t"], + k: Annotated[_ffi.CData, "uint32_t"], +) -> Annotated[_ffi.CData, "int *"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) k_converted = _ffi.cast("uint32_t", k) @@ -15054,10 +15284,10 @@ def geo_cluster_kmeans( def geo_cluster_dbscan( geoms: Annotated[list, "const GSERIALIZED **"], - ngeoms: Annotated[cdata, "uint32_t"], + ngeoms: Annotated[_ffi.CData, "uint32_t"], tolerance: float, minpoints: int, -) -> Annotated[cdata, "uint32_t *"]: +) -> Annotated[_ffi.CData, "uint32_t *"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) result = _lib.geo_cluster_dbscan(geoms_converted, ngeoms_converted, tolerance, minpoints) @@ -15067,9 +15297,9 @@ def geo_cluster_dbscan( def geo_cluster_intersecting( geoms: Annotated[list, "const GSERIALIZED **"], - ngeoms: Annotated[cdata, "uint32_t"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "GSERIALIZED **"]: + ngeoms: Annotated[_ffi.CData, "uint32_t"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "GSERIALIZED **"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) count_converted = _ffi.cast("int *", count) @@ -15080,10 +15310,10 @@ def geo_cluster_intersecting( def geo_cluster_within( geoms: Annotated[list, "const GSERIALIZED **"], - ngeoms: Annotated[cdata, "uint32_t"], + ngeoms: Annotated[_ffi.CData, "uint32_t"], tolerance: float, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "GSERIALIZED **"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "GSERIALIZED **"]: geoms_converted = [_ffi.cast("const GSERIALIZED *", x) for x in geoms] ngeoms_converted = _ffi.cast("uint32_t", ngeoms) count_converted = _ffi.cast("int *", count) @@ -15092,26 +15322,28 @@ def geo_cluster_within( return result if result != _ffi.NULL else None -def gsl_get_generation_rng() -> Annotated[cdata, "gsl_rng *"]: +def gsl_get_generation_rng() -> Annotated[_ffi.CData, "gsl_rng *"]: result = _lib.gsl_get_generation_rng() _check_error() return result if result != _ffi.NULL else None -def gsl_get_aggregation_rng() -> Annotated[cdata, "gsl_rng *"]: +def gsl_get_aggregation_rng() -> Annotated[_ffi.CData, "gsl_rng *"]: result = _lib.gsl_get_aggregation_rng() _check_error() return result if result != _ffi.NULL else None -def datum_ceil(d: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: +def datum_ceil(d: Annotated[_ffi.CData, "Datum"]) -> Annotated[_ffi.CData, "Datum"]: d_converted = _ffi.cast("Datum", d) result = _lib.datum_ceil(d_converted) _check_error() return result if result != _ffi.NULL else None -def datum_degrees(d: Annotated[cdata, "Datum"], normalize: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: +def datum_degrees( + d: Annotated[_ffi.CData, "Datum"], normalize: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Datum"]: d_converted = _ffi.cast("Datum", d) normalize_converted = _ffi.cast("Datum", normalize) result = _lib.datum_degrees(d_converted, normalize_converted) @@ -15119,7 +15351,9 @@ def datum_degrees(d: Annotated[cdata, "Datum"], normalize: Annotated[cdata, "Dat return result if result != _ffi.NULL else None -def datum_float_round(value: Annotated[cdata, "Datum"], size: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: +def datum_float_round( + value: Annotated[_ffi.CData, "Datum"], size: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Datum"]: value_converted = _ffi.cast("Datum", value) size_converted = _ffi.cast("Datum", size) result = _lib.datum_float_round(value_converted, size_converted) @@ -15127,14 +15361,16 @@ def datum_float_round(value: Annotated[cdata, "Datum"], size: Annotated[cdata, " return result if result != _ffi.NULL else None -def datum_floor(d: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: +def datum_floor(d: Annotated[_ffi.CData, "Datum"]) -> Annotated[_ffi.CData, "Datum"]: d_converted = _ffi.cast("Datum", d) result = _lib.datum_floor(d_converted) _check_error() return result if result != _ffi.NULL else None -def datum_hash(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[int, "uint32"]: +def datum_hash( + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[int, "uint32"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.datum_hash(d_converted, basetype_converted) @@ -15143,7 +15379,7 @@ def datum_hash(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosTyp def datum_hash_extended( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], seed: int + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"], seed: int ) -> Annotated[int, "uint64"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) @@ -15153,14 +15389,14 @@ def datum_hash_extended( return result if result != _ffi.NULL else None -def datum_radians(d: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: +def datum_radians(d: Annotated[_ffi.CData, "Datum"]) -> Annotated[_ffi.CData, "Datum"]: d_converted = _ffi.cast("Datum", d) result = _lib.datum_radians(d_converted) _check_error() return result if result != _ffi.NULL else None -def floatspan_round_set(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[cdata, "Span *"]: +def floatspan_round_set(s: Annotated[_ffi.CData, "const Span *"], maxdd: int) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) out_result = _ffi.new("Span *") _lib.floatspan_round_set(s_converted, maxdd, out_result) @@ -15168,7 +15404,7 @@ def floatspan_round_set(s: Annotated[cdata, "const Span *"], maxdd: int) -> Anno return out_result if out_result != _ffi.NULL else None -def set_in(string: str, basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Set *"]: +def set_in(string: str, basetype: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_in(string_converted, basetype_converted) @@ -15176,7 +15412,7 @@ def set_in(string: str, basetype: Annotated[cdata, "meosType"]) -> Annotated[cda return result if result != _ffi.NULL else None -def set_out(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: +def set_out(s: Annotated[_ffi.CData, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_out(s_converted, maxdd) _check_error() @@ -15184,7 +15420,7 @@ def set_out(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "c return result if result != _ffi.NULL else None -def span_in(string: str, spantype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Span *"]: +def span_in(string: str, spantype: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "Span *"]: string_converted = string.encode("utf-8") spantype_converted = _ffi.cast("meosType", spantype) result = _lib.span_in(string_converted, spantype_converted) @@ -15192,7 +15428,7 @@ def span_in(string: str, spantype: Annotated[cdata, "meosType"]) -> Annotated[cd return result if result != _ffi.NULL else None -def span_out(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[str, "char *"]: +def span_out(s: Annotated[_ffi.CData, "const Span *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Span *", s) result = _lib.span_out(s_converted, maxdd) _check_error() @@ -15200,7 +15436,7 @@ def span_out(s: Annotated[cdata, "const Span *"], maxdd: int) -> Annotated[str, return result if result != _ffi.NULL else None -def spanset_in(string: str, spantype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "SpanSet *"]: +def spanset_in(string: str, spantype: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "SpanSet *"]: string_converted = string.encode("utf-8") spantype_converted = _ffi.cast("meosType", spantype) result = _lib.spanset_in(string_converted, spantype_converted) @@ -15208,7 +15444,7 @@ def spanset_in(string: str, spantype: Annotated[cdata, "meosType"]) -> Annotated return result if result != _ffi.NULL else None -def spanset_out(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotated[str, "char *"]: +def spanset_out(ss: Annotated[_ffi.CData, "const SpanSet *"], maxdd: int) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_out(ss_converted, maxdd) _check_error() @@ -15217,8 +15453,8 @@ def spanset_out(ss: Annotated[cdata, "const SpanSet *"], maxdd: int) -> Annotate def set_make( - values: Annotated[cdata, "const Datum *"], count: int, basetype: Annotated[cdata, "meosType"], order: bool -) -> Annotated[cdata, "Set *"]: + values: Annotated[_ffi.CData, "const Datum *"], count: int, basetype: Annotated[_ffi.CData, "meosType"], order: bool +) -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.cast("const Datum *", values) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make(values_converted, count, basetype_converted, order) @@ -15227,12 +15463,12 @@ def set_make( def set_make_exp( - values: Annotated[cdata, "const Datum *"], + values: Annotated[_ffi.CData, "const Datum *"], count: int, maxcount: int, - basetype: Annotated[cdata, "meosType"], + basetype: Annotated[_ffi.CData, "meosType"], order: bool, -) -> Annotated[cdata, "Set *"]: +) -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.cast("const Datum *", values) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make_exp(values_converted, count, maxcount, basetype_converted, order) @@ -15241,8 +15477,8 @@ def set_make_exp( def set_make_free( - values: Annotated[cdata, "Datum *"], count: int, basetype: Annotated[cdata, "meosType"], order: bool -) -> Annotated[cdata, "Set *"]: + values: Annotated[_ffi.CData, "Datum *"], count: int, basetype: Annotated[_ffi.CData, "meosType"], order: bool +) -> Annotated[_ffi.CData, "Set *"]: values_converted = _ffi.cast("Datum *", values) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.set_make_free(values_converted, count, basetype_converted, order) @@ -15251,12 +15487,12 @@ def set_make_free( def span_make( - lower: Annotated[cdata, "Datum"], - upper: Annotated[cdata, "Datum"], + lower: Annotated[_ffi.CData, "Datum"], + upper: Annotated[_ffi.CData, "Datum"], lower_inc: bool, upper_inc: bool, - basetype: Annotated[cdata, "meosType"], -) -> Annotated[cdata, "Span *"]: + basetype: Annotated[_ffi.CData, "meosType"], +) -> Annotated[_ffi.CData, "Span *"]: lower_converted = _ffi.cast("Datum", lower) upper_converted = _ffi.cast("Datum", upper) basetype_converted = _ffi.cast("meosType", basetype) @@ -15266,13 +15502,13 @@ def span_make( def span_set( - lower: Annotated[cdata, "Datum"], - upper: Annotated[cdata, "Datum"], + lower: Annotated[_ffi.CData, "Datum"], + upper: Annotated[_ffi.CData, "Datum"], lower_inc: bool, upper_inc: bool, - basetype: Annotated[cdata, "meosType"], - spantype: Annotated[cdata, "meosType"], - s: Annotated[cdata, "Span *"], + basetype: Annotated[_ffi.CData, "meosType"], + spantype: Annotated[_ffi.CData, "meosType"], + s: Annotated[_ffi.CData, "Span *"], ) -> Annotated[None, "void"]: lower_converted = _ffi.cast("Datum", lower) upper_converted = _ffi.cast("Datum", upper) @@ -15286,8 +15522,8 @@ def span_set( def spanset_make_exp( - spans: Annotated[cdata, "Span *"], count: int, maxcount: int, normalize: bool, order: bool -) -> Annotated[cdata, "SpanSet *"]: + spans: Annotated[_ffi.CData, "Span *"], count: int, maxcount: int, normalize: bool, order: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: spans_converted = _ffi.cast("Span *", spans) result = _lib.spanset_make_exp(spans_converted, count, maxcount, normalize, order) _check_error() @@ -15295,22 +15531,22 @@ def spanset_make_exp( def spanset_make_free( - spans: Annotated[cdata, "Span *"], count: int, normalize: bool, order: bool -) -> Annotated[cdata, "SpanSet *"]: + spans: Annotated[_ffi.CData, "Span *"], count: int, normalize: bool, order: bool +) -> Annotated[_ffi.CData, "SpanSet *"]: spans_converted = _ffi.cast("Span *", spans) result = _lib.spanset_make_free(spans_converted, count, normalize, order) _check_error() return result if result != _ffi.NULL else None -def set_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: +def set_span(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_span(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_spanset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "SpanSet *"]: +def set_spanset(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_spanset(s_converted) _check_error() @@ -15318,7 +15554,9 @@ def set_spanset(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "SpanSet def value_set_span( - value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], s: Annotated[cdata, "Span *"] + value: Annotated[_ffi.CData, "Datum"], + basetype: Annotated[_ffi.CData, "meosType"], + s: Annotated[_ffi.CData, "Span *"], ) -> Annotated[None, "void"]: value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) @@ -15327,7 +15565,9 @@ def value_set_span( _check_error() -def value_set(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Set *"]: +def value_set( + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "Set *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_set(d_converted, basetype_converted) @@ -15335,7 +15575,9 @@ def value_set(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType return result if result != _ffi.NULL else None -def value_span(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Span *"]: +def value_span( + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "Span *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_span(d_converted, basetype_converted) @@ -15344,8 +15586,8 @@ def value_span(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosTyp def value_spanset( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] -) -> Annotated[cdata, "SpanSet *"]: + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "SpanSet *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.value_spanset(d_converted, basetype_converted) @@ -15353,35 +15595,37 @@ def value_spanset( return result if result != _ffi.NULL else None -def numspan_width(s: Annotated[cdata, "const Span *"]) -> Annotated[cdata, "Datum"]: +def numspan_width(s: Annotated[_ffi.CData, "const Span *"]) -> Annotated[_ffi.CData, "Datum"]: s_converted = _ffi.cast("const Span *", s) result = _lib.numspan_width(s_converted) _check_error() return result if result != _ffi.NULL else None -def numspanset_width(ss: Annotated[cdata, "const SpanSet *"], boundspan: bool) -> Annotated[cdata, "Datum"]: +def numspanset_width(ss: Annotated[_ffi.CData, "const SpanSet *"], boundspan: bool) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.numspanset_width(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def set_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum"]: +def set_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Datum"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_mem_size(s: Annotated[cdata, "const Set *"]) -> Annotated[int, "int"]: +def set_mem_size(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[int, "int"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_mem_size(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_set_subspan(s: Annotated[cdata, "const Set *"], minidx: int, maxidx: int) -> Annotated[cdata, "Span *"]: +def set_set_subspan( + s: Annotated[_ffi.CData, "const Set *"], minidx: int, maxidx: int +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Span *") _lib.set_set_subspan(s_converted, minidx, maxidx, out_result) @@ -15389,7 +15633,7 @@ def set_set_subspan(s: Annotated[cdata, "const Set *"], minidx: int, maxidx: int return out_result if out_result != _ffi.NULL else None -def set_set_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span *"]: +def set_set_span(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Span *") _lib.set_set_span(s_converted, out_result) @@ -15397,14 +15641,14 @@ def set_set_span(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Span * return out_result if out_result != _ffi.NULL else None -def set_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum"]: +def set_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Datum"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, "Datum *"]: +def set_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[_ffi.CData, "Datum *"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Datum *") result = _lib.set_value_n(s_converted, n, out_result) @@ -15414,42 +15658,42 @@ def set_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[cdata, return None -def set_vals(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum *"]: +def set_vals(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Datum *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_vals(s_converted) _check_error() return result if result != _ffi.NULL else None -def set_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Datum *"]: +def set_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Datum *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_values(s_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_lower(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Datum"]: +def spanset_lower(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_lower(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_mem_size(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[int, "int"]: +def spanset_mem_size(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_mem_size(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_sps(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "const Span **"]: +def spanset_sps(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "const Span **"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_sps(ss_converted) _check_error() return result if result != _ffi.NULL else None -def spanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "Datum"]: +def spanset_upper(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_upper(ss_converted) _check_error() @@ -15457,7 +15701,7 @@ def spanset_upper(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, " def datespan_set_tstzspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) @@ -15466,7 +15710,7 @@ def datespan_set_tstzspan( def floatspan_set_intspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) @@ -15475,7 +15719,7 @@ def floatspan_set_intspan( def intspan_set_floatspan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) @@ -15484,12 +15728,12 @@ def intspan_set_floatspan( def numset_shift_scale( - s: Annotated[cdata, "const Set *"], - shift: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + s: Annotated[_ffi.CData, "const Set *"], + shift: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "Set *"]: +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) @@ -15499,12 +15743,12 @@ def numset_shift_scale( def numspan_shift_scale( - s: Annotated[cdata, "const Span *"], - shift: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + s: Annotated[_ffi.CData, "const Span *"], + shift: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "Span *"]: +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) @@ -15514,12 +15758,12 @@ def numspan_shift_scale( def numspanset_shift_scale( - ss: Annotated[cdata, "const SpanSet *"], - shift: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + ss: Annotated[_ffi.CData, "const SpanSet *"], + shift: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "SpanSet *"]: +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) @@ -15528,21 +15772,23 @@ def numspanset_shift_scale( return result if result != _ffi.NULL else None -def set_compact(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def set_compact(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.set_compact(s_converted) _check_error() return result if result != _ffi.NULL else None -def span_expand(s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"]) -> Annotated[None, "void"]: +def span_expand( + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "Span *"] +) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) _lib.span_expand(s1_converted, s2_converted) _check_error() -def spanset_compact(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, "SpanSet *"]: +def spanset_compact(ss: Annotated[_ffi.CData, "const SpanSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.spanset_compact(ss_converted) _check_error() @@ -15550,8 +15796,10 @@ def spanset_compact(ss: Annotated[cdata, "const SpanSet *"]) -> Annotated[cdata, def tbox_expand_value( - box: Annotated[cdata, "const TBox *"], value: Annotated[cdata, "Datum"], basetyp: Annotated[cdata, "meosType"] -) -> Annotated[cdata, "TBox *"]: + box: Annotated[_ffi.CData, "const TBox *"], + value: Annotated[_ffi.CData, "Datum"], + basetyp: Annotated[_ffi.CData, "meosType"], +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) value_converted = _ffi.cast("Datum", value) basetyp_converted = _ffi.cast("meosType", basetyp) @@ -15560,7 +15808,9 @@ def tbox_expand_value( return result if result != _ffi.NULL else None -def textcat_textset_text_int(s: Annotated[cdata, "const Set *"], txt: str, invert: bool) -> Annotated[cdata, "Set *"]: +def textcat_textset_text_int( + s: Annotated[_ffi.CData, "const Set *"], txt: str, invert: bool +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) txt_converted = cstring2text(txt) result = _lib.textcat_textset_text_int(s_converted, txt_converted, invert) @@ -15569,7 +15819,7 @@ def textcat_textset_text_int(s: Annotated[cdata, "const Set *"], txt: str, inver def tstzspan_set_datespan( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("Span *", s2) @@ -15578,7 +15828,7 @@ def tstzspan_set_datespan( def adjacent_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) @@ -15588,7 +15838,7 @@ def adjacent_span_value( def adjacent_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) @@ -15598,7 +15848,7 @@ def adjacent_spanset_value( def adjacent_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -15608,7 +15858,7 @@ def adjacent_value_spanset( def contained_value_set( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"] + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) @@ -15618,7 +15868,7 @@ def contained_value_set( def contained_value_span( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) @@ -15628,7 +15878,7 @@ def contained_value_span( def contained_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -15637,7 +15887,9 @@ def contained_value_spanset( return result if result != _ffi.NULL else None -def contains_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: +def contains_set_value( + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.contains_set_value(s_converted, value_converted) @@ -15646,7 +15898,7 @@ def contains_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdat def contains_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) @@ -15656,7 +15908,7 @@ def contains_span_value( def contains_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) @@ -15666,7 +15918,7 @@ def contains_spanset_value( def ovadj_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -15675,7 +15927,9 @@ def ovadj_span_span( return result if result != _ffi.NULL else None -def left_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: +def left_set_value( + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.left_set_value(s_converted, value_converted) @@ -15683,7 +15937,9 @@ def left_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, " return result if result != _ffi.NULL else None -def left_span_value(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: +def left_span_value( + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.left_span_value(s_converted, value_converted) @@ -15692,7 +15948,7 @@ def left_span_value(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, def left_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) @@ -15701,7 +15957,9 @@ def left_spanset_value( return result if result != _ffi.NULL else None -def left_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def left_value_set( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.left_value_set(value_converted, s_converted) @@ -15709,7 +15967,9 @@ def left_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const return result if result != _ffi.NULL else None -def left_value_span(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def left_value_span( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.left_value_span(value_converted, s_converted) @@ -15718,7 +15978,7 @@ def left_value_span(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const def left_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -15728,7 +15988,7 @@ def left_value_spanset( def lfnadj_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) @@ -15737,7 +15997,9 @@ def lfnadj_span_span( return result if result != _ffi.NULL else None -def overleft_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: +def overleft_set_value( + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.overleft_set_value(s_converted, value_converted) @@ -15746,7 +16008,7 @@ def overleft_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdat def overleft_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) @@ -15756,7 +16018,7 @@ def overleft_span_value( def overleft_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) @@ -15765,7 +16027,9 @@ def overleft_spanset_value( return result if result != _ffi.NULL else None -def overleft_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def overleft_value_set( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.overleft_value_set(value_converted, s_converted) @@ -15774,7 +16038,7 @@ def overleft_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "co def overleft_value_span( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) @@ -15784,7 +16048,7 @@ def overleft_value_span( def overleft_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -15794,7 +16058,7 @@ def overleft_value_spanset( def overright_set_value( - s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"] + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) @@ -15804,7 +16068,7 @@ def overright_set_value( def overright_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) @@ -15814,7 +16078,7 @@ def overright_span_value( def overright_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) @@ -15824,7 +16088,7 @@ def overright_spanset_value( def overright_value_set( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"] + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) @@ -15834,7 +16098,7 @@ def overright_value_set( def overright_value_span( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) @@ -15844,7 +16108,7 @@ def overright_value_span( def overright_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -15853,7 +16117,9 @@ def overright_value_spanset( return result if result != _ffi.NULL else None -def right_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[bool, "bool"]: +def right_value_set( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.right_value_set(value_converted, s_converted) @@ -15861,7 +16127,9 @@ def right_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const return result if result != _ffi.NULL else None -def right_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: +def right_set_value( + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.right_set_value(s_converted, value_converted) @@ -15869,7 +16137,9 @@ def right_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, return result if result != _ffi.NULL else None -def right_value_span(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"]) -> Annotated[bool, "bool"]: +def right_value_span( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.right_value_span(value_converted, s_converted) @@ -15878,7 +16148,7 @@ def right_value_span(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "cons def right_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] ) -> Annotated[bool, "bool"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -15887,7 +16157,9 @@ def right_value_spanset( return result if result != _ffi.NULL else None -def right_span_value(s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"]) -> Annotated[bool, "bool"]: +def right_span_value( + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.right_span_value(s_converted, value_converted) @@ -15896,7 +16168,7 @@ def right_span_value(s: Annotated[cdata, "const Span *"], value: Annotated[cdata def right_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) @@ -15906,8 +16178,8 @@ def right_spanset_value( def bbox_union_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) out_result = _ffi.new("Span *") @@ -15917,8 +16189,8 @@ def bbox_union_span_span( def inter_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) out_result = _ffi.new("Span *") @@ -15930,8 +16202,8 @@ def inter_span_span( def intersection_set_value( - s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.intersection_set_value(s_converted, value_converted) @@ -15940,8 +16212,8 @@ def intersection_set_value( def intersection_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.intersection_span_value(s_converted, value_converted) @@ -15950,8 +16222,8 @@ def intersection_span_value( def intersection_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.intersection_spanset_value(ss_converted, value_converted) @@ -15960,8 +16232,8 @@ def intersection_spanset_value( def intersection_value_set( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_value_set(value_converted, s_converted) @@ -15970,8 +16242,8 @@ def intersection_value_set( def intersection_value_span( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.intersection_value_span(value_converted, s_converted) @@ -15980,8 +16252,8 @@ def intersection_value_span( def intersection_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.intersection_value_spanset(value_converted, ss_converted) @@ -15990,8 +16262,8 @@ def intersection_value_spanset( def mi_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) out_result = _ffi.new("Span *") @@ -16000,7 +16272,9 @@ def mi_span_span( return out_result, result if out_result != _ffi.NULL else None -def minus_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Set *"]: +def minus_set_value( + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.minus_set_value(s_converted, value_converted) @@ -16009,8 +16283,8 @@ def minus_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, def minus_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "SpanSet *"]: + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.minus_span_value(s_converted, value_converted) @@ -16019,8 +16293,8 @@ def minus_span_value( def minus_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.minus_spanset_value(ss_converted, value_converted) @@ -16028,7 +16302,9 @@ def minus_spanset_value( return result if result != _ffi.NULL else None -def minus_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def minus_value_set( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_value_set(value_converted, s_converted) @@ -16037,8 +16313,8 @@ def minus_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const def minus_value_span( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.minus_value_span(value_converted, s_converted) @@ -16047,8 +16323,8 @@ def minus_value_span( def minus_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.minus_value_spanset(value_converted, ss_converted) @@ -16057,8 +16333,8 @@ def minus_value_spanset( def super_union_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Span *"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Span *"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.super_union_span_span(s1_converted, s2_converted) @@ -16066,7 +16342,9 @@ def super_union_span_span( return result if result != _ffi.NULL else None -def union_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Set *"]: +def union_set_value( + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.union_set_value(s_converted, value_converted) @@ -16075,8 +16353,8 @@ def union_set_value(s: Annotated[cdata, "const Set *"], value: Annotated[cdata, def union_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "SpanSet *"]: + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "SpanSet *"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.union_span_value(s_converted, value_converted) @@ -16085,8 +16363,8 @@ def union_span_value( def union_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "SpanSet *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.union_spanset_value(ss_converted, value_converted) @@ -16094,7 +16372,9 @@ def union_spanset_value( return result if result != _ffi.NULL else None -def union_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def union_value_set( + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Set *", s) result = _lib.union_value_set(value_converted, s_converted) @@ -16103,8 +16383,8 @@ def union_value_set(value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const def union_value_span( - value: Annotated[cdata, "Datum"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "SpanSet *"]: + value: Annotated[_ffi.CData, "Datum"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) s_converted = _ffi.cast("const Span *", s) result = _lib.union_value_span(value_converted, s_converted) @@ -16113,8 +16393,8 @@ def union_value_span( def union_value_spanset( - value: Annotated[cdata, "Datum"], ss: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "SpanSet *"]: + value: Annotated[_ffi.CData, "Datum"], ss: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "SpanSet *"]: value_converted = _ffi.cast("Datum", value) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.union_value_spanset(value_converted, ss_converted) @@ -16123,8 +16403,8 @@ def union_value_spanset( def distance_set_set( - s1: Annotated[cdata, "const Set *"], s2: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Datum"]: + s1: Annotated[_ffi.CData, "const Set *"], s2: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Datum"]: s1_converted = _ffi.cast("const Set *", s1) s2_converted = _ffi.cast("const Set *", s2) result = _lib.distance_set_set(s1_converted, s2_converted) @@ -16133,8 +16413,8 @@ def distance_set_set( def distance_set_value( - s: Annotated[cdata, "const Set *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "Datum"]: + s: Annotated[_ffi.CData, "const Set *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Datum"]: s_converted = _ffi.cast("const Set *", s) value_converted = _ffi.cast("Datum", value) result = _lib.distance_set_value(s_converted, value_converted) @@ -16143,8 +16423,8 @@ def distance_set_value( def distance_span_span( - s1: Annotated[cdata, "const Span *"], s2: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Datum"]: + s1: Annotated[_ffi.CData, "const Span *"], s2: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Datum"]: s1_converted = _ffi.cast("const Span *", s1) s2_converted = _ffi.cast("const Span *", s2) result = _lib.distance_span_span(s1_converted, s2_converted) @@ -16153,8 +16433,8 @@ def distance_span_span( def distance_span_value( - s: Annotated[cdata, "const Span *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "Datum"]: + s: Annotated[_ffi.CData, "const Span *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Datum"]: s_converted = _ffi.cast("const Span *", s) value_converted = _ffi.cast("Datum", value) result = _lib.distance_span_value(s_converted, value_converted) @@ -16163,8 +16443,8 @@ def distance_span_value( def distance_spanset_span( - ss: Annotated[cdata, "const SpanSet *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "Datum"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.distance_spanset_span(ss_converted, s_converted) @@ -16173,8 +16453,8 @@ def distance_spanset_span( def distance_spanset_spanset( - ss1: Annotated[cdata, "const SpanSet *"], ss2: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "Datum"]: + ss1: Annotated[_ffi.CData, "const SpanSet *"], ss2: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "Datum"]: ss1_converted = _ffi.cast("const SpanSet *", ss1) ss2_converted = _ffi.cast("const SpanSet *", ss2) result = _lib.distance_spanset_spanset(ss1_converted, ss2_converted) @@ -16183,8 +16463,8 @@ def distance_spanset_spanset( def distance_spanset_value( - ss: Annotated[cdata, "const SpanSet *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "Datum"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const SpanSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.distance_spanset_value(ss_converted, value_converted) @@ -16193,8 +16473,8 @@ def distance_spanset_value( def distance_value_value( - l: Annotated[cdata, "Datum"], r: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] -) -> Annotated[cdata, "Datum"]: + l: Annotated[_ffi.CData, "Datum"], r: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "Datum"]: l_converted = _ffi.cast("Datum", l) r_converted = _ffi.cast("Datum", r) basetype_converted = _ffi.cast("meosType", basetype) @@ -16204,8 +16484,10 @@ def distance_value_value( def spanbase_extent_transfn( - state: Annotated[cdata, "Span *"], value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] -) -> Annotated[cdata, "Span *"]: + state: Annotated[_ffi.CData, "Span *"], + value: Annotated[_ffi.CData, "Datum"], + basetype: Annotated[_ffi.CData, "meosType"], +) -> Annotated[_ffi.CData, "Span *"]: state_converted = _ffi.cast("Span *", state) value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) @@ -16215,8 +16497,10 @@ def spanbase_extent_transfn( def value_union_transfn( - state: Annotated[cdata, "Set *"], value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"] -) -> Annotated[cdata, "Set *"]: + state: Annotated[_ffi.CData, "Set *"], + value: Annotated[_ffi.CData, "Datum"], + basetype: Annotated[_ffi.CData, "meosType"], +) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) @@ -16226,8 +16510,10 @@ def value_union_transfn( def number_tstzspan_to_tbox( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "TBox *"]: + d: Annotated[_ffi.CData, "Datum"], + basetype: Annotated[_ffi.CData, "meosType"], + s: Annotated[_ffi.CData, "const Span *"], +) -> Annotated[_ffi.CData, "TBox *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) s_converted = _ffi.cast("const Span *", s) @@ -16237,8 +16523,8 @@ def number_tstzspan_to_tbox( def number_timestamptz_to_tbox( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], t: int -) -> Annotated[cdata, "TBox *"]: + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"], t: int +) -> Annotated[_ffi.CData, "TBox *"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) t_converted = _ffi.cast("TimestampTz", t) @@ -16248,7 +16534,9 @@ def number_timestamptz_to_tbox( def tbox_set( - s: Annotated[cdata, "const Span *"], p: Annotated[cdata, "const Span *"], box: Annotated[cdata, "TBox *"] + s: Annotated[_ffi.CData, "const Span *"], + p: Annotated[_ffi.CData, "const Span *"], + box: Annotated[_ffi.CData, "TBox *"], ) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Span *", s) p_converted = _ffi.cast("const Span *", p) @@ -16257,20 +16545,20 @@ def tbox_set( _check_error() -def float_set_tbox(d: float, box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def float_set_tbox(d: float, box: Annotated[_ffi.CData, "TBox *"]) -> Annotated[None, "void"]: box_converted = _ffi.cast("TBox *", box) _lib.float_set_tbox(d, box_converted) _check_error() -def int_set_tbox(i: int, box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def int_set_tbox(i: int, box: Annotated[_ffi.CData, "TBox *"]) -> Annotated[None, "void"]: box_converted = _ffi.cast("TBox *", box) _lib.int_set_tbox(i, box_converted) _check_error() def number_set_tbox( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], box: Annotated[cdata, "TBox *"] + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"], box: Annotated[_ffi.CData, "TBox *"] ) -> Annotated[None, "void"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) @@ -16279,7 +16567,9 @@ def number_set_tbox( _check_error() -def number_tbox(value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "TBox *"]: +def number_tbox( + value: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "TBox *"]: value_converted = _ffi.cast("Datum", value) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.number_tbox(value_converted, basetype_converted) @@ -16287,7 +16577,9 @@ def number_tbox(value: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "me return result if result != _ffi.NULL else None -def numset_set_tbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def numset_set_tbox( + s: Annotated[_ffi.CData, "const Set *"], box: Annotated[_ffi.CData, "TBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("TBox *", box) _lib.numset_set_tbox(s_converted, box_converted) @@ -16295,7 +16587,7 @@ def numset_set_tbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "T def numspan_set_tbox( - span: Annotated[cdata, "const Span *"], box: Annotated[cdata, "TBox *"] + span: Annotated[_ffi.CData, "const Span *"], box: Annotated[_ffi.CData, "TBox *"] ) -> Annotated[None, "void"]: span_converted = _ffi.cast("const Span *", span) box_converted = _ffi.cast("TBox *", box) @@ -16303,21 +16595,25 @@ def numspan_set_tbox( _check_error() -def timestamptz_set_tbox(t: int, box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def timestamptz_set_tbox(t: int, box: Annotated[_ffi.CData, "TBox *"]) -> Annotated[None, "void"]: t_converted = _ffi.cast("TimestampTz", t) box_converted = _ffi.cast("TBox *", box) _lib.timestamptz_set_tbox(t_converted, box_converted) _check_error() -def tstzset_set_tbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def tstzset_set_tbox( + s: Annotated[_ffi.CData, "const Set *"], box: Annotated[_ffi.CData, "TBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("TBox *", box) _lib.tstzset_set_tbox(s_converted, box_converted) _check_error() -def tstzspan_set_tbox(s: Annotated[cdata, "const Span *"], box: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def tstzspan_set_tbox( + s: Annotated[_ffi.CData, "const Span *"], box: Annotated[_ffi.CData, "TBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Span *", s) box_converted = _ffi.cast("TBox *", box) _lib.tstzspan_set_tbox(s_converted, box_converted) @@ -16325,12 +16621,12 @@ def tstzspan_set_tbox(s: Annotated[cdata, "const Span *"], box: Annotated[cdata, def tbox_shift_scale_value( - box: Annotated[cdata, "const TBox *"], - shift: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + box: Annotated[_ffi.CData, "const TBox *"], + shift: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "TBox *"]: +) -> Annotated[_ffi.CData, "TBox *"]: box_converted = _ffi.cast("const TBox *", box) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) @@ -16339,7 +16635,9 @@ def tbox_shift_scale_value( return result if result != _ffi.NULL else None -def tbox_expand(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "TBox *"]) -> Annotated[None, "void"]: +def tbox_expand( + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "TBox *"] +) -> Annotated[None, "void"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("TBox *", box2) _lib.tbox_expand(box1_converted, box2_converted) @@ -16347,8 +16645,8 @@ def tbox_expand(box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, " def inter_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] -) -> Annotated[cdata, "TBox *"]: + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] +) -> Annotated[_ffi.CData, "TBox *"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) out_result = _ffi.new("TBox *") @@ -16359,28 +16657,28 @@ def inter_tbox_tbox( return None -def tboolinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tboolinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tboolinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tboolseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tboolseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tboolseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tboolseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tboolseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tboolseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_in(string: str, temptype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Temporal *"]: +def temporal_in(string: str, temptype: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.temporal_in(string_converted, temptype_converted) @@ -16388,7 +16686,7 @@ def temporal_in(string: str, temptype: Annotated[cdata, "meosType"]) -> Annotate return result if result != _ffi.NULL else None -def temporal_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: +def temporal_out(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_out(temp_converted, maxdd) _check_error() @@ -16396,35 +16694,37 @@ def temporal_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Anno return result if result != _ffi.NULL else None -def temparr_out(temparr: Annotated[list, "const Temporal **"], count: int, maxdd: int) -> Annotated[cdata, "char **"]: +def temparr_out( + temparr: Annotated[list, "const Temporal **"], count: int, maxdd: int +) -> Annotated[_ffi.CData, "char **"]: temparr_converted = [_ffi.cast("const Temporal *", x) for x in temparr] result = _lib.temparr_out(temparr_converted, count, maxdd) _check_error() return result if result != _ffi.NULL else None -def tfloatinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tfloatinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tfloatinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tfloatseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tfloatseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tfloatseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tfloatseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tfloatseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tfloatseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_in(string: str, temptype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "TInstant *"]: +def tinstant_in(string: str, temptype: Annotated[_ffi.CData, "meosType"]) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tinstant_in(string_converted, temptype_converted) @@ -16432,7 +16732,7 @@ def tinstant_in(string: str, temptype: Annotated[cdata, "meosType"]) -> Annotate return result if result != _ffi.NULL else None -def tinstant_out(inst: Annotated[cdata, "const TInstant *"], maxdd: int) -> Annotated[str, "char *"]: +def tinstant_out(inst: Annotated[_ffi.CData, "const TInstant *"], maxdd: int) -> Annotated[str, "char *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_out(inst_converted, maxdd) _check_error() @@ -16440,21 +16740,21 @@ def tinstant_out(inst: Annotated[cdata, "const TInstant *"], maxdd: int) -> Anno return result if result != _ffi.NULL else None -def tintinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tintinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tintinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tintseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tintseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tintseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tintseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tintseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tintseqset_in(string_converted) _check_error() @@ -16462,8 +16762,8 @@ def tintseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: def tsequence_in( - string: str, temptype: Annotated[cdata, "meosType"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + string: str, temptype: Annotated[_ffi.CData, "meosType"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tsequence_in(string_converted, temptype_converted, interp) @@ -16471,7 +16771,7 @@ def tsequence_in( return result if result != _ffi.NULL else None -def tsequence_out(seq: Annotated[cdata, "const TSequence *"], maxdd: int) -> Annotated[str, "char *"]: +def tsequence_out(seq: Annotated[_ffi.CData, "const TSequence *"], maxdd: int) -> Annotated[str, "char *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_out(seq_converted, maxdd) _check_error() @@ -16480,8 +16780,8 @@ def tsequence_out(seq: Annotated[cdata, "const TSequence *"], maxdd: int) -> Ann def tsequenceset_in( - string: str, temptype: Annotated[cdata, "meosType"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + string: str, temptype: Annotated[_ffi.CData, "meosType"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.tsequenceset_in(string_converted, temptype_converted, interp) @@ -16489,7 +16789,7 @@ def tsequenceset_in( return result if result != _ffi.NULL else None -def tsequenceset_out(ss: Annotated[cdata, "const TSequenceSet *"], maxdd: int) -> Annotated[str, "char *"]: +def tsequenceset_out(ss: Annotated[_ffi.CData, "const TSequenceSet *"], maxdd: int) -> Annotated[str, "char *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_out(ss_converted, maxdd) _check_error() @@ -16497,28 +16797,30 @@ def tsequenceset_out(ss: Annotated[cdata, "const TSequenceSet *"], maxdd: int) - return result if result != _ffi.NULL else None -def ttextinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def ttextinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.ttextinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def ttextseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def ttextseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.ttextseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def ttextseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def ttextseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.ttextseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_from_mfjson(mfjson: str, temptype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "Temporal *"]: +def temporal_from_mfjson( + mfjson: str, temptype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "Temporal *"]: mfjson_converted = mfjson.encode("utf-8") temptype_converted = _ffi.cast("meosType", temptype) result = _lib.temporal_from_mfjson(mfjson_converted, temptype_converted) @@ -16527,8 +16829,10 @@ def temporal_from_mfjson(mfjson: str, temptype: Annotated[cdata, "meosType"]) -> def temporal_from_base_temp( - value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], temp: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + value: Annotated[_ffi.CData, "Datum"], + temptype: Annotated[_ffi.CData, "meosType"], + temp: Annotated[_ffi.CData, "const Temporal *"], +) -> Annotated[_ffi.CData, "Temporal *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) temp_converted = _ffi.cast("const Temporal *", temp) @@ -16537,7 +16841,7 @@ def temporal_from_base_temp( return result if result != _ffi.NULL else None -def tinstant_copy(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "TInstant *"]: +def tinstant_copy(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_copy(inst_converted) _check_error() @@ -16545,8 +16849,8 @@ def tinstant_copy(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata def tinstant_make( - value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], t: int -) -> Annotated[cdata, "TInstant *"]: + value: Annotated[_ffi.CData, "Datum"], temptype: Annotated[_ffi.CData, "meosType"], t: int +) -> Annotated[_ffi.CData, "TInstant *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) t_converted = _ffi.cast("TimestampTz", t) @@ -16556,8 +16860,8 @@ def tinstant_make( def tinstant_make_free( - value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], t: int -) -> Annotated[cdata, "TInstant *"]: + value: Annotated[_ffi.CData, "Datum"], temptype: Annotated[_ffi.CData, "meosType"], t: int +) -> Annotated[_ffi.CData, "TInstant *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) t_converted = _ffi.cast("TimestampTz", t) @@ -16566,7 +16870,7 @@ def tinstant_make_free( return result if result != _ffi.NULL else None -def tsequence_copy(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: +def tsequence_copy(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_copy(seq_converted) _check_error() @@ -16574,8 +16878,10 @@ def tsequence_copy(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdat def tsequence_from_base_temp( - value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], seq: Annotated[cdata, "const TSequence *"] -) -> Annotated[cdata, "TSequence *"]: + value: Annotated[_ffi.CData, "Datum"], + temptype: Annotated[_ffi.CData, "meosType"], + seq: Annotated[_ffi.CData, "const TSequence *"], +) -> Annotated[_ffi.CData, "TSequence *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) seq_converted = _ffi.cast("const TSequence *", seq) @@ -16585,8 +16891,10 @@ def tsequence_from_base_temp( def tsequence_from_base_tstzset( - value: Annotated[cdata, "Datum"], temptype: Annotated[cdata, "meosType"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "TSequence *"]: + value: Annotated[_ffi.CData, "Datum"], + temptype: Annotated[_ffi.CData, "meosType"], + s: Annotated[_ffi.CData, "const Set *"], +) -> Annotated[_ffi.CData, "TSequence *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) s_converted = _ffi.cast("const Set *", s) @@ -16596,11 +16904,11 @@ def tsequence_from_base_tstzset( def tsequence_from_base_tstzspan( - value: Annotated[cdata, "Datum"], - temptype: Annotated[cdata, "meosType"], - s: Annotated[cdata, "const Span *"], + value: Annotated[_ffi.CData, "Datum"], + temptype: Annotated[_ffi.CData, "meosType"], + s: Annotated[_ffi.CData, "const Span *"], interp: InterpolationType, -) -> Annotated[cdata, "TSequence *"]: +) -> Annotated[_ffi.CData, "TSequence *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) s_converted = _ffi.cast("const Span *", s) @@ -16617,7 +16925,7 @@ def tsequence_make_exp( upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> Annotated[cdata, "TSequence *"]: +) -> Annotated[_ffi.CData, "TSequence *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] result = _lib.tsequence_make_exp(instants_converted, count, maxcount, lower_inc, upper_inc, interp, normalize) _check_error() @@ -16631,14 +16939,14 @@ def tsequence_make_free( upper_inc: bool, interp: InterpolationType, normalize: bool, -) -> Annotated[cdata, "TSequence *"]: +) -> Annotated[_ffi.CData, "TSequence *"]: instants_converted = [_ffi.cast("TInstant *", x) for x in instants] result = _lib.tsequence_make_free(instants_converted, count, lower_inc, upper_inc, interp, normalize) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_copy(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tsequenceset_copy(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_copy(ss_converted) _check_error() @@ -16647,7 +16955,7 @@ def tsequenceset_copy(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated def tseqsetarr_to_tseqset( seqsets: Annotated[list, "TSequenceSet **"], count: int, totalseqs: int -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: seqsets_converted = [_ffi.cast("TSequenceSet *", x) for x in seqsets] result = _lib.tseqsetarr_to_tseqset(seqsets_converted, count, totalseqs) _check_error() @@ -16655,10 +16963,10 @@ def tseqsetarr_to_tseqset( def tsequenceset_from_base_temp( - value: Annotated[cdata, "Datum"], - temptype: Annotated[cdata, "meosType"], - ss: Annotated[cdata, "const TSequenceSet *"], -) -> Annotated[cdata, "TSequenceSet *"]: + value: Annotated[_ffi.CData, "Datum"], + temptype: Annotated[_ffi.CData, "meosType"], + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) ss_converted = _ffi.cast("const TSequenceSet *", ss) @@ -16668,11 +16976,11 @@ def tsequenceset_from_base_temp( def tsequenceset_from_base_tstzspanset( - value: Annotated[cdata, "Datum"], - temptype: Annotated[cdata, "meosType"], - ss: Annotated[cdata, "const SpanSet *"], + value: Annotated[_ffi.CData, "Datum"], + temptype: Annotated[_ffi.CData, "meosType"], + ss: Annotated[_ffi.CData, "const SpanSet *"], interp: InterpolationType, -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: value_converted = _ffi.cast("Datum", value) temptype_converted = _ffi.cast("meosType", temptype) ss_converted = _ffi.cast("const SpanSet *", ss) @@ -16683,7 +16991,7 @@ def tsequenceset_from_base_tstzspanset( def tsequenceset_make_exp( sequences: Annotated[list, "const TSequence **"], count: int, maxcount: int, normalize: bool -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequenceset_make_exp(sequences_converted, count, maxcount, normalize) _check_error() @@ -16692,7 +17000,7 @@ def tsequenceset_make_exp( def tsequenceset_make_free( sequences: Annotated[list, "TSequence **"], count: int, normalize: bool -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: sequences_converted = [_ffi.cast("TSequence *", x) for x in sequences] result = _lib.tsequenceset_make_free(sequences_converted, count, normalize) _check_error() @@ -16700,7 +17008,7 @@ def tsequenceset_make_free( def temporal_set_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("Span *", s) @@ -16709,7 +17017,7 @@ def temporal_set_tstzspan( def tinstant_set_tstzspan( - inst: Annotated[cdata, "const TInstant *"], s: Annotated[cdata, "Span *"] + inst: Annotated[_ffi.CData, "const TInstant *"], s: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) s_converted = _ffi.cast("Span *", s) @@ -16718,7 +17026,7 @@ def tinstant_set_tstzspan( def tnumber_set_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "TBox *"] ) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("TBox *", box) @@ -16727,7 +17035,7 @@ def tnumber_set_tbox( def tnumberinst_set_tbox( - inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "TBox *"] + inst: Annotated[_ffi.CData, "const TInstant *"], box: Annotated[_ffi.CData, "TBox *"] ) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("TBox *", box) @@ -16736,7 +17044,7 @@ def tnumberinst_set_tbox( def tnumberseq_set_tbox( - seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "TBox *"] + seq: Annotated[_ffi.CData, "const TSequence *"], box: Annotated[_ffi.CData, "TBox *"] ) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("TBox *", box) @@ -16745,7 +17053,7 @@ def tnumberseq_set_tbox( def tnumberseqset_set_tbox( - ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "TBox *"] + ss: Annotated[_ffi.CData, "const TSequenceSet *"], box: Annotated[_ffi.CData, "TBox *"] ) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("TBox *", box) @@ -16754,7 +17062,7 @@ def tnumberseqset_set_tbox( def tsequence_set_tstzspan( - seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "Span *"] + seq: Annotated[_ffi.CData, "const TSequence *"], s: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("Span *", s) @@ -16763,7 +17071,7 @@ def tsequence_set_tstzspan( def tsequenceset_set_tstzspan( - ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "Span *"] + ss: Annotated[_ffi.CData, "const TSequenceSet *"], s: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("Span *", s) @@ -16771,21 +17079,23 @@ def tsequenceset_set_tstzspan( _check_error() -def temporal_end_inst(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "const TInstant *"]: +def temporal_end_inst(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "const TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_inst(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_end_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: +def temporal_end_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_end_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_inst_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "const TInstant *"]: +def temporal_inst_n( + temp: Annotated[_ffi.CData, "const Temporal *"], n: int +) -> Annotated[_ffi.CData, "const TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_inst_n(temp_converted, n) _check_error() @@ -16793,8 +17103,8 @@ def temporal_inst_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annot def temporal_instants_p( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "const TInstant **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "const TInstant **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_instants_p(temp_converted, count_converted) @@ -16802,21 +17112,21 @@ def temporal_instants_p( return result if result != _ffi.NULL else None -def temporal_max_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: +def temporal_max_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_max_value(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_mem_size(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "size_t"]: +def temporal_mem_size(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "size_t"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_mem_size(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: +def temporal_min_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_min_value(temp_converted) _check_error() @@ -16824,8 +17134,8 @@ def temporal_min_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[ def temporal_sequences_p( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "const TSequence **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "const TSequence **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_sequences_p(temp_converted, count_converted) @@ -16834,7 +17144,7 @@ def temporal_sequences_p( def temporal_set_bbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "void *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "void *"] ) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("void *", box) @@ -16842,14 +17152,14 @@ def temporal_set_bbox( _check_error() -def temporal_start_inst(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "const TInstant *"]: +def temporal_start_inst(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "const TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_inst(temp_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Datum"]: +def temporal_start_value(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Datum"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_start_value(temp_converted) _check_error() @@ -16857,8 +17167,8 @@ def temporal_start_value(temp: Annotated[cdata, "const Temporal *"]) -> Annotate def temporal_values_p( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Datum *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_values_p(temp_converted, count_converted) @@ -16866,7 +17176,7 @@ def temporal_values_p( return result if result != _ffi.NULL else None -def temporal_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Annotated[cdata, "Datum *"]: +def temporal_value_n(temp: Annotated[_ffi.CData, "const Temporal *"], n: int) -> Annotated[_ffi.CData, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) out_result = _ffi.new("Datum *") result = _lib.temporal_value_n(temp_converted, n, out_result) @@ -16877,8 +17187,8 @@ def temporal_value_n(temp: Annotated[cdata, "const Temporal *"], n: int) -> Anno def temporal_values( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Datum *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.temporal_values(temp_converted, count_converted) @@ -16886,7 +17196,7 @@ def temporal_values( return result if result != _ffi.NULL else None -def tinstant_hash(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[int, "uint32"]: +def tinstant_hash(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[int, "uint32"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_hash(inst_converted) _check_error() @@ -16894,8 +17204,8 @@ def tinstant_hash(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[int, def tinstant_insts( - inst: Annotated[cdata, "const TInstant *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "const TInstant **"]: + inst: Annotated[_ffi.CData, "const TInstant *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "const TInstant **"]: inst_converted = _ffi.cast("const TInstant *", inst) count_converted = _ffi.cast("int *", count) result = _lib.tinstant_insts(inst_converted, count_converted) @@ -16904,7 +17214,7 @@ def tinstant_insts( def tinstant_set_bbox( - inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "void *"] + inst: Annotated[_ffi.CData, "const TInstant *"], box: Annotated[_ffi.CData, "void *"] ) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("void *", box) @@ -16912,7 +17222,7 @@ def tinstant_set_bbox( _check_error() -def tinstant_time(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "SpanSet *"]: +def tinstant_time(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[_ffi.CData, "SpanSet *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_time(inst_converted) _check_error() @@ -16920,7 +17230,7 @@ def tinstant_time(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata def tinstant_timestamps( - inst: Annotated[cdata, "const TInstant *"], count: Annotated[cdata, "int *"] + inst: Annotated[_ffi.CData, "const TInstant *"], count: Annotated[_ffi.CData, "int *"] ) -> Annotated[int, "TimestampTz *"]: inst_converted = _ffi.cast("const TInstant *", inst) count_converted = _ffi.cast("int *", count) @@ -16929,21 +17239,23 @@ def tinstant_timestamps( return result if result != _ffi.NULL else None -def tinstant_value_p(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "Datum"]: +def tinstant_value_p(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[_ffi.CData, "Datum"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_value_p(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "Datum"]: +def tinstant_value(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[_ffi.CData, "Datum"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_value(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tinstant_value_at_timestamptz(inst: Annotated[cdata, "const TInstant *"], t: int) -> Annotated[cdata, "Datum *"]: +def tinstant_value_at_timestamptz( + inst: Annotated[_ffi.CData, "const TInstant *"], t: int +) -> Annotated[_ffi.CData, "Datum *"]: inst_converted = _ffi.cast("const TInstant *", inst) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") @@ -16955,8 +17267,8 @@ def tinstant_value_at_timestamptz(inst: Annotated[cdata, "const TInstant *"], t: def tinstant_values_p( - inst: Annotated[cdata, "const TInstant *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Datum *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Datum *"]: inst_converted = _ffi.cast("const TInstant *", inst) count_converted = _ffi.cast("int *", count) result = _lib.tinstant_values_p(inst_converted, count_converted) @@ -16965,7 +17277,7 @@ def tinstant_values_p( def tnumber_set_span( - temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "Span *"] + temp: Annotated[_ffi.CData, "const Temporal *"], span: Annotated[_ffi.CData, "Span *"] ) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("Span *", span) @@ -16973,77 +17285,77 @@ def tnumber_set_span( _check_error() -def tnumberinst_valuespans(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "SpanSet *"]: +def tnumberinst_valuespans(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[_ffi.CData, "SpanSet *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tnumberinst_valuespans(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_valuespans(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "SpanSet *"]: +def tnumberseq_valuespans(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "SpanSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_valuespans(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_valuespans(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "SpanSet *"]: +def tnumberseqset_valuespans(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_valuespans(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_duration(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "Interval *"]: +def tsequence_duration(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "Interval *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_duration(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_end_timestamptz(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[int, "TimestampTz"]: +def tsequence_end_timestamptz(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[int, "TimestampTz"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_end_timestamptz(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_hash(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[int, "uint32"]: +def tsequence_hash(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[int, "uint32"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_hash(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_insts_p(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "const TInstant **"]: +def tsequence_insts_p(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "const TInstant **"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_insts_p(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_inst(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "const TInstant *"]: +def tsequence_max_inst(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "const TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_max_inst(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_max_val(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "Datum"]: +def tsequence_max_val(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "Datum"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_max_val(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_min_inst(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "const TInstant *"]: +def tsequence_min_inst(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "const TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_min_inst(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_min_val(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "Datum"]: +def tsequence_min_val(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "Datum"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_min_val(seq_converted) _check_error() @@ -17051,8 +17363,8 @@ def tsequence_min_val(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[c def tsequence_segments( - seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TSequence **"]: + seq: Annotated[_ffi.CData, "const TSequence *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TSequence **"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) result = _lib.tsequence_segments(seq_converted, count_converted) @@ -17061,8 +17373,8 @@ def tsequence_segments( def tsequence_seqs( - seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "const TSequence **"]: + seq: Annotated[_ffi.CData, "const TSequence *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "const TSequence **"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) result = _lib.tsequence_seqs(seq_converted, count_converted) @@ -17070,14 +17382,14 @@ def tsequence_seqs( return result if result != _ffi.NULL else None -def tsequence_start_timestamptz(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[int, "TimestampTz"]: +def tsequence_start_timestamptz(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[int, "TimestampTz"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_start_timestamptz(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_time(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "SpanSet *"]: +def tsequence_time(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "SpanSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_time(seq_converted) _check_error() @@ -17085,7 +17397,7 @@ def tsequence_time(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdat def tsequence_timestamps( - seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] + seq: Annotated[_ffi.CData, "const TSequence *"], count: Annotated[_ffi.CData, "int *"] ) -> Annotated[int, "TimestampTz *"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) @@ -17095,8 +17407,8 @@ def tsequence_timestamps( def tsequence_value_at_timestamptz( - seq: Annotated[cdata, "const TSequence *"], t: int, strict: bool -) -> Annotated[cdata, "Datum *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], t: int, strict: bool +) -> Annotated[_ffi.CData, "Datum *"]: seq_converted = _ffi.cast("const TSequence *", seq) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") @@ -17108,8 +17420,8 @@ def tsequence_value_at_timestamptz( def tsequence_values_p( - seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Datum *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Datum *"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) result = _lib.tsequence_values_p(seq_converted, count_converted) @@ -17118,78 +17430,86 @@ def tsequence_values_p( def tsequenceset_duration( - ss: Annotated[cdata, "const TSequenceSet *"], boundspan: bool -) -> Annotated[cdata, "Interval *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], boundspan: bool +) -> Annotated[_ffi.CData, "Interval *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_duration(ss_converted, boundspan) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_end_timestamptz(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "TimestampTz"]: +def tsequenceset_end_timestamptz(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_end_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_hash(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "uint32"]: +def tsequenceset_hash(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[int, "uint32"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_hash(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_inst_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) -> Annotated[cdata, "const TInstant *"]: +def tsequenceset_inst_n( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], n: int +) -> Annotated[_ffi.CData, "const TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_inst_n(ss_converted, n) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_insts_p(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TInstant **"]: +def tsequenceset_insts_p( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "const TInstant **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_insts_p(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_inst(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TInstant *"]: +def tsequenceset_max_inst( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "const TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_max_inst(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_max_val(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "Datum"]: +def tsequenceset_max_val(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_max_val(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_min_inst(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TInstant *"]: +def tsequenceset_min_inst( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "const TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_min_inst(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_min_val(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "Datum"]: +def tsequenceset_min_val(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "Datum"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_min_val(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_instants(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "int"]: +def tsequenceset_num_instants(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_num_instants(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_num_timestamps(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "int"]: +def tsequenceset_num_timestamps(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[int, "int"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_num_timestamps(ss_converted) _check_error() @@ -17197,8 +17517,8 @@ def tsequenceset_num_timestamps(ss: Annotated[cdata, "const TSequenceSet *"]) -> def tsequenceset_segments( - ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TSequence **"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TSequence **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.tsequenceset_segments(ss_converted, count_converted) @@ -17206,28 +17526,30 @@ def tsequenceset_segments( return result if result != _ffi.NULL else None -def tsequenceset_sequences_p(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "const TSequence **"]: +def tsequenceset_sequences_p( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "const TSequence **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_sequences_p(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_start_timestamptz(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[int, "TimestampTz"]: +def tsequenceset_start_timestamptz(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[int, "TimestampTz"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_start_timestamptz(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_time(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "SpanSet *"]: +def tsequenceset_time(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "SpanSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_time(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_timestamptz_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) -> int: +def tsequenceset_timestamptz_n(ss: Annotated[_ffi.CData, "const TSequenceSet *"], n: int) -> int: ss_converted = _ffi.cast("const TSequenceSet *", ss) out_result = _ffi.new("TimestampTz *") result = _lib.tsequenceset_timestamptz_n(ss_converted, n, out_result) @@ -17238,7 +17560,7 @@ def tsequenceset_timestamptz_n(ss: Annotated[cdata, "const TSequenceSet *"], n: def tsequenceset_timestamps( - ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] + ss: Annotated[_ffi.CData, "const TSequenceSet *"], count: Annotated[_ffi.CData, "int *"] ) -> Annotated[int, "TimestampTz *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) count_converted = _ffi.cast("int *", count) @@ -17248,8 +17570,8 @@ def tsequenceset_timestamps( def tsequenceset_value_at_timestamptz( - ss: Annotated[cdata, "const TSequenceSet *"], t: int, strict: bool -) -> Annotated[cdata, "Datum *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], t: int, strict: bool +) -> Annotated[_ffi.CData, "Datum *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") @@ -17260,7 +17582,7 @@ def tsequenceset_value_at_timestamptz( return None -def tsequenceset_value_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) -> Annotated[cdata, "Datum *"]: +def tsequenceset_value_n(ss: Annotated[_ffi.CData, "const TSequenceSet *"], n: int) -> Annotated[_ffi.CData, "Datum *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) out_result = _ffi.new("Datum *") result = _lib.tsequenceset_value_n(ss_converted, n, out_result) @@ -17271,8 +17593,8 @@ def tsequenceset_value_n(ss: Annotated[cdata, "const TSequenceSet *"], n: int) - def tsequenceset_values_p( - ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Datum *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Datum *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.tsequenceset_values_p(ss_converted, count_converted) @@ -17280,15 +17602,15 @@ def tsequenceset_values_p( return result if result != _ffi.NULL else None -def temporal_restart(temp: Annotated[cdata, "Temporal *"], count: int) -> Annotated[None, "void"]: +def temporal_restart(temp: Annotated[_ffi.CData, "Temporal *"], count: int) -> Annotated[None, "void"]: temp_converted = _ffi.cast("Temporal *", temp) _lib.temporal_restart(temp_converted, count) _check_error() def temporal_tsequence( - temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequence *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tsequence(temp_converted, interp) _check_error() @@ -17296,8 +17618,8 @@ def temporal_tsequence( def temporal_tsequenceset( - temp: Annotated[cdata, "const Temporal *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequenceSet *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_tsequenceset(temp_converted, interp) _check_error() @@ -17305,8 +17627,8 @@ def temporal_tsequenceset( def tinstant_shift_time( - inst: Annotated[cdata, "const TInstant *"], interv: Annotated[cdata, "const Interval *"] -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], interv: Annotated[_ffi.CData, "const Interval *"] +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) interv_converted = _ffi.cast("const Interval *", interv) result = _lib.tinstant_shift_time(inst_converted, interv_converted) @@ -17315,8 +17637,8 @@ def tinstant_shift_time( def tinstant_to_tsequence( - inst: Annotated[cdata, "const TInstant *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequence *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_to_tsequence(inst_converted, interp) _check_error() @@ -17324,8 +17646,8 @@ def tinstant_to_tsequence( def tinstant_to_tsequence_free( - inst: Annotated[cdata, "TInstant *"], interp: InterpolationType -) -> Annotated[cdata, "TSequence *"]: + inst: Annotated[_ffi.CData, "TInstant *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequence *"]: inst_converted = _ffi.cast("TInstant *", inst) result = _lib.tinstant_to_tsequence_free(inst_converted, interp) _check_error() @@ -17333,8 +17655,8 @@ def tinstant_to_tsequence_free( def tinstant_to_tsequenceset( - inst: Annotated[cdata, "const TInstant *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequenceSet *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tinstant_to_tsequenceset(inst_converted, interp) _check_error() @@ -17342,12 +17664,12 @@ def tinstant_to_tsequenceset( def tnumber_shift_scale_value( - temp: Annotated[cdata, "const Temporal *"], - shift: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + temp: Annotated[_ffi.CData, "const Temporal *"], + shift: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) @@ -17357,8 +17679,8 @@ def tnumber_shift_scale_value( def tnumberinst_shift_value( - inst: Annotated[cdata, "const TInstant *"], shift: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], shift: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) shift_converted = _ffi.cast("Datum", shift) result = _lib.tnumberinst_shift_value(inst_converted, shift_converted) @@ -17367,12 +17689,12 @@ def tnumberinst_shift_value( def tnumberseq_shift_scale_value( - seq: Annotated[cdata, "const TSequence *"], - shift: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + seq: Annotated[_ffi.CData, "const TSequence *"], + shift: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "TSequence *"]: +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) shift_converted = _ffi.cast("Datum", shift) width_converted = _ffi.cast("Datum", width) @@ -17382,12 +17704,12 @@ def tnumberseq_shift_scale_value( def tnumberseqset_shift_scale_value( - ss: Annotated[cdata, "const TSequenceSet *"], - start: Annotated[cdata, "Datum"], - width: Annotated[cdata, "Datum"], + ss: Annotated[_ffi.CData, "const TSequenceSet *"], + start: Annotated[_ffi.CData, "Datum"], + width: Annotated[_ffi.CData, "Datum"], hasshift: bool, haswidth: bool, -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) start_converted = _ffi.cast("Datum", start) width_converted = _ffi.cast("Datum", width) @@ -17396,15 +17718,15 @@ def tnumberseqset_shift_scale_value( return result if result != _ffi.NULL else None -def tsequence_restart(seq: Annotated[cdata, "TSequence *"], count: int) -> Annotated[None, "void"]: +def tsequence_restart(seq: Annotated[_ffi.CData, "TSequence *"], count: int) -> Annotated[None, "void"]: seq_converted = _ffi.cast("TSequence *", seq) _lib.tsequence_restart(seq_converted, count) _check_error() def tsequence_set_interp( - seq: Annotated[cdata, "const TSequence *"], interp: InterpolationType -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_set_interp(seq_converted, interp) _check_error() @@ -17412,10 +17734,10 @@ def tsequence_set_interp( def tsequence_shift_scale_time( - seq: Annotated[cdata, "const TSequence *"], - shift: Annotated[cdata, "const Interval *"], - duration: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "TSequence *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], + shift: Annotated[_ffi.CData, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) shift_converted = _ffi.cast("const Interval *", shift) duration_converted = _ffi.cast("const Interval *", duration) @@ -17425,29 +17747,33 @@ def tsequence_shift_scale_time( def tsequence_subseq( - seq: Annotated[cdata, "const TSequence *"], from_: int, to: int, lower_inc: bool, upper_inc: bool -) -> Annotated[cdata, "TSequence *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], from_: int, to: int, lower_inc: bool, upper_inc: bool +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_subseq(seq_converted, from_, to, lower_inc, upper_inc) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tinstant(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TInstant *"]: +def tsequence_to_tinstant(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tinstant(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tsequence_to_tsequenceset( + seq: Annotated[_ffi.CData, "const TSequence *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tsequenceset(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_to_tsequenceset_free(seq: Annotated[cdata, "TSequence *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tsequence_to_tsequenceset_free( + seq: Annotated[_ffi.CData, "TSequence *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: seq_converted = _ffi.cast("TSequence *", seq) result = _lib.tsequence_to_tsequenceset_free(seq_converted) _check_error() @@ -17455,23 +17781,23 @@ def tsequence_to_tsequenceset_free(seq: Annotated[cdata, "TSequence *"]) -> Anno def tsequence_to_tsequenceset_interp( - seq: Annotated[cdata, "const TSequence *"], interp: InterpolationType -) -> Annotated[cdata, "TSequenceSet *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_to_tsequenceset_interp(seq_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_restart(ss: Annotated[cdata, "TSequenceSet *"], count: int) -> Annotated[None, "void"]: +def tsequenceset_restart(ss: Annotated[_ffi.CData, "TSequenceSet *"], count: int) -> Annotated[None, "void"]: ss_converted = _ffi.cast("TSequenceSet *", ss) _lib.tsequenceset_restart(ss_converted, count) _check_error() def tsequenceset_set_interp( - ss: Annotated[cdata, "const TSequenceSet *"], interp: InterpolationType -) -> Annotated[cdata, "Temporal *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], interp: InterpolationType +) -> Annotated[_ffi.CData, "Temporal *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_set_interp(ss_converted, interp) _check_error() @@ -17479,10 +17805,10 @@ def tsequenceset_set_interp( def tsequenceset_shift_scale_time( - ss: Annotated[cdata, "const TSequenceSet *"], - start: Annotated[cdata, "const Interval *"], - duration: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], + start: Annotated[_ffi.CData, "const Interval *"], + duration: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) start_converted = _ffi.cast("const Interval *", start) duration_converted = _ffi.cast("const Interval *", duration) @@ -17491,35 +17817,39 @@ def tsequenceset_shift_scale_time( return result if result != _ffi.NULL else None -def tsequenceset_to_discrete(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequence *"]: +def tsequenceset_to_discrete(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TSequence *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_discrete(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_linear(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tsequenceset_to_linear( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_linear(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_step(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tsequenceset_to_step(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_step(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tinstant(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TInstant *"]: +def tsequenceset_to_tinstant(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TInstant *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_tinstant(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_to_tsequence(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequence *"]: +def tsequenceset_to_tsequence( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "TSequence *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_to_tsequence(ss_converted) _check_error() @@ -17527,8 +17857,8 @@ def tsequenceset_to_tsequence(ss: Annotated[cdata, "const TSequenceSet *"]) -> A def tinstant_merge( - inst1: Annotated[cdata, "const TInstant *"], inst2: Annotated[cdata, "const TInstant *"] -) -> Annotated[cdata, "Temporal *"]: + inst1: Annotated[_ffi.CData, "const TInstant *"], inst2: Annotated[_ffi.CData, "const TInstant *"] +) -> Annotated[_ffi.CData, "Temporal *"]: inst1_converted = _ffi.cast("const TInstant *", inst1) inst2_converted = _ffi.cast("const TInstant *", inst2) result = _lib.tinstant_merge(inst1_converted, inst2_converted) @@ -17536,7 +17866,9 @@ def tinstant_merge( return result if result != _ffi.NULL else None -def tinstant_merge_array(instants: Annotated[list, "const TInstant **"], count: int) -> Annotated[cdata, "Temporal *"]: +def tinstant_merge_array( + instants: Annotated[list, "const TInstant **"], count: int +) -> Annotated[_ffi.CData, "Temporal *"]: instants_converted = [_ffi.cast("const TInstant *", x) for x in instants] result = _lib.tinstant_merge_array(instants_converted, count) _check_error() @@ -17544,12 +17876,12 @@ def tinstant_merge_array(instants: Annotated[list, "const TInstant **"], count: def tsequence_append_tinstant( - seq: Annotated[cdata, "TSequence *"], - inst: Annotated[cdata, "const TInstant *"], + seq: Annotated[_ffi.CData, "TSequence *"], + inst: Annotated[_ffi.CData, "const TInstant *"], maxdist: float, - maxt: Annotated[cdata, "const Interval *"], + maxt: Annotated[_ffi.CData, "const Interval *"], expand: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("TSequence *", seq) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) @@ -17559,8 +17891,8 @@ def tsequence_append_tinstant( def tsequence_append_tsequence( - seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"], expand: bool -) -> Annotated[cdata, "Temporal *"]: + seq1: Annotated[_ffi.CData, "const TSequence *"], seq2: Annotated[_ffi.CData, "const TSequence *"], expand: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_append_tsequence(seq1_converted, seq2_converted, expand) @@ -17569,8 +17901,8 @@ def tsequence_append_tsequence( def tsequence_delete_timestamptz( - seq: Annotated[cdata, "const TSequence *"], t: int, connect: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], t: int, connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequence_delete_timestamptz(seq_converted, t_converted, connect) @@ -17579,8 +17911,8 @@ def tsequence_delete_timestamptz( def tsequence_delete_tstzset( - seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "const Set *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], s: Annotated[_ffi.CData, "const Set *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequence_delete_tstzset(seq_converted, s_converted, connect) @@ -17589,8 +17921,8 @@ def tsequence_delete_tstzset( def tsequence_delete_tstzspan( - seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "const Span *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], s: Annotated[_ffi.CData, "const Span *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequence_delete_tstzspan(seq_converted, s_converted, connect) @@ -17599,8 +17931,8 @@ def tsequence_delete_tstzspan( def tsequence_delete_tstzspanset( - seq: Annotated[cdata, "const TSequence *"], ss: Annotated[cdata, "const SpanSet *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], ss: Annotated[_ffi.CData, "const SpanSet *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tsequence_delete_tstzspanset(seq_converted, ss_converted, connect) @@ -17609,8 +17941,8 @@ def tsequence_delete_tstzspanset( def tsequence_insert( - seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"], connect: bool -) -> Annotated[cdata, "Temporal *"]: + seq1: Annotated[_ffi.CData, "const TSequence *"], seq2: Annotated[_ffi.CData, "const TSequence *"], connect: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_insert(seq1_converted, seq2_converted, connect) @@ -17619,8 +17951,8 @@ def tsequence_insert( def tsequence_merge( - seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"] -) -> Annotated[cdata, "Temporal *"]: + seq1: Annotated[_ffi.CData, "const TSequence *"], seq2: Annotated[_ffi.CData, "const TSequence *"] +) -> Annotated[_ffi.CData, "Temporal *"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) result = _lib.tsequence_merge(seq1_converted, seq2_converted) @@ -17630,7 +17962,7 @@ def tsequence_merge( def tsequence_merge_array( sequences: Annotated[list, "const TSequence **"], count: int -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: sequences_converted = [_ffi.cast("const TSequence *", x) for x in sequences] result = _lib.tsequence_merge_array(sequences_converted, count) _check_error() @@ -17638,12 +17970,12 @@ def tsequence_merge_array( def tsequenceset_append_tinstant( - ss: Annotated[cdata, "TSequenceSet *"], - inst: Annotated[cdata, "const TInstant *"], + ss: Annotated[_ffi.CData, "TSequenceSet *"], + inst: Annotated[_ffi.CData, "const TInstant *"], maxdist: float, - maxt: Annotated[cdata, "const Interval *"], + maxt: Annotated[_ffi.CData, "const Interval *"], expand: bool, -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("TSequenceSet *", ss) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) @@ -17653,8 +17985,8 @@ def tsequenceset_append_tinstant( def tsequenceset_append_tsequence( - ss: Annotated[cdata, "TSequenceSet *"], seq: Annotated[cdata, "const TSequence *"], expand: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "TSequenceSet *"], seq: Annotated[_ffi.CData, "const TSequence *"], expand: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("TSequenceSet *", ss) seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequenceset_append_tsequence(ss_converted, seq_converted, expand) @@ -17663,8 +17995,8 @@ def tsequenceset_append_tsequence( def tsequenceset_delete_timestamptz( - ss: Annotated[cdata, "const TSequenceSet *"], t: int -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], t: int +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequenceset_delete_timestamptz(ss_converted, t_converted) @@ -17673,8 +18005,8 @@ def tsequenceset_delete_timestamptz( def tsequenceset_delete_tstzset( - ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_delete_tstzset(ss_converted, s_converted) @@ -17683,8 +18015,8 @@ def tsequenceset_delete_tstzset( def tsequenceset_delete_tstzspan( - ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequenceset_delete_tstzspan(ss_converted, s_converted) @@ -17693,8 +18025,8 @@ def tsequenceset_delete_tstzspan( def tsequenceset_delete_tstzspanset( - ss: Annotated[cdata, "const TSequenceSet *"], ps: Annotated[cdata, "const SpanSet *"] -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], ps: Annotated[_ffi.CData, "const SpanSet *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) ps_converted = _ffi.cast("const SpanSet *", ps) result = _lib.tsequenceset_delete_tstzspanset(ss_converted, ps_converted) @@ -17703,8 +18035,8 @@ def tsequenceset_delete_tstzspanset( def tsequenceset_insert( - ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] -) -> Annotated[cdata, "TSequenceSet *"]: + ss1: Annotated[_ffi.CData, "const TSequenceSet *"], ss2: Annotated[_ffi.CData, "const TSequenceSet *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_insert(ss1_converted, ss2_converted) @@ -17713,8 +18045,8 @@ def tsequenceset_insert( def tsequenceset_merge( - ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] -) -> Annotated[cdata, "TSequenceSet *"]: + ss1: Annotated[_ffi.CData, "const TSequenceSet *"], ss2: Annotated[_ffi.CData, "const TSequenceSet *"] +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) result = _lib.tsequenceset_merge(ss1_converted, ss2_converted) @@ -17724,7 +18056,7 @@ def tsequenceset_merge( def tsequenceset_merge_array( seqsets: Annotated[list, "const TSequenceSet **"], count: int -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: seqsets_converted = [_ffi.cast("const TSequenceSet *", x) for x in seqsets] result = _lib.tsequenceset_merge_array(seqsets_converted, count) _check_error() @@ -17732,7 +18064,7 @@ def tsequenceset_merge_array( def tsequence_expand_bbox( - seq: Annotated[cdata, "TSequence *"], inst: Annotated[cdata, "const TInstant *"] + seq: Annotated[_ffi.CData, "TSequence *"], inst: Annotated[_ffi.CData, "const TInstant *"] ) -> Annotated[None, "void"]: seq_converted = _ffi.cast("TSequence *", seq) inst_converted = _ffi.cast("const TInstant *", inst) @@ -17741,7 +18073,7 @@ def tsequence_expand_bbox( def tsequence_set_bbox( - seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "void *"] + seq: Annotated[_ffi.CData, "const TSequence *"], box: Annotated[_ffi.CData, "void *"] ) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("void *", box) @@ -17750,7 +18082,7 @@ def tsequence_set_bbox( def tsequenceset_expand_bbox( - ss: Annotated[cdata, "TSequenceSet *"], seq: Annotated[cdata, "const TSequence *"] + ss: Annotated[_ffi.CData, "TSequenceSet *"], seq: Annotated[_ffi.CData, "const TSequence *"] ) -> Annotated[None, "void"]: ss_converted = _ffi.cast("TSequenceSet *", ss) seq_converted = _ffi.cast("const TSequence *", seq) @@ -17759,7 +18091,7 @@ def tsequenceset_expand_bbox( def tsequenceset_set_bbox( - ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "void *"] + ss: Annotated[_ffi.CData, "const TSequenceSet *"], box: Annotated[_ffi.CData, "void *"] ) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("void *", box) @@ -17768,8 +18100,8 @@ def tsequenceset_set_bbox( def tdiscseq_restrict_minmax( - seq: Annotated[cdata, "const TSequence *"], min: bool, atfunc: bool -) -> Annotated[cdata, "TSequence *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], min: bool, atfunc: bool +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tdiscseq_restrict_minmax(seq_converted, min, atfunc) _check_error() @@ -17777,8 +18109,8 @@ def tdiscseq_restrict_minmax( def tcontseq_restrict_minmax( - seq: Annotated[cdata, "const TSequence *"], min: bool, atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], min: bool, atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tcontseq_restrict_minmax(seq_converted, min, atfunc) _check_error() @@ -17786,7 +18118,7 @@ def tcontseq_restrict_minmax( def temporal_bbox_restrict_set( - temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"] + temp: Annotated[_ffi.CData, "const Temporal *"], set: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) @@ -17796,8 +18128,8 @@ def temporal_bbox_restrict_set( def temporal_restrict_minmax( - temp: Annotated[cdata, "const Temporal *"], min: bool, atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], min: bool, atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_restrict_minmax(temp_converted, min, atfunc) _check_error() @@ -17805,8 +18137,8 @@ def temporal_restrict_minmax( def temporal_restrict_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) result = _lib.temporal_restrict_timestamptz(temp_converted, t_converted, atfunc) @@ -17815,8 +18147,8 @@ def temporal_restrict_timestamptz( def temporal_restrict_tstzset( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Set *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.temporal_restrict_tstzset(temp_converted, s_converted, atfunc) @@ -17825,8 +18157,8 @@ def temporal_restrict_tstzset( def temporal_restrict_tstzspan( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Span *", s) result = _lib.temporal_restrict_tstzspan(temp_converted, s_converted, atfunc) @@ -17835,8 +18167,8 @@ def temporal_restrict_tstzspan( def temporal_restrict_tstzspanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.temporal_restrict_tstzspanset(temp_converted, ss_converted, atfunc) @@ -17845,8 +18177,8 @@ def temporal_restrict_tstzspanset( def temporal_restrict_value( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.temporal_restrict_value(temp_converted, value_converted, atfunc) @@ -17855,8 +18187,8 @@ def temporal_restrict_value( def temporal_restrict_values( - temp: Annotated[cdata, "const Temporal *"], set: Annotated[cdata, "const Set *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], set: Annotated[_ffi.CData, "const Set *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) set_converted = _ffi.cast("const Set *", set) result = _lib.temporal_restrict_values(temp_converted, set_converted, atfunc) @@ -17865,8 +18197,8 @@ def temporal_restrict_values( def temporal_value_at_timestamptz( - temp: Annotated[cdata, "const Temporal *"], t: int, strict: bool -) -> Annotated[cdata, "Datum *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], t: int, strict: bool +) -> Annotated[_ffi.CData, "Datum *"]: temp_converted = _ffi.cast("const Temporal *", temp) t_converted = _ffi.cast("TimestampTz", t) out_result = _ffi.new("Datum *") @@ -17878,8 +18210,8 @@ def temporal_value_at_timestamptz( def tinstant_restrict_tstzspan( - inst: Annotated[cdata, "const TInstant *"], period: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], period: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) period_converted = _ffi.cast("const Span *", period) result = _lib.tinstant_restrict_tstzspan(inst_converted, period_converted, atfunc) @@ -17888,8 +18220,8 @@ def tinstant_restrict_tstzspan( def tinstant_restrict_tstzspanset( - inst: Annotated[cdata, "const TInstant *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], ss: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tinstant_restrict_tstzspanset(inst_converted, ss_converted, atfunc) @@ -17898,8 +18230,8 @@ def tinstant_restrict_tstzspanset( def tinstant_restrict_timestamptz( - inst: Annotated[cdata, "const TInstant *"], t: int, atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], t: int, atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tinstant_restrict_timestamptz(inst_converted, t_converted, atfunc) @@ -17908,8 +18240,8 @@ def tinstant_restrict_timestamptz( def tinstant_restrict_tstzset( - inst: Annotated[cdata, "const TInstant *"], s: Annotated[cdata, "const Set *"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], s: Annotated[_ffi.CData, "const Set *"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) s_converted = _ffi.cast("const Set *", s) result = _lib.tinstant_restrict_tstzset(inst_converted, s_converted, atfunc) @@ -17918,8 +18250,8 @@ def tinstant_restrict_tstzset( def tinstant_restrict_value( - inst: Annotated[cdata, "const TInstant *"], value: Annotated[cdata, "Datum"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], value: Annotated[_ffi.CData, "Datum"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) value_converted = _ffi.cast("Datum", value) result = _lib.tinstant_restrict_value(inst_converted, value_converted, atfunc) @@ -17928,8 +18260,8 @@ def tinstant_restrict_value( def tinstant_restrict_values( - inst: Annotated[cdata, "const TInstant *"], set: Annotated[cdata, "const Set *"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], set: Annotated[_ffi.CData, "const Set *"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) set_converted = _ffi.cast("const Set *", set) result = _lib.tinstant_restrict_values(inst_converted, set_converted, atfunc) @@ -17938,8 +18270,8 @@ def tinstant_restrict_values( def tnumber_restrict_span( - temp: Annotated[cdata, "const Temporal *"], span: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], span: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumber_restrict_span(temp_converted, span_converted, atfunc) @@ -17948,8 +18280,8 @@ def tnumber_restrict_span( def tnumber_restrict_spanset( - temp: Annotated[cdata, "const Temporal *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], ss: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumber_restrict_spanset(temp_converted, ss_converted, atfunc) @@ -17958,8 +18290,8 @@ def tnumber_restrict_spanset( def tnumberinst_restrict_span( - inst: Annotated[cdata, "const TInstant *"], span: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], span: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumberinst_restrict_span(inst_converted, span_converted, atfunc) @@ -17968,8 +18300,8 @@ def tnumberinst_restrict_span( def tnumberinst_restrict_spanset( - inst: Annotated[cdata, "const TInstant *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], ss: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tnumberinst_restrict_spanset(inst_converted, ss_converted, atfunc) @@ -17978,8 +18310,8 @@ def tnumberinst_restrict_spanset( def tnumberseqset_restrict_span( - ss: Annotated[cdata, "const TSequenceSet *"], span: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], span: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) span_converted = _ffi.cast("const Span *", span) result = _lib.tnumberseqset_restrict_span(ss_converted, span_converted, atfunc) @@ -17988,8 +18320,8 @@ def tnumberseqset_restrict_span( def tnumberseqset_restrict_spanset( - ss: Annotated[cdata, "const TSequenceSet *"], spanset: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], spanset: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) spanset_converted = _ffi.cast("const SpanSet *", spanset) result = _lib.tnumberseqset_restrict_spanset(ss_converted, spanset_converted, atfunc) @@ -17997,7 +18329,9 @@ def tnumberseqset_restrict_spanset( return result if result != _ffi.NULL else None -def tsequence_at_timestamptz(seq: Annotated[cdata, "const TSequence *"], t: int) -> Annotated[cdata, "TInstant *"]: +def tsequence_at_timestamptz( + seq: Annotated[_ffi.CData, "const TSequence *"], t: int +) -> Annotated[_ffi.CData, "TInstant *"]: seq_converted = _ffi.cast("const TSequence *", seq) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequence_at_timestamptz(seq_converted, t_converted) @@ -18006,8 +18340,8 @@ def tsequence_at_timestamptz(seq: Annotated[cdata, "const TSequence *"], t: int) def tsequence_restrict_tstzspan( - seq: Annotated[cdata, "const TSequence *"], s: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], s: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequence_restrict_tstzspan(seq_converted, s_converted, atfunc) @@ -18016,8 +18350,8 @@ def tsequence_restrict_tstzspan( def tsequence_restrict_tstzspanset( - seq: Annotated[cdata, "const TSequence *"], ss: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], ss: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) ss_converted = _ffi.cast("const SpanSet *", ss) result = _lib.tsequence_restrict_tstzspanset(seq_converted, ss_converted, atfunc) @@ -18026,8 +18360,8 @@ def tsequence_restrict_tstzspanset( def tsequenceset_restrict_minmax( - ss: Annotated[cdata, "const TSequenceSet *"], min: bool, atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], min: bool, atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_restrict_minmax(ss_converted, min, atfunc) _check_error() @@ -18035,8 +18369,8 @@ def tsequenceset_restrict_minmax( def tsequenceset_restrict_tstzspan( - ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Span *"], atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], s: Annotated[_ffi.CData, "const Span *"], atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Span *", s) result = _lib.tsequenceset_restrict_tstzspan(ss_converted, s_converted, atfunc) @@ -18045,8 +18379,8 @@ def tsequenceset_restrict_tstzspan( def tsequenceset_restrict_tstzspanset( - ss: Annotated[cdata, "const TSequenceSet *"], ps: Annotated[cdata, "const SpanSet *"], atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], ps: Annotated[_ffi.CData, "const SpanSet *"], atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) ps_converted = _ffi.cast("const SpanSet *", ps) result = _lib.tsequenceset_restrict_tstzspanset(ss_converted, ps_converted, atfunc) @@ -18055,8 +18389,8 @@ def tsequenceset_restrict_tstzspanset( def tsequenceset_restrict_timestamptz( - ss: Annotated[cdata, "const TSequenceSet *"], t: int, atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], t: int, atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tsequenceset_restrict_timestamptz(ss_converted, t_converted, atfunc) @@ -18065,8 +18399,8 @@ def tsequenceset_restrict_timestamptz( def tsequenceset_restrict_tstzset( - ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Set *"], atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], s: Annotated[_ffi.CData, "const Set *"], atfunc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_restrict_tstzset(ss_converted, s_converted, atfunc) @@ -18075,8 +18409,8 @@ def tsequenceset_restrict_tstzset( def tsequenceset_restrict_value( - ss: Annotated[cdata, "const TSequenceSet *"], value: Annotated[cdata, "Datum"], atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], value: Annotated[_ffi.CData, "Datum"], atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) value_converted = _ffi.cast("Datum", value) result = _lib.tsequenceset_restrict_value(ss_converted, value_converted, atfunc) @@ -18085,8 +18419,8 @@ def tsequenceset_restrict_value( def tsequenceset_restrict_values( - ss: Annotated[cdata, "const TSequenceSet *"], s: Annotated[cdata, "const Set *"], atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], s: Annotated[_ffi.CData, "const Set *"], atfunc: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) s_converted = _ffi.cast("const Set *", s) result = _lib.tsequenceset_restrict_values(ss_converted, s_converted, atfunc) @@ -18095,7 +18429,7 @@ def tsequenceset_restrict_values( def tinstant_cmp( - inst1: Annotated[cdata, "const TInstant *"], inst2: Annotated[cdata, "const TInstant *"] + inst1: Annotated[_ffi.CData, "const TInstant *"], inst2: Annotated[_ffi.CData, "const TInstant *"] ) -> Annotated[int, "int"]: inst1_converted = _ffi.cast("const TInstant *", inst1) inst2_converted = _ffi.cast("const TInstant *", inst2) @@ -18105,7 +18439,7 @@ def tinstant_cmp( def tinstant_eq( - inst1: Annotated[cdata, "const TInstant *"], inst2: Annotated[cdata, "const TInstant *"] + inst1: Annotated[_ffi.CData, "const TInstant *"], inst2: Annotated[_ffi.CData, "const TInstant *"] ) -> Annotated[bool, "bool"]: inst1_converted = _ffi.cast("const TInstant *", inst1) inst2_converted = _ffi.cast("const TInstant *", inst2) @@ -18115,7 +18449,7 @@ def tinstant_eq( def tsequence_cmp( - seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"] + seq1: Annotated[_ffi.CData, "const TSequence *"], seq2: Annotated[_ffi.CData, "const TSequence *"] ) -> Annotated[int, "int"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) @@ -18125,7 +18459,7 @@ def tsequence_cmp( def tsequence_eq( - seq1: Annotated[cdata, "const TSequence *"], seq2: Annotated[cdata, "const TSequence *"] + seq1: Annotated[_ffi.CData, "const TSequence *"], seq2: Annotated[_ffi.CData, "const TSequence *"] ) -> Annotated[bool, "bool"]: seq1_converted = _ffi.cast("const TSequence *", seq1) seq2_converted = _ffi.cast("const TSequence *", seq2) @@ -18135,7 +18469,7 @@ def tsequence_eq( def tsequenceset_cmp( - ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] + ss1: Annotated[_ffi.CData, "const TSequenceSet *"], ss2: Annotated[_ffi.CData, "const TSequenceSet *"] ) -> Annotated[int, "int"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) @@ -18145,7 +18479,7 @@ def tsequenceset_cmp( def tsequenceset_eq( - ss1: Annotated[cdata, "const TSequenceSet *"], ss2: Annotated[cdata, "const TSequenceSet *"] + ss1: Annotated[_ffi.CData, "const TSequenceSet *"], ss2: Annotated[_ffi.CData, "const TSequenceSet *"] ) -> Annotated[bool, "bool"]: ss1_converted = _ffi.cast("const TSequenceSet *", ss1) ss2_converted = _ffi.cast("const TSequenceSet *", ss2) @@ -18155,7 +18489,7 @@ def tsequenceset_eq( def always_eq_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18165,7 +18499,7 @@ def always_eq_base_temporal( def always_eq_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18175,7 +18509,7 @@ def always_eq_temporal_base( def always_ne_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18185,7 +18519,7 @@ def always_ne_base_temporal( def always_ne_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18195,7 +18529,7 @@ def always_ne_temporal_base( def always_ge_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18205,7 +18539,7 @@ def always_ge_base_temporal( def always_ge_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18215,7 +18549,7 @@ def always_ge_temporal_base( def always_gt_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18225,7 +18559,7 @@ def always_gt_base_temporal( def always_gt_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18235,7 +18569,7 @@ def always_gt_temporal_base( def always_le_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18245,7 +18579,7 @@ def always_le_base_temporal( def always_le_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18255,7 +18589,7 @@ def always_le_temporal_base( def always_lt_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18265,7 +18599,7 @@ def always_lt_base_temporal( def always_lt_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18275,7 +18609,7 @@ def always_lt_temporal_base( def ever_eq_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18285,7 +18619,7 @@ def ever_eq_base_temporal( def ever_eq_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18295,7 +18629,7 @@ def ever_eq_temporal_base( def ever_ne_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18305,7 +18639,7 @@ def ever_ne_base_temporal( def ever_ne_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18315,7 +18649,7 @@ def ever_ne_temporal_base( def ever_ge_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18325,7 +18659,7 @@ def ever_ge_base_temporal( def ever_ge_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18335,7 +18669,7 @@ def ever_ge_temporal_base( def ever_gt_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18345,7 +18679,7 @@ def ever_gt_base_temporal( def ever_gt_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18355,7 +18689,7 @@ def ever_gt_temporal_base( def ever_le_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18365,7 +18699,7 @@ def ever_le_base_temporal( def ever_le_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18375,7 +18709,7 @@ def ever_le_temporal_base( def ever_lt_base_temporal( - value: Annotated[cdata, "Datum"], temp: Annotated[cdata, "const Temporal *"] + value: Annotated[_ffi.CData, "Datum"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: value_converted = _ffi.cast("Datum", value) temp_converted = _ffi.cast("const Temporal *", temp) @@ -18385,7 +18719,7 @@ def ever_lt_base_temporal( def ever_lt_temporal_base( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18394,49 +18728,55 @@ def ever_lt_temporal_base( return result if result != _ffi.NULL else None -def tnumberinst_abs(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[cdata, "TInstant *"]: +def tnumberinst_abs(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tnumberinst_abs(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_abs(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: +def tnumberseq_abs(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_abs(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_angular_difference(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: +def tnumberseq_angular_difference( + seq: Annotated[_ffi.CData, "const TSequence *"], +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_angular_difference(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_delta_value(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: +def tnumberseq_delta_value(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_delta_value(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_abs(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tnumberseqset_abs(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_abs(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_angular_difference(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequence *"]: +def tnumberseqset_angular_difference( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "TSequence *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_angular_difference(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_delta_value(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tnumberseqset_delta_value( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_delta_value(ss_converted) _check_error() @@ -18444,8 +18784,8 @@ def tnumberseqset_delta_value(ss: Annotated[cdata, "const TSequenceSet *"]) -> A def tdistance_tnumber_number( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) result = _lib.tdistance_tnumber_number(temp_converted, value_converted) @@ -18454,7 +18794,7 @@ def tdistance_tnumber_number( def nad_tbox_tbox( - box1: Annotated[cdata, "const TBox *"], box2: Annotated[cdata, "const TBox *"] + box1: Annotated[_ffi.CData, "const TBox *"], box2: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[float, "double"]: box1_converted = _ffi.cast("const TBox *", box1) box2_converted = _ffi.cast("const TBox *", box2) @@ -18464,7 +18804,7 @@ def nad_tbox_tbox( def nad_tnumber_number( - temp: Annotated[cdata, "const Temporal *"], value: Annotated[cdata, "Datum"] + temp: Annotated[_ffi.CData, "const Temporal *"], value: Annotated[_ffi.CData, "Datum"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) value_converted = _ffi.cast("Datum", value) @@ -18474,7 +18814,7 @@ def nad_tnumber_number( def nad_tnumber_tbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const TBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const TBox *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const TBox *", box) @@ -18484,7 +18824,7 @@ def nad_tnumber_tbox( def nad_tnumber_tnumber( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -18493,68 +18833,68 @@ def nad_tnumber_tnumber( return result if result != _ffi.NULL else None -def tnumberseq_integral(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[float, "double"]: +def tnumberseq_integral(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[float, "double"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_integral(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseq_twavg(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[float, "double"]: +def tnumberseq_twavg(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[float, "double"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tnumberseq_twavg(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_integral(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[float, "double"]: +def tnumberseqset_integral(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_integral(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tnumberseqset_twavg(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[float, "double"]: +def tnumberseqset_twavg(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tnumberseqset_twavg(ss_converted) _check_error() return result if result != _ffi.NULL else None -def temporal_compact(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def temporal_compact(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.temporal_compact(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tsequence_compact(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequence *"]: +def tsequence_compact(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tsequence_compact(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tsequenceset_compact(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tsequenceset_compact(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tsequenceset_compact(ss_converted) _check_error() return result if result != _ffi.NULL else None -def skiplist_free(list: Annotated[cdata, "SkipList *"]) -> Annotated[None, "void"]: +def skiplist_free(list: Annotated[_ffi.CData, "SkipList *"]) -> Annotated[None, "void"]: list_converted = _ffi.cast("SkipList *", list) _lib.skiplist_free(list_converted) _check_error() def temporal_app_tinst_transfn( - state: Annotated[cdata, "Temporal *"], - inst: Annotated[cdata, "const TInstant *"], + state: Annotated[_ffi.CData, "Temporal *"], + inst: Annotated[_ffi.CData, "const TInstant *"], interp: InterpolationType, maxdist: float, - maxt: Annotated[cdata, "const Interval *"], -) -> Annotated[cdata, "Temporal *"]: + maxt: Annotated[_ffi.CData, "const Interval *"], +) -> Annotated[_ffi.CData, "Temporal *"]: state_converted = _ffi.cast("Temporal *", state) inst_converted = _ffi.cast("const TInstant *", inst) maxt_converted = _ffi.cast("const Interval *", maxt) @@ -18564,8 +18904,8 @@ def temporal_app_tinst_transfn( def temporal_app_tseq_transfn( - state: Annotated[cdata, "Temporal *"], seq: Annotated[cdata, "const TSequence *"] -) -> Annotated[cdata, "Temporal *"]: + state: Annotated[_ffi.CData, "Temporal *"], seq: Annotated[_ffi.CData, "const TSequence *"] +) -> Annotated[_ffi.CData, "Temporal *"]: state_converted = _ffi.cast("Temporal *", state) seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.temporal_app_tseq_transfn(state_converted, seq_converted) @@ -18574,11 +18914,11 @@ def temporal_app_tseq_transfn( def span_bins( - s: Annotated[cdata, "const Span *"], - size: Annotated[cdata, "Datum"], - origin: Annotated[cdata, "Datum"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + s: Annotated[_ffi.CData, "const Span *"], + size: Annotated[_ffi.CData, "Datum"], + origin: Annotated[_ffi.CData, "Datum"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: s_converted = _ffi.cast("const Span *", s) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) @@ -18589,11 +18929,11 @@ def span_bins( def spanset_bins( - ss: Annotated[cdata, "const SpanSet *"], - size: Annotated[cdata, "Datum"], - origin: Annotated[cdata, "Datum"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + ss: Annotated[_ffi.CData, "const SpanSet *"], + size: Annotated[_ffi.CData, "Datum"], + origin: Annotated[_ffi.CData, "Datum"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: ss_converted = _ffi.cast("const SpanSet *", ss) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) @@ -18604,11 +18944,11 @@ def spanset_bins( def tnumber_value_bins( - temp: Annotated[cdata, "const Temporal *"], - size: Annotated[cdata, "Datum"], - origin: Annotated[cdata, "Datum"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Span *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + size: Annotated[_ffi.CData, "Datum"], + origin: Annotated[_ffi.CData, "Datum"], + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Span *"]: temp_converted = _ffi.cast("const Temporal *", temp) size_converted = _ffi.cast("Datum", size) origin_converted = _ffi.cast("Datum", origin) @@ -18619,13 +18959,13 @@ def tnumber_value_bins( def tnumber_value_time_boxes( - temp: Annotated[cdata, "const Temporal *"], - vsize: Annotated[cdata, "Datum"], - duration: Annotated[cdata, "const Interval *"], - vorigin: Annotated[cdata, "Datum"], + temp: Annotated[_ffi.CData, "const Temporal *"], + vsize: Annotated[_ffi.CData, "Datum"], + duration: Annotated[_ffi.CData, "const Interval *"], + vorigin: Annotated[_ffi.CData, "Datum"], torigin: int, - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "TBox *"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "TBox *"]: temp_converted = _ffi.cast("const Temporal *", temp) vsize_converted = _ffi.cast("Datum", vsize) duration_converted = _ffi.cast("const Interval *", duration) @@ -18640,12 +18980,12 @@ def tnumber_value_time_boxes( def tnumber_value_split( - temp: Annotated[cdata, "const Temporal *"], - vsize: Annotated[cdata, "Datum"], - vorigin: Annotated[cdata, "Datum"], + temp: Annotated[_ffi.CData, "const Temporal *"], + vsize: Annotated[_ffi.CData, "Datum"], + vorigin: Annotated[_ffi.CData, "Datum"], bins: Annotated[list, "Datum **"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Temporal **"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Temporal **"]: temp_converted = _ffi.cast("const Temporal *", temp) vsize_converted = _ffi.cast("Datum", vsize) vorigin_converted = _ffi.cast("Datum", vorigin) @@ -18659,15 +18999,15 @@ def tnumber_value_split( def tbox_get_value_time_tile( - value: Annotated[cdata, "Datum"], + value: Annotated[_ffi.CData, "Datum"], t: int, - vsize: Annotated[cdata, "Datum"], - duration: Annotated[cdata, "const Interval *"], - vorigin: Annotated[cdata, "Datum"], + vsize: Annotated[_ffi.CData, "Datum"], + duration: Annotated[_ffi.CData, "const Interval *"], + vorigin: Annotated[_ffi.CData, "Datum"], torigin: int, - basetype: Annotated[cdata, "meosType"], - spantype: Annotated[cdata, "meosType"], -) -> Annotated[cdata, "TBox *"]: + basetype: Annotated[_ffi.CData, "meosType"], + spantype: Annotated[_ffi.CData, "meosType"], +) -> Annotated[_ffi.CData, "TBox *"]: value_converted = _ffi.cast("Datum", value) t_converted = _ffi.cast("TimestampTz", t) vsize_converted = _ffi.cast("Datum", vsize) @@ -18691,15 +19031,15 @@ def tbox_get_value_time_tile( def tnumber_value_time_split( - temp: Annotated[cdata, "const Temporal *"], - size: Annotated[cdata, "Datum"], - duration: Annotated[cdata, "const Interval *"], - vorigin: Annotated[cdata, "Datum"], + temp: Annotated[_ffi.CData, "const Temporal *"], + size: Annotated[_ffi.CData, "Datum"], + duration: Annotated[_ffi.CData, "const Interval *"], + vorigin: Annotated[_ffi.CData, "Datum"], torigin: int, value_bins: Annotated[list, "Datum **"], time_bins: Annotated[list, "TimestampTz **"], - count: Annotated[cdata, "int *"], -) -> Annotated[cdata, "Temporal **"]: + count: Annotated[_ffi.CData, "int *"], +) -> Annotated[_ffi.CData, "Temporal **"]: temp_converted = _ffi.cast("const Temporal *", temp) size_converted = _ffi.cast("Datum", size) duration_converted = _ffi.cast("const Interval *", duration) @@ -18722,13 +19062,15 @@ def tnumber_value_time_split( return result if result != _ffi.NULL else None -def proj_get_context() -> Annotated[cdata, "PJ_CONTEXT *"]: +def proj_get_context() -> Annotated[_ffi.CData, "PJ_CONTEXT *"]: result = _lib.proj_get_context() _check_error() return result if result != _ffi.NULL else None -def datum_geo_round(value: Annotated[cdata, "Datum"], size: Annotated[cdata, "Datum"]) -> Annotated[cdata, "Datum"]: +def datum_geo_round( + value: Annotated[_ffi.CData, "Datum"], size: Annotated[_ffi.CData, "Datum"] +) -> Annotated[_ffi.CData, "Datum"]: value_converted = _ffi.cast("Datum", value) size_converted = _ffi.cast("Datum", size) result = _lib.datum_geo_round(value_converted, size_converted) @@ -18736,7 +19078,7 @@ def datum_geo_round(value: Annotated[cdata, "Datum"], size: Annotated[cdata, "Da return result if result != _ffi.NULL else None -def point_round(gs: Annotated[cdata, "const GSERIALIZED *"], maxdd: int) -> Annotated[cdata, "GSERIALIZED *"]: +def point_round(gs: Annotated[_ffi.CData, "const GSERIALIZED *"], maxdd: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.point_round(gs_converted, maxdd) _check_error() @@ -18754,8 +19096,8 @@ def stbox_set( ymax: float, zmin: float, zmax: float, - s: Annotated[cdata, "const Span *"], - box: Annotated[cdata, "STBox *"], + s: Annotated[_ffi.CData, "const Span *"], + box: Annotated[_ffi.CData, "STBox *"], ) -> Annotated[None, "void"]: srid_converted = _ffi.cast("int32", srid) s_converted = _ffi.cast("const Span *", s) @@ -18765,8 +19107,8 @@ def stbox_set( def gbox_set_stbox( - box: Annotated[cdata, "const GBOX *"], srid: Annotated[cdata, "int32_t"] -) -> Annotated[cdata, "STBox *"]: + box: Annotated[_ffi.CData, "const GBOX *"], srid: Annotated[_ffi.CData, "int32_t"] +) -> Annotated[_ffi.CData, "STBox *"]: box_converted = _ffi.cast("const GBOX *", box) srid_converted = _ffi.cast("int32_t", srid) out_result = _ffi.new("STBox *") @@ -18776,7 +19118,7 @@ def gbox_set_stbox( def geo_set_stbox( - gs: Annotated[cdata, "const GSERIALIZED *"], box: Annotated[cdata, "STBox *"] + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[bool, "bool"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) box_converted = _ffi.cast("STBox *", box) @@ -18786,7 +19128,7 @@ def geo_set_stbox( def geoarr_set_stbox( - values: Annotated[cdata, "const Datum *"], count: int, box: Annotated[cdata, "STBox *"] + values: Annotated[_ffi.CData, "const Datum *"], count: int, box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: values_converted = _ffi.cast("const Datum *", values) box_converted = _ffi.cast("STBox *", box) @@ -18795,7 +19137,9 @@ def geoarr_set_stbox( def spatial_set_stbox( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], box: Annotated[cdata, "STBox *"] + d: Annotated[_ffi.CData, "Datum"], + basetype: Annotated[_ffi.CData, "meosType"], + box: Annotated[_ffi.CData, "STBox *"], ) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) @@ -18806,7 +19150,7 @@ def spatial_set_stbox( def spatialset_set_stbox( - set: Annotated[cdata, "const Set *"], box: Annotated[cdata, "STBox *"] + set: Annotated[_ffi.CData, "const Set *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: set_converted = _ffi.cast("const Set *", set) box_converted = _ffi.cast("STBox *", box) @@ -18815,7 +19159,7 @@ def spatialset_set_stbox( def stbox_set_box3d( - box: Annotated[cdata, "const STBox *"], box3d: Annotated[cdata, "BOX3D *"] + box: Annotated[_ffi.CData, "const STBox *"], box3d: Annotated[_ffi.CData, "BOX3D *"] ) -> Annotated[None, "void"]: box_converted = _ffi.cast("const STBox *", box) box3d_converted = _ffi.cast("BOX3D *", box3d) @@ -18823,14 +19167,18 @@ def stbox_set_box3d( _check_error() -def stbox_set_gbox(box: Annotated[cdata, "const STBox *"], gbox: Annotated[cdata, "GBOX *"]) -> Annotated[None, "void"]: +def stbox_set_gbox( + box: Annotated[_ffi.CData, "const STBox *"], gbox: Annotated[_ffi.CData, "GBOX *"] +) -> Annotated[None, "void"]: box_converted = _ffi.cast("const STBox *", box) gbox_converted = _ffi.cast("GBOX *", gbox) _lib.stbox_set_gbox(box_converted, gbox_converted) _check_error() -def tstzset_set_stbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, "STBox *"]) -> Annotated[None, "void"]: +def tstzset_set_stbox( + s: Annotated[_ffi.CData, "const Set *"], box: Annotated[_ffi.CData, "STBox *"] +) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Set *", s) box_converted = _ffi.cast("STBox *", box) _lib.tstzset_set_stbox(s_converted, box_converted) @@ -18838,7 +19186,7 @@ def tstzset_set_stbox(s: Annotated[cdata, "const Set *"], box: Annotated[cdata, def tstzspan_set_stbox( - s: Annotated[cdata, "const Span *"], box: Annotated[cdata, "STBox *"] + s: Annotated[_ffi.CData, "const Span *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: s_converted = _ffi.cast("const Span *", s) box_converted = _ffi.cast("STBox *", box) @@ -18847,7 +19195,7 @@ def tstzspan_set_stbox( def tstzspanset_set_stbox( - s: Annotated[cdata, "const SpanSet *"], box: Annotated[cdata, "STBox *"] + s: Annotated[_ffi.CData, "const SpanSet *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: s_converted = _ffi.cast("const SpanSet *", s) box_converted = _ffi.cast("STBox *", box) @@ -18855,7 +19203,9 @@ def tstzspanset_set_stbox( _check_error() -def stbox_expand(box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "STBox *"]) -> Annotated[None, "void"]: +def stbox_expand( + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "STBox *"] +) -> Annotated[None, "void"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("STBox *", box2) _lib.stbox_expand(box1_converted, box2_converted) @@ -18863,8 +19213,8 @@ def stbox_expand(box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, def inter_stbox_stbox( - box1: Annotated[cdata, "const STBox *"], box2: Annotated[cdata, "const STBox *"] -) -> Annotated[cdata, "STBox *"]: + box1: Annotated[_ffi.CData, "const STBox *"], box2: Annotated[_ffi.CData, "const STBox *"] +) -> Annotated[_ffi.CData, "STBox *"]: box1_converted = _ffi.cast("const STBox *", box1) box2_converted = _ffi.cast("const STBox *", box2) out_result = _ffi.new("STBox *") @@ -18875,91 +19225,91 @@ def inter_stbox_stbox( return None -def stbox_geo(box: Annotated[cdata, "const STBox *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def stbox_geo(box: Annotated[_ffi.CData, "const STBox *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: box_converted = _ffi.cast("const STBox *", box) result = _lib.stbox_geo(box_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tgeogpointinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeogpointseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tgeogpointseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpointseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeogpointseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tgeogpointseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeogpointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tgeompointinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeompointinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeompointseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tgeompointseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeompointseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeompointseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tgeompointseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeompointseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tgeographyinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeographyinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeographyseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tgeographyseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeographyseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeographyseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tgeographyseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeographyseqset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryinst_in(string: str) -> Annotated[cdata, "TInstant *"]: +def tgeometryinst_in(string: str) -> Annotated[_ffi.CData, "TInstant *"]: string_converted = string.encode("utf-8") result = _lib.tgeometryinst_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tgeometryseq_in(string: str, interp: InterpolationType) -> Annotated[cdata, "TSequence *"]: +def tgeometryseq_in(string: str, interp: InterpolationType) -> Annotated[_ffi.CData, "TSequence *"]: string_converted = string.encode("utf-8") result = _lib.tgeometryseq_in(string_converted, interp) _check_error() return result if result != _ffi.NULL else None -def tgeometryseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: +def tgeometryseqset_in(string: str) -> Annotated[_ffi.CData, "TSequenceSet *"]: string_converted = string.encode("utf-8") result = _lib.tgeometryseqset_in(string_converted) _check_error() @@ -18967,7 +19317,7 @@ def tgeometryseqset_in(string: str) -> Annotated[cdata, "TSequenceSet *"]: def tspatial_set_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("STBox *", box) @@ -18976,7 +19326,7 @@ def tspatial_set_stbox( def tgeoinst_set_stbox( - inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "STBox *"] + inst: Annotated[_ffi.CData, "const TInstant *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("STBox *", box) @@ -18985,7 +19335,7 @@ def tgeoinst_set_stbox( def tspatialseq_set_stbox( - seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "STBox *"] + seq: Annotated[_ffi.CData, "const TSequence *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("STBox *", box) @@ -18994,7 +19344,7 @@ def tspatialseq_set_stbox( def tspatialseqset_set_stbox( - ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "STBox *"] + ss: Annotated[_ffi.CData, "const TSequenceSet *"], box: Annotated[_ffi.CData, "STBox *"] ) -> Annotated[None, "void"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("STBox *", box) @@ -19003,11 +19353,11 @@ def tspatialseqset_set_stbox( def tgeo_restrict_geom( - temp: Annotated[cdata, "const Temporal *"], - gs: Annotated[cdata, "const GSERIALIZED *"], - zspan: Annotated[cdata, "const Span *"], + temp: Annotated[_ffi.CData, "const Temporal *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + zspan: Annotated[_ffi.CData, "const Span *"], atfunc: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -19017,8 +19367,11 @@ def tgeo_restrict_geom( def tgeo_restrict_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], + box: Annotated[_ffi.CData, "const STBox *"], + border_inc: bool, + atfunc: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeo_restrict_stbox(temp_converted, box_converted, border_inc, atfunc) @@ -19027,11 +19380,11 @@ def tgeo_restrict_stbox( def tgeoinst_restrict_geom( - inst: Annotated[cdata, "const TInstant *"], - gs: Annotated[cdata, "const GSERIALIZED *"], - zspan: Annotated[cdata, "const Span *"], + inst: Annotated[_ffi.CData, "const TInstant *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + zspan: Annotated[_ffi.CData, "const Span *"], atfunc: bool, -) -> Annotated[cdata, "TInstant *"]: +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -19041,8 +19394,11 @@ def tgeoinst_restrict_geom( def tgeoinst_restrict_stbox( - inst: Annotated[cdata, "const TInstant *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool -) -> Annotated[cdata, "TInstant *"]: + inst: Annotated[_ffi.CData, "const TInstant *"], + box: Annotated[_ffi.CData, "const STBox *"], + border_inc: bool, + atfunc: bool, +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeoinst_restrict_stbox(inst_converted, box_converted, border_inc, atfunc) @@ -19051,11 +19407,11 @@ def tgeoinst_restrict_stbox( def tgeoseq_restrict_geom( - seq: Annotated[cdata, "const TSequence *"], - gs: Annotated[cdata, "const GSERIALIZED *"], - zspan: Annotated[cdata, "const Span *"], + seq: Annotated[_ffi.CData, "const TSequence *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + zspan: Annotated[_ffi.CData, "const Span *"], atfunc: bool, -) -> Annotated[cdata, "Temporal *"]: +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -19065,8 +19421,11 @@ def tgeoseq_restrict_geom( def tgeoseq_restrict_stbox( - seq: Annotated[cdata, "const TSequence *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool -) -> Annotated[cdata, "Temporal *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], + box: Annotated[_ffi.CData, "const STBox *"], + border_inc: bool, + atfunc: bool, +) -> Annotated[_ffi.CData, "Temporal *"]: seq_converted = _ffi.cast("const TSequence *", seq) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeoseq_restrict_stbox(seq_converted, box_converted, border_inc, atfunc) @@ -19075,11 +19434,11 @@ def tgeoseq_restrict_stbox( def tgeoseqset_restrict_geom( - ss: Annotated[cdata, "const TSequenceSet *"], - gs: Annotated[cdata, "const GSERIALIZED *"], - zspan: Annotated[cdata, "const Span *"], + ss: Annotated[_ffi.CData, "const TSequenceSet *"], + gs: Annotated[_ffi.CData, "const GSERIALIZED *"], + zspan: Annotated[_ffi.CData, "const Span *"], atfunc: bool, -) -> Annotated[cdata, "TSequenceSet *"]: +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) gs_converted = _ffi.cast("const GSERIALIZED *", gs) zspan_converted = _ffi.cast("const Span *", zspan) @@ -19089,8 +19448,11 @@ def tgeoseqset_restrict_geom( def tgeoseqset_restrict_stbox( - ss: Annotated[cdata, "const TSequenceSet *"], box: Annotated[cdata, "const STBox *"], border_inc: bool, atfunc: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], + box: Annotated[_ffi.CData, "const STBox *"], + border_inc: bool, + atfunc: bool, +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) box_converted = _ffi.cast("const STBox *", box) result = _lib.tgeoseqset_restrict_stbox(ss_converted, box_converted, border_inc, atfunc) @@ -19098,7 +19460,9 @@ def tgeoseqset_restrict_stbox( return result if result != _ffi.NULL else None -def spatial_srid(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"]) -> Annotated[cdata, "int32_t"]: +def spatial_srid( + d: Annotated[_ffi.CData, "Datum"], basetype: Annotated[_ffi.CData, "meosType"] +) -> Annotated[_ffi.CData, "int32_t"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) result = _lib.spatial_srid(d_converted, basetype_converted) @@ -19107,7 +19471,9 @@ def spatial_srid(d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosT def spatial_set_srid( - d: Annotated[cdata, "Datum"], basetype: Annotated[cdata, "meosType"], srid: Annotated[cdata, "int32_t"] + d: Annotated[_ffi.CData, "Datum"], + basetype: Annotated[_ffi.CData, "meosType"], + srid: Annotated[_ffi.CData, "int32_t"], ) -> Annotated[bool, "bool"]: d_converted = _ffi.cast("Datum", d) basetype_converted = _ffi.cast("meosType", basetype) @@ -19117,14 +19483,14 @@ def spatial_set_srid( return result if result != _ffi.NULL else None -def tspatialinst_srid(inst: Annotated[cdata, "const TInstant *"]) -> Annotated[int, "int"]: +def tspatialinst_srid(inst: Annotated[_ffi.CData, "const TInstant *"]) -> Annotated[int, "int"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tspatialinst_srid(inst_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_azimuth(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tpointseq_azimuth(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_azimuth(seq_converted) _check_error() @@ -19132,22 +19498,22 @@ def tpointseq_azimuth(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[c def tpointseq_cumulative_length( - seq: Annotated[cdata, "const TSequence *"], prevlength: float -) -> Annotated[cdata, "TSequence *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], prevlength: float +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_cumulative_length(seq_converted, prevlength) _check_error() return result if result != _ffi.NULL else None -def tpointseq_is_simple(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[bool, "bool"]: +def tpointseq_is_simple(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[bool, "bool"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_is_simple(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseq_length(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[float, "double"]: +def tpointseq_length(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[float, "double"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_length(seq_converted) _check_error() @@ -19155,8 +19521,8 @@ def tpointseq_length(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[fl def tpointseq_linear_trajectory( - seq: Annotated[cdata, "const TSequence *"], unary_union: bool -) -> Annotated[cdata, "GSERIALIZED *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], unary_union: bool +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_linear_trajectory(seq_converted, unary_union) _check_error() @@ -19164,8 +19530,8 @@ def tpointseq_linear_trajectory( def tgeoseq_stboxes( - seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) result = _lib.tgeoseq_stboxes(seq_converted, count_converted) @@ -19174,8 +19540,8 @@ def tgeoseq_stboxes( def tgeoseq_split_n_stboxes( - seq: Annotated[cdata, "const TSequence *"], max_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + seq: Annotated[_ffi.CData, "const TSequence *"], max_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) result = _lib.tgeoseq_split_n_stboxes(seq_converted, max_count, count_converted) @@ -19183,28 +19549,30 @@ def tgeoseq_split_n_stboxes( return result if result != _ffi.NULL else None -def tpointseqset_azimuth(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tpointseqset_azimuth(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_azimuth(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_cumulative_length(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "TSequenceSet *"]: +def tpointseqset_cumulative_length( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_cumulative_length(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_is_simple(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[bool, "bool"]: +def tpointseqset_is_simple(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[bool, "bool"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_is_simple(ss_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_length(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[float, "double"]: +def tpointseqset_length(ss: Annotated[_ffi.CData, "const TSequenceSet *"]) -> Annotated[float, "double"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_length(ss_converted) _check_error() @@ -19212,8 +19580,8 @@ def tpointseqset_length(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotat def tgeoseqset_stboxes( - ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.tgeoseqset_stboxes(ss_converted, count_converted) @@ -19222,8 +19590,8 @@ def tgeoseqset_stboxes( def tgeoseqset_split_n_stboxes( - ss: Annotated[cdata, "const TSequenceSet *"], max_count: int, count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "STBox *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], max_count: int, count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "STBox *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.tgeoseqset_split_n_stboxes(ss_converted, max_count, count_converted) @@ -19231,21 +19599,27 @@ def tgeoseqset_split_n_stboxes( return result if result != _ffi.NULL else None -def tpoint_get_coord(temp: Annotated[cdata, "const Temporal *"], coord: int) -> Annotated[cdata, "Temporal *"]: +def tpoint_get_coord( + temp: Annotated[_ffi.CData, "const Temporal *"], coord: int +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tpoint_get_coord(temp_converted, coord) _check_error() return result if result != _ffi.NULL else None -def tgeominst_tgeoginst(inst: Annotated[cdata, "const TInstant *"], oper: bool) -> Annotated[cdata, "TInstant *"]: +def tgeominst_tgeoginst( + inst: Annotated[_ffi.CData, "const TInstant *"], oper: bool +) -> Annotated[_ffi.CData, "TInstant *"]: inst_converted = _ffi.cast("const TInstant *", inst) result = _lib.tgeominst_tgeoginst(inst_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeomseq_tgeogseq(seq: Annotated[cdata, "const TSequence *"], oper: bool) -> Annotated[cdata, "TSequence *"]: +def tgeomseq_tgeogseq( + seq: Annotated[_ffi.CData, "const TSequence *"], oper: bool +) -> Annotated[_ffi.CData, "TSequence *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tgeomseq_tgeogseq(seq_converted, oper) _check_error() @@ -19253,22 +19627,22 @@ def tgeomseq_tgeogseq(seq: Annotated[cdata, "const TSequence *"], oper: bool) -> def tgeomseqset_tgeogseqset( - ss: Annotated[cdata, "const TSequenceSet *"], oper: bool -) -> Annotated[cdata, "TSequenceSet *"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], oper: bool +) -> Annotated[_ffi.CData, "TSequenceSet *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tgeomseqset_tgeogseqset(ss_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeom_tgeog(temp: Annotated[cdata, "const Temporal *"], oper: bool) -> Annotated[cdata, "Temporal *"]: +def tgeom_tgeog(temp: Annotated[_ffi.CData, "const Temporal *"], oper: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeom_tgeog(temp_converted, oper) _check_error() return result if result != _ffi.NULL else None -def tgeo_tpoint(temp: Annotated[cdata, "const Temporal *"], oper: bool) -> Annotated[cdata, "Temporal *"]: +def tgeo_tpoint(temp: Annotated[_ffi.CData, "const Temporal *"], oper: bool) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeo_tpoint(temp_converted, oper) _check_error() @@ -19276,7 +19650,7 @@ def tgeo_tpoint(temp: Annotated[cdata, "const Temporal *"], oper: bool) -> Annot def tspatialinst_set_srid( - inst: Annotated[cdata, "TInstant *"], srid: Annotated[cdata, "int32_t"] + inst: Annotated[_ffi.CData, "TInstant *"], srid: Annotated[_ffi.CData, "int32_t"] ) -> Annotated[None, "void"]: inst_converted = _ffi.cast("TInstant *", inst) srid_converted = _ffi.cast("int32_t", srid) @@ -19285,8 +19659,8 @@ def tspatialinst_set_srid( def tpointseq_make_simple( - seq: Annotated[cdata, "const TSequence *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TSequence **"]: + seq: Annotated[_ffi.CData, "const TSequence *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TSequence **"]: seq_converted = _ffi.cast("const TSequence *", seq) count_converted = _ffi.cast("int *", count) result = _lib.tpointseq_make_simple(seq_converted, count_converted) @@ -19295,7 +19669,7 @@ def tpointseq_make_simple( def tspatialseq_set_srid( - seq: Annotated[cdata, "TSequence *"], srid: Annotated[cdata, "int32_t"] + seq: Annotated[_ffi.CData, "TSequence *"], srid: Annotated[_ffi.CData, "int32_t"] ) -> Annotated[None, "void"]: seq_converted = _ffi.cast("TSequence *", seq) srid_converted = _ffi.cast("int32_t", srid) @@ -19304,8 +19678,8 @@ def tspatialseq_set_srid( def tpointseqset_make_simple( - ss: Annotated[cdata, "const TSequenceSet *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "TSequence **"]: + ss: Annotated[_ffi.CData, "const TSequenceSet *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "TSequence **"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) count_converted = _ffi.cast("int *", count) result = _lib.tpointseqset_make_simple(ss_converted, count_converted) @@ -19314,7 +19688,7 @@ def tpointseqset_make_simple( def tspatialseqset_set_srid( - ss: Annotated[cdata, "TSequenceSet *"], srid: Annotated[cdata, "int32_t"] + ss: Annotated[_ffi.CData, "TSequenceSet *"], srid: Annotated[_ffi.CData, "int32_t"] ) -> Annotated[None, "void"]: ss_converted = _ffi.cast("TSequenceSet *", ss) srid_converted = _ffi.cast("int32_t", srid) @@ -19322,21 +19696,23 @@ def tspatialseqset_set_srid( _check_error() -def tpointseq_twcentroid(seq: Annotated[cdata, "const TSequence *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tpointseq_twcentroid(seq: Annotated[_ffi.CData, "const TSequence *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: seq_converted = _ffi.cast("const TSequence *", seq) result = _lib.tpointseq_twcentroid(seq_converted) _check_error() return result if result != _ffi.NULL else None -def tpointseqset_twcentroid(ss: Annotated[cdata, "const TSequenceSet *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tpointseqset_twcentroid( + ss: Annotated[_ffi.CData, "const TSequenceSet *"], +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: ss_converted = _ffi.cast("const TSequenceSet *", ss) result = _lib.tpointseqset_twcentroid(ss_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_as_ewkt(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: +def npoint_as_ewkt(np: Annotated[_ffi.CData, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_as_ewkt(np_converted, maxdd) _check_error() @@ -19345,8 +19721,8 @@ def npoint_as_ewkt(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annota def npoint_as_hexwkb( - np: Annotated[cdata, "const Npoint *"], variant: int -) -> tuple[Annotated[str, "char *"], Annotated[cdata, "size_t *"]]: + np: Annotated[_ffi.CData, "const Npoint *"], variant: int +) -> tuple[Annotated[str, "char *"], Annotated[_ffi.CData, "size_t *"]]: np_converted = _ffi.cast("const Npoint *", np) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -19356,7 +19732,7 @@ def npoint_as_hexwkb( return result if result != _ffi.NULL else None, size_out[0] -def npoint_as_text(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: +def npoint_as_text(np: Annotated[_ffi.CData, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_as_text(np_converted, maxdd) _check_error() @@ -19365,8 +19741,8 @@ def npoint_as_text(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annota def npoint_as_wkb( - np: Annotated[cdata, "const Npoint *"], variant: int -) -> tuple[Annotated[cdata, "uint8_t *"], Annotated[cdata, "size_t *"]]: + np: Annotated[_ffi.CData, "const Npoint *"], variant: int +) -> tuple[Annotated[_ffi.CData, "uint8_t *"], Annotated[_ffi.CData, "size_t *"]]: np_converted = _ffi.cast("const Npoint *", np) variant_converted = _ffi.cast("uint8_t", variant) size_out = _ffi.new("size_t *") @@ -19375,7 +19751,7 @@ def npoint_as_wkb( return result if result != _ffi.NULL else None, size_out[0] -def npoint_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Npoint *"]: +def npoint_from_hexwkb(hexwkb: str) -> Annotated[_ffi.CData, "Npoint *"]: hexwkb_converted = hexwkb.encode("utf-8") result = _lib.npoint_from_hexwkb(hexwkb_converted) _check_error() @@ -19383,8 +19759,8 @@ def npoint_from_hexwkb(hexwkb: str) -> Annotated[cdata, "Npoint *"]: def npoint_from_wkb( - wkb: Annotated[cdata, "const uint8_t *"], size: Annotated[cdata, "size_t"] -) -> Annotated[cdata, "Npoint *"]: + wkb: Annotated[_ffi.CData, "const uint8_t *"], size: Annotated[_ffi.CData, "size_t"] +) -> Annotated[_ffi.CData, "Npoint *"]: wkb_converted = _ffi.cast("const uint8_t *", wkb) size_converted = _ffi.cast("size_t", size) result = _lib.npoint_from_wkb(wkb_converted, size_converted) @@ -19392,14 +19768,14 @@ def npoint_from_wkb( return result if result != _ffi.NULL else None -def npoint_in(string: str) -> Annotated[cdata, "Npoint *"]: +def npoint_in(string: str) -> Annotated[_ffi.CData, "Npoint *"]: string_converted = string.encode("utf-8") result = _lib.npoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_out(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: +def npoint_out(np: Annotated[_ffi.CData, "const Npoint *"], maxdd: int) -> Annotated[str, "char *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_out(np_converted, maxdd) _check_error() @@ -19407,14 +19783,14 @@ def npoint_out(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[ return result if result != _ffi.NULL else None -def nsegment_in(string: str) -> Annotated[cdata, "Nsegment *"]: +def nsegment_in(string: str) -> Annotated[_ffi.CData, "Nsegment *"]: string_converted = string.encode("utf-8") result = _lib.nsegment_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_out(ns: Annotated[cdata, "const Nsegment *"], maxdd: int) -> Annotated[str, "char *"]: +def nsegment_out(ns: Annotated[_ffi.CData, "const Nsegment *"], maxdd: int) -> Annotated[str, "char *"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_out(ns_converted, maxdd) _check_error() @@ -19422,77 +19798,77 @@ def nsegment_out(ns: Annotated[cdata, "const Nsegment *"], maxdd: int) -> Annota return result if result != _ffi.NULL else None -def npoint_make(rid: int, pos: float) -> Annotated[cdata, "Npoint *"]: +def npoint_make(rid: int, pos: float) -> Annotated[_ffi.CData, "Npoint *"]: rid_converted = _ffi.cast("int64", rid) result = _lib.npoint_make(rid_converted, pos) _check_error() return result if result != _ffi.NULL else None -def nsegment_make(rid: int, pos1: float, pos2: float) -> Annotated[cdata, "Nsegment *"]: +def nsegment_make(rid: int, pos1: float, pos2: float) -> Annotated[_ffi.CData, "Nsegment *"]: rid_converted = _ffi.cast("int64", rid) result = _lib.nsegment_make(rid_converted, pos1, pos2) _check_error() return result if result != _ffi.NULL else None -def geompoint_to_npoint(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Npoint *"]: +def geompoint_to_npoint(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "Npoint *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geompoint_to_npoint(gs_converted) _check_error() return result if result != _ffi.NULL else None -def geom_to_nsegment(gs: Annotated[cdata, "const GSERIALIZED *"]) -> Annotated[cdata, "Nsegment *"]: +def geom_to_nsegment(gs: Annotated[_ffi.CData, "const GSERIALIZED *"]) -> Annotated[_ffi.CData, "Nsegment *"]: gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.geom_to_nsegment(gs_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_geompoint(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def npoint_to_geompoint(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_geompoint(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_nsegment(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "Nsegment *"]: +def npoint_to_nsegment(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[_ffi.CData, "Nsegment *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_nsegment(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_to_stbox(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "STBox *"]: +def npoint_to_stbox(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[_ffi.CData, "STBox *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_to_geom(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def nsegment_to_geom(ns: Annotated[_ffi.CData, "const Nsegment *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_to_geom(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_to_stbox(np: Annotated[cdata, "const Nsegment *"]) -> Annotated[cdata, "STBox *"]: +def nsegment_to_stbox(np: Annotated[_ffi.CData, "const Nsegment *"]) -> Annotated[_ffi.CData, "STBox *"]: np_converted = _ffi.cast("const Nsegment *", np) result = _lib.nsegment_to_stbox(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_hash(np: Annotated[cdata, "const Npoint *"]) -> Annotated[int, "uint32"]: +def npoint_hash(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[int, "uint32"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_hash(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_hash_extended(np: Annotated[cdata, "const Npoint *"], seed: int) -> Annotated[int, "uint64"]: +def npoint_hash_extended(np: Annotated[_ffi.CData, "const Npoint *"], seed: int) -> Annotated[int, "uint64"]: np_converted = _ffi.cast("const Npoint *", np) seed_converted = _ffi.cast("uint64", seed) result = _lib.npoint_hash_extended(np_converted, seed_converted) @@ -19500,35 +19876,35 @@ def npoint_hash_extended(np: Annotated[cdata, "const Npoint *"], seed: int) -> A return result if result != _ffi.NULL else None -def npoint_position(np: Annotated[cdata, "const Npoint *"]) -> Annotated[float, "double"]: +def npoint_position(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[float, "double"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_position(np_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_route(np: Annotated[cdata, "const Npoint *"]) -> Annotated[int, "int64"]: +def npoint_route(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[int, "int64"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_route(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_end_position(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[float, "double"]: +def nsegment_end_position(ns: Annotated[_ffi.CData, "const Nsegment *"]) -> Annotated[float, "double"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_end_position(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_route(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[int, "int64"]: +def nsegment_route(ns: Annotated[_ffi.CData, "const Nsegment *"]) -> Annotated[int, "int64"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_route(ns_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_start_position(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[float, "double"]: +def nsegment_start_position(ns: Annotated[_ffi.CData, "const Nsegment *"]) -> Annotated[float, "double"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_start_position(ns_converted) _check_error() @@ -19542,7 +19918,7 @@ def route_exists(rid: int) -> Annotated[bool, "bool"]: return result if result != _ffi.NULL else None -def route_geom(rid: int) -> Annotated[cdata, "GSERIALIZED *"]: +def route_geom(rid: int) -> Annotated[_ffi.CData, "GSERIALIZED *"]: rid_converted = _ffi.cast("int64", rid) result = _lib.route_geom(rid_converted) _check_error() @@ -19556,41 +19932,43 @@ def route_length(rid: int) -> Annotated[float, "double"]: return result if result != _ffi.NULL else None -def npoint_round(np: Annotated[cdata, "const Npoint *"], maxdd: int) -> Annotated[cdata, "Npoint *"]: +def npoint_round(np: Annotated[_ffi.CData, "const Npoint *"], maxdd: int) -> Annotated[_ffi.CData, "Npoint *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_round(np_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def nsegment_round(ns: Annotated[cdata, "const Nsegment *"], maxdd: int) -> Annotated[cdata, "Nsegment *"]: +def nsegment_round(ns: Annotated[_ffi.CData, "const Nsegment *"], maxdd: int) -> Annotated[_ffi.CData, "Nsegment *"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_round(ns_converted, maxdd) _check_error() return result if result != _ffi.NULL else None -def get_srid_ways() -> Annotated[cdata, "int32_t"]: +def get_srid_ways() -> Annotated[_ffi.CData, "int32_t"]: result = _lib.get_srid_ways() _check_error() return result if result != _ffi.NULL else None -def npoint_srid(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "int32_t"]: +def npoint_srid(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[_ffi.CData, "int32_t"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_srid(np_converted) _check_error() return result if result != _ffi.NULL else None -def nsegment_srid(ns: Annotated[cdata, "const Nsegment *"]) -> Annotated[cdata, "int32_t"]: +def nsegment_srid(ns: Annotated[_ffi.CData, "const Nsegment *"]) -> Annotated[_ffi.CData, "int32_t"]: ns_converted = _ffi.cast("const Nsegment *", ns) result = _lib.nsegment_srid(ns_converted) _check_error() return result if result != _ffi.NULL else None -def npoint_timestamptz_to_stbox(np: Annotated[cdata, "const Npoint *"], t: int) -> Annotated[cdata, "STBox *"]: +def npoint_timestamptz_to_stbox( + np: Annotated[_ffi.CData, "const Npoint *"], t: int +) -> Annotated[_ffi.CData, "STBox *"]: np_converted = _ffi.cast("const Npoint *", np) t_converted = _ffi.cast("TimestampTz", t) result = _lib.npoint_timestamptz_to_stbox(np_converted, t_converted) @@ -19599,8 +19977,8 @@ def npoint_timestamptz_to_stbox(np: Annotated[cdata, "const Npoint *"], t: int) def npoint_tstzspan_to_stbox( - np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Span *"] -) -> Annotated[cdata, "STBox *"]: + np: Annotated[_ffi.CData, "const Npoint *"], s: Annotated[_ffi.CData, "const Span *"] +) -> Annotated[_ffi.CData, "STBox *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Span *", s) result = _lib.npoint_tstzspan_to_stbox(np_converted, s_converted) @@ -19609,7 +19987,7 @@ def npoint_tstzspan_to_stbox( def npoint_cmp( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[int, "int"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19619,7 +19997,7 @@ def npoint_cmp( def npoint_eq( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19629,7 +20007,7 @@ def npoint_eq( def npoint_ge( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19639,7 +20017,7 @@ def npoint_ge( def npoint_gt( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19649,7 +20027,7 @@ def npoint_gt( def npoint_le( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19659,7 +20037,7 @@ def npoint_le( def npoint_lt( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19669,7 +20047,7 @@ def npoint_lt( def npoint_ne( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19679,7 +20057,7 @@ def npoint_ne( def npoint_same( - np1: Annotated[cdata, "const Npoint *"], np2: Annotated[cdata, "const Npoint *"] + np1: Annotated[_ffi.CData, "const Npoint *"], np2: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[bool, "bool"]: np1_converted = _ffi.cast("const Npoint *", np1) np2_converted = _ffi.cast("const Npoint *", np2) @@ -19689,7 +20067,7 @@ def npoint_same( def nsegment_cmp( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[int, "int"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19699,7 +20077,7 @@ def nsegment_cmp( def nsegment_eq( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19709,7 +20087,7 @@ def nsegment_eq( def nsegment_ge( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19719,7 +20097,7 @@ def nsegment_ge( def nsegment_gt( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19729,7 +20107,7 @@ def nsegment_gt( def nsegment_le( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19739,7 +20117,7 @@ def nsegment_le( def nsegment_lt( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19749,7 +20127,7 @@ def nsegment_lt( def nsegment_ne( - ns1: Annotated[cdata, "const Nsegment *"], ns2: Annotated[cdata, "const Nsegment *"] + ns1: Annotated[_ffi.CData, "const Nsegment *"], ns2: Annotated[_ffi.CData, "const Nsegment *"] ) -> Annotated[bool, "bool"]: ns1_converted = _ffi.cast("const Nsegment *", ns1) ns2_converted = _ffi.cast("const Nsegment *", ns2) @@ -19758,14 +20136,14 @@ def nsegment_ne( return result if result != _ffi.NULL else None -def npointset_in(string: str) -> Annotated[cdata, "Set *"]: +def npointset_in(string: str) -> Annotated[_ffi.CData, "Set *"]: string_converted = string.encode("utf-8") result = _lib.npointset_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_out(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: +def npointset_out(s: Annotated[_ffi.CData, "const Set *"], maxdd: int) -> Annotated[str, "char *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_out(s_converted, maxdd) _check_error() @@ -19773,42 +20151,42 @@ def npointset_out(s: Annotated[cdata, "const Set *"], maxdd: int) -> Annotated[s return result if result != _ffi.NULL else None -def npointset_make(values: Annotated[list, "const Npoint **"], count: int) -> Annotated[cdata, "Set *"]: +def npointset_make(values: Annotated[list, "const Npoint **"], count: int) -> Annotated[_ffi.CData, "Set *"]: values_converted = [_ffi.cast("const Npoint *", x) for x in values] result = _lib.npointset_make(values_converted, count) _check_error() return result if result != _ffi.NULL else None -def npoint_to_set(np: Annotated[cdata, "const Npoint *"]) -> Annotated[cdata, "Set *"]: +def npoint_to_set(np: Annotated[_ffi.CData, "const Npoint *"]) -> Annotated[_ffi.CData, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_to_set(np_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_end_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Npoint *"]: +def npointset_end_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Npoint *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_end_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_routes(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Set *"]: +def npointset_routes(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_routes(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_start_value(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Npoint *"]: +def npointset_start_value(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Npoint *"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_start_value(s_converted) _check_error() return result if result != _ffi.NULL else None -def npointset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[list, "Npoint **"]: +def npointset_value_n(s: Annotated[_ffi.CData, "const Set *"], n: int) -> Annotated[list, "Npoint **"]: s_converted = _ffi.cast("const Set *", s) out_result = _ffi.new("Npoint **") result = _lib.npointset_value_n(s_converted, n, out_result) @@ -19818,7 +20196,7 @@ def npointset_value_n(s: Annotated[cdata, "const Set *"], n: int) -> Annotated[l return None -def npointset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Npoint **"]: +def npointset_values(s: Annotated[_ffi.CData, "const Set *"]) -> Annotated[_ffi.CData, "Npoint **"]: s_converted = _ffi.cast("const Set *", s) result = _lib.npointset_values(s_converted) _check_error() @@ -19826,7 +20204,7 @@ def npointset_values(s: Annotated[cdata, "const Set *"]) -> Annotated[cdata, "Np def contained_npoint_set( - np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] + np: Annotated[_ffi.CData, "const Npoint *"], s: Annotated[_ffi.CData, "const Set *"] ) -> Annotated[bool, "bool"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) @@ -19836,7 +20214,7 @@ def contained_npoint_set( def contains_set_npoint( - s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "Npoint *"] + s: Annotated[_ffi.CData, "const Set *"], np: Annotated[_ffi.CData, "Npoint *"] ) -> Annotated[bool, "bool"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("Npoint *", np) @@ -19846,8 +20224,8 @@ def contains_set_npoint( def intersection_npoint_set( - np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + np: Annotated[_ffi.CData, "const Npoint *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.intersection_npoint_set(np_converted, s_converted) @@ -19856,8 +20234,8 @@ def intersection_npoint_set( def intersection_set_npoint( - s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("const Npoint *", np) result = _lib.intersection_set_npoint(s_converted, np_converted) @@ -19866,8 +20244,8 @@ def intersection_set_npoint( def minus_npoint_set( - np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + np: Annotated[_ffi.CData, "const Npoint *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.minus_npoint_set(np_converted, s_converted) @@ -19876,8 +20254,8 @@ def minus_npoint_set( def minus_set_npoint( - s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("const Npoint *", np) result = _lib.minus_set_npoint(s_converted, np_converted) @@ -19886,8 +20264,8 @@ def minus_set_npoint( def npoint_union_transfn( - state: Annotated[cdata, "Set *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Set *"]: + state: Annotated[_ffi.CData, "Set *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Set *"]: state_converted = _ffi.cast("Set *", state) np_converted = _ffi.cast("const Npoint *", np) result = _lib.npoint_union_transfn(state_converted, np_converted) @@ -19896,8 +20274,8 @@ def npoint_union_transfn( def union_npoint_set( - np: Annotated[cdata, "const Npoint *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Set *"]: + np: Annotated[_ffi.CData, "const Npoint *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Set *"]: np_converted = _ffi.cast("const Npoint *", np) s_converted = _ffi.cast("const Set *", s) result = _lib.union_npoint_set(np_converted, s_converted) @@ -19906,8 +20284,8 @@ def union_npoint_set( def union_set_npoint( - s: Annotated[cdata, "const Set *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Set *"]: + s: Annotated[_ffi.CData, "const Set *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Set *"]: s_converted = _ffi.cast("const Set *", s) np_converted = _ffi.cast("const Npoint *", np) result = _lib.union_set_npoint(s_converted, np_converted) @@ -19915,14 +20293,14 @@ def union_set_npoint( return result if result != _ffi.NULL else None -def tnpoint_in(string: str) -> Annotated[cdata, "Temporal *"]: +def tnpoint_in(string: str) -> Annotated[_ffi.CData, "Temporal *"]: string_converted = string.encode("utf-8") result = _lib.tnpoint_in(string_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: +def tnpoint_out(temp: Annotated[_ffi.CData, "const Temporal *"], maxdd: int) -> Annotated[str, "char *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_out(temp_converted, maxdd) _check_error() @@ -19930,7 +20308,7 @@ def tnpoint_out(temp: Annotated[cdata, "const Temporal *"], maxdd: int) -> Annot return result if result != _ffi.NULL else None -def tnpointinst_make(np: Annotated[cdata, "const Npoint *"], t: int) -> Annotated[cdata, "TInstant *"]: +def tnpointinst_make(np: Annotated[_ffi.CData, "const Npoint *"], t: int) -> Annotated[_ffi.CData, "TInstant *"]: np_converted = _ffi.cast("const Npoint *", np) t_converted = _ffi.cast("TimestampTz", t) result = _lib.tnpointinst_make(np_converted, t_converted) @@ -19938,28 +20316,28 @@ def tnpointinst_make(np: Annotated[cdata, "const Npoint *"], t: int) -> Annotate return result if result != _ffi.NULL else None -def tgeompoint_to_tnpoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tgeompoint_to_tnpoint(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tgeompoint_to_tnpoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_to_tgeompoint(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnpoint_to_tgeompoint(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_to_tgeompoint(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_cumulative_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnpoint_cumulative_length(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_cumulative_length(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[float, "double"]: +def tnpoint_length(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_length(temp_converted) _check_error() @@ -19967,8 +20345,8 @@ def tnpoint_length(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[floa def tnpoint_positions( - temp: Annotated[cdata, "const Temporal *"], count: Annotated[cdata, "int *"] -) -> Annotated[cdata, "Nsegment **"]: + temp: Annotated[_ffi.CData, "const Temporal *"], count: Annotated[_ffi.CData, "int *"] +) -> Annotated[_ffi.CData, "Nsegment **"]: temp_converted = _ffi.cast("const Temporal *", temp) count_converted = _ffi.cast("int *", count) result = _lib.tnpoint_positions(temp_converted, count_converted) @@ -19976,35 +20354,35 @@ def tnpoint_positions( return result if result != _ffi.NULL else None -def tnpoint_route(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[int, "int64"]: +def tnpoint_route(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[int, "int64"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_route(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_routes(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Set *"]: +def tnpoint_routes(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Set *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_routes(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_speed(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "Temporal *"]: +def tnpoint_speed(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_speed(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_trajectory(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tnpoint_trajectory(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_trajectory(temp_converted) _check_error() return result if result != _ffi.NULL else None -def tnpoint_twcentroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[cdata, "GSERIALIZED *"]: +def tnpoint_twcentroid(temp: Annotated[_ffi.CData, "const Temporal *"]) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) result = _lib.tnpoint_twcentroid(temp_converted) _check_error() @@ -20012,8 +20390,8 @@ def tnpoint_twcentroid(temp: Annotated[cdata, "const Temporal *"]) -> Annotated[ def tnpoint_at_geom( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tnpoint_at_geom(temp_converted, gs_converted) @@ -20022,8 +20400,8 @@ def tnpoint_at_geom( def tnpoint_at_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tnpoint_at_npoint(temp_converted, np_converted) @@ -20032,8 +20410,8 @@ def tnpoint_at_npoint( def tnpoint_at_npointset( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.tnpoint_at_npointset(temp_converted, s_converted) @@ -20042,8 +20420,8 @@ def tnpoint_at_npointset( def tnpoint_at_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"], border_inc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tnpoint_at_stbox(temp_converted, box_converted, border_inc) @@ -20052,8 +20430,8 @@ def tnpoint_at_stbox( def tnpoint_minus_geom( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tnpoint_minus_geom(temp_converted, gs_converted) @@ -20062,8 +20440,8 @@ def tnpoint_minus_geom( def tnpoint_minus_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tnpoint_minus_npoint(temp_converted, np_converted) @@ -20072,8 +20450,8 @@ def tnpoint_minus_npoint( def tnpoint_minus_npointset( - temp: Annotated[cdata, "const Temporal *"], s: Annotated[cdata, "const Set *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], s: Annotated[_ffi.CData, "const Set *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) s_converted = _ffi.cast("const Set *", s) result = _lib.tnpoint_minus_npointset(temp_converted, s_converted) @@ -20082,8 +20460,8 @@ def tnpoint_minus_npointset( def tnpoint_minus_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"], border_inc: bool -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"], border_inc: bool +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) result = _lib.tnpoint_minus_stbox(temp_converted, box_converted, border_inc) @@ -20092,8 +20470,8 @@ def tnpoint_minus_stbox( def tdistance_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tdistance_tnpoint_npoint(temp_converted, np_converted) @@ -20102,8 +20480,8 @@ def tdistance_tnpoint_npoint( def tdistance_tnpoint_point( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.tdistance_tnpoint_point(temp_converted, gs_converted) @@ -20112,8 +20490,8 @@ def tdistance_tnpoint_point( def tdistance_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "Temporal *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.tdistance_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -20122,7 +20500,7 @@ def tdistance_tnpoint_tnpoint( def nad_tnpoint_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) @@ -20132,7 +20510,7 @@ def nad_tnpoint_geo( def nad_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) @@ -20142,7 +20520,7 @@ def nad_tnpoint_npoint( def nad_tnpoint_stbox( - temp: Annotated[cdata, "const Temporal *"], box: Annotated[cdata, "const STBox *"] + temp: Annotated[_ffi.CData, "const Temporal *"], box: Annotated[_ffi.CData, "const STBox *"] ) -> Annotated[float, "double"]: temp_converted = _ffi.cast("const Temporal *", temp) box_converted = _ffi.cast("const STBox *", box) @@ -20152,7 +20530,7 @@ def nad_tnpoint_stbox( def nad_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[float, "double"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -20162,8 +20540,8 @@ def nad_tnpoint_tnpoint( def nai_tnpoint_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "TInstant *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.nai_tnpoint_geo(temp_converted, gs_converted) @@ -20172,8 +20550,8 @@ def nai_tnpoint_geo( def nai_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "TInstant *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "TInstant *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.nai_tnpoint_npoint(temp_converted, np_converted) @@ -20182,8 +20560,8 @@ def nai_tnpoint_npoint( def nai_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "TInstant *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "TInstant *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.nai_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -20192,8 +20570,8 @@ def nai_tnpoint_tnpoint( def shortestline_tnpoint_geo( - temp: Annotated[cdata, "const Temporal *"], gs: Annotated[cdata, "const GSERIALIZED *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], gs: Annotated[_ffi.CData, "const GSERIALIZED *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) gs_converted = _ffi.cast("const GSERIALIZED *", gs) result = _lib.shortestline_tnpoint_geo(temp_converted, gs_converted) @@ -20202,8 +20580,8 @@ def shortestline_tnpoint_geo( def shortestline_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.shortestline_tnpoint_npoint(temp_converted, np_converted) @@ -20212,8 +20590,8 @@ def shortestline_tnpoint_npoint( def shortestline_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] -) -> Annotated[cdata, "GSERIALIZED *"]: + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] +) -> Annotated[_ffi.CData, "GSERIALIZED *"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) result = _lib.shortestline_tnpoint_tnpoint(temp1_converted, temp2_converted) @@ -20222,8 +20600,8 @@ def shortestline_tnpoint_tnpoint( def tnpoint_tcentroid_transfn( - state: Annotated[cdata, "SkipList *"], temp: Annotated[cdata, "Temporal *"] -) -> Annotated[cdata, "SkipList *"]: + state: Annotated[_ffi.CData, "SkipList *"], temp: Annotated[_ffi.CData, "Temporal *"] +) -> Annotated[_ffi.CData, "SkipList *"]: state_converted = _ffi.cast("SkipList *", state) temp_converted = _ffi.cast("Temporal *", temp) result = _lib.tnpoint_tcentroid_transfn(state_converted, temp_converted) @@ -20232,7 +20610,7 @@ def tnpoint_tcentroid_transfn( def always_eq_npoint_tnpoint( - np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] + np: Annotated[_ffi.CData, "const Npoint *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) @@ -20242,7 +20620,7 @@ def always_eq_npoint_tnpoint( def always_eq_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) @@ -20252,7 +20630,7 @@ def always_eq_tnpoint_npoint( def always_eq_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -20262,7 +20640,7 @@ def always_eq_tnpoint_tnpoint( def always_ne_npoint_tnpoint( - np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] + np: Annotated[_ffi.CData, "const Npoint *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) @@ -20272,7 +20650,7 @@ def always_ne_npoint_tnpoint( def always_ne_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) @@ -20282,7 +20660,7 @@ def always_ne_tnpoint_npoint( def always_ne_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -20292,7 +20670,7 @@ def always_ne_tnpoint_tnpoint( def ever_eq_npoint_tnpoint( - np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] + np: Annotated[_ffi.CData, "const Npoint *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) @@ -20302,7 +20680,7 @@ def ever_eq_npoint_tnpoint( def ever_eq_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) @@ -20312,7 +20690,7 @@ def ever_eq_tnpoint_npoint( def ever_eq_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -20322,7 +20700,7 @@ def ever_eq_tnpoint_tnpoint( def ever_ne_npoint_tnpoint( - np: Annotated[cdata, "const Npoint *"], temp: Annotated[cdata, "const Temporal *"] + np: Annotated[_ffi.CData, "const Npoint *"], temp: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: np_converted = _ffi.cast("const Npoint *", np) temp_converted = _ffi.cast("const Temporal *", temp) @@ -20332,7 +20710,7 @@ def ever_ne_npoint_tnpoint( def ever_ne_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] ) -> Annotated[int, "int"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) @@ -20342,7 +20720,7 @@ def ever_ne_tnpoint_npoint( def ever_ne_tnpoint_tnpoint( - temp1: Annotated[cdata, "const Temporal *"], temp2: Annotated[cdata, "const Temporal *"] + temp1: Annotated[_ffi.CData, "const Temporal *"], temp2: Annotated[_ffi.CData, "const Temporal *"] ) -> Annotated[int, "int"]: temp1_converted = _ffi.cast("const Temporal *", temp1) temp2_converted = _ffi.cast("const Temporal *", temp2) @@ -20352,8 +20730,8 @@ def ever_ne_tnpoint_tnpoint( def teq_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.teq_tnpoint_npoint(temp_converted, np_converted) @@ -20362,8 +20740,8 @@ def teq_tnpoint_npoint( def tne_tnpoint_npoint( - temp: Annotated[cdata, "const Temporal *"], np: Annotated[cdata, "const Npoint *"] -) -> Annotated[cdata, "Temporal *"]: + temp: Annotated[_ffi.CData, "const Temporal *"], np: Annotated[_ffi.CData, "const Npoint *"] +) -> Annotated[_ffi.CData, "Temporal *"]: temp_converted = _ffi.cast("const Temporal *", temp) np_converted = _ffi.cast("const Npoint *", np) result = _lib.tne_tnpoint_npoint(temp_converted, np_converted) diff --git a/pyproject.toml b/pyproject.toml index 3ec57ec..a53ba2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,6 @@ authors = [ ] description = 'PyMEOS wrapper for the MEOS C Library.' classifiers = [ - 'License :: OSI Approved :: PostgreSQL License', 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', From f259d9654766ee0f9021c41ce12e7047f293c35b Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 19:49:25 +0200 Subject: [PATCH 35/36] Remove the crashing line since it can't be reproduced to be properly fixed Set proper python version for cibuildwheel --- .github/workflows/build_pymeos_cffi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index ddc8797..6049e50 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -192,6 +192,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: + python-version: "3.11" cache: "pip" - name: Install cibuildwheel @@ -281,7 +282,6 @@ jobs: run: | python -c "import pymeos_cffi; print(pymeos_cffi.__version__);" python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeompoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" - python -c "from pymeos_cffi import *; meos_initialize(None); print(tgeo_out(tgeogpoint_in('POINT(2 3)@2000-01-01'), 3)); meos_finalize();" upload_pypi: name: Upload to PyPI From 5d810d2b5bb0c90f53333d0a708967be3a456715 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Thu, 14 Aug 2025 18:44:21 +0200 Subject: [PATCH 36/36] Use all supported versions again --- .github/workflows/build_pymeos_cffi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_pymeos_cffi.yml b/.github/workflows/build_pymeos_cffi.yml index 6049e50..6202790 100644 --- a/.github/workflows/build_pymeos_cffi.yml +++ b/.github/workflows/build_pymeos_cffi.yml @@ -124,7 +124,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: 3.10 + python-version: "3.10" cache: "pip" - name: Setup pip