|
17 | 17 | import typing
|
18 | 18 | import warnings
|
19 | 19 |
|
20 |
| -from typing import List |
21 |
| - |
22 | 20 | from .common import (
|
23 | 21 | ClientError,
|
24 | 22 | LoginError,
|
@@ -273,7 +271,7 @@ def get(self, path, data=None, headers={}, validate_auth=True):
|
273 | 271 | request = urllib.request.Request(url, headers=headers)
|
274 | 272 | return self._do_request(request, validate_auth=validate_auth)
|
275 | 273 |
|
276 |
| - def post(self, path, data=None, headers={}, validate_auth=True, query_params: dict[str, str] = None): |
| 274 | + def post(self, path, data=None, headers={}, validate_auth=True, query_params: typing.Dict[str, str] = None): |
277 | 275 | url = urllib.parse.urljoin(self.url, urllib.parse.quote(path))
|
278 | 276 | if query_params:
|
279 | 277 | url += "?" + urllib.parse.urlencode(query_params)
|
@@ -1328,7 +1326,7 @@ def get_workspace_member(self, workspace_id: int, user_id: int) -> dict:
|
1328 | 1326 | resp = self.get(f"v2/workspaces/{workspace_id}/members/{user_id}")
|
1329 | 1327 | return json.load(resp)
|
1330 | 1328 |
|
1331 |
| - def list_workspace_members(self, workspace_id: int) -> List[dict]: |
| 1329 | + def list_workspace_members(self, workspace_id: int) -> typing.List[dict]: |
1332 | 1330 | """
|
1333 | 1331 | Get a list of workspace members
|
1334 | 1332 | """
|
@@ -1359,7 +1357,7 @@ def remove_workspace_member(self, workspace_id: int, user_id: int):
|
1359 | 1357 | self.check_collaborators_members_support()
|
1360 | 1358 | self.delete(f"v2/workspaces/{workspace_id}/members/{user_id}")
|
1361 | 1359 |
|
1362 |
| - def list_project_collaborators(self, project_id: str) -> List[dict]: |
| 1360 | + def list_project_collaborators(self, project_id: str) -> typing.List[dict]: |
1363 | 1361 | """
|
1364 | 1362 | Get a list of project collaborators
|
1365 | 1363 | """
|
|
0 commit comments