mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
add docstring
This commit is contained in:
parent
55dedaef80
commit
84e88f0cf3
1 changed files with 16 additions and 0 deletions
|
|
@ -709,6 +709,22 @@ def _create_workfile_info_entity(
|
|||
comment: Optional[str],
|
||||
description: Optional[str],
|
||||
) -> dict[str, Any]:
|
||||
"""Create workfile entity data.
|
||||
|
||||
Args:
|
||||
project_name (str): Project name.
|
||||
task_id (str): Task id.
|
||||
host_name (str): Host name.
|
||||
rootless_path (str): Rootless workfile path.
|
||||
username (str): Username.
|
||||
version (Optional[int]): Workfile version.
|
||||
comment (Optional[str]): Workfile comment.
|
||||
description (Optional[str]): Workfile description.
|
||||
|
||||
Returns:
|
||||
dict[str, Any]: Created workfile entity data.
|
||||
|
||||
"""
|
||||
extension = os.path.splitext(rootless_path)[1]
|
||||
|
||||
attrib = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue