From 7bcfbb12841aee54c6cd62cdbaccd378b7c12b83 Mon Sep 17 00:00:00 2001 From: donbarbos Date: Fri, 24 Jul 2026 11:29:45 +0400 Subject: [PATCH] [geopandas] Replace NoReturn with Never --- stubs/geopandas/geopandas/array.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stubs/geopandas/geopandas/array.pyi b/stubs/geopandas/geopandas/array.pyi index 51cf935bd881..3c6a469b7802 100644 --- a/stubs/geopandas/geopandas/array.pyi +++ b/stubs/geopandas/geopandas/array.pyi @@ -1,8 +1,8 @@ import builtins from _typeshed import Incomplete, Unused from collections.abc import Callable, Collection -from typing import Any, ClassVar, Final, Literal, NoReturn, SupportsIndex, TypeAlias, TypeVar, overload -from typing_extensions import Self, deprecated +from typing import Any, ClassVar, Final, Literal, SupportsIndex, TypeAlias, TypeVar, overload +from typing_extensions import Never, Self, deprecated import numpy as np import pandas as pd @@ -245,8 +245,8 @@ class GeometryArray(ExtensionArray): @property def nbytes(self) -> int: ... def shift(self, periods: int = 1, fill_value: Geometry | None = None) -> GeometryArray: ... # type: ignore[override] - def argmin(self, skipna: bool = True) -> NoReturn: ... - def argmax(self, skipna: bool = True) -> NoReturn: ... + def argmin(self, skipna: bool = True) -> Never: ... + def argmax(self, skipna: bool = True) -> Never: ... def __array__(self, dtype: DTypeLike | None = None, copy: bool | None = None) -> _Array1D[np.object_]: ... def __eq__(self, other: object) -> _Array1D[np.bool_]: ... # type: ignore[override] def __ne__(self, other: object) -> _Array1D[np.bool_]: ... # type: ignore[override]