The Wayback Machine - https://web.archive.org/web/20220215171059/https://github.com/pytorch/pytorch/pull/61333
Skip to content
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

Fix mypy.ini #61333

Closed
wants to merge 1 commit into from
Closed

Fix mypy.ini #61333

wants to merge 1 commit into from

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Jul 7, 2021

Fixes CI regression caused by #61119
Unlike Python, .ini string lists could not end with trailing comma.

Fixes CI on master

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot facebook-github-bot commented Jul 7, 2021

💊 CI failures summary and remediations

As of commit 9cf978a (more details on the Dr. CI page and at hud.pytorch.org/pr/61333):


  • 2/2 failures possibly* introduced in this PR
    • 1/2 non-scanned failure(s)

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See GitHub Actions build Lint / mypy (1/1)

Step: "Run mypy" (full log | diagnosis details | 🔁 rerun)

2021-07-07T05:00:58.1834270Z torch/nn/modules/m...ed type annotation for '_modules' [var-annotated]
2021-07-07T05:00:28.4111247Z + for CONFIG in mypy*.ini
2021-07-07T05:00:28.4112381Z + mypy --config=mypy.ini
2021-07-07T05:00:58.1818416Z torch/nn/modules/module.py:257:9: error: Need type annotation for '_parameters'  [var-annotated]
2021-07-07T05:00:58.1820432Z torch/nn/modules/module.py:258:9: error: Need type annotation for '_buffers'  [var-annotated]
2021-07-07T05:00:58.1822764Z torch/nn/modules/module.py:259:9: error: Need type annotation for '_non_persistent_buffers_set' (hint: "_non_persistent_buffers_set: Set[<type>] = ...")  [var-annotated]
2021-07-07T05:00:58.1824976Z torch/nn/modules/module.py:260:9: error: Need type annotation for '_backward_hooks'  [var-annotated]
2021-07-07T05:00:58.1826883Z torch/nn/modules/module.py:262:9: error: Need type annotation for '_forward_hooks'  [var-annotated]
2021-07-07T05:00:58.1828828Z torch/nn/modules/module.py:263:9: error: Need type annotation for '_forward_pre_hooks'  [var-annotated]
2021-07-07T05:00:58.1830737Z torch/nn/modules/module.py:264:9: error: Need type annotation for '_state_dict_hooks'  [var-annotated]
2021-07-07T05:00:58.1832692Z torch/nn/modules/module.py:265:9: error: Need type annotation for '_load_state_dict_pre_hooks'  [var-annotated]
2021-07-07T05:00:58.1834270Z torch/nn/modules/module.py:266:9: error: Need type annotation for '_modules'  [var-annotated]
2021-07-07T05:01:39.9014902Z Found 9 errors in 1 file (checked 1385 source files)
2021-07-07T05:01:41.6800719Z + STATUS=fail
2021-07-07T05:01:41.6807217Z + '[' -n fail ']'
2021-07-07T05:01:41.6807968Z + echo 'Please fix the above mypy warnings.'
2021-07-07T05:01:41.6808476Z + false
2021-07-07T05:01:41.6808997Z Please fix the above mypy warnings.
2021-07-07T05:01:41.6814856Z ##[error]Process completed with exit code 1.
2021-07-07T05:01:41.6915511Z Post job cleanup.
2021-07-07T05:01:41.7990971Z [command]/usr/bin/git version
2021-07-07T05:01:41.8077532Z git version 2.32.0

Preview docs built from this PR

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.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot facebook-github-bot commented Jul 7, 2021

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@malfet malfet changed the title Fix mypy.init Fix mypy.ini Jul 7, 2021
bhosmer
bhosmer approved these changes Jul 7, 2021
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot facebook-github-bot commented Jul 7, 2021

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot facebook-github-bot commented Jul 7, 2021

@malfet merged this pull request in 9813b9b.

@zhouzhuojie
Copy link
Contributor

@zhouzhuojie zhouzhuojie commented Jul 7, 2021

good catch! thanks for the fix

@zhouzhuojie zhouzhuojie mentioned this pull request Jul 7, 2021
@malfet malfet deleted the malfet/fix-mypy.ini branch Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants