HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/keyring/backends/null.py
from ..backend import KeyringBackend


class Keyring(KeyringBackend):
    """
    Keyring that return None on every operation.

    >>> kr = Keyring()
    >>> kr.get_password('svc', 'user')
    """

    priority = -1

    def get_password(self, service, username, password=None):
        pass

    set_password = delete_password = get_password  # type: ignore