Adds C421 that checks for unnecessary generator expressions that simply yield items from an iterable.
This patch contains a recursive function to determine if two tuple match whilst handling nesting (for example, (a, ((b, c) d))). I can change it to not check nested tuples if you would rather not have that complexity.
Adds
C421
that checks for unnecessary generator expressions that simply yield items from an iterable.This patch contains a recursive function to determine if two tuple match whilst handling nesting (for example,
(a, ((b, c) d))
). I can change it to not check nested tuples if you would rather not have that complexity.Closes #503