Fix stubtest for shapely (#12339)

Fixes #12338
This commit is contained in:
Alex Waygood
2024-07-14 01:56:29 +01:00
committed by GitHub
parent 35b84f2f21
commit 16341c749a

View File

@@ -1,6 +1,6 @@
from array import array
from collections.abc import Iterator
from typing import overload
from typing import Literal, overload
import numpy as np
from numpy.typing import DTypeLike, NDArray
@@ -13,6 +13,6 @@ class CoordinateSequence:
def __getitem__(self, key: int) -> tuple[float, float]: ...
@overload
def __getitem__(self, key: slice) -> list[tuple[float, float]]: ...
def __array__(self, dtype: DTypeLike | None = None) -> NDArray[np.float64]: ...
def __array__(self, dtype: DTypeLike | None = None, copy: Literal[True] | None = None) -> NDArray[np.float64]: ...
@property
def xy(self) -> tuple[array[float], array[float]]: ...