Open
Description
This example from the PEP 572 incorrectly reports the total
variable as unused:
def cumulative_sum(values):
total = 0
return [total := total + v for v in values]
Metadata
Metadata
Assignees
Labels
No labels
8000
This example from the PEP 572 incorrectly reports the total
variable as unused:
def cumulative_sum(values):
total = 0
return [total := total + v for v in values]