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

Cannot find implementation or library stub for module named "maison.config" #52

Closed
lyz-code opened this issue Nov 30, 2021 · 4 comments
Closed

Comments

@lyz-code
Copy link

When importing ProjectConfig with:

from maison.config import ProjectConfig

mypy returns the next error:

error: Cannot find implementation or library stub for module named "maison.config"  [import]

This can be patched by adding the next lines to mypy.ini:

[mypy-maison.*]
ignore_missing_imports = True

But it would be better if maison provided the information. Mypy gives some hints on how to make your library compatible with mypy.

@dbatten5
Copy link
Owner

oh that's no good. strange that it's complaining as all the code is fully typed and a py.typed file is included in the dist as far as i can see, perhaps i'm missing something. will take a look at that asap

@dbatten5
Copy link
Owner

just tried to recreate this locally and wasn't able to. imported ProjectConfig into a module and ran mypy on it and it reported no issues. are you able to provide a minimal reproducible example of the issue?

@lyz-code
Copy link
Author

lyz-code commented Dec 1, 2021

Weird, I've tried to replicate it myself removing hte ignore_missing_imports = True but now it doesn't return the error :S

If I catch it again, I'll reopen it. Sorry for the noise I'm giving you these days :(

@lyz-code lyz-code closed this as completed Dec 1, 2021
@dbatten5
Copy link
Owner

dbatten5 commented Dec 1, 2021

no worries at all! just glad to see people are finding the package useful, do keep opening issues as and when 👍

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

No branches or pull requests

2 participants