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

Test: Try out the new mypy linter. #20883

Closed
3 tasks done
karthiknadig opened this issue Mar 20, 2023 · 0 comments
Closed
3 tasks done

Test: Try out the new mypy linter. #20883

karthiknadig opened this issue Mar 20, 2023 · 0 comments
Labels
testplan-item Test plan item/assignments for upcoming release
Milestone

Comments

@karthiknadig
Copy link
Member

karthiknadig commented Mar 20, 2023

Ref: #20747

Complexity: 1

Create Issue


Requirements

Install the following extension: https://github.com/microsoft/vscode-mypy/suites/11691282639/artifacts/608014100
NOTE 1: Currently only pre-release version in available.

Verification

You should not have to install mypy. Just open a python file and you should see problems (if they exist).
Create a python file with following content:

import json
import sys

obj = {}
obj["versionInfo"] = tuple(sys.version_info)
obj["sysPrefix"] = sys.prefix
obj["sysVersion"] = sys.version
obj["is64Bit"] = sys.maxsize > 2**32


if __name__ == "__main__":
    print(x)
    print(json.dumps(obj))

You should see problems, like this:
image
image

If you run into any problems, you should be able to see logs under Output > Mypy.

@karthiknadig karthiknadig added the testplan-item Test plan item/assignments for upcoming release label Mar 20, 2023
@github-actions github-actions bot added this to the April 2023 milestone Mar 20, 2023
@joaomoreno joaomoreno removed their assignment Mar 21, 2023
@mjbvz mjbvz removed their assignment Mar 21, 2023
@gregvanl gregvanl removed their assignment Mar 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item Test plan item/assignments for upcoming release
Projects
None yet
Development

No branches or pull requests

5 participants