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

Use Iterable[Sample] for all sample collection #756

Merged
merged 1 commit into from Jan 27, 2022

Conversation

csmarchbanks
Copy link
Member

This makes sure the types are all consistent and use the appropriate
NamedTuple.

This makes sure the types are all consistent and use the appropriate
NamedTuple.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Copy link

@sd2k sd2k left a comment

Choose a reason for hiding this comment

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

I'm not super familiar with the codebase, but in general I would prefer the functions returning concrete types (Tuple[Sample]) to be annotated as such, unless there's a specific reason for not doing (e.g. they might change in future). Not a massive issue though, and this should be forwards compatible.

@csmarchbanks csmarchbanks merged commit 304745f into master Jan 27, 2022
@csmarchbanks csmarchbanks deleted the fix-samples-type branch January 27, 2022 15:35
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