-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations
Description
HI,
Since v0.5.3 and the changes made in #12364, ruff autofix introduced breakage in my code.
The following was autofixed from this:
timedelta_list = [dt.timedelta(days=2),dt.timedelta(days=1)]
res = sum(
[
delta
for delta in timedelta_list
if delta
],
dt.timedelta(),
).total_seconds()to this
timedelta_list = [dt.timedelta(days=2),dt.timedelta(days=1)]
res = sum(
delta
for delta in timedelta_list
if delta,
dt.timedelta(),
).total_seconds()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations