Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8bfb04d

Browse files
committed
fix: errors in typing for Python 3.13
1 parent5e7b0f3 commit8bfb04d

File tree

12 files changed

+66
-55
lines changed

12 files changed

+66
-55
lines changed

‎.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
-name:Set up Python
1515
uses:actions/setup-python@v5
1616
with:
17-
python-version:'3.8'
17+
python-version:'3.9'
1818

1919
-name:Build package
2020
run:|

‎appwrite/services/account.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34
from ..enums.authenticator_typeimportAuthenticatorType;
45
from ..enums.authentication_factorimportAuthenticationFactor;
@@ -62,7 +63,7 @@ def update_email(self, email: str, password: str):
6263
'content-type':'application/json',
6364
},api_params)
6465

65-
deflist_identities(self,queries:list[str]=None):
66+
deflist_identities(self,queries:List[str]=None):
6667
"""List identities"""
6768

6869
api_path='/account/identities'
@@ -99,7 +100,7 @@ def create_jwt(self):
99100
'content-type':'application/json',
100101
},api_params)
101102

102-
deflist_logs(self,queries:list[str]=None):
103+
deflist_logs(self,queries:List[str]=None):
103104
"""List logs"""
104105

105106
api_path='/account/logs'
@@ -568,7 +569,7 @@ def create_magic_url_token(self, user_id: str, email: str, url: str = None, phra
568569
'content-type':'application/json',
569570
},api_params)
570571

571-
defcreate_o_auth2_token(self,provider:OAuthProvider,success:str=None,failure:str=None,scopes:list[str]=None):
572+
defcreate_o_auth2_token(self,provider:OAuthProvider,success:str=None,failure:str=None,scopes:List[str]=None):
572573
"""Create OAuth2 token"""
573574

574575
api_path='/account/tokens/oauth2/{provider}'

‎appwrite/services/avatars.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34
from ..enums.browserimportBrowser;
45
from ..enums.credit_cardimportCreditCard;

‎appwrite/services/databases.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34
from ..enums.relationship_typeimportRelationshipType;
45
from ..enums.relation_mutateimportRelationMutate;
@@ -9,7 +10,7 @@ class Databases(Service):
910
def__init__(self,client):
1011
super(Databases,self).__init__(client)
1112

12-
deflist(self,queries:list[str]=None,search:str=None):
13+
deflist(self,queries:List[str]=None,search:str=None):
1314
"""List databases"""
1415

1516
api_path='/databases'
@@ -92,7 +93,7 @@ def delete(self, database_id: str):
9293
'content-type':'application/json',
9394
},api_params)
9495

95-
deflist_collections(self,database_id:str,queries:list[str]=None,search:str=None):
96+
deflist_collections(self,database_id:str,queries:List[str]=None,search:str=None):
9697
"""List collections"""
9798

9899
api_path='/databases/{databaseId}/collections'
@@ -109,7 +110,7 @@ def list_collections(self, database_id: str, queries: list[str] = None, search:
109110
'content-type':'application/json',
110111
},api_params)
111112

112-
defcreate_collection(self,database_id:str,collection_id:str,name:str,permissions:list[str]=None,document_security:bool=None,enabled:bool=None):
113+
defcreate_collection(self,database_id:str,collection_id:str,name:str,permissions:List[str]=None,document_security:bool=None,enabled:bool=None):
113114
"""Create collection"""
114115

115116
api_path='/databases/{databaseId}/collections'
@@ -154,7 +155,7 @@ def get_collection(self, database_id: str, collection_id: str):
154155
'content-type':'application/json',
155156
},api_params)
156157

157-
defupdate_collection(self,database_id:str,collection_id:str,name:str,permissions:list[str]=None,document_security:bool=None,enabled:bool=None):
158+
defupdate_collection(self,database_id:str,collection_id:str,name:str,permissions:List[str]=None,document_security:bool=None,enabled:bool=None):
158159
"""Update collection"""
159160

160161
api_path='/databases/{databaseId}/collections/{collectionId}'
@@ -199,7 +200,7 @@ def delete_collection(self, database_id: str, collection_id: str):
199200
'content-type':'application/json',
200201
},api_params)
201202

