@@ -117,7 +117,7 @@ assert_type(np.frompyfunc(func11, 1, 1).identity, Any | None)
117
117
assert_type (np .frompyfunc (func11 , 1 , 1 ).signature , str | None )
118
118
assert_type (np .frompyfunc (func11 , 1 , 1 )(f8 ), bool )
119
119
assert_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_ ])
121
121
122
122
assert_type (np .frompyfunc (func21 , 2 , 1 ).nin , int )
123
123
assert_type (np .frompyfunc (func21 , 2 , 1 ).nout , int )
@@ -126,8 +126,8 @@ assert_type(np.frompyfunc(func21, 2, 1).ntypes, int)
126
126
assert_type (np .frompyfunc (func21 , 2 , 1 ).identity , Any | None )
127
127
assert_type (np .frompyfunc (func21 , 2 , 1 ).signature , str | None )
128
128
assert_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_ ])
131
131
assert_type (np .frompyfunc (func21 , 2 , 1 ).reduce (AR_f8 , axis = 0 ), Any )
132
132
assert_type (np .frompyfunc (func21 , 2 , 1 ).accumulate (AR_f8 ), _nt .Array [Any ])
133
133
assert_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)
147
147
assert_type (np .frompyfunc (func12 , 1 , 2 ).identity , Any | None )
148
148
assert_type (np .frompyfunc (func12 , 1 , 2 ).signature , str | None )
149
149
assert_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_ ]])
151
151
152
152
assert_type (np .datetime_data ("m8[D]" ), tuple [str , int ])
153
153
assert_type (np .datetime_data (np .datetime64 ), tuple [str , int ])
0 commit comments