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
Argument | Type | Required | |
---|---|---|---|
name | str | The module name. It will be passed to ModuleType . | |
doc | str | None | The docstring of the module placeholder. |