Closed ccoulombe closed 5 years ago
According to the docs : Deprecated since version 3.4: Use importlib.util.module_from_spec() instead..
Deprecated since version 3.4: Use importlib.util.module_from_spec() instead.
Using importlib.util.module_from_spec(None) is not possible, therefore using types.ModuleType() is the solution.
importlib.util.module_from_spec(None)
types.ModuleType()
looks good, thanks
According to the docs :
Deprecated since version 3.4: Use importlib.util.module_from_spec() instead.
.Using
importlib.util.module_from_spec(None)
is not possible, therefore usingtypes.ModuleType()
is the solution.