Add mypy error codes to '# type: ignore' comments (#6379)

This commit is contained in:
Akuli
2021-11-26 08:07:56 +02:00
committed by GitHub
parent 1278fa86e2
commit a5bc1e037f
74 changed files with 218 additions and 202 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ class JSONWebSignatureSerializer(Serializer):
def load_payload(
self, payload: Text | bytes, serializer: _serializer | None = ..., return_header: bool = ...
) -> Any: ... # morally -> Any | Tuple[Any, MutableMapping[str, Any]]
def dump_payload(self, header: Mapping[str, Any], obj: Any) -> bytes: ... # type: ignore
def dump_payload(self, header: Mapping[str, Any], obj: Any) -> bytes: ... # type: ignore[override]
def make_algorithm(self, algorithm_name: Text) -> SigningAlgorithm: ...
def make_signer(self, salt: Text | bytes | None = ..., algorithm: SigningAlgorithm = ...) -> Signer: ...
def make_header(self, header_fields: Mapping[str, Any] | None) -> MutableMapping[str, Any]: ...