Skip to content

libsecret: Add type annotation and fix get_credential() - #768

Open
lovetox wants to merge 6 commits into
jaraco:mainfrom
lovetox:master
Open

lovetox wants to merge 6 commits into
jaraco:mainfrom
lovetox:master

Conversation

@lovetox

@lovetox lovetox commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Hi,

This PR fixes all type errors in the libsecret module, and also fixes one bug in get_credential() when a different scheme was selected.

lovetox added 6 commits August 8, 2026 11:11
KeyringBackend defines that implementations should return None
This makes sure we never return None, and helps type checkers.
Its not expected that retrieve_secret_sync() and get_text() ever return None, so this case is not handled.
This allows the libsecret module to use this method also to create the Secret.Schema without typing errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant