From d704a7d8f702bc04686bcb72e09521e8b9ca3199 Mon Sep 17 00:00:00 2001 From: Ali Hamdan Date: Sat, 1 Feb 2025 19:40:34 +0100 Subject: [PATCH] shapely: Fix tuple length of `CoordinateSequence` items (#13435) Closes #13422 --- stubs/shapely/shapely/coords.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/shapely/shapely/coords.pyi b/stubs/shapely/shapely/coords.pyi index 2d5d30072..407b32af0 100644 --- a/stubs/shapely/shapely/coords.pyi +++ b/stubs/shapely/shapely/coords.pyi @@ -8,11 +8,11 @@ from numpy.typing import DTypeLike, NDArray class CoordinateSequence: def __init__(self, coords: NDArray[np.float64]) -> None: ... def __len__(self) -> int: ... - def __iter__(self) -> Iterator[tuple[float, float]]: ... + def __iter__(self) -> Iterator[tuple[float, ...]]: ... @overload - def __getitem__(self, key: int) -> tuple[float, float]: ... + def __getitem__(self, key: int) -> tuple[float, ...]: ... @overload - def __getitem__(self, key: slice) -> list[tuple[float, float]]: ... + def __getitem__(self, key: slice) -> list[tuple[float, ...]]: ... def __array__(self, dtype: DTypeLike | None = None, copy: Literal[True] | None = None) -> NDArray[np.float64]: ... @property def xy(self) -> tuple[array[float], array[float]]: ...