mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
requests: add annotation for parse_header_links (#8349)
In the requests package the function `utils.parse_header_links()`
takes a str as input and returns a list of dictionaries.
This can be seen in the unit tests that are used:
786255613b/tests/test_utils.py (L644-L664)
This commit is contained in:
@@ -44,7 +44,7 @@ def get_environ_proxies(url, no_proxy: Iterable[AnyStr] | None = ...) -> dict[An
|
||||
def select_proxy(url: str, proxies: Mapping[Any, Any] | None): ...
|
||||
def default_user_agent(name=...): ...
|
||||
def default_headers(): ...
|
||||
def parse_header_links(value): ...
|
||||
def parse_header_links(value: str) -> list[dict[str, str]]: ...
|
||||
def guess_json_utf(data): ...
|
||||
def prepend_scheme_if_needed(url, new_scheme): ...
|
||||
def get_auth_from_url(url): ...
|
||||
|
||||
Reference in New Issue
Block a user