Change return type of create_proxy_mount_config

Updated the return type of create_proxy_mount_config to dict.
This commit is contained in:
Yannik Korzikowski 2026-03-25 19:28:16 +08:00 committed by GitHub
parent 2e42b59ffd
commit 4bbd8d0b20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ try:
except Exception:
version = "0.0.0"
def create_proxy_mount_config() -> Optional[dict]:
def create_proxy_mount_config() -> dict:
"""
Creates the configuration for using httpx with http/https proxy.
Returns the dict with proxy options if HTTP_PROXY or/and HTTPS_PROXY environment variable is set. Using http_proxy/https_proxy as fallback.