Update mypy to 1.18.1 (#14699)

This commit is contained in:
sobolevn
2025-09-14 03:33:27 +02:00
committed by GitHub
parent 59c36c8bf9
commit 4b0623f4fb
31 changed files with 70 additions and 108 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from typing import Literal, SupportsIndex, final, overload
from typing_extensions import Never
from typing_extensions import Never, Self
import numpy as np
from numpy.typing import NDArray
@@ -154,7 +154,7 @@ class Geometry:
@final
class STRtree:
count: int
def __init__(self, geoms: NDArray[np.object_], node_capacity: SupportsIndex, /, **kwargs: object) -> None: ...
def __new__(cls, geoms: NDArray[np.object_], node_capacity: SupportsIndex, /, **kwargs: object) -> Self: ...
def dwithin(self, geoms: NDArray[np.object_], distances: NDArray[np.float64], /) -> NDArray[np.int64]: ...
def nearest(self, geoms: NDArray[np.object_], /) -> NDArray[np.int64]: ...
def query(self, geoms: NDArray[np.object_], predicate: SupportsIndex, /) -> NDArray[np.int64]: ...