Don't use a list comprehension without variable assignment
Merge pull request #17333 from rallytime/fix_pylint_develop

Don't use a list comprehension without variable assignment