From ee3038c74d5939faa910f50637006238d291c230 Mon Sep 17 00:00:00 2001 From: g1879 Date: Thu, 28 Nov 2024 21:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/_pages/web_page.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DrissionPage/_pages/web_page.pyi b/DrissionPage/_pages/web_page.pyi index a61286b..463e8b9 100644 --- a/DrissionPage/_pages/web_page.pyi +++ b/DrissionPage/_pages/web_page.pyi @@ -19,6 +19,7 @@ from .._configs.chromium_options import ChromiumOptions from .._configs.session_options import SessionOptions from .._elements.chromium_element import ChromiumElement from .._elements.session_element import SessionElement +from .._functions.cookies import CookiesList from .._functions.elements import SessionElementsList, ChromiumElementsList from .._units.setter import WebPageSetter from .._units.waiter import WebPageWaiter @@ -285,7 +286,7 @@ class WebPage(SessionPage, ChromiumPage, BasePage): def cookies(self, all_domains: bool = False, - all_info: bool = False) -> Union[dict, list]: + all_info: bool = False) -> CookiesList: """返回cookies :param all_domains: 是否返回所有域的cookies :param all_info: 是否返回所有信息,False则只返回name、value、domain