mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user