Update shapely enums (#12078)

This commit is contained in:
Ali Hamdan
2024-06-01 16:14:28 +02:00
committed by GitHub
parent 124d02034d
commit b019e98116
3 changed files with 18 additions and 18 deletions

View File

@@ -162,9 +162,9 @@ def get_precision(geometry: Geometry | None, **kwargs) -> float: ...
def get_precision(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
class SetPrecisionMode(ParamEnum):
valid_output: int
pointwise: int
keep_collapsed: int
valid_output = 0 # noqa: Y052
pointwise = 1 # noqa: Y052
keep_collapsed = 2 # noqa: Y052
@overload
def set_precision(geometry: OptGeoT, grid_size: float, mode: _PrecisionMode = "valid_output", **kwargs) -> OptGeoT: ...

View File

@@ -39,14 +39,14 @@ __all__ = [
]
class BufferCapStyle(ParamEnum):
round: int
flat: int
square: int
round = 1 # noqa: Y052
flat = 2 # noqa: Y052
square = 3 # noqa: Y052
class BufferJoinStyle(ParamEnum):
round: int
mitre: int
bevel: int
round = 1 # noqa: Y052
mitre = 2 # noqa: Y052
bevel = 3 # noqa: Y052
@overload
def boundary(geometry: Point | MultiPoint, **kwargs) -> GeometryCollection: ...

View File

@@ -15,15 +15,15 @@ _BinaryPredicate: TypeAlias = Literal[
]
class BinaryPredicate(ParamEnum):
intersects: int
within: int
contains: int
overlaps: int
crosses: int
touches: int
covers: int
covered_by: int
contains_properly: int
intersects = 1 # noqa: Y052
within = 2 # noqa: Y052
contains = 3 # noqa: Y052
overlaps = 4 # noqa: Y052
crosses = 5 # noqa: Y052
touches = 6 # noqa: Y052
covers = 7 # noqa: Y052
covered_by = 8 # noqa: Y052
contains_properly = 9 # noqa: Y052
class STRtree:
def __init__(self, geoms: GeoArrayLikeSeq, node_capacity: SupportsIndex = 10) -> None: ...