Skip to content

Commit

Permalink
wip: Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Mar 5, 2024
1 parent 0e4473e commit 990c1ed
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions python/core/python/geoarrow/rust/core/_rust.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1201,13 +1201,22 @@ def envelope(input: ArrowStreamExportable) -> ChunkedRectArray: ...
def envelope(
input: ArrowArrayExportable | ArrowStreamExportable,
) -> RectArray | ChunkedRectArray: ...

BroadcastGeometry = Union[ScalarGeometry, GeometryArray, ChunkedGeometryArray]

@overload
def frechet_distance(input: ArrowArrayExportable) -> Float64Array: ...
def frechet_distance(
input: ArrowArrayExportable, other: BroadcastGeometry
) -> Float64Array: ...
@overload
def frechet_distance(input: ArrowStreamExportable) -> ChunkedFloat64Array: ...
def frechet_distance(
input: ArrowStreamExportable, other: BroadcastGeometry
) -> ChunkedFloat64Array: ...
def frechet_distance(
input: ArrowArrayExportable | ArrowStreamExportable,
) -> Float64Array | ChunkedFloat64Array: ...


def geodesic_perimeter(input: ArrowArrayExportable) -> Float64Array: ...
@overload
def is_empty(input: ArrowArrayExportable) -> BooleanArray: ...
Expand Down

0 comments on commit 990c1ed

Please sign in to comment.