Bump flake8-pyi to 24.6.0 (#12132)

This commit is contained in:
Alex Waygood
2024-06-12 11:46:23 +01:00
committed by GitHub
parent 804a58165a
commit 9197ace5ec
9 changed files with 24 additions and 28 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 = 0 # noqa: Y052
pointwise = 1 # noqa: Y052
keep_collapsed = 2 # noqa: Y052
valid_output = 0
pointwise = 1
keep_collapsed = 2
@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 = 1 # noqa: Y052
flat = 2 # noqa: Y052
square = 3 # noqa: Y052
round = 1
flat = 2
square = 3
class BufferJoinStyle(ParamEnum):
round = 1 # noqa: Y052
mitre = 2 # noqa: Y052
bevel = 3 # noqa: Y052
round = 1
mitre = 2
bevel = 3
@overload
def boundary(geometry: Point | MultiPoint, **kwargs) -> GeometryCollection: ...

View File

@@ -1,7 +1,7 @@
from array import array
from collections.abc import Iterator
from typing import Any, Generic, Literal, NoReturn, overload
from typing_extensions import Self, TypeVar, deprecated # noqa: Y023
from typing_extensions import Self, TypeVar, deprecated
import numpy as np
from numpy.typing import NDArray

View File

@@ -18,8 +18,8 @@ __all__ = ["from_geojson", "from_ragged_array", "from_wkb", "from_wkt", "to_geoj
DecodingErrorOptions: Incomplete
class WKBFlavorOptions(ParamEnum):
extended = 1 # noqa: Y052
iso = 2 # noqa: Y052
extended = 1
iso = 2
@overload
def to_wkt(

View File

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