-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Reenable checks and fix errors #717
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
Fixes 11 out of the 17 warnings when running 'make html' WARNING: Cannot resolve forward reference in type annotations of "{}": name 'ignite' is not defined
B007 Loop control variable '{}' not used within the loop body. If this is intended, start the name with an underscore. B008 See Project-MONAI#727
C402 Unnecessary generator - rewrite as a dict comprehension. C407 Unnecessary list comprehension - '{}' can take a generator. C416 Unnecessary list comprehension - rewrite using list().
F401 '{}' imported but unused
- Argument "{}" to "{}" has incompatible type "{}"; expected "{}" - Incompatible types in assignment (expression has type "{}", variable has type "{}") - Module "{}" is not valid as a type - Module has no attribute "{}" - Name '{}' is not defined - No overload variant of "{}" of "{}" matches argument types
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, looks like we can close ticket #476 after this PR?
There are still various missing type hints; I think we will need to resolve them first. Since the larger commits are taken care of I think it would be beneficial to have all checks running for the rest. |
Description
Fix currently ignored errors and reenable corresponding checks
autodoc-typehints
: enable flag (TYPE_CHECKING imports)flake8-bugbear
: reenable checks and fix errorsflake8-comprehensions
: reenable checks and fix errorsflake8 unused imports
: reenable checks and fix errorsflake8-mypy
: remove checks (no longer using)mypy-torch
: reenable checks and fix errorsStatus
Ready
Types of changes