Skip to content

Commit bf725ac

Browse files
committed
AC-1162: Use typing.List for list's items type annotation
1 parent 4f5e577 commit bf725ac

File tree

1 file changed

+6
-6
lines changed
  • livechat/configuration/api

1 file changed

+6
-6
lines changed

livechat/configuration/api/v37.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ def update_greeting(self,
20352035

20362036
def create_canned_response(self,
20372037
text: str = None,
2038-
tags: list[str] = None,
2038+
tags: List[str] = None,
20392039
group_id: int = None,
20402040
is_private: bool = None,
20412041
payload: dict = None,
@@ -2044,7 +2044,7 @@ def create_canned_response(self,
20442044
20452045
Args:
20462046
text (str): Canned response text content (max 2000 characters).
2047-
tags (list[str]): Array of tags (max 20 tags, each max 50 characters).
2047+
tags (List[str]): Array of tags (max 20 tags, each max 50 characters).
20482048
group_id (int): ID of the group the canned response belongs to.
20492049
is_private (bool): Whether the canned response is private (default: `false`).
20502050
payload (dict): Custom payload to be used as request's data.
@@ -2066,7 +2066,7 @@ def create_canned_response(self,
20662066
def update_canned_response(self,
20672067
id: int = None,
20682068
text: str = None,
2069-
tags: list[str] = None,
2069+
tags: List[str] = None,
20702070
group_id: int = None,
20712071
is_private: bool = None,
20722072
payload: dict = None,
@@ -2077,7 +2077,7 @@ def update_canned_response(self,
20772077
Args:
20782078
id (int): ID of the canned response to update.
20792079
text (str): New canned response text (max 2000 characters).
2080-
tags (list[str]): Array of tags (max 20 tags, each max 50 characters).
2080+
tags (List[str]): Array of tags (max 20 tags, each max 50 characters).
20812081
group_id (int): New group ID for the canned response.
20822082
is_private (bool): Whether the canned response is private.
20832083
payload (dict): Custom payload to be used as request's data.
@@ -2097,7 +2097,7 @@ def update_canned_response(self,
20972097
headers=headers)
20982098

20992099
def list_canned_responses(self,
2100-
group_ids: list[int] = None,
2100+
group_ids: List[int] = None,
21012101
include_private: bool = None,
21022102
limit: int = None,
21032103
page_id: str = None,
@@ -2106,7 +2106,7 @@ def list_canned_responses(self,
21062106
''' Returns a paginated list of canned responses.
21072107
21082108
Args:
2109-
group_ids (list[int]): Filter by specific group IDs
2109+
group_ids (List[int]): Filter by specific group IDs
21102110
(if not provided, uses user's accessible groups).
21112111
include_private (bool): Include private canned responses (default: `false`).
21122112
limit (int): Number of results per page (1-100, default: 100).

0 commit comments

Comments
 (0)