Closed tjkuson closed 2 months ago
Hi! Thanks for this helpful tool.
I'm working with code that has a lot of
{elt: None for elt in foo}
which is slower and (IMO) harder to read than
dict.fromkeys(foo)
Would there be interest in a rule that checks for dictionary comprehensions with constant values?
This has rule has been accepted by another project and it was suggested to me that I create an issue here too.
Yeah, I would like that here too. I don’t have time to work on it right now, but I’d accept a PR adding it.
I'll open a PR later today.
Description
Hi! Thanks for this helpful tool.
I'm working with code that has a lot of
which is slower and (IMO) harder to read than
Would there be interest in a rule that checks for dictionary comprehensions with constant values?
This has rule has been accepted by another project and it was suggested to me that I create an issue here too.