1+ from _typeshed import Incomplete
12from typing import Any , Generic , Literal , TypeAlias , TypedDict , overload , type_check_only
23from typing_extensions import TypeVar , Unpack , override
34
@@ -66,7 +67,9 @@ class NearestNDInterpolator(NDInterpolatorBase[_CT_co], Generic[_CT_co]):
6667
6768 #
6869 @override
69- def __call__ (self , / , * args : onp .ToFloatND , ** query_options : Unpack [_QueryOptions ]) -> onp .Array [onp .AtLeast1D , _CT_co ]: ...
70+ def __call__ (
71+ self , / , * args : onp .ToFloatND , ** query_options : Unpack [_QueryOptions ]
72+ ) -> onp .Array [onp .AtLeast1D [Any ], _CT_co ]: ...
7073
7174#
7275@overload
@@ -77,7 +80,7 @@ def griddata(
7780 method : _Method = "linear" ,
7881 fill_value : onp .ToFloat = ..., # np.nan
7982 rescale : onp .ToBool = False ,
80- ) -> onp .Array [onp .AtLeast1D , np .float64 ]: ...
83+ ) -> onp .Array [onp .AtLeast1D [ Any ] , np .float64 ]: ...
8184@overload
8285def griddata (
8386 points : onp .ToFloat1D | onp .ToFloat2D ,
@@ -86,7 +89,7 @@ def griddata(
8689 method : _Method = "linear" ,
8790 fill_value : onp .ToComplex = ..., # np.nan
8891 rescale : onp .ToBool = False ,
89- ) -> onp .Array [onp .AtLeast1D , np .complex128 ]: ...
92+ ) -> onp .Array [onp .AtLeast1D [ Any ] , np .complex128 ]: ...
9093@overload
9194def griddata (
9295 points : onp .ToFloat1D | onp .ToFloat2D ,
@@ -95,4 +98,4 @@ def griddata(
9598 method : _Method = "linear" ,
9699 fill_value : onp .ToComplex = ..., # np.nan
97100 rescale : onp .ToBool = False ,
98- ) -> onp .Array [onp .AtLeast1D , Any ]: ...
101+ ) -> onp .Array [onp .AtLeast1D [ Any ], Incomplete ]: ...
0 commit comments