Skip to content

Commit 3f728cf

Browse files
committed
fixed typing acording to #1200
1 parent 6716030 commit 3f728cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

O365/utils/token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
class CryptographyManagerType(Protocol):
2222
"""Abstract cryptography manager"""
2323

24-
def encrypt(self, data: str) -> bytes: ...
24+
def encrypt(self, data: Union[bytes, str]) -> Union[bytes, str]: ...
2525

26-
def decrypt(self, data: bytes) -> str: ...
26+
def decrypt(self, data: Union[bytes, str]) -> Union[bytes, str]: ...
2727

2828

2929
class BaseTokenBackend(TokenCache):

0 commit comments

Comments
 (0)