-
Notifications
You must be signed in to change notification settings - Fork 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
Code cleanups from ruff and pyupgrade #17654
Conversation
but allow `dict()` calls that make use of keyword arguments (e.g., `dict(a=1, b=2)`).
Also fix commands for `pyupgrade` Makefile target.
Found by running: ``` make pyupgrade ```
Thats for the galaxy.files fix. That looks right to me! |
Would you mind waiting for #17180 to be merged first? I'm afraid this might cause conflicts and some painful rebasing. |
thanks for checking, @nsoranzo, then it'll be fine. |
...and I merged too soon! This: I'll go through this line by line and will submit a fix shortly. |
Is this a SqlAlchemy 2.0 change or are these lines not tested? |
It's not a SQLAlchemy thing, it applies to sqlite3 as well. I've tested it - they are not directly iterable, here's one example:
Same for SQLAlchemy's Result object. Why exactly these are not iterable when passed to |
|
Now, this is truly embarrassing 😆 After getting tripped by |
No worries, I was able to notice this because I have been confused by these Pdb weirdnesses too many times! |
dict()
calls that make use of keyword arguments (e.g.,dict(a=1, b=2)
).galaxy-util
package a file that requiresgalaxy.files
How to test the changes?
(Select all options that apply)
License