[code-quality] Redefining a dictionary while looping over it - one to add to linters?