202-
deflist_attributes(self,database_id:str,collection_id:str,queries:list[str]=None):
203+
deflist_attributes(self,database_id:str,collection_id:str,queries:List[str]=None):
203204
"""List attributes"""
204205

205206
api_path='/databases/{databaseId}/collections/{collectionId}/attributes'
@@ -393,7 +394,7 @@ def update_email_attribute(self, database_id: str, collection_id: str, key: str,
393394
'content-type':'application/json',
394395
},api_params)
395396

396-
defcreate_enum_attribute(self,database_id:str,collection_id:str,key:str,elements:list[str],required:bool,default:str=None,array:bool=None):
397+
defcreate_enum_attribute(self,database_id:str,collection_id:str,key:str,elements:List[str],required:bool,default:str=None,array:bool=None):
397398
"""Create enum attribute"""
398399

399400
api_path='/databases/{databaseId}/collections/{collectionId}/attributes/enum'
@@ -426,7 +427,7 @@ def create_enum_attribute(self, database_id: str, collection_id: str, key: str,
426427
'content-type':'application/json',
427428
},api_params)
428429

429-
defupdate_enum_attribute(self,database_id:str,collection_id:str,key:str,elements:list[str],required:bool,default:str,new_key:str=None):
430+
defupdate_enum_attribute(self,database_id:str,collection_id:str,key:str,elements:List[str],required:bool,default:str,new_key:str=None):
430431
"""Update enum attribute"""
431432

432433
api_path='/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key}'
@@ -865,7 +866,7 @@ def update_relationship_attribute(self, database_id: str, collection_id: str, ke
865866
'content-type':'application/json',
866867
},api_params)
867868

868-
deflist_documents(self,database_id:str,collection_id:str,queries:list[str]=None):
869+
deflist_documents(self,database_id:str,collection_id:str,queries:List[str]=None):
869870
"""List documents"""
870871

871872
api_path='/databases/{databaseId}/collections/{collectionId}/documents'
@@ -885,7 +886,7 @@ def list_documents(self, database_id: str, collection_id: str, queries: list[str
885886
'content-type':'application/json',
886887
},api_params)
887888

888-
defcreate_document(self,database_id:str,collection_id:str,document_id:str,data:dict,permissions:list[str]=None):
889+
defcreate_document(self,database_id:str,collection_id:str,document_id:str,data:dict,permissions:List[str]=None):
889890
"""Create document"""
890891

891892
api_path='/databases/{databaseId}/collections/{collectionId}/documents'
@@ -913,7 +914,7 @@ def create_document(self, database_id: str, collection_id: str, document_id: str
913914
'content-type':'application/json',
914915
},api_params)
915916

916-
defget_document(self,database_id:str,collection_id:str,document_id:str,queries:list[str]=None):
917+
defget_document(self,database_id:str,collection_id:str,document_id:str,queries:List[str]=None):
917918
"""Get document"""
918919

919920
api_path='/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'
@@ -937,7 +938,7 @@ def get_document(self, database_id: str, collection_id: str, document_id: str, q
937938
'content-type':'application/json',
938939
},api_params)
939940

940-
defupdate_document(self,database_id:str,collection_id:str,document_id:str,data:dict=None,permissions:list[str]=None):
941+
defupdate_document(self,database_id:str,collection_id:str,document_id:str,data:dict=None,permissions:List[str]=None):
941942
"""Update document"""
942943

943944
api_path='/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'
@@ -985,7 +986,7 @@ def delete_document(self, database_id: str, collection_id: str, document_id: str
985986
'content-type':'application/json',
986987
},api_params)
987988

988-
deflist_indexes(self,database_id:str,collection_id:str,queries:list[str]=None):
989+
deflist_indexes(self,database_id:str,collection_id:str,queries:List[str]=None):
989990
"""List indexes"""
990991

991992
api_path='/databases/{databaseId}/collections/{collectionId}/indexes'
@@ -1005,7 +1006,7 @@ def list_indexes(self, database_id: str, collection_id: str, queries: list[str]
10051006
'content-type':'application/json',
10061007
},api_params)
10071008

1008-
defcreate_index(self,database_id:str,collection_id:str,key:str,type:IndexType,attributes:list[str],orders:list[str]=None):
1009+
defcreate_index(self,database_id:str,collection_id:str,key:str,type:IndexType,attributes:List[str],orders:List[str]=None):
10091010
"""Create index"""
10101011

