@@ -15,7 +15,6 @@ from typing_extensions import Self
15
15
class NAType :
16
16
def __new__ (cls , * args : Any , ** kwargs : Any ) -> Self : ...
17
17
def __format__ (self , format_spec : str ) -> str : ...
18
- def __bool__ (self ) -> None : ...
19
18
def __hash__ (self ) -> int : ...
20
19
def __reduce__ (self ) -> str : ...
21
20
@overload
@@ -135,7 +134,7 @@ class NAType:
135
134
@overload # type: ignore[override]
136
135
def __eq__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
137
136
self , other : Series , /
138
- ) -> Series : ...
137
+ ) -> Series [ bool ] : ...
139
138
@overload
140
139
def __eq__ (self , other : Index , / ) -> BooleanArray : ... # type: ignore[overload-overlap]
141
140
@overload
@@ -145,7 +144,7 @@ class NAType:
145
144
@overload # type: ignore[override]
146
145
def __ne__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
147
146
self , other : Series , /
148
- ) -> Series : ...
147
+ ) -> Series [ bool ] : ...
149
148
@overload
150
149
def __ne__ (self , other : Index , / ) -> BooleanArray : ... # type: ignore[overload-overlap]
151
150
@overload
@@ -155,31 +154,31 @@ class NAType:
155
154
@overload
156
155
def __le__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
157
156
self , other : Series , /
158
- ) -> Series : ...
157
+ ) -> Series [ bool ] : ...
159
158
@overload
160
159
def __le__ (self , other : Index , / ) -> BooleanArray : ... # type: ignore[overload-overlap]
161
160
@overload
162
161
def __le__ (self , other : object , / ) -> NAType : ...
163
162
@overload
164
163
def __lt__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
165
164
self , other : Series , /
166
- ) -> Series : ...
165
+ ) -> Series [ bool ] : ...
167
166
@overload
168
167
def __lt__ (self , other : Index , / ) -> BooleanArray : ... # type: ignore[overload-overlap]
169
168
@overload
170
169
def __lt__ (self , other : object , / ) -> NAType : ...
171
170
@overload
172
171
def __gt__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
173
172
self , other : Series , /
174
- ) -> Series : ...
173
+ ) -> Series [ bool ] : ...
175
174
@overload
176
175
def __gt__ (self , other : Index , / ) -> BooleanArray : ... # type: ignore[overload-overlap]
177
176
@overload
178
177
def __gt__ (self , other : object , / ) -> NAType : ...
179
178
@overload
180
179
def __ge__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
181
180
self , other : Series , /
182
- ) -> Series : ...
181
+ ) -> Series [ bool ] : ...
183
182
@overload
184
183
def __ge__ (self , other : Index , / ) -> BooleanArray : ... # type: ignore[overload-overlap]
185
184
@overload
@@ -205,45 +204,21 @@ class NAType:
205
204
@overload
206
205
def __rpow__ (self , other : object , / ) -> NAType : ...
207
206
@overload
208
- def __and__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
209
- self , other : Series , /
210
- ) -> Series : ...
211
- @overload
212
- def __and__ (self , other : Index , / ) -> Index : ... # type: ignore[overload-overlap]
213
- @overload
214
- def __and__ (self , other : Literal [False ], / ) -> Literal [False ]: ... # type: ignore[overload-overlap]
215
- @overload
216
- def __and__ (self , other : object , / ) -> NAType : ...
207
+ def __and__ (self , other : Literal [False ], / ) -> Literal [False ]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
217
208
@overload
218
- def __rand__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
219
- self , other : Series , /
220
- ) -> Series : ...
221
- @overload
222
- def __rand__ (self , other : Index , / ) -> Index : ... # type: ignore[overload-overlap]
209
+ def __and__ (self , other : bool | NAType , / ) -> NAType : ...
223
210
@overload
224
- def __rand__ (self , other : Literal [False ], / ) -> Literal [False ]: ... # type: ignore[overload-overlap]
211
+ def __rand__ (self , other : Literal [False ], / ) -> Literal [False ]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
225
212
@overload
226
- def __rand__ (self , other : object , / ) -> NAType : ...
227
- @overload
228
- def __or__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
229
- self , other : Series , /
230
- ) -> Series : ...
213
+ def __rand__ (self , other : bool , / ) -> NAType : ...
231
214
@overload
232
- def __or__ (self , other : Index , / ) -> Index : ... # type: ignore[overload-overlap]
233
- @overload
234
- def __or__ (self , other : Literal [True ], / ) -> Literal [True ]: ... # type: ignore[overload-overlap]
235
- @overload
236
- def __or__ (self , other : object , / ) -> NAType : ...
237
- @overload
238
- def __ror__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
239
- self , other : Series , /
240
- ) -> Series : ...
215
+ def __or__ (self , other : Literal [True ], / ) -> Literal [True ]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
241
216
@overload
242
- def __ror__ (self , other : Index , / ) -> Index : ... # type: ignore[overload-overlap]
217
+ def __or__ (self , other : bool | NAType , / ) -> NAType : ...
243
218
@overload
244
- def __ror__ (self , other : Literal [True ], / ) -> Literal [True ]: ... # type: ignore[overload-overlap]
219
+ def __ror__ (self , other : Literal [True ], / ) -> Literal [True ]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
245
220
@overload
246
- def __ror__ (self , other : object , / ) -> NAType : ...
221
+ def __ror__ (self , other : bool | NAType , / ) -> NAType : ...
247
222
@overload
248
223
def __xor__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
249
224
self , other : Series , /
0 commit comments