mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Refactor type hints in validation functions
- Removed type hints for `Any` in function definitions. - Simplified the `validate_otio_clip` and `process` methods across multiple classes. - Cleaned up code for better readability without changing functionality.
This commit is contained in:
parent
8ef1d38f79
commit
5d73b318ec
1 changed files with 4 additions and 5 deletions
|
|
@ -7,7 +7,6 @@ This module contains three plugins:
|
|||
"""
|
||||
|
||||
from pprint import pformat
|
||||
from typing import Any
|
||||
|
||||
import pyblish.api
|
||||
|
||||
|
|
@ -23,7 +22,7 @@ from ayon_core.pipeline.editorial import (
|
|||
)
|
||||
|
||||
|
||||
def validate_otio_clip(instance: Any, logger: Any) -> bool:
|
||||
def validate_otio_clip(instance, logger):
|
||||
"""Validate if instance has required OTIO clip data.
|
||||
|
||||
Args:
|
||||
|
|
@ -62,7 +61,7 @@ class CollectOtioFrameRanges(pyblish.api.InstancePlugin):
|
|||
families = ["shot", "clip"]
|
||||
hosts = ["resolve", "hiero", "flame", "traypublisher"]
|
||||
|
||||
def process(self, instance: Any) -> None:
|
||||
def process(self, instance):
|
||||
"""Process the instance to collect frame ranges.
|
||||
|
||||
Args:
|
||||
|
|
@ -120,7 +119,7 @@ class CollectOtioSourceRanges(pyblish.api.InstancePlugin):
|
|||
families = ["shot", "clip"]
|
||||
hosts = ["hiero", "flame"]
|
||||
|
||||
def process(self, instance: Any) -> None:
|
||||
def process(self, instance):
|
||||
"""Process the instance to collect source frame ranges.
|
||||
|
||||
Args:
|
||||
|
|
@ -176,7 +175,7 @@ class CollectOtioRetimedRanges(pyblish.api.InstancePlugin):
|
|||
families = ["shot", "clip"]
|
||||
hosts = ["hiero", "flame"]
|
||||
|
||||
def process(self, instance: Any) -> None:
|
||||
def process(self, instance):
|
||||
"""Process the instance to handle retimed clips.
|
||||
|
||||
Args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue