File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ numpy._pyinstaller.hook-numpy
1515numpy.ctypeslib._ctypeslib
1616numpy.fft.helper
1717
18- numpy.lib.recfunctions.unstructured_to_structured
19-
2018numpy.distutils
2119
2220numpy.f2py.__main__
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ __all__ = [
3232 "unstructured_to_structured" ,
3333]
3434
35+ ###
36+
3537_T = TypeVar ("_T" )
3638_ShapeT = TypeVar ("_ShapeT" , bound = tuple [int , ...])
3739_ScalarT = TypeVar ("_ScalarT" , bound = np .generic )
@@ -268,6 +270,16 @@ def unstructured_to_structured(
268270 copy : bool = False ,
269271 casting : str = "unsafe" ,
270272) -> npt .NDArray [np .void ]: ...
273+ @overload
274+ def unstructured_to_structured (
275+ arr : npt .NDArray [Any ],
276+ dtype : None = None ,
277+ * ,
278+ names : _OneOrMany [str ],
279+ align : bool = False ,
280+ copy : bool = False ,
281+ casting : str = "unsafe" ,
282+ ) -> npt .NDArray [np .void ]: ...
271283
272284#
273285def apply_along_fields (
You can’t perform that action at this time.
0 commit comments