Closed jon-torodash closed 2 years ago
That's actually done so to be future proof. If/when args/kwargs are added to Session.__init__
you'd be able to use them with requests-futures. The error message/failure should be pretty much the same thing you get if you were to try and pass params to Session()
so it shouldn't hurt anything to have them there.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
https://github.com/ross/requests-futures/blob/master/requests_futures/sessions.py#L54
suggests that requests.Session#init takes **kwargs, but this does not seem to be the case in the latest or any other recent versions:
https://github.com/kennethreitz/requests/blob/v2.12.4/requests/sessions.py#L308
Attempting to use them throws an exception.