执行 Ruff 安全自动修复
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""代理可用性验证。"""
|
||||
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
from typing import Optional
|
||||
|
||||
import requests
|
||||
from loguru import logger
|
||||
@@ -45,7 +44,7 @@ def verify_proxies_concurrent(
|
||||
timeout: tuple = (5, 8),
|
||||
max_workers: int = 5,
|
||||
return_all: bool = False,
|
||||
) -> tuple[Optional[str | list[str]], str]:
|
||||
) -> tuple[str | list[str] | None, str]:
|
||||
"""
|
||||
并发验证多个代理 URL。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user