itsdangerous: update JSONWebSignatureSerializer.dumps return type (#3082)

On Python 2, a str is returned, however on Python 3 the return type
is bytes.
This commit is contained in:
redshiftzero
2019-06-22 14:15:37 -07:00
committed by Jelle Zijlstra
parent e25c0cb128
commit 64b12bf7f1

View File

@@ -126,7 +126,7 @@ class JSONWebSignatureSerializer(Serializer):
def make_signer(self, salt: Optional[Union[Text, bytes]] = ..., algorithm: SigningAlgorithm = ...) -> Signer: ...
def make_header(self, header_fields: Optional[Mapping[str, Any]]) -> MutableMapping[str, Any]: ...
def dumps(self, obj: Any, salt: Optional[Union[Text, bytes]] = ...,
header_fields: Optional[Mapping[str, Any]] = ...) -> str: ...
header_fields: Optional[Mapping[str, Any]] = ...) -> bytes: ...
def loads(self, s: Union[Text, bytes], salt: Optional[Union[Text, bytes]] = ...,
return_header: bool = ...) -> Any: ... # morally -> Union[Any, Tuple[Any, MutableMapping[str, Any]]]
def loads_unsafe(self, s: Union[Text, bytes], salt: Optional[Union[Text, bytes]] = ...,