Skip to content

Commit d704a7d

Browse files
authored
shapely: Fix tuple length of CoordinateSequence items (#13435)
Closes #13422
1 parent c193cd2 commit d704a7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stubs/shapely/shapely/coords.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ from numpy.typing import DTypeLike, NDArray
88
class CoordinateSequence:
99
def __init__(self, coords: NDArray[np.float64]) -> None: ...
1010
def __len__(self) -> int: ...
11-
def __iter__(self) -> Iterator[tuple[float, float]]: ...
11+
def __iter__(self) -> Iterator[tuple[float, ...]]: ...
1212
@overload
13-
def __getitem__(self, key: int) -> tuple[float, float]: ...
13+
def __getitem__(self, key: int) -> tuple[float, ...]: ...
1414
@overload
15-
def __getitem__(self, key: slice) -> list[tuple[float, float]]: ...
15+
def __getitem__(self, key: slice) -> list[tuple[float, ...]]: ...
1616
def __array__(self, dtype: DTypeLike | None = None, copy: Literal[True] | None = None) -> NDArray[np.float64]: ...
1717
@property
1818
def xy(self) -> tuple[array[float], array[float]]: ...

0 commit comments

Comments
 (0)