From 64b12bf7f14019bb86b84751beb4091b13d3da82 Mon Sep 17 00:00:00 2001 From: redshiftzero Date: Sat, 22 Jun 2019 14:15:37 -0700 Subject: [PATCH] itsdangerous: update JSONWebSignatureSerializer.dumps return type (#3082) On Python 2, a str is returned, however on Python 3 the return type is bytes. --- third_party/2and3/itsdangerous.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2and3/itsdangerous.pyi b/third_party/2and3/itsdangerous.pyi index 32bbf2bb1..37a707051 100644 --- a/third_party/2and3/itsdangerous.pyi +++ b/third_party/2and3/itsdangerous.pyi @@ -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]] = ...,