@@ -149,7 +149,7 @@ class Index(IndexOpsMixin, PandasObject):
149
149
def intersection (
150
150
self , other : Union [List [T1 ], Index ], sort : bool = ...
151
151
) -> Index : ...
152
- def difference (self , other : Union [List [T1 ], Index ]) -> Index : ...
152
+ def difference (self , other : Union [List [Union [ T1 , None ] ], Index ]) -> Index : ...
153
153
def symmetric_difference (
154
154
self , other : Union [List [T1 ], Index ], result_name = ..., sort = ...
155
155
) -> Index : ...
@@ -174,11 +174,11 @@ class Index(IndexOpsMixin, PandasObject):
174
174
def __hash__ (self ) -> int : ...
175
175
def __setitem__ (self , key , value ) -> None : ...
176
176
@overload
177
- def __getitem__ (self , idx : Union [slice , np_ndarray_int64 , Index , Series [bool ]]) -> Index : ...
178
- @overload
179
177
def __getitem__ (
180
- self , idx : Union [int , Tuple [np_ndarray_int64 , ...]]
181
- ) -> Scalar : ...
178
+ self , idx : Union [slice , np_ndarray_int64 , Index , Series [bool ]]
179
+ ) -> Index : ...
180
+ @overload
181
+ def __getitem__ (self , idx : Union [int , Tuple [np_ndarray_int64 , ...]]) -> Scalar : ...
182
182
def append (self , other ): ...
183
183
def putmask (self , mask , value ): ...
184
184
def equals (self , other ) -> bool : ...
0 commit comments