Session.trust_env = False turns off the checking of environment variables for options including proxy settings (*_proxy). But urllib picks up and uses these environment proxy settings anyway. requests should pass the trust_env setting on to urllib. (Although I'm not sure if urllib has a similar override.)
(Proxy setting precedence should be sorted out here as well. They way it is now, environment proxy settings will interfere with (rather than be over-ridden by) the proxies argument in Session.request or requests.request calls and the Session.proxies config regardless of trust_env settings.)
Session.trust_env = Falseturns off the checking of environment variables for options including proxy settings (*_proxy). Buturllibpicks up and uses these environment proxy settings anyway.requestsshould pass thetrust_envsetting on tourllib. (Although I'm not sure ifurllibhas a similar override.)(Proxy setting precedence should be sorted out here as well. They way it is now, environment proxy settings will interfere with (rather than be over-ridden by) the
proxiesargument inSession.requestorrequests.requestcalls and theSession.proxiesconfig regardless oftrust_envsettings.)