False positive unbalanced-dict-unpacking
#9986
Labels
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
unbalanced-dict-unpacking
#9986
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
I would expect no message to be issued.
The problem goes away if
data
is initialized with 1 item in it.Ideally, pylint would take into account that the length of the dictionary has just been checked. I imagine that wouldn't be easy to implement though.
A possible alternative would be to not issue this message when a dictionary might have had its contents changed after its initialization.
Pylint version
OS / Environment
Linux (openSUSE Tumbleweed)
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: