How to Solve NameError: name 'ModuleType' is not defined -- types
Solution: Import the 'ModuleType' module
# Add the following line to the top of your code
from types import ModuleType
For more information:
types ModuleType
# Add the following line to the top of your code
from types import ModuleType
For more information:
types ModuleType