Warn about static key in a dict comprehension
Skylion007 opened this issue · comments
Aaron Gokaslan commented
The full case for using this is made in this ruff issue. I can't think of any case where using a static key in a dict comprehension is intended unless there is some recursive reduction with the old value. astral-sh/ruff#4857
Cooper Lees commented
Added with attached PR