Fix mypy error abut Chainer in Checks (integration)#4276
Fix mypy error abut Chainer in Checks (integration)#4276c-bata merged 2 commits intooptuna:masterfrom
Chainer in Checks (integration)#4276Conversation
Codecov Report
@@ Coverage Diff @@
## master #4276 +/- ##
=======================================
Coverage 89.76% 89.76%
=======================================
Files 170 170
Lines 13261 13261
=======================================
Hits 11904 11904
Misses 1357 1357
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Chainer in Checks (integration)
|
This pull request has not seen any recent activity. |
|
@cross32768 Could you review this PR? |
HideakiImamura
left a comment
There was a problem hiding this comment.
LGTM! I confirmed that the Chainer integration does not occur any errors in Checks (integration). https://github.com/HideakiImamura/optuna/actions/runs/3844638959/jobs/6547923432
There was a problem hiding this comment.
LGTM! I confirmed that 8 mypy errors related to chariner are appeared in master branch as shown below, and this PR resolves all.
optuna/integration/chainer.py:10: error: Module "chainer.training.triggers" does not explicitly export attribute "IntervalTrigger" [attr-defined]
optuna/integration/chainer.py:11: error: Module "chainer.training.triggers" does not explicitly export attribute "ManualScheduleTrigger" [attr-defined]
tests/integration_tests/test_chainer.py:18: error: Module "chainer.dataset" does not explicitly export attribute "DatasetMixin" [attr-defined]
tests/integration_tests/test_chainer.py:47: error: "Module chainer.training.triggers" does not explicitly export attribute "IntervalTrigger" [attr-defined]
tests/integration_tests/test_chainer.py:51: error: "Module chainer.training.triggers" does not explicitly export attribute "IntervalTrigger" [attr-defined]
tests/integration_tests/test_chainer.py:55: error: "Module chainer.training.triggers" does not explicitly export attribute "ManualScheduleTrigger" [attr-defined]
tests/integration_tests/test_chainer.py:113: error: "Module chainer.training.triggers" does not explicitly export attribute "IntervalTrigger" [attr-defined]
tests/integration_tests/test_chainer.py:121: error: "Module chainer.training.triggers" does not explicitly export attribute "IntervalTrigger" [attr-defined]
|
This pull request has not seen any recent activity. |
|
Thank you for your approval. |
|
Let me merge this PR since there are already two approvals. |
Motivation
Solve scheduled Checks (Integration) failure
Description of the changes
Currently, scheduled Checks (Integration) fails die to mypy check with
--warn-unused-ignoresoption. This PR removes a part of the cause related toChainer.Although test for Checks (Integration) does't run when PR in opened, I confirmed this PR together with other "Fix mypy error" series reduces mypy error at CI on my fork.