From 60a1803e28d820fed37f07442e3a3b29c9cf00ec Mon Sep 17 00:00:00 2001 From: g1879 Date: Wed, 31 Jul 2024 17:32:26 +0800 Subject: [PATCH] 4.1.0.0b19 --- DrissionPage/__init__.py | 2 +- DrissionPage/_units/setter.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DrissionPage/__init__.py b/DrissionPage/__init__.py index 09f8ea7..39c0eb0 100644 --- a/DrissionPage/__init__.py +++ b/DrissionPage/__init__.py @@ -14,4 +14,4 @@ from ._pages.chromium_page import ChromiumPage from ._pages.mix_page import MixPage from ._pages.mix_page import MixPage as WebPage -__version__ = '4.1.0.0b18' +__version__ = '4.1.0.0b19' diff --git a/DrissionPage/_units/setter.py b/DrissionPage/_units/setter.py index 1c46abd..aa0927c 100644 --- a/DrissionPage/_units/setter.py +++ b/DrissionPage/_units/setter.py @@ -348,7 +348,7 @@ class ChromiumBaseSetter(BrowserBaseSetter): files = (files,) self._owner._upload_list = [str(Path(i).absolute()) for i in files] - def headers(self, headers) -> None: + def headers(self, headers): """设置固定发送的headers :param headers: dict格式的headers数据,或从浏览器复制的headers文本(\n分行) :return: None @@ -494,7 +494,7 @@ class MixPageSetter(ChromiumPageSetter): self._cookies_setter = MixPageCookiesSetter(self._owner) return self._cookies_setter - def headers(self, headers) -> None: + def headers(self, headers): """设置固定发送的headers :param headers: dict格式的headers数据 :return: None @@ -525,7 +525,7 @@ class MixTabSetter(TabSetter): self._cookies_setter = MixPageCookiesSetter(self._owner) return self._cookies_setter - def headers(self, headers) -> None: + def headers(self, headers): """设置固定发送的headers :param headers: dict格式的headers数据 :return: None