Skip to content

Added typing annotations to transforms/autoaugment #4226

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 9 commits into from
Aug 16, 2021

Conversation

frgfm
Copy link
Contributor

@frgfm frgfm commented Jul 29, 2021

Following up on #2025, this PR adds missing typing annotations in transforms/autoaugment.py.

Any feedback is welcome!

@frgfm
Copy link
Contributor Author

frgfm commented Jul 31, 2021

FYI: I removed the ignore from mypy.ini locally and the checks are all passing on my end now 👌

Copy link
Contributor

@oke-aditya oke-aditya left a comment

Choose a reason for hiding this comment

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

😄 Let's go with the JIT logic as pmeier suggested.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! I have only one minor comment, otherwise good to merge once CI passes

@NicolasHug
Copy link
Member

before merging, we should please remove this file from mypy's ignore list so that the CI can check it as mentioned in #2025 (comment)

@frgfm
Copy link
Contributor Author

frgfm commented Aug 4, 2021

before merging, we should please remove this file from mypy's ignore list so that the CI can check it as mentioned in #2025 (comment)

Correct, but I thought we could merge #4236 before (otherwise we're gonna get conflicts about the mypy.ini on all related PRs), then I'll merge master and edit on this branch (+ the edit suggested by @fmassa )

@NicolasHug
Copy link
Member

That sounds good to me, as long as we don't forget the CI :)

@datumbox datumbox merged commit 38175ed into pytorch:master Aug 16, 2021
@github-actions
Copy link

Hey @datumbox!

You merged this PR, but no labels were added.

facebook-github-bot pushed a commit that referenced this pull request Aug 20, 2021
Summary:
* style: Added typing annotations

* style: Fixed typing

* style: Fixed typing

* Remove unnecessary any.

* Update mypy.ini

Reviewed By: NicolasHug

Differential Revision: D30417197

fbshipit-source-id: c801be04c456b4ec6c7794b9b1c89a79fe8773c6

Co-authored-by: Francisco Massa <[email protected]>
Co-authored-by: Vasilis Vryniotis <[email protected]>
Co-authored-by: Vasilis Vryniotis <[email protected]>
@frgfm frgfm deleted the autoaugment-typing branch August 22, 2021 19:12
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.

6 participants