Closed
Description
xref #18383
Ideally comprehensions should follow the general pattern:
list(x for x in iterator)
--> [x for x in iterator]
set(x for x in iterator)
--> {x for x in iterator}
dict((x,x) for x in iterator)
--> {x: x for x in iterator}
Adding a lint check for the prior pattern in ci/lint.sh
would be great.