-
-
Notifications
You must be signed in to change notification settings - Fork 18.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
CLN: C408 Unnecessary dict call - rewrite as a literal #38138 #38383
Conversation
492f01f
to
2970c67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @UrielMaD , looks good to me pending green
@MarcoGorelli It will be all green in a bit, then maybe it can close the issue, I tried to commit the setup.cfg but then the checks crashes because it has some flake8 errors. |
I haven't checked yet, but if there are still some leftover files then we'll need to wait for those to be rewritten before we can update setup.cfg and close the issue |
I think these were the last 10 files remaining |
then I'm not sure why flake8 would fail, can you post the errors? |
Sure, take a look: (base) root@7be73fd07673:/workspaces/pandas-urielmd# flake8 setup.cfg |
you don't need to run Can you run
? If that passes, we're good to update it and close the issue |
My bad, there are still some unnecessary dict and tuple calls, I will check all of them and submit a new PR |
cool, thanks @UrielMaD ! |
@UrielMaD looks like there's only |
Fix in:
./pandas/tests/io/generate_legacy_storage_files.py
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff