gh-57665: Remove 'response_class' from getresponse docstring. (#140707)

Remove 'response_class' from getresponse docstring.

This variable is not documented as part of the API in the standard
library documentation; it should be considered as an implementation
detail and as such should not be included in the doc string.

Closes #57665.
This commit is contained in:
R. David Murray 2025-10-31 09:09:22 -04:00 committed by GitHub
parent e733dc90f3
commit 81cec22a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1391,8 +1391,7 @@ def getresponse(self):
"""Get the response from the server.
If the HTTPConnection is in the correct state, returns an
instance of HTTPResponse or of whatever object is returned by
the response_class variable.
instance of HTTPResponse.
If a request has not been sent or if a previous response has
not be handled, ResponseNotReady is raised. If the HTTP