We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e5fa3 commit 9058b90Copy full SHA for 9058b90
src/pip/_internal/network/auth.py
@@ -359,7 +359,7 @@ def _prompt_for_password(
359
360
# Factored out to allow for easy patching in tests
361
def _should_save_password_to_keyring(self) -> bool:
362
- if get_keyring_provider() is None:
+ if isinstance(get_keyring_provider(), KeyRingNullProvider):
363
return False
364
return ask("Save credentials to keyring [y/N]: ", ["y", "n"]) == "y"
365
0 commit comments