@@ -465,7 +465,7 @@ def get_user_agent(self) -> str:
465
465
)
466
466
467
467
def do_api_query (self , orig_request : Mapping [str , Any ], url : str , method : str = "POST" ,
468
- longpolling : bool = False , files : Optional [List [IO [Any ]]] = None , timeout : Optional [float ] = None ,
468
+ longpolling : bool = False , files : Optional [List [IO [Any ]]] = None , timeout : Optional [float ] = None ,
469
469
accesswithAPI : bool = True ) -> Dict [str , Any ]:
470
470
if files is None :
471
471
files = []
@@ -527,7 +527,7 @@ def end_error_retry(succeeded: bool) -> None:
527
527
if accesswithAPI :
528
528
if not api_url .endswith (API_STRING ):
529
529
api_url += API_STRING
530
- api_url += "/"
530
+ api_url += "/"
531
531
else :
532
532
if api_url .endswith (API_STRING ):
533
533
api_url = api_url [:- len (API_STRING )]
@@ -608,7 +608,7 @@ def end_error_retry(succeeded: bool) -> None:
608
608
"status_code" : res .status_code }
609
609
610
610
def call_endpoint (self , url : Optional [str ] = None , method : str = "POST" , request : Optional [Dict [str , Any ]] = None ,
611
- longpolling : bool = False , files : Optional [List [IO [Any ]]] = None , timeout : Optional [float ] = None ,
611
+ longpolling : bool = False , files : Optional [List [IO [Any ]]] = None , timeout : Optional [float ] = None ,
612
612
accessVersionedAPI : bool = True ) -> Dict [str , Any ]:
613
613
if request is None :
614
614
request = dict ()
@@ -754,10 +754,9 @@ def fetch_upload(self) -> Dict[str, Any]:
754
754
'''
755
755
See examples/upload-file for example usage.
756
756
'''
757
-
758
757
return self .call_endpoint (
759
758
url = 'user_uploads' ,
760
- method = 'GET' ,
759
+ method = 'GET' ,
761
760
accessVersionedAPI = False
762
761
)
763
762
0 commit comments