Skip to content

fix: return type annotation for load_dict#138

Open
JillRegan wants to merge 1 commit into
mainfrom
jill/fix-load-dict-type
Open

fix: return type annotation for load_dict#138
JillRegan wants to merge 1 commit into
mainfrom
jill/fix-load-dict-type

Conversation

@JillRegan
Copy link
Copy Markdown
Contributor

Summary

load_dict returns None for 1Password fields that exist but have no value, so the internal annotation Dict[str, str] was inaccurate. Updates it to Dict[str, Optional[str]] to match runtime behaviour and adds a test covering the empty-field case.

Resolves: #67

@JillRegan JillRegan marked this pull request as ready for review May 22, 2026 18:59
Copy link
Copy Markdown

@scottisloud scottisloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does what it says on the label. LGTM!

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.

Wrong return type hint for load_dict

2 participants