You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd be happy to accept a PR that marked the fix as unsafe if we detected the argument to sep= as something that could have a side effect. We could use the contains_effect function we have here for that purpose:
However, I think we should still offer the fix (though it'll be marked as unsafe), even in these situations. I think it'll honestly be relatively rare for somebody to pass in a function that has a side effect to sep= here, and contains_effect() errs on the side of assuming that arbitrary functions might have side effects, although in reality they often won't.
The fix for FURB105 removes unneeded
sep
arguments even when they might have side effects. In that case, the fix should be omitted or marked unsafe.The text was updated successfully, but these errors were encountered: