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

Disable or fix import-untyped error for mypy #1576

Open
jonespm opened this issue Apr 25, 2024 · 0 comments
Open

Disable or fix import-untyped error for mypy #1576

jonespm opened this issue Apr 25, 2024 · 0 comments
Labels
dev review Needs verification from a developer

Comments

@jonespm
Copy link
Member

jonespm commented Apr 25, 2024

Describe the bug (Tell us what happens instead of the expected behavior) :

When using "Mypy Type Checker" extension in VSCode many errors for import-untyped are displayed. Like these

  • Library stubs not installed for "pandas"
  • Skipping analyzing "django.conf": module is installed, but missing library stubs or py.typed marker

I don't believe there's a way to easily resolve these and mypy.ini in the root level could probably just be configured to ignore these.

This might just be

ignore_errors = import-untyped

But perhaps we can be more specific about this?

image

Steps to Reproduce :

  1. Launch VSCode and install the extension mentioned
  2. Open a file that imports any django files
  3. You'll should errors if not disabled.
@jonespm jonespm added the dev review Needs verification from a developer label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev review Needs verification from a developer
Projects
None yet
Development

No branches or pull requests

1 participant