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

Fixed Mypy not working (sometimes?) #268

Open
ZedOud opened this issue Dec 21, 2024 · 0 comments
Open

Fixed Mypy not working (sometimes?) #268

ZedOud opened this issue Dec 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ZedOud
Copy link

ZedOud commented Dec 21, 2024

Feature Request 🚀

You might have seen this mistake of mine #267

This was me thinking I had fixed Pylint, but what I actually fixed was Mypy not working (on MacOS at least, I'm not sure if Linux or Windows has this problem). Pylint should just be disabled.

Similar change:

    "python.analysis.extraPaths": [
        "~/.micropico-stubs/included",
        "${userHome}/.micropico-stubs/included"
    ],

For whatever reason, Mypy doesn't like the line with ~ and doesn't parse, see #267 for my reasoning and the relevant documentation.

When this change is made, you can see in the Output>Mypy Type Checker log that it pics up on the .micropico-stubs/included path in the home directory in the log text block starting with [info] sys.path used to run Server:

@ZedOud ZedOud added the enhancement New feature or request label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant