You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type hint for the return value of load_dict is Dict[str, str] (as stated in config.py line 60) but the actual return type is dict[str, str | None], or dict[str, Optional[str]] if you prefer.
How to reproduce
Add a text field with no value to an item in 1Password. It will not be shown in the client, but when you click Edit you can see it is still there; you can also verify this with e.g. curl.
Then call load_dict and you will see that the value of the field is None.
The text was updated successfully, but these errors were encountered:
What happened?
The type hint for the return value of
load_dict
isDict[str, str]
(as stated inconfig.py
line 60) but the actual return type isdict[str, str | None]
, ordict[str, Optional[str]]
if you prefer.How to reproduce
Add a text field with no value to an item in 1Password. It will not be shown in the client, but when you click Edit you can see it is still there; you can also verify this with e.g.
curl
.Then call
load_dict
and you will see that the value of the field isNone
.The text was updated successfully, but these errors were encountered: