-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor: no return for add* python helpers #1404
refactor: no return for add* python helpers #1404
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1404 +/- ##
=======================================
Coverage 48.59% 48.59%
=======================================
Files 380 380
Lines 20577 20577
Branches 9429 9429
=======================================
Hits 9999 9999
Misses 4093 4093
Partials 6485 6485 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hi @andiwand, This was originally proposed by @asalzburger in #1098, so we should get his feedback. I think the idea is to emphasize that the For myself, I don't have a strong opinion either way, so I wouldn't mind if it was changed - as long as it was changed consistently in all the examples and documentation. Thanks, |
hmm makes sense. I just wonder if the return value emphasizes this enough as you can easily skip it without any loss of functionality. I guess what would be nice is something like |
That could be easier to use, but could make the implementation harder to understand. The aim with this interface is to make it simple to get started, but not to discourage people playing inside the |
I would prefer not to wrap the sequencer. My original reason for having it as an argument an return value was that you could pass in I think my preferred solution would be to drop the return value consistently. |
I agree - I will draft these changes |
Cool. Can you change the PR title, since this doesn't any more just affect the OOD. |
I made the changes @timadye. I left the |
Co-authored-by: Tim Adye <T.J.Adye@rl.ac.uk>
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.
all looks good to me
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-develop/v19.x develop/v19.x
# Navigate to the new working tree
cd .worktrees/backport-develop/v19.x
# Create a new branch
git switch --create backport-1404-to-develop/v19.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 afb91a583e6db641c9b39354c7494da5726b8681
# Push it to GitHub
git push --set-upstream origin backport-1404-to-develop/v19.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-develop/v19.x Then, create a pull request where the |
after working on the full chain doc I wondered why we do `s = addSomething(s, ...)` all the time. to me it looks kind of confusing as the reader might think `s` is changing every time we add something. maybe we want to remove the return value of the add functions completely? @paulgessinger @timadye
after working on the full chain doc I wondered why we do `s = addSomething(s, ...)` all the time. to me it looks kind of confusing as the reader might think `s` is changing every time we add something. maybe we want to remove the return value of the add functions completely? @paulgessinger @timadye (cherry picked from commit afb91a5)
…p/v19.x] (#1457) Backport afb91a5 from #1404. --- after working on the full chain doc I wondered why we do `s = addSomething(s, ...)` all the time. to me it looks kind of confusing as the reader might think `s` is changing every time we add something. maybe we want to remove the return value of the add functions completely? @paulgessinger @timadye
after working on the full chain doc I wondered why we do `s = addSomething(s, ...)` all the time. to me it looks kind of confusing as the reader might think `s` is changing every time we add something. maybe we want to remove the return value of the add functions completely? @paulgessinger @timadye
after working on the full chain doc I wondered why we do
s = addSomething(s, ...)
all the time. to me it looks kind of confusing as the reader might thinks
is changing every time we add something.maybe we want to remove the return value of the add functions completely? @paulgessinger @timadye