Skip to content

Commit

Permalink
Add Decrypt and Encrypt exceptions to typing stubs (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuswatn authored Jan 20, 2025
1 parent ed56834 commit feee9b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyrage-stubs/pyrage/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ __all__ = (
"decrypt_io",
"RecipientError",
"IdentityError",
"EncryptError",
"DecryptError",
)


Expand All @@ -33,6 +35,12 @@ class RecipientError(Exception):
class IdentityError(Exception):
...

class EncryptError(Exception):
...

class DecryptError(Exception):
...


def encrypt(plaintext: bytes, recipients: Sequence[_Recipient]) -> bytes: ...
def encrypt_file(infile: str, outfile: str, recipients: Sequence[_Recipient]) -> None: ...
Expand Down

0 comments on commit feee9b9

Please sign in to comment.