File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3924,15 +3924,17 @@ def _set_value(
3924
3924
Sets whether or not index/col interpreted as indexers
3925
3925
"""
3926
3926
try :
3927
- # setitem_inplace will do validation that may raise TypeError,
3927
+ # setitem will do validation that may raise TypeError,
3928
3928
# ValueError, or LossySetitemError
3929
- # breakpoint()
3930
3929
if takeable :
3931
- self ._mgr .column_setitem (col , index , value )
3930
+ # error: Argument 2 to "column_setitem" of "BlockManager" has
3931
+ # incompatible type "Union[Hashable, Sequence[Hashable]]";
3932
+ # expected "Union[int, slice, ndarray[Any, Any]]"
3933
+ self ._mgr .column_setitem (col , index , value ) # type: ignore[arg-type]
3932
3934
else :
3933
3935
icol = self .columns .get_loc (col )
3934
3936
index = self .index .get_loc (index )
3935
- self ._mgr .column_setitem (icol , index , value )
3937
+ self ._mgr .column_setitem (icol , index , value ) # type: ignore[arg-type]
3936
3938
self ._clear_item_cache ()
3937
3939
3938
3940
except (KeyError , TypeError , ValueError , LossySetitemError ):
You can’t perform that action at this time.
0 commit comments