We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Pylance in VS Code is reporting "incorrect usage of symbol imported from a "py.typed" module that is [not re-exported]".
Example code:
from InquirerPy import inquirer _ = inquirer.text("Example:")
Reported error:
"text" is not exported from module "test.inquirer" Pylance(reportPrivateImportUsage)
This can be fixed by adding __all__ to inquirer.py:
__all__
inquirer.py
from InquirerPy.prompts import CheckboxPrompt as checkbox from InquirerPy.prompts import ConfirmPrompt as confirm from InquirerPy.prompts import ExpandPrompt as expand from InquirerPy.prompts import FilePathPrompt as filepath from InquirerPy.prompts import FuzzyPrompt as fuzzy from InquirerPy.prompts import InputPrompt as text from InquirerPy.prompts import ListPrompt as select from InquirerPy.prompts import NumberPrompt as number from InquirerPy.prompts import RawlistPrompt as rawlist from InquirerPy.prompts import SecretPrompt as secret __all__ = ['select', 'text', 'secret', 'rawlist', 'confirm', 'checkbox', 'expand', 'filepath', 'fuzzy', 'number']
Without the "all", every function all is marked as a problem.
The text was updated successfully, but these errors were encountered:
Strange, I'm still seeing it...
Sorry, something went wrong.
InquirerLib version 0.0.1
c35baa8
Including some proposed & unpublished updates from InquirerPy: - kazhala/InquirerPy#69 - fix typos - kazhala/InquirerPy#65 - add DataValidator class - kazhala/InquirerPy#56 - add Choice.instruction field - kazhala/InquirerPy#52 - proper exporting of functions ref: - kazhala/InquirerPy#60 - kazhala/InquirerPy#48 also document some info to address issue: kazhala/InquirerPy#64
Successfully merging a pull request may close this issue.
Pylance in VS Code is reporting "incorrect usage of symbol imported from a "py.typed" module that is [not re-exported]".
Example code:
Reported error:
This can be fixed by adding
__all__
toinquirer.py
:Without the "all", every function all is marked as a problem.
The text was updated successfully, but these errors were encountered: