@@ -102,15 +102,15 @@ assert_type(np.frombuffer(A, dtype="c16"), _nt.Array[Any])
102102assert_type (np .arange (False , True ), _nt .Array1D [np .int_ ])
103103assert_type (np .arange (10 ), _nt .Array1D [np .int_ ])
104104assert_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 ])
107107assert_type (np .arange (np .timedelta64 (0 )), _nt .Array1D [np .timedelta64 ])
108108assert_type (np .arange (0 , np .timedelta64 (10 )), _nt .Array1D [np .timedelta64 ])
109109assert_type (np .arange (np .datetime64 ("0" ), np .datetime64 ("10" )), _nt .Array1D [np .datetime64 ])
110110assert_type (np .arange (10 , dtype = np .float64 ), _nt .Array1D [np .float64 ])
111111assert_type (np .arange (0 , 10 , step = 2 , dtype = np .int16 ), _nt .Array1D [np .int16 ])
112112assert_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 ] )
114114
115115assert_type (np .require (A ), _nt .Array [np .float64 ])
116116assert_type (np .require (B ), MyArray [np .float64 ])
0 commit comments