10111012
api_path='/databases/{databaseId}/collections/{collectionId}/indexes'

‎appwrite/services/functions.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34
from ..enums.runtimeimportRuntime;
45
from ..input_fileimportInputFile
@@ -9,7 +10,7 @@ class Functions(Service):
910
def__init__(self,client):
1011
super(Functions,self).__init__(client)
1112

12-
deflist(self,queries:list[str]=None,search:str=None):
13+
deflist(self,queries:List[str]=None,search:str=None):
1314
"""List functions"""
1415

1516
api_path='/functions'
@@ -22,7 +23,7 @@ def list(self, queries: list[str] = None, search: str = None):
2223
'content-type':'application/json',
2324
},api_params)
2425

25-
defcreate(self,function_id:str,name:str,runtime:Runtime,execute:list[str]=None,events:list[str]=None,schedule:str=None,timeout:float=None,enabled:bool=None,logging:bool=None,entrypoint:str=None,commands:str=None,scopes:list[str]=None,installation_id:str=None,provider_repository_id:str=None,provider_branch:str=None,provider_silent_mode:bool=None,provider_root_directory:str=None,template_repository:str=None,template_owner:str=None,template_root_directory:str=None,template_version:str=None,specification:str=None):
26+
defcreate(self,function_id:str,name:str,runtime:Runtime,execute:List[str]=None,events:List[str]=None,schedule:str=None,timeout:float=None,enabled:bool=None,logging:bool=None,entrypoint:str=None,commands:str=None,scopes:List[str]=None,installation_id:str=None,provider_repository_id:str=None,provider_branch:str=None,provider_silent_mode:bool=None,provider_root_directory:str=None,template_repository:str=None,template_owner:str=None,template_root_directory:str=None,template_version:str=None,specification:str=None):
2627
"""Create function"""
2728

2829
api_path='/functions'
@@ -99,7 +100,7 @@ def get(self, function_id: str):
99100
'content-type':'application/json',
100101
},api_params)
101102

102-
defupdate(self,function_id:str,name:str,runtime:Runtime=None,execute:list[str]=None,events:list[str]=None,schedule:str=None,timeout:float=None,enabled:bool=None,logging:bool=None,entrypoint:str=None,commands:str=None,scopes:list[str]=None,installation_id:str=None,provider_repository_id:str=None,provider_branch:str=None,provider_silent_mode:bool=None,provider_root_directory:str=None,specification:str=None):
103+
defupdate(self,function_id:str,name:str,runtime:Runtime=None,execute:List[str]=None,events:List[str]=None,schedule:str=None,timeout:float=None,enabled:bool=None,logging:bool=None,entrypoint:str=None,commands:str=None,scopes:List[str]=None,installation_id:str=None,provider_repository_id:str=None,provider_branch:str=None,provider_silent_mode:bool=None,provider_root_directory:str=None,specification:str=None):
103104
"""Update function"""
104105

105106
api_path='/functions/{functionId}'
@@ -149,7 +150,7 @@ def delete(self, function_id: str):
149150
'content-type':'application/json',
150151
},api_params)
151152

152-
deflist_deployments(self,function_id:str,queries:list[str]=None,search:str=None):
153+
deflist_deployments(self,function_id:str,queries:List[str]=None,search:str=None):
153154
"""List deployments"""
154155

155156
api_path='/functions/{functionId}/deployments'
@@ -311,7 +312,7 @@ def get_deployment_download(self, function_id: str, deployment_id: str):
311312
'content-type':'application/json',
312313
},api_params)
313314

314-
deflist_executions(self,function_id:str,queries:list[str]=None,search:str=None):
315+
deflist_executions(self,function_id:str,queries:List[str]=None,search:str=None):
315316
"""List executions"""
316317

317318
api_path='/functions/{functionId}/executions'

‎appwrite/services/graphql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34

45
classGraphql(Service):

‎appwrite/services/health.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34
from ..enums.nameimportName;
45

‎appwrite/services/locale.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ..serviceimportService
2+
fromtypingimportList
23
from ..exceptionimportAppwriteException
34

45
classLocale(Service):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp