docs: update urllib3 docstrings for v2 compatibility (#1903) · googleapis/google-auth-library-python@3f1aeea

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -106,9 +106,8 @@ class Request(transport.Request):

106106

credentials.refresh(request)

107107
108108

Args:

109-

http (urllib3.request.RequestMethods): An instance of any urllib3

110-

class that implements :class:`~urllib3.request.RequestMethods`,

111-

usually :class:`urllib3.PoolManager`.

109+

http (urllib3.PoolManager): An instance of a urllib3 class that implements

110+

the request interface (e.g. :class:`urllib3.PoolManager`).

112111
113112

.. automethod:: __call__

114113

"""

@@ -209,7 +208,7 @@ class AuthorizedHttp(RequestMethods): # type: ignore

209208

response = authed_http.request(

210209

'GET', 'https://www.googleapis.com/storage/v1/b')

211210
212-

This class implements :class:`urllib3.request.RequestMethods` and can be

211+

This class implements the urllib3 request interface and can be

213212

used just like any other :class:`urllib3.PoolManager`.

214213
215214

The underlying :meth:`urlopen` implementation handles adding the