Skip to content

fix: return type annotation for load_dict#138

Merged
JillRegan merged 1 commit into
mainfrom
jill/fix-load-dict-type
May 26, 2026
Merged

fix: return type annotation for load_dict#138
JillRegan merged 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!

@JillRegan JillRegan merged commit 1a1360a into main May 26, 2026
7 checks passed
@JillRegan JillRegan deleted the jill/fix-load-dict-type branch May 26, 2026 15:15
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