-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Added typing annotations to datasets/_optical_flow #6845
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Francois, LGTM! One question though that is more directed at @NicolasHug: given that we are talking mostly about private methods here, is there a benefit of allowing Union[str, pathlib.Path]
over a plain Path
or str
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Francois!
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 |
Summary: * style: Added typing annotations to datasets/_optical_flow * style: Reverted back to str typing Reviewed By: YosuaMichael Differential Revision: D42046594 fbshipit-source-id: 0a6b4720602a2bd83457733824205f66839ae2c1 Co-authored-by: Philip Meier <[email protected]>
Following up on #2025, this PR adds typing annotations in models/datasets/_optical_flow
Any feedback is welcome!
cc @datumbox @pmeier @oke-aditya