@@ -486,6 +486,26 @@ def send_mail(self, tree_uuid: str, email: str = '', comment: str | None = None)
486
486
r = self .session .post (urljoin (self .root_url , str (PurePosixPath ('json' , tree_uuid , 'report' ))), json = to_send )
487
487
return r .json ()
488
488
489
+ @overload
490
+ def upload_capture (self , * , quiet : Literal [True ],
491
+ listing : bool = False ,
492
+ full_capture : Path | BytesIO | str | None = None ,
493
+ har : Path | BytesIO | str | None = None ,
494
+ html : Path | BytesIO | str | None = None ,
495
+ last_redirected_url : str | None = None ,
496
+ screenshot : Path | BytesIO | str | None = None ) -> str :
497
+ ...
498
+
499
+ @overload
500
+ def upload_capture (self , * , quiet : Literal [False ]= False ,
501
+ listing : bool = False ,
502
+ full_capture : Path | BytesIO | str | None = None ,
503
+ har : Path | BytesIO | str | None = None ,
504
+ html : Path | BytesIO | str | None = None ,
505
+ last_redirected_url : str | None = None ,
506
+ screenshot : Path | BytesIO | str | None = None ) -> tuple [str , dict [str , str ]]:
507
+ ...
508
+
489
509
def upload_capture (self , * , quiet : bool = False ,
490
510
listing : bool = False ,
491
511
full_capture : Path | BytesIO | str | None = None ,
0 commit comments