mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-22 01:28:29 +08:00
Update shapely enums (#12078)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user