Specifically, it looks like the stubs for requests date back to a time when urllib3 was vendored with requests. These days, it looks like requests doesn't vendor it anymore and instead uses urllib3 from pypi.
I think that urllib3 should become it's own top-level stubs (not part of requests) and some of the requests stubs should probably be revisited. In order to limit scope, the particular stubs that I've been fighting with in requests.adapters -- BaseAdaptor.send doesn't accept proxies (even though it should), HTTPAdaptor.send has virtually no type annotations when BaseAdaptor.send does -- I think they should be basically the same...
What do you think?
Specifically, it looks like the stubs for
requestsdate back to a time whenurllib3was vendored with requests. These days, it looks like requests doesn't vendor it anymore and instead usesurllib3from pypi.I think that
urllib3should become it's own top-level stubs (not part ofrequests) and some of the requests stubs should probably be revisited. In order to limit scope, the particular stubs that I've been fighting with inrequests.adapters--BaseAdaptor.senddoesn't acceptproxies(even though it should),HTTPAdaptor.sendhas virtually no type annotations whenBaseAdaptor.senddoes -- I think they should be basically the same...What do you think?