mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
shapely: Fix tuple length of CoordinateSequence items (#13435)
Closes #13422
This commit is contained in:
1 parent
c193cd2a36
commit
d704a7d8f7
1 file changed
+3
-3
@@ -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]]: ...
|
||||
Reference in new issue
Block a user