pyright icon indicating copy to clipboard operation
pyright copied to clipboard

Ignore a missing module globally for reportMissingModuleSource

Open ZashIn opened this issue 4 months ago • 0 comments

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

ZashIn avatar Sep 11 '25 13:09 ZashIn