mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
added typehints
This commit is contained in:
parent
55dacd5cec
commit
55a4c42c83
1 changed files with 7 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import copy
|
import copy
|
||||||
import platform
|
import platform
|
||||||
|
from typing import Optional, Dict, Any
|
||||||
|
|
||||||
import ayon_api
|
import ayon_api
|
||||||
|
|
||||||
|
|
@ -16,12 +17,12 @@ from ayon_core.pipeline.template_data import get_template_data
|
||||||
|
|
||||||
|
|
||||||
def get_workfile_template_key_from_context(
|
def get_workfile_template_key_from_context(
|
||||||
project_name,
|
project_name: str,
|
||||||
folder_path,
|
folder_path: str,
|
||||||
task_name,
|
task_name: str,
|
||||||
host_name,
|
host_name: str,
|
||||||
project_settings=None
|
project_settings: Optional[Dict[str, Any]] = None,
|
||||||
):
|
) -> str:
|
||||||
"""Helper function to get template key for workfile template.
|
"""Helper function to get template key for workfile template.
|
||||||
|
|
||||||
Do the same as `get_workfile_template_key` but returns value for "session
|
Do the same as `get_workfile_template_key` but returns value for "session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue