mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Added typing
This commit is contained in:
parent
ca768aeddf
commit
37f5f55832
1 changed files with 13 additions and 23 deletions
|
|
@ -265,33 +265,23 @@ class PrePostLoaderHookPlugin:
|
|||
def process(self, context, name=None, namespace=None, options=None):
|
||||
pass
|
||||
|
||||
def update(self, container, context):
|
||||
pass
|
||||
|
||||
def switch(self, container, context):
|
||||
pass
|
||||
|
||||
|
||||
class PostLoaderHookPlugin:
|
||||
"""Plugin that should be run after any Loaders in 'loaders'
|
||||
|
||||
Should be used as non-invasive method to enrich core loading process.
|
||||
Any external studio might want to modify loaded data before or after
|
||||
they are loaded without need to override existing core plugins.
|
||||
"""
|
||||
loader_identifiers: ClassVar[set[str]]
|
||||
|
||||
def process(
|
||||
def pre_process(
|
||||
self,
|
||||
container,
|
||||
context,
|
||||
name=None,
|
||||
namespace=None,
|
||||
options=None
|
||||
context: dict,
|
||||
name: str | None = None,
|
||||
namespace: str | None = None,
|
||||
options: dict | None = None,
|
||||
):
|
||||
pass
|
||||
|
||||
def update(self, container, context):
|
||||
def post_process(
|
||||
self,
|
||||
container: dict, # (ayon:container-3.0)
|
||||
context: dict,
|
||||
name: str | None = None,
|
||||
namespace: str | None = None,
|
||||
options: dict | None = None
|
||||
):
|
||||
pass
|
||||
|
||||
def switch(self, container, context):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue