Skip to content

Commit a2aa8aa

Browse files
handle typing
1 parent 0e4c58e commit a2aa8aa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/core/frame.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3924,15 +3924,17 @@ def _set_value(
39243924
Sets whether or not index/col interpreted as indexers
39253925
"""
39263926
try:
3927-
# setitem_inplace will do validation that may raise TypeError,
3927+
# setitem will do validation that may raise TypeError,
39283928
# ValueError, or LossySetitemError
3929-
# breakpoint()
39303929
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]
39323934
else:
39333935
icol = self.columns.get_loc(col)
39343936
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]
39363938
self._clear_item_cache()
39373939

39383940
except (KeyError, TypeError, ValueError, LossySetitemError):

0 commit comments

Comments
 (0)