woodruffw / pyrage

Python bindings for rage (age in Rust)
https://pypi.org/project/pyrage/
MIT License
53 stars 7 forks source link

fix(types): correct 'decrypt_io' param and return type annotations #86

Closed Alchemyst0x closed 3 weeks ago

Alchemyst0x commented 3 weeks ago

The 'decrypt_io' function was incorrectly parameterized with a "recipients" parameter instead of "identities." Additionally, the function was typed as returning None, but it should return bytes.

This commit corrects both the parameterization and the return type annotations to align with the Rust code, which expects "identities" and returns bytes.

This may correct an issue that existed prior to my previous commit, but it was overlooked until now.

woodruffw commented 3 weeks ago

Thanks for fixing this -- I've released a new patch version of the stubs package, and it should be live on PyPI shortly.