googleapis / google-auth-library-python

Google Auth Python Library
https://googleapis.dev/python/google-auth/latest/
Apache License 2.0
755 stars 303 forks source link

fix: Conditionally import requests only if no request was passed by the caller. #1456

Closed clundin25 closed 5 months ago

clundin25 commented 5 months ago

This resolves https://github.com/googleapis/google-auth-library-python/issues/1455.

The repo-wide pattern is to only import the requests module at runtime as a fallback.