Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Enhancement: Properly complete the pyblish_function.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyprien CAILLOT committed Sep 11, 2024
1 parent d9731d0 commit 83fd32e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion openpype/pipeline/farm/pyblish_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion openpype/pipeline/farm/pyblish_functions.pyi
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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]]: ...

0 comments on commit 83fd32e

Please sign in to comment.