mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Added docstring
This commit is contained in:
parent
0e292eb356
commit
276eff0097
1 changed files with 5 additions and 1 deletions
|
|
@ -313,7 +313,11 @@ def discover_loader_plugins(project_name=None):
|
|||
return plugins
|
||||
|
||||
|
||||
def hook_loader_load(loader_class, hook_instance):
|
||||
def hook_loader_load(
|
||||
loader_class: LoaderPlugin,
|
||||
hook_instance: PrePostLoaderHookPlugin
|
||||
) -> None:
|
||||
"""Monkey patch method replacing Loader.load method with wrapped hooks."""
|
||||
# If this is the first hook being added, wrap the original load method
|
||||
if not hasattr(loader_class, '_load_hooks'):
|
||||
loader_class._load_hooks = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue