Skip to content
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

Removed side effect on the stop argument from _gen #677

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

VincentToups
Copy link
Contributor

Calling append on stop can cause issues if the same list is used in multiple situations in the same parent context. Using a non-destructive method to update the stop list also makes invoking gen over rpyc possible.

@riedgar-ms
Copy link
Collaborator

Can I suggest that you add a test case to avoid future regressions?

@VincentToups
Copy link
Contributor Author

VincentToups commented Mar 7, 2024 via email

function.

Calling append on `stop` can cause issues if the same list is used in
multiple situations in the same parent context. Using a
non-destructive method to update the stop list also makes invoking gen
over rpyc possible.
@VincentToups
Copy link
Contributor Author

I revised the commit to add a test.

@slundberg
Copy link
Contributor

Looks great, thanks @VincentToups !

@slundberg slundberg merged commit 793821b into guidance-ai:main Mar 14, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants