Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,9 +1,9 @@
from typing import Any, Optional
from typing import Any
log: Any
def signature_base_string(http_method: str, base_str_uri: str, normalized_encoded_request_parameters: str) -> str: ...
def base_string_uri(uri: str, host: Optional[str] = ...) -> str: ...
def base_string_uri(uri: str, host: str | None = ...) -> str: ...
def collect_parameters(
uri_query: str = ...,
body: Any | None = ...,
@@ -19,7 +19,7 @@ def sign_hmac_sha256_with_client(sig_base_str, client): ...
def verify_hmac_sha256(request, client_secret: Any | None = ..., resource_owner_secret: Any | None = ...): ...
def sign_hmac_sha256(base_string, client_secret, resource_owner_secret): ...
def sign_hmac_sha512_with_client(sig_base_str: str, client): ...
def verify_hmac_sha512(request, client_secret: Optional[str] = ..., resource_owner_secret: Optional[str] = ...): ...
def verify_hmac_sha512(request, client_secret: str | None = ..., resource_owner_secret: str | None = ...): ...
def sign_rsa_sha1_with_client(sig_base_str, client): ...
def verify_rsa_sha1(request, rsa_public_key: str): ...
def sign_rsa_sha1(base_string, rsa_private_key): ...