However, I conservatively avoided removing the expressions that had been assigned to the variables, so this left behind expression statements that are probably unused unless they have important side effects. We should audit them to see if we can remove them and/or if there are deeper bugs here.
Flake8 (#588) revealed a number of unused variable assignments. I removed the unused variables in these commits:
54b257820481d39d2b38c60b1ca019a495270771 cleanup: Remove unused variables. a01e5e37f42971db042f042726040d283efec857 cleanup: Remove more unused variables.
However, I conservatively avoided removing the expressions that had been assigned to the variables, so this left behind expression statements that are probably unused unless they have important side effects. We should audit them to see if we can remove them and/or if there are deeper bugs here.