Skip to content

Yield from each queue one at a time#287

Open
patricktnast wants to merge 3 commits intomainfrom
pnast/hotfix/separate-queue-fetch
Open

Yield from each queue one at a time#287
patricktnast wants to merge 3 commits intomainfrom
pnast/hotfix/separate-queue-fetch

Conversation

@patricktnast
Copy link
Contributor

Title: Summary, imperative, start upper case, don't end with a period

Description

Changes and notes

Testing

)

def get_results(self) -> list[tuple[pd.DataFrame, dict[str, pd.DataFrame]]]:
def get_results(self) -> Iterator[tuple[pd.DataFrame, dict[str, pd.DataFrame]]]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be a Generator not an Iterator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Iterator is more general, and the caller(s) don't rely on any specific features of a generator (e.g. .send(); we just iterate over the tuples. so I think Iterator does make the most sense here

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.

4 participants

Comments