From 83fd32e64db73a10b7c3e2f1b51026eca9de87dc Mon Sep 17 00:00:00 2001 From: Cyprien CAILLOT Date: Wed, 11 Sep 2024 16:47:40 +0200 Subject: [PATCH] Enhancement: Properly complete the pyblish_function.pyi --- openpype/pipeline/farm/pyblish_functions.py | 4 +++- openpype/pipeline/farm/pyblish_functions.pyi | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/openpype/pipeline/farm/pyblish_functions.py b/openpype/pipeline/farm/pyblish_functions.py index 8872ae64cec..283e9c1ff0c 100644 --- a/openpype/pipeline/farm/pyblish_functions.py +++ b/openpype/pipeline/farm/pyblish_functions.py @@ -465,7 +465,9 @@ def create_instances_for_aov(instance, skeleton, aov_filter, Args: instance (pyblish.api.Instance): Original instance. skeleton (dict): Skeleton instance data. + aov_filter (dict) skip_integration_repre_list (list): skip + do_not_add_review (bool) Returns: list of pyblish.api.Instance: Instances created from @@ -767,7 +769,7 @@ def get_resources(project_name, version, extension=None): def create_skeleton_instance_cache(instance): - # type: (pyblish.api.Instance, list, dict) -> dict + # type: (pyblish.api.Instance) -> dict """Create skeleton instance from original instance data. This will create dictionary containing skeleton diff --git a/openpype/pipeline/farm/pyblish_functions.pyi b/openpype/pipeline/farm/pyblish_functions.pyi index 76f7c34dcd6..c4304b4d609 100644 --- a/openpype/pipeline/farm/pyblish_functions.pyi +++ b/openpype/pipeline/farm/pyblish_functions.pyi @@ -1,5 +1,7 @@ +import os import pyblish.api from openpype.pipeline import Anatomy +from openpype.pipeline.publish import ColormanagedPyblishPluginMixin from typing import Tuple, Union, List @@ -19,6 +21,11 @@ def remap_source(source: str, anatomy: Anatomy): ... def extend_frames(asset: str, subset: str, start: int, end: int) -> Tuple[int, int]: ... def get_time_data_from_instance_or_context(instance: pyblish.api.Instance) -> TimeData: ... def get_transferable_representations(instance: pyblish.api.Instance) -> list: ... +def create_skeleton_instance_cache(instance: pyblish.api.Instance) -> dict: ... def create_skeleton_instance(instance: pyblish.api.Instance, families_transfer: list = ..., instance_transfer: dict = ...) -> dict: ... -def create_instances_for_aov(instance: pyblish.api.Instance, skeleton: dict, aov_filter: dict) -> List[pyblish.api.Instance]: ... +def prepare_cache_representations(skeleton_data: dict, exp_files: list, anatomy: Anatomy) -> list: ... +def prepare_representations(skeleton_data: dict, exp_files: list, anatomy: Anatomy, aov_filter: dict, skip_integration_repre_list: list, do_not_add_review: bool, context: pyblish.api.Context, color_managed_plugin: ColormanagedPyblishPluginMixin) -> list: ... +def create_instances_for_aov(instance: pyblish.api.Instance, skeleton: dict, aov_filter: dict, skip_integration_repre_list: list, do_not_add_review: bool) -> List[pyblish.api.Instance]: ... +def create_instances_for_cache(instance: pyblish.api.Instance, skeleton: dict) -> List[pyblish.api.Instance]: ... def attach_instances_to_subset(attach_to: list, instances: list) -> list: ... +def create_metadata_path(instance: pyblish.api.Instance, anatomy: Anatomy) -> Tuple[Union[str, os.PathLike], Union[str, os.PathLike]]: ... \ No newline at end of file