PyCQA / flake8-bugbear

A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warn about static key in a dict comprehension

Skylion007 opened this issue · comments

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

Added with attached PR