-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F601 - dictionary key repeated with different values #1441
Conversation
1afd529
to
5ce1fe7
Compare
Codecov Report
@@ Coverage Diff @@
## master #1441 +/- ##
==========================================
+ Coverage 82.95% 82.96% +<.01%
==========================================
Files 179 179
Lines 42230 42230
==========================================
+ Hits 35032 35035 +3
+ Misses 7198 7195 -3
|
Why do you add |
When noqa is used, it means that both keys are valid according to the specifications, or documents that I found. I thing it is better that commenting because it keeps the same code as today.
|
The thing is when we leave two entries with the same key, we do not know which one will be chosen (this may change with different Python version). I think it would be cleaner to explicitly chose the value that will exist in the dictionary rather than letting the Python interpreter chose for us. |
@p-l- I agree but I don't know which values should be kept =/ |
@p-l- what's your call on this PR? |
The real issue is that To properly fix this, we need to fix what args |
@gpotter2 can you explain what could be done here? |
b546a3d
to
d3263f0
Compare
F601 - dictionary key repeated with different values
Another PR of the #1277 serie. It removes duplicated dictionary keys.