You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: