From 36e164bedf890159c484b84faf450b1052472ff7 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Thu, 23 May 2024 00:21:45 -0500 Subject: [PATCH] Fix naming --- keychain_access/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keychain_access/core.py b/keychain_access/core.py index 0e8ccfd..228c65a 100644 --- a/keychain_access/core.py +++ b/keychain_access/core.py @@ -52,8 +52,8 @@ def add(account: str, service: str, password: str | bytes) -> None: raise KeychainError(f"Failed to add item to keychain (status={status})") -def find(account: str, service: str) -> str | None: - """Find a password in the keychain. +def get(account: str, service: str) -> str | None: + """Get a password in the keychain. Args: account: The account name. @@ -66,11 +66,11 @@ def find(account: str, service: str) -> str | None: KeychainError: If an internal error occurred. Examples: - >>> keychain_access.find("my_account", "my_service") + >>> keychain_access.get("my_account", "my_service") "my_password" If the password is not found: - >>> keychain_access.find("my_account", "my_service") + >>> keychain_access.get("my_account", "my_service") None """ query = NSMutableDictionary.dictionary()