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