Skip to content

Commit d41c7c6

Browse files
committed
update public api
1 parent 6ad135a commit d41c7c6

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎ayon_api/_api.py‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
)
4242

4343
if typing.TYPE_CHECKING:
44-
from typing import Union
44+
from typing import Union, Literal
4545
from .typing import (
4646
ServerVersion,
4747
ActivityType,
@@ -963,7 +963,7 @@ def get_server_config_value(
963963

964964

965965
def download_server_config_file(
966-
file_type: Literal[login_background, studio_logo],
966+
file_type: Literal["login_background", "studio_logo"],
967967
filepath: str,
968968
*,
969969
chunk_size: Optional[int] = None,
@@ -993,7 +993,7 @@ def download_server_config_file(
993993

994994

995995
def download_server_config_file_to_stream(
996-
file_type: Literal[login_background, studio_logo],
996+
file_type: Literal["login_background", "studio_logo"],
997997
stream: StreamType,
998998
*,
999999
chunk_size: Optional[int] = None,
@@ -1023,7 +1023,7 @@ def download_server_config_file_to_stream(
10231023

10241024

10251025
def upload_server_config_file(
1026-
file_type: Literal[login_background, studio_logo],
1026+
file_type: Literal["login_background", "studio_logo"],
10271027
filepath: str,
10281028
*,
10291029
content_type: str | None = None,
@@ -1060,7 +1060,7 @@ def upload_server_config_file(
10601060

10611061

10621062
def upload_server_config_file_from_stream(
1063-
file_type: Literal[login_background, studio_logo],
1063+
file_type: Literal["login_background", "studio_logo"],
10641064
stream: StreamType,
10651065
filename: str,
10661066
*,
@@ -2608,7 +2608,7 @@ def delete_activity_reaction(
26082608
def suggest_entity_mention(
26092609
project_name: str,
26102610
entity_id: str,
2611-
entity_type: Literal[folder, task, version],
2611+
entity_type: Literal["folder", "task", "version"],
26122612
) -> dict[str, dict[str, Any]]:
26132613
"""Suggest entities for mention in activity body.
26142614
@@ -2620,7 +2620,8 @@ def suggest_entity_mention(
26202620
entity_type (str): Entity type of the entity.
26212621
26222622
Returns:
2623-
list[dict[str, Any]]: List of suggested entities with their details.
2623+
list[dict[str, Any]]: List of suggested entities with
2624+
their details.
26242625
26252626
"""
26262627
con = get_server_api_connection()

0 commit comments

Comments
 (0)