pyright
pyright copied to clipboard
Ignore a missing module globally for reportMissingModuleSource
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