Feature Request
pyright type checker in VSCode reports a reportPrivateImportUsage error on following:
import pendulum
pendulum.parse('')
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.
-from .parser import parse
+from .parser import parse as parse
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.
Feature Request
pyright type checker in VSCode reports a
reportPrivateImportUsageerror 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.