Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed May 23, 2024
1 parent 61690df commit 36e164b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions keychain_access/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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()
Expand Down

0 comments on commit 36e164b

Please sign in to comment.