Skip to content

Commit

Permalink
Update frame.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Dec 2, 2023
1 parent 4cdbaac commit 1d42814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4211,7 +4211,7 @@ def __setitem__(self, key, value) -> None:
warn_copy_on_write()
or (
not warn_copy_on_write()
and any(b.refs.has_reference() for b in self._mgr.blocks)
and any(b.refs.has_reference() for b in self._mgr.blocks) # type: ignore[union-attr]
)
):
warnings.warn(
Expand Down

0 comments on commit 1d42814

Please sign in to comment.