Skip to content

Commit 87fa01d

Browse files
authored
[geopandas] Replace NoReturn with Never (#16085)
1 parent 2cf747c commit 87fa01d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

stubs/geopandas/geopandas/array.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import builtins
22
from _typeshed import Incomplete, Unused
33
from collections.abc import Callable, Collection
4-
from typing import Any, ClassVar, Final, Literal, NoReturn, SupportsIndex, TypeAlias, TypeVar, overload
5-
from typing_extensions import Self, deprecated
4+
from typing import Any, ClassVar, Final, Literal, SupportsIndex, TypeAlias, TypeVar, overload
5+
from typing_extensions import Never, Self, deprecated
66

77
import numpy as np
88
import pandas as pd
@@ -245,8 +245,8 @@ class GeometryArray(ExtensionArray):
245245
@property
246246
def nbytes(self) -> int: ...
247247
def shift(self, periods: int = 1, fill_value: Geometry | None = None) -> GeometryArray: ... # type: ignore[override]
248-
def argmin(self, skipna: bool = True) -> NoReturn: ...
249-
def argmax(self, skipna: bool = True) -> NoReturn: ...
248+
def argmin(self, skipna: bool = True) -> Never: ...
249+
def argmax(self, skipna: bool = True) -> Never: ...
250250
def __array__(self, dtype: DTypeLike | None = None, copy: bool | None = None) -> _Array1D[np.object_]: ...
251251
def __eq__(self, other: object) -> _Array1D[np.bool_]: ... # type: ignore[override]
252252
def __ne__(self, other: object) -> _Array1D[np.bool_]: ... # type: ignore[override]

0 commit comments

Comments
 (0)