Skip to main content

ModulePlaceholder

ClassPrivateSource

bdict_view = ModulePlaceholder(
name: str,
doc: str | None = None
)

The placeholder module.

This module is used as a placeholder of a module that cannot be found. It can still provide __name__ property. However, it does not contain the __spec__ property.

danger

This class is only internally used. Users should not use it.

If users need to check whether a module is a placeholder, please use fsc.backends.is_module_invalid.

Arguments

ArgumentTypeRequired
Description
namestrThe module name. It will be passed to ModuleType.
docstr | NoneThe docstring of the module placeholder.