New checker for when an index-lookup is used together with dict.items()
#4470
Labels
Enhancement ✨
Improvement to a component
Good first issue
Friendly and approachable by new contributors
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Milestone
Is your feature request related to a problem? Please describe
As discussed with @cdce8p in #4445 :
A checker can be implemented to detect for instances where an index-lookup is used with
dict.items()
Describe the solution you'd like
A new checker should be implemented to discourage use of index-lookup when the value can be pulled from
v
Additional context
@cdce8p,
I think this should be in a different error message altogether -- should I try my hand at implementing it within this PR or perhaps I should create a separate PR for that. I think it might be better to not bloat up this PR
Originally posted by @yushao2 in #4445 (comment)
The text was updated successfully, but these errors were encountered: