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
15
15
numpy.ctypeslib._ctypeslib
16
16
numpy.fft.helper
17
17
18
- numpy.lib.recfunctions.unstructured_to_structured
19
-
20
18
numpy.distutils
21
19
22
20
numpy.f2py.__main__
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ __all__ = [
32
32
"unstructured_to_structured" ,
33
33
]
34
34
35
+ ###
36
+
35
37
_T = TypeVar ("_T" )
36
38
_ShapeT = TypeVar ("_ShapeT" , bound = tuple [int , ...])
37
39
_ScalarT = TypeVar ("_ScalarT" , bound = np .generic )
@@ -268,6 +270,16 @@ def unstructured_to_structured(
268
270
copy : bool = False ,
269
271
casting : str = "unsafe" ,
270
272
) -> 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 ]: ...
271
283
272
284
#
273
285
def apply_along_fields (
You can’t perform that action at this time.
0 commit comments