mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Fix return type
This commit is contained in:
parent
efb3a01f4b
commit
cdf8764bb1
1 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import json
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import Dict, Any
|
from typing import Dict, Any, Union
|
||||||
|
|
||||||
import clique
|
import clique
|
||||||
import speedcopy
|
import speedcopy
|
||||||
|
|
@ -978,7 +978,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
current_repre: Dict[Any, Any],
|
current_repre: Dict[Any, Any],
|
||||||
start_frame: int,
|
start_frame: int,
|
||||||
end_frame: int
|
end_frame: int
|
||||||
) -> Dict[int, str] | None:
|
) -> Union[Dict[int, str], None]:
|
||||||
"""Tries to replace missing frames from ones from last version"""
|
"""Tries to replace missing frames from ones from last version"""
|
||||||
repre_file_paths = self._get_last_version_files(
|
repre_file_paths = self._get_last_version_files(
|
||||||
instance, current_repre)
|
instance, current_repre)
|
||||||
|
|
@ -1073,7 +1073,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
resolution_height: int,
|
resolution_height: int,
|
||||||
extension: str,
|
extension: str,
|
||||||
temp_data: Dict[str, Any]
|
temp_data: Dict[str, Any]
|
||||||
) -> Dict[int, str] | None:
|
) -> Union[Dict[int, str], None]:
|
||||||
"""Fills missing files by blank frame."""
|
"""Fills missing files by blank frame."""
|
||||||
blank_frame_path = os.path.join(staging_dir, f"blank.{extension}")
|
blank_frame_path = os.path.join(staging_dir, f"blank.{extension}")
|
||||||
temp_data["paths_to_remove"].append(blank_frame_path)
|
temp_data["paths_to_remove"].append(blank_frame_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue