-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Description
Documentation
Hi there,
I'm working through some typing issues in Requests and noticed pyright getting tripped up on proxy_bypass_environment. It's been used inside Requests for ~10 years with the assumption it's a publicly available interface. Given it's not documented (and therefore not typed in typeshed), I want to better understand its status.
Is its omission from the docs intentional or an oversight? (Or a third option: I'm just missing where it is in the docs 😅 but I don't see it here for any supported Python version.)
For context on why we use it directly: Requests patches its own version of proxy_bypass_registry to avoid DNS lookups. That behavior made its way into CPython in 3.13 via #115210. We'll need to maintain our shim until Python 3.12 support is dropped, so we still call proxy_bypass_environment directly. I wanted to get clarification on its public API status (or lack thereof) in writing before we suppress the type error.
Metadata
Metadata
Assignees
Labels
Projects
Status