We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6716030 commit 3f728cfCopy full SHA for 3f728cf
O365/utils/token.py
@@ -21,9 +21,9 @@
21
class CryptographyManagerType(Protocol):
22
"""Abstract cryptography manager"""
23
24
- def encrypt(self, data: str) -> bytes: ...
+ def encrypt(self, data: Union[bytes, str]) -> Union[bytes, str]: ...
25
26
- def decrypt(self, data: bytes) -> str: ...
+ def decrypt(self, data: Union[bytes, str]) -> Union[bytes, str]: ...
27
28
29
class BaseTokenBackend(TokenCache):
0 commit comments