ID EN
Types

ModuleType

Python 3.11

The type of modules. The constructor takes the name of the module to be created and optionally its docstring.

Syntax

PYTHON
class types.ModuleType(name, doc=None)

See Also

modules docstring importlib.util.module_from_spec() docstring loader importlib.machinery.ModuleSpec.loader __spec__ __spec__