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

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants