mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
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:
committed by
Jelle Zijlstra
parent
e25c0cb128
commit
64b12bf7f1
2
third_party/2and3/itsdangerous.pyi
vendored
2
third_party/2and3/itsdangerous.pyi
vendored
@@ -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]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user