microsoft / microsoft/pyright

Ignore a missing module globally for reportMissingModuleSource

Open
#10,921 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.