Skip to content

Commit

Permalink
shapely: Fix tuple length of CoordinateSequence items (#13435)
Browse files Browse the repository at this point in the history
Closes #13422
  • Loading branch information
hamdanal authored Feb 1, 2025
1 parent c193cd2 commit d704a7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stubs/shapely/shapely/coords.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]]: ...

0 comments on commit d704a7d

Please sign in to comment.