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

Fix return type of workflow.wait #650

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix return type of workflow.wait #650

wants to merge 1 commit into from

Conversation

dandavison
Copy link
Contributor

Fix the return type, and improve the comments inherited from Python a bit more.

@dandavison dandavison requested a review from a team as a code owner September 24, 2024 21:46
if not fs:
raise ValueError("Set of Tasks/Futures is empty.")
raise ValueError("Sequence of Tasks/Futures must not be empty.")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check doesn't actually make sense, since the input could be an empty generator, which is truthy, but will become empty when materialized as a list below. Leaving for now since this is copied from cPython.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 If they Python authors were better, it'd be below fs = list(fs) heh

@dandavison dandavison enabled auto-merge (squash) September 25, 2024 13:10
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.

2 participants