-
Notifications
You must be signed in to change notification settings - Fork 1.2k
476 Reconfigure mypy and pytype #834
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
2ddb9f1
to
4cec2dd
Compare
06294a6
to
8ae42ec
Compare
@hjmjohnson Updated and checks pass |
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 for your attention to detail. This variant of the patch is much more transparent about what is happening to the types in each case.
@@ -183,7 +183,7 @@ def _get_up_layer( | |||
|
|||
return conv | |||
|
|||
def forward(self, x: torch.Tensor): | |||
def forward(self, x: torch.Tensor) -> torch.Tensor: |
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.
Very Nice! Thanks
- Enable as many checks as possible - Allow redefinition for mypy to match pytype - Allow redefinition for pythonic code
@benjamin-gorman This needs updating again based on recent merges. |
- Update type: ignore to specify error - Update type hints to specify contents - Add type hints to parameters - Add type hints to returns - Remove unnecessary type hints - Remove incorrect type hints - Rename internal variables (redefinition) - Resolve errors as a result of the above
- Stick with no redefinition for stricter, explicit typing
52a6981
to
974f14e
Compare
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.
thank you and sorry for the delay :)
Iteration of #476
Description
Reconfigure mypy and pytype
Resolve errors, Add and Update type hints
Status
Ready
Types of changes
./runtests.sh --codeformat --coverage
.