Add lint for unqualified type: ignore#56290
Add lint for unqualified type: ignore#56290samestep wants to merge 19 commits intopytorch:masterfrom samestep:lint-unqualified-type-ignore
type: ignore#56290Conversation
💊 CI failures summary and remediationsAs of commit 270a517 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Codecov Report
@@ Coverage Diff @@
## master #56290 +/- ##
==========================================
+ Coverage 77.76% 77.79% +0.02%
==========================================
Files 1923 1923
Lines 190699 190882 +183
==========================================
+ Hits 148298 148497 +199
+ Misses 42401 42385 -16 |
|
@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@seemethere That may be something we should do, but I don't want to do that in this PR. I believe the problem is just that I removed Edit: Actually, I think that somehow the issue was resolved by rebasing onto a more recent |
|
@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: This should make it easier to resolve issues surfaced by #56290. Also see #56559 (comment) for context. Pull Request resolved: #56616 Test Plan: You could add a type error in a strict-checked file like `tools/test_history.py`, and then run this command: ``` $ mypy --config=mypy-strict.ini tools/test_history.py ``` Output before this PR: ``` tools/test_history.py:13:1: error: Function is missing a type annotation for one or more arguments Found 1 error in 1 file (checked 1 source file) ``` Output after this PR: ``` tools/test_history.py:13:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def] Found 1 error in 1 file (checked 1 source file) ``` Reviewed By: driazati Differential Revision: D27918753 Pulled By: samestep fbshipit-source-id: 953926e019a7669da9004fd54498b414aec777a6
Summary: The other half of #56272. Pull Request resolved: #56290 Test Plan: CI should pass on the tip of this PR, and we know that the lint works because the following CI runs (before this PR was finished) failed: - https://github.com/pytorch/pytorch/runs/2384511062 - https://github.com/pytorch/pytorch/actions/runs/765036024 Reviewed By: seemethere Differential Revision: D27867219 Pulled By: samestep fbshipit-source-id: e648f07b6822867e70833e23ddafe7fb7eaca235
Summary: The other half of pytorch#56272. Pull Request resolved: pytorch#56290 Test Plan: CI should pass on the tip of this PR, and we know that the lint works because the following CI runs (before this PR was finished) failed: - https://github.com/pytorch/pytorch/runs/2384511062 - https://github.com/pytorch/pytorch/actions/runs/765036024 Reviewed By: seemethere Differential Revision: D27867219 Pulled By: samestep fbshipit-source-id: e648f07b6822867e70833e23ddafe7fb7eaca235
Summary: Followup to pytorch#56290 which adds the new lint to the local runner from pytorch#56439. Pull Request resolved: pytorch#56587 Test Plan: Same as pytorch#56439. Reviewed By: walterddr Differential Revision: D27909889 Pulled By: samestep fbshipit-source-id: 8b67f3bc36c9b5567fe5a9e49904f2cf23a9f135
Summary: This should make it easier to resolve issues surfaced by pytorch#56290. Also see pytorch#56559 (comment) for context. Pull Request resolved: pytorch#56616 Test Plan: You could add a type error in a strict-checked file like `tools/test_history.py`, and then run this command: ``` $ mypy --config=mypy-strict.ini tools/test_history.py ``` Output before this PR: ``` tools/test_history.py:13:1: error: Function is missing a type annotation for one or more arguments Found 1 error in 1 file (checked 1 source file) ``` Output after this PR: ``` tools/test_history.py:13:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def] Found 1 error in 1 file (checked 1 source file) ``` Reviewed By: driazati Differential Revision: D27918753 Pulled By: samestep fbshipit-source-id: 953926e019a7669da9004fd54498b414aec777a6
The other half of #56272.
Test plan:
CI should pass on the tip of this PR, and we know that the lint works because the following CI runs (before this PR was finished) failed: