@@ -117,7 +117,7 @@ assert_type(np.frompyfunc(func11, 1, 1).identity, Any | None)
117117assert_type (np .frompyfunc (func11 , 1 , 1 ).signature , str | None )
118118assert_type (np .frompyfunc (func11 , 1 , 1 )(f8 ), bool )
119119assert_type (np .frompyfunc (func11 , 1 , 1 ).at (AR_f8 , AR_i8 ), None )
120- assert_type (np .frompyfunc (func11 , 1 , 1 )(AR_f8 ), bool | _nt .Array [np .object_ ])
120+ assert_type (np .frompyfunc (func11 , 1 , 1 )(AR_f8 ), _nt .Array [np .object_ ])
121121
122122assert_type (np .frompyfunc (func21 , 2 , 1 ).nin , int )
123123assert_type (np .frompyfunc (func21 , 2 , 1 ).nout , int )
@@ -126,8 +126,8 @@ assert_type(np.frompyfunc(func21, 2, 1).ntypes, int)
126126assert_type (np .frompyfunc (func21 , 2 , 1 ).identity , Any | None )
127127assert_type (np .frompyfunc (func21 , 2 , 1 ).signature , str | None )
128128assert_type (np .frompyfunc (func21 , 2 , 1 )(f8 , f8 ), int )
129- assert_type (np .frompyfunc (func21 , 2 , 1 )(AR_f8 , f8 ), int | _nt .Array [np .object_ ])
130- assert_type (np .frompyfunc (func21 , 2 , 1 )(f8 , AR_f8 ), int | _nt .Array [np .object_ ])
129+ assert_type (np .frompyfunc (func21 , 2 , 1 )(AR_f8 , f8 ), _nt .Array [np .object_ ])
130+ assert_type (np .frompyfunc (func21 , 2 , 1 )(f8 , AR_f8 ), _nt .Array [np .object_ ])
131131assert_type (np .frompyfunc (func21 , 2 , 1 ).reduce (AR_f8 , axis = 0 ), Any )
132132assert_type (np .frompyfunc (func21 , 2 , 1 ).accumulate (AR_f8 ), _nt .Array [Any ])
133133assert_type (np .frompyfunc (func21 , 2 , 1 ).reduceat (AR_f8 , AR_i8 ), _nt .Array [Any ])
@@ -147,7 +147,7 @@ assert_type(np.frompyfunc(func12, 1, 2).ntypes, int)
147147assert_type (np .frompyfunc (func12 , 1 , 2 ).identity , Any | None )
148148assert_type (np .frompyfunc (func12 , 1 , 2 ).signature , str | None )
149149assert_type (np .frompyfunc (func12 , 1 , 2 )(f8 , f8 ), tuple [complex , str ])
150- assert_type (np .frompyfunc (func12 , 1 , 2 )(AR_f8 , f8 ), tuple [complex | _nt .Array [np .object_ ], str | _nt .Array [np .object_ ]])
150+ assert_type (np .frompyfunc (func12 , 1 , 2 )(AR_f8 , f8 ), tuple [_nt .Array [np .object_ ], _nt .Array [np .object_ ]])
151151
152152assert_type (np .datetime_data ("m8[D]" ), tuple [str , int ])
153153assert_type (np .datetime_data (np .datetime64 ), tuple [str , int ])
0 commit comments