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