Skip to content

Added missing typing annotations in dataset __getitem__ #6843

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

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

frgfm
Copy link
Contributor

@frgfm frgfm commented Oct 27, 2022

Following up on #2025, this PR adds missing typing annotations in models/datasets for their __getitem__ method.

Any feedback is welcome!

cc @datumbox @pmeier @oke-aditya

@frgfm frgfm mentioned this pull request Oct 27, 2022
@pmeier pmeier self-requested a review October 27, 2022 11:15
Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks Francois!

@pmeier pmeier merged commit e0068d8 into pytorch:main Oct 27, 2022
@github-actions
Copy link

Hey @pmeier!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

@frgfm frgfm deleted the dataset-typing branch October 27, 2022 21:23
facebook-github-bot pushed a commit that referenced this pull request Oct 31, 2022
Summary:
* style: Fixed typing of dataset __getitem__

* style: Fixed last missing typing

Reviewed By: datumbox

Differential Revision: D40851030

fbshipit-source-id: 4b5cc5fe339609155550a9c09cacb95ce5cbeda0

Co-authored-by: Philip Meier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants