mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Added missing type annotations for itsdangerous. (#4416)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
4
third_party/2and3/itsdangerous.pyi
vendored
4
third_party/2and3/itsdangerous.pyi
vendored
@@ -25,7 +25,7 @@ class BadHeader(BadSignature):
|
||||
header: Any
|
||||
original_error: Any
|
||||
def __init__(
|
||||
self, message, payload: Optional[Any] = ..., header: Optional[Any] = ..., original_error: Optional[Any] = ...
|
||||
self, message: str, payload: Optional[Any] = ..., header: Optional[Any] = ..., original_error: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
|
||||
class SignatureExpired(BadTimeSignature): ...
|
||||
@@ -106,7 +106,7 @@ class Serializer(object):
|
||||
def dumps(self, obj: Any, salt: Optional[Union[Text, bytes]] = ...) -> Any: ... # morally -> Union[str, bytes]
|
||||
def dump(self, obj: Any, f: IO[Any], salt: Optional[Union[Text, bytes]] = ...) -> None: ...
|
||||
def loads(self, s: Union[Text, bytes], salt: Optional[Union[Text, bytes]] = ...) -> Any: ...
|
||||
def load(self, f: IO[Any], salt: Optional[Union[Text, bytes]] = ...): ...
|
||||
def load(self, f: IO[Any], salt: Optional[Union[Text, bytes]] = ...) -> Any: ...
|
||||
def loads_unsafe(self, s: Union[Text, bytes], salt: Optional[Union[Text, bytes]] = ...) -> Tuple[bool, Optional[Any]]: ...
|
||||
def load_unsafe(self, f: IO[Any], salt: Optional[Union[Text, bytes]] = ...) -> Tuple[bool, Optional[Any]]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user