We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b4643 commit a4b6cdcCopy full SHA for a4b6cdc
1 file changed
utils/utils.py
@@ -5,7 +5,7 @@
5
import string
6
import time
7
from io import BytesIO
8
-from typing import Type
+from typing import Type, Union
9
from urllib.parse import parse_qsl, urlparse
10
11
from Crypto.Cipher import AES, PKCS1_v1_5
@@ -90,7 +90,7 @@ def is_incorrect_return(
90
)
91
92
93
-def get_token_by_captcha(url: str) -> str | bool:
+def get_token_by_captcha(url: str) -> Union[str, bool]:
94
"""通过人机验证码获取TOKEN"""
95
try:
96
parsed_url = urlparse(url)
0 commit comments