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

defensive coding: allow python generators more places #782

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

leondz
Copy link
Owner

@leondz leondz commented Jul 5, 2024

resolves #96

  • Probes should be able to return a generator of attempts
  • -> probes.base.Probe._execute_all() (1) should be able to consume a generator of attempts
  • Generators should be able to return a generator of outputs
  • -> attempts (2) should be able to consume a generator of outputs
  • Detectors should be able to return generators of results
  • -> Evaluator¬s (3) should be able to consume generators of results --> enforced in Harness`; cast to detect() result to list, making multiple consumption safe

@leondz leondz requested a review from jmartin-tech July 5, 2024 15:28
@leondz leondz added the enhancement Architectural upgrades label Jul 5, 2024
@jmartin-tech jmartin-tech changed the title defensive coding: allow generators more places defensive coding: allow python generators more places Jul 11, 2024
@jmartin-tech jmartin-tech merged commit 5bc4d86 into main Jul 11, 2024
6 checks passed
@jmartin-tech jmartin-tech deleted the update/yield branch July 11, 2024 16:23
@github-actions github-actions bot locked and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Architectural upgrades
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix things that stop us yielding results, prompts
2 participants