diff --git a/third_party/2and3/cryptography/fernet.pyi b/third_party/2and3/cryptography/fernet.pyi index 8ce2d7937..058cd15ce 100644 --- a/third_party/2and3/cryptography/fernet.pyi +++ b/third_party/2and3/cryptography/fernet.pyi @@ -1,9 +1,9 @@ -from typing import List, Optional +from typing import List, Optional, Union, Text class InvalidToken(Exception): ... class Fernet(object): - def __init__(self, key: bytes) -> None: ... + def __init__(self, key: Union[bytes, Text]) -> None: ... def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ... def encrypt(self, data: bytes) -> bytes: ... def extract_timestamp(self, token: bytes) -> int: ...