mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-25 10:14:05 +08:00
[oauthlib] Fix type on body argument of oauthlib.oauth1.Client.sign() (#14295)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable
|
||||
from collections.abc import Callable, Mapping
|
||||
from logging import Logger
|
||||
from typing import Any, Final
|
||||
|
||||
from oauthlib.common import _HTTPMethod
|
||||
|
||||
log: Logger
|
||||
SIGNATURE_HMAC_SHA1: Final[str]
|
||||
SIGNATURE_HMAC_SHA256: Final[str]
|
||||
@@ -56,4 +58,11 @@ class Client:
|
||||
): ...
|
||||
def get_oauth_signature(self, request): ...
|
||||
def get_oauth_params(self, request): ...
|
||||
def sign(self, uri, http_method: str = "GET", body: str | None = None, headers: dict[str, str] | None = None, realm=None): ...
|
||||
def sign(
|
||||
self,
|
||||
uri: str,
|
||||
http_method: _HTTPMethod = "GET",
|
||||
body: str | dict[str, str] | list[tuple[str, str]] | None = None,
|
||||
headers: Mapping[str, str] | None = None,
|
||||
realm=None,
|
||||
): ...
|
||||
|
||||
Reference in New Issue
Block a user