-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
pendulum.parse is not marked as exported (pyright type checker in VSCode) #595
Comments
I should have said that you need to set |
Mypy reports the same error. Another option in general is to define |
This issue also occurs in pyright with no VSCode specific configuration (IE I'm not sure I follow the entire logic of the 'typed-libraries.md' document linked in that comment, and I note that Does anyone understand the specific logic here? Is this an upstream bug for pyright seperate from issue 2277? It seems to my like pyright isn't respecting pendulum's It's possible another option here is to reword all of the pendulum imports in that file to use relative paths, ie. For now, I'm fixing this with a simple |
@eblume pyright respects
I think we just need a new release that contains this commit (as its not present in version 2.1.2) |
Feature Request
pyright type checker in VSCode reports a
reportPrivateImportUsage
error on following:According to pyright docs "Imported symbols are considered private by default." Which is the case of pendulum.parse.
It seems that simply changing the line to named export resolves the problem.
This is the case for all imported symbols, but I came across it on
pendulum.parse
. I'm aware it's probably just pyright-specific issue, so I'm reporting it as Feature Request. I'm also willing to create a PR if you consider this a valid request.The text was updated successfully, but these errors were encountered: