Dispatcher.on_module_imported

Dispatcher.on_module_imported(module, newly_loaded_modules)[source]

Event triggered when a module is successfully imported.

Override this method when subclassing in order to handle the what happens after a module has been imported.

Parameters:
modulemodule

A module object.

newly_loaded_modulessequence[str]

A list of module names that have been loaded.

Returns:
None