@@ -102,15 +102,15 @@ assert_type(np.frombuffer(A, dtype="c16"), _nt.Array[Any])
102
102
assert_type (np .arange (False , True ), _nt .Array1D [np .int_ ])
103
103
assert_type (np .arange (10 ), _nt .Array1D [np .int_ ])
104
104
assert_type (np .arange (0 , 10 , step = 2 ), _nt .Array1D [np .int_ ])
105
- assert_type (np .arange (10.0 ), _nt .Array1D [np .float64 | np . int_ ])
106
- assert_type (np .arange (start = 0 , stop = 10.0 ), _nt .Array1D [np .float64 | np . int_ ])
105
+ assert_type (np .arange (10.0 ), _nt .Array1D [np .float64 ])
106
+ assert_type (np .arange (start = 0 , stop = 10.0 ), _nt .Array1D [np .float64 ])
107
107
assert_type (np .arange (np .timedelta64 (0 )), _nt .Array1D [np .timedelta64 ])
108
108
assert_type (np .arange (0 , np .timedelta64 (10 )), _nt .Array1D [np .timedelta64 ])
109
109
assert_type (np .arange (np .datetime64 ("0" ), np .datetime64 ("10" )), _nt .Array1D [np .datetime64 ])
110
110
assert_type (np .arange (10 , dtype = np .float64 ), _nt .Array1D [np .float64 ])
111
111
assert_type (np .arange (0 , 10 , step = 2 , dtype = np .int16 ), _nt .Array1D [np .int16 ])
112
112
assert_type (np .arange (10 , dtype = int ), _nt .Array1D [np .int_ ])
113
- assert_type (np .arange (0 , 10 , dtype = "f8" ), _nt .Array1D )
113
+ assert_type (np .arange (0 , 10 , dtype = "f8" ), _nt .Array1D [ np . float64 ] )
114
114
115
115
assert_type (np .require (A ), _nt .Array [np .float64 ])
116
116
assert_type (np .require (B ), MyArray [np .float64 ])
0 commit comments