@@ -11,92 +11,92 @@ class SubClass(np.ndarray): ...
11
11
12
12
def func (i : int , j : int , ** kwargs : Any ) -> SubClass : ...
13
13
14
- reveal_type (np .asarray (A )) # E: ndarray
15
- reveal_type (np .asarray (B )) # E: ndarray
16
- reveal_type (np .asarray (C )) # E: ndarray
14
+ reveal_type (np .asarray (A )) # E: numpy. ndarray[Any, Any]
15
+ reveal_type (np .asarray (B )) # E: numpy. ndarray[Any, Any]
16
+ reveal_type (np .asarray (C )) # E: numpy. ndarray[Any, Any]
17
17
18
- reveal_type (np .asanyarray (A )) # E: ndarray
18
+ reveal_type (np .asanyarray (A )) # E: numpy. ndarray[Any, Any]
19
19
reveal_type (np .asanyarray (B )) # E: SubClass
20
- reveal_type (np .asanyarray (B , dtype = int )) # E: ndarray
21
- reveal_type (np .asanyarray (C )) # E: ndarray
20
+ reveal_type (np .asanyarray (B , dtype = int )) # E: numpy. ndarray[Any, Any]
21
+ reveal_type (np .asanyarray (C )) # E: numpy. ndarray[Any, Any]
22
22
23
- reveal_type (np .ascontiguousarray (A )) # E: ndarray
24
- reveal_type (np .ascontiguousarray (B )) # E: ndarray
25
- reveal_type (np .ascontiguousarray (C )) # E: ndarray
23
+ reveal_type (np .ascontiguousarray (A )) # E: numpy. ndarray[Any, Any]
24
+ reveal_type (np .ascontiguousarray (B )) # E: numpy. ndarray[Any, Any]
25
+ reveal_type (np .ascontiguousarray (C )) # E: numpy. ndarray[Any, Any]
26
26
27
- reveal_type (np .asfortranarray (A )) # E: ndarray
28
- reveal_type (np .asfortranarray (B )) # E: ndarray
29
- reveal_type (np .asfortranarray (C )) # E: ndarray
27
+ reveal_type (np .asfortranarray (A )) # E: numpy. ndarray[Any, Any]
28
+ reveal_type (np .asfortranarray (B )) # E: numpy. ndarray[Any, Any]
29
+ reveal_type (np .asfortranarray (C )) # E: numpy. ndarray[Any, Any]
30
30
31
- reveal_type (np .require (A )) # E: ndarray
31
+ reveal_type (np .require (A )) # E: numpy. ndarray[Any, Any]
32
32
reveal_type (np .require (B )) # E: SubClass
33
33
reveal_type (np .require (B , requirements = None )) # E: SubClass
34
- reveal_type (np .require (B , dtype = int )) # E: ndarray
35
- reveal_type (np .require (B , requirements = "E" )) # E: ndarray
36
- reveal_type (np .require (B , requirements = ["ENSUREARRAY" ])) # E: ndarray
37
- reveal_type (np .require (B , requirements = {"F" , "E" })) # E: ndarray
34
+ reveal_type (np .require (B , dtype = int )) # E: numpy. ndarray[Any, Any]
35
+ reveal_type (np .require (B , requirements = "E" )) # E: numpy. ndarray[Any, Any]
36
+ reveal_type (np .require (B , requirements = ["ENSUREARRAY" ])) # E: numpy. ndarray[Any, Any]
37
+ reveal_type (np .require (B , requirements = {"F" , "E" })) # E: numpy. ndarray[Any, Any]
38
38
reveal_type (np .require (B , requirements = ["C" , "OWNDATA" ])) # E: SubClass
39
39
reveal_type (np .require (B , requirements = "W" )) # E: SubClass
40
40
reveal_type (np .require (B , requirements = "A" )) # E: SubClass
41
- reveal_type (np .require (C )) # E: ndarray
41
+ reveal_type (np .require (C )) # E: numpy. ndarray[Any, Any]
42
42
43
- reveal_type (np .linspace (0 , 10 )) # E: numpy.ndarray
44
- reveal_type (np .linspace (0 , 10 , retstep = True )) # E: Tuple[numpy.ndarray, numpy.inexact[Any]]
45
- reveal_type (np .logspace (0 , 10 )) # E: numpy.ndarray
46
- reveal_type (np .geomspace (1 , 10 )) # E: numpy.ndarray
43
+ reveal_type (np .linspace (0 , 10 )) # E: numpy.ndarray[Any, Any]
44
+ reveal_type (np .linspace (0 , 10 , retstep = True )) # E: Tuple[numpy.ndarray[Any, Any] , numpy.inexact[Any]]
45
+ reveal_type (np .logspace (0 , 10 )) # E: numpy.ndarray[Any, Any]
46
+ reveal_type (np .geomspace (1 , 10 )) # E: numpy.ndarray[Any, Any]
47
47
48
- reveal_type (np .zeros_like (A )) # E: numpy.ndarray
49
- reveal_type (np .zeros_like (C )) # E: numpy.ndarray
48
+ reveal_type (np .zeros_like (A )) # E: numpy.ndarray[Any, Any]
49
+ reveal_type (np .zeros_like (C )) # E: numpy.ndarray[Any, Any]
50
50
reveal_type (np .zeros_like (B )) # E: SubClass
51
- reveal_type (np .zeros_like (B , dtype = np .int64 )) # E: numpy.ndarray
51
+ reveal_type (np .zeros_like (B , dtype = np .int64 )) # E: numpy.ndarray[Any, Any]
52
52
53
- reveal_type (np .ones_like (A )) # E: numpy.ndarray
54
- reveal_type (np .ones_like (C )) # E: numpy.ndarray
53
+ reveal_type (np .ones_like (A )) # E: numpy.ndarray[Any, Any]
54
+ reveal_type (np .ones_like (C )) # E: numpy.ndarray[Any, Any]
55
55
reveal_type (np .ones_like (B )) # E: SubClass
56
- reveal_type (np .ones_like (B , dtype = np .int64 )) # E: numpy.ndarray
56
+ reveal_type (np .ones_like (B , dtype = np .int64 )) # E: numpy.ndarray[Any, Any]
57
57
58
- reveal_type (np .empty_like (A )) # E: numpy.ndarray
59
- reveal_type (np .empty_like (C )) # E: numpy.ndarray
58
+ reveal_type (np .empty_like (A )) # E: numpy.ndarray[Any, Any]
59
+ reveal_type (np .empty_like (C )) # E: numpy.ndarray[Any, Any]
60
60
reveal_type (np .empty_like (B )) # E: SubClass
61
- reveal_type (np .empty_like (B , dtype = np .int64 )) # E: numpy.ndarray
61
+ reveal_type (np .empty_like (B , dtype = np .int64 )) # E: numpy.ndarray[Any, Any]
62
62
63
- reveal_type (np .full_like (A , i8 )) # E: numpy.ndarray
64
- reveal_type (np .full_like (C , i8 )) # E: numpy.ndarray
63
+ reveal_type (np .full_like (A , i8 )) # E: numpy.ndarray[Any, Any]
64
+ reveal_type (np .full_like (C , i8 )) # E: numpy.ndarray[Any, Any]
65
65
reveal_type (np .full_like (B , i8 )) # E: SubClass
66
- reveal_type (np .full_like (B , i8 , dtype = np .int64 )) # E: numpy.ndarray
66
+ reveal_type (np .full_like (B , i8 , dtype = np .int64 )) # E: numpy.ndarray[Any, Any]
67
67
68
- reveal_type (np .ones (1 )) # E: numpy.ndarray
69
- reveal_type (np .ones ([1 , 1 , 1 ])) # E: numpy.ndarray
68
+ reveal_type (np .ones (1 )) # E: numpy.ndarray[Any, Any]
69
+ reveal_type (np .ones ([1 , 1 , 1 ])) # E: numpy.ndarray[Any, Any]
70
70
71
- reveal_type (np .full (1 , i8 )) # E: numpy.ndarray
72
- reveal_type (np .full ([1 , 1 , 1 ], i8 )) # E: numpy.ndarray
71
+ reveal_type (np .full (1 , i8 )) # E: numpy.ndarray[Any, Any]
72
+ reveal_type (np .full ([1 , 1 , 1 ], i8 )) # E: numpy.ndarray[Any, Any]
73
73
74
- reveal_type (np .indices ([1 , 2 , 3 ])) # E: numpy.ndarray
75
- reveal_type (np .indices ([1 , 2 , 3 ], sparse = True )) # E: tuple[numpy.ndarray]
74
+ reveal_type (np .indices ([1 , 2 , 3 ])) # E: numpy.ndarray[Any, Any]
75
+ reveal_type (np .indices ([1 , 2 , 3 ], sparse = True )) # E: tuple[numpy.ndarray[Any, Any] ]
76
76
77
77
reveal_type (np .fromfunction (func , (3 , 5 ))) # E: SubClass
78
78
79
- reveal_type (np .identity (10 )) # E: numpy.ndarray
79
+ reveal_type (np .identity (10 )) # E: numpy.ndarray[Any, Any]
80
80
81
- reveal_type (np .atleast_1d (A )) # E: numpy.ndarray
82
- reveal_type (np .atleast_1d (C )) # E: numpy.ndarray
83
- reveal_type (np .atleast_1d (A , A )) # E: list[numpy.ndarray]
84
- reveal_type (np .atleast_1d (A , C )) # E: list[numpy.ndarray]
85
- reveal_type (np .atleast_1d (C , C )) # E: list[numpy.ndarray]
81
+ reveal_type (np .atleast_1d (A )) # E: numpy.ndarray[Any, Any]
82
+ reveal_type (np .atleast_1d (C )) # E: numpy.ndarray[Any, Any]
83
+ reveal_type (np .atleast_1d (A , A )) # E: list[numpy.ndarray[Any, Any] ]
84
+ reveal_type (np .atleast_1d (A , C )) # E: list[numpy.ndarray[Any, Any] ]
85
+ reveal_type (np .atleast_1d (C , C )) # E: list[numpy.ndarray[Any, Any] ]
86
86
87
- reveal_type (np .atleast_2d (A )) # E: numpy.ndarray
87
+ reveal_type (np .atleast_2d (A )) # E: numpy.ndarray[Any, Any]
88
88
89
- reveal_type (np .atleast_3d (A )) # E: numpy.ndarray
89
+ reveal_type (np .atleast_3d (A )) # E: numpy.ndarray[Any, Any]
90
90
91
- reveal_type (np .vstack ([A , A ])) # E: numpy.ndarray
92
- reveal_type (np .vstack ([A , C ])) # E: numpy.ndarray
93
- reveal_type (np .vstack ([C , C ])) # E: numpy.ndarray
91
+ reveal_type (np .vstack ([A , A ])) # E: numpy.ndarray[Any, Any]
92
+ reveal_type (np .vstack ([A , C ])) # E: numpy.ndarray[Any, Any]
93
+ reveal_type (np .vstack ([C , C ])) # E: numpy.ndarray[Any, Any]
94
94
95
- reveal_type (np .hstack ([A , A ])) # E: numpy.ndarray
95
+ reveal_type (np .hstack ([A , A ])) # E: numpy.ndarray[Any, Any]
96
96
97
- reveal_type (np .stack ([A , A ])) # E: numpy.ndarray
98
- reveal_type (np .stack ([A , A ], axis = 0 )) # E: numpy.ndarray
97
+ reveal_type (np .stack ([A , A ])) # E: numpy.ndarray[Any, Any]
98
+ reveal_type (np .stack ([A , A ], axis = 0 )) # E: numpy.ndarray[Any, Any]
99
99
reveal_type (np .stack ([A , A ], out = B )) # E: SubClass
100
100
101
- reveal_type (np .block ([[A , A ], [A , A ]])) # E: numpy.ndarray
102
- reveal_type (np .block (C )) # E: numpy.ndarray
101
+ reveal_type (np .block ([[A , A ], [A , A ]])) # E: numpy.ndarray[Any, Any]
102
+ reveal_type (np .block (C )) # E: numpy.ndarray[Any, Any]
0 commit comments