Ignore a missing module globally for reportMissingModuleSource
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.6k
- Forks
- 1.8k
- Avg merge
- 12h 13m
- Merged PRs (30d)
- 52
Description
Problem
If a module import is expected to have only stubs available (e.g. actual import added externally), one has to ignore or suppress the warning reportMissingModuleSource on each import or disable the warning for all missing module sources globally.
Feature Request
Explicitly configure a list of modules to exclude from this warning globally, e.g. in the pyright config.
Benefits:
- no more repeating
# pyright: ignore[reportMissingModuleSource] - still reporting unexpectedly missing module imports
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading Pyright's configuration handling and the reportMissingModuleSource diagnostic. Identify where a globally configured module exclusion belongs, then verify that excluded modules stop producing this warning while unexpected missing module imports continue to be reported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100