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

[ONNX] use consistent quoting for string literals (#57757) #58695

Closed
wants to merge 3 commits into from

Conversation

BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented May 20, 2021

Stack from ghstack:

As PEP8 says: "Pick a rule and stick to it." [1]

[1] https://www.python.org/dev/peps/pep-0008/#string-quotes

Co-authored-by: Gary Miguel garymiguel@microsoft.com

Differential Revision: D28714811

As PEP8 says: "Pick a rule and stick to it." [1]

[1] https://www.python.org/dev/peps/pep-0008/#string-quotes

Co-authored-by: Gary Miguel <garymiguel@microsoft.com>

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented May 20, 2021

💊 CI failures summary and remediations

As of commit f6e31db (more details on the Dr. CI page):


  • 3/3 failures possibly* introduced in this PR
    • 1/3 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-05-26T20:41:34.3190387Z torch/distributed/...e type Module; expected "Type[Module]" [arg-type]
2021-05-26T20:40:35.1000796Z shell: /bin/bash -e {0}
2021-05-26T20:40:35.1001184Z env:
2021-05-26T20:40:35.1001757Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.10/x64
2021-05-26T20:40:35.1002885Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.10/x64/lib
2021-05-26T20:40:35.1003448Z ##[endgroup]
2021-05-26T20:40:35.1109171Z + for CONFIG in mypy*.ini
2021-05-26T20:40:35.1111938Z + mypy --config=mypy-strict.ini
2021-05-26T20:40:53.5941253Z Success: no issues found in 81 source files
2021-05-26T20:40:54.3109738Z + for CONFIG in mypy*.ini
2021-05-26T20:40:54.3113014Z + mypy --config=mypy.ini
2021-05-26T20:41:34.3190387Z torch/distributed/nn/api/remote_module.py:525:41: error: Argument 2 to "__init__" of "_RemoteModule" has incompatible type Module; expected "Type[Module]"  [arg-type]
2021-05-26T20:42:14.0644849Z Found 1 error in 1 file (checked 1354 source files)
2021-05-26T20:42:16.1733210Z ##[error]Process completed with exit code 1.
2021-05-26T20:42:16.1841005Z Post job cleanup.
2021-05-26T20:42:16.2904988Z [command]/usr/bin/git version
2021-05-26T20:42:16.2972133Z git version 2.31.1
2021-05-26T20:42:16.3019608Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-05-26T20:42:16.3062910Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-05-26T20:42:16.3341328Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-05-26T20:42:16.3375231Z http.https://github.com/.extraheader
2021-05-26T20:42:16.3385703Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader

1 failure not recognized by patterns:

Job Step Action
GitHub Actions Windows CI (pytorch-win-vs2019-cpu-py3) / render_test_results Checkout PyTorch 🔁 rerun

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.

As PEP8 says: "Pick a rule and stick to it." [1]

[1] https://www.python.org/dev/peps/pep-0008/#string-quotes

Co-authored-by: Gary Miguel <garymiguel@microsoft.com>

[ghstack-poisoned]
@SplitInfinity
Copy link

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

@SplitInfinity
Copy link

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

As PEP8 says: "Pick a rule and stick to it." [1]

[1] https://www.python.org/dev/peps/pep-0008/#string-quotes

Co-authored-by: Gary Miguel <garymiguel@microsoft.com>

Differential Revision: [D28714811](https://our.internmc.facebook.com/intern/diff/D28714811)

[ghstack-poisoned]
@SplitInfinity
Copy link

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

@facebook-github-bot
Copy link
Contributor

@SplitInfinity merged this pull request in 0a6828a.

@facebook-github-bot facebook-github-bot deleted the gh/BowenBao/77/head branch May 31, 2021 14:17
deniskokarev pushed a commit to deniskokarev/pytorch that referenced this pull request Jun 9, 2021
…torch#58695)

Summary:
Pull Request resolved: pytorch#58695

As PEP8 says: "Pick a rule and stick to it." [1]

[1] https://www.python.org/dev/peps/pep-0008/#string-quotes

Test Plan: Imported from OSS

Reviewed By: driazati

Differential Revision: D28714811

Pulled By: SplitInfinity

fbshipit-source-id: c95103aceb1725c17c034dc6fc8216627f189548

Co-authored-by: Gary Miguel <garymiguel@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants