Skip to content

Commit 7c9f0a9

Browse files
committed
fix: Please the MyPy gods
1 parent 49f8088 commit 7c9f0a9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pylookyloo/api.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,26 @@ def send_mail(self, tree_uuid: str, email: str = '', comment: str | None = None)
486486
r = self.session.post(urljoin(self.root_url, str(PurePosixPath('json', tree_uuid, 'report'))), json=to_send)
487487
return r.json()
488488

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+
489509
def upload_capture(self, *, quiet: bool = False,
490510
listing: bool = False,
491511
full_capture: Path | BytesIO | str | None = None,

0 commit comments

Comments
 (0)