massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / requests / requests / utils.pyi
1 from typing import Any, AnyStr, Iterable, Mapping, Text
2
3 from . import compat, cookies, exceptions, structures
4
5 OrderedDict = compat.OrderedDict
6 RequestsCookieJar = cookies.RequestsCookieJar
7 cookiejar_from_dict = cookies.cookiejar_from_dict
8 CaseInsensitiveDict = structures.CaseInsensitiveDict
9 InvalidURL = exceptions.InvalidURL
10
11 NETRC_FILES: Any
12 DEFAULT_CA_BUNDLE_PATH: Any
13 DEFAULT_PORTS: Any
14
15 def dict_to_sequence(d): ...
16 def super_len(o): ...
17 def get_netrc_auth(url, raise_errors: bool = ...): ...
18 def guess_filename(obj): ...
19 def extract_zipped_paths(path): ...
20 def from_key_val_list(value): ...
21 def to_key_val_list(value): ...
22 def parse_list_header(value): ...
23 def parse_dict_header(value): ...
24 def unquote_header_value(value, is_filename=...): ...
25 def dict_from_cookiejar(cj): ...
26 def add_dict_to_cookiejar(cj, cookie_dict): ...
27 def get_encodings_from_content(content): ...
28 def get_encoding_from_headers(headers): ...
29 def stream_decode_response_unicode(iterator, r): ...
30 def iter_slices(string, slice_length): ...
31 def get_unicode_from_response(r): ...
32
33 UNRESERVED_SET: Any
34
35 def unquote_unreserved(uri): ...
36 def requote_uri(uri): ...
37 def address_in_network(ip, net): ...
38 def dotted_netmask(mask): ...
39 def is_ipv4_address(string_ip): ...
40 def is_valid_cidr(string_network): ...
41 def set_environ(env_name, value): ...
42 def should_bypass_proxies(url, no_proxy: Iterable[AnyStr] | None) -> bool: ...
43 def get_environ_proxies(url, no_proxy: Iterable[AnyStr] | None = ...) -> dict[Any, Any]: ...
44 def select_proxy(url: Text, proxies: Mapping[Any, Any] | None): ...
45 def default_user_agent(name=...): ...
46 def default_headers(): ...
47 def parse_header_links(value): ...
48 def guess_json_utf(data): ...
49 def prepend_scheme_if_needed(url, new_scheme): ...
50 def get_auth_from_url(url): ...
51 def to_native_string(string, encoding=...): ...
52 def urldefragauth(url): ...
53 def rewind_body(prepared_request): ...
54 def check_header_validity(header: tuple[AnyStr, AnyStr]) -> None: ...