mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix JSONWebSignatureSerializer.load_dangerous() signature to satisfy mypy. (#1135)
The latest mypy complained that the signature didn't match that in the superclass: Serializer.load_payload() has a serializer argument. I don't know this project but I think it's best to just add that argument (rather than adding `# type: ignore`).
This commit is contained in:
committed by
Jelle Zijlstra
parent
35b6795183
commit
3594b0e607
2
third_party/3/itsdangerous.pyi
vendored
2
third_party/3/itsdangerous.pyi
vendored
@@ -128,7 +128,7 @@ class JSONWebSignatureSerializer(Serializer):
|
||||
algorithm_name = ... # type: str
|
||||
algorithm = ... # type: Any
|
||||
def __init__(self, secret_key: _can_become_bytes, salt: Optional[_can_become_bytes]=None, serializer: _serializer=None, signer: Optional[Callable[..., Signer]]=None, signer_kwargs: Optional[MutableMapping]=None, algorithm_name: Optional[str]=None) -> None: ...
|
||||
def load_payload(self, payload: Any, return_header: bool=False) -> Any: ...
|
||||
def load_payload(self, payload: Any, serializer: _serializer = None, return_header: bool=False) -> Any: ...
|
||||
def dump_payload(self, *args, **kwargs) -> bytes: ...
|
||||
def make_algorithm(self, algorithm_name: str) -> SigningAlgorithm: ...
|
||||
def make_signer(self, salt: Optional[_can_become_bytes]=None, algorithm_name: Optional[str]=None) -> Signer: ...
|
||||
|
||||
Reference in New Issue
Block